findSourceIdMissingMiner now compares the ticksToLive of each miner to the path stored in the room memory to determine whether to return a missingSourceId or not. If a creep has fewer ticksToLive than 3 * the length of the stored path, then that sourceId will be returned so that a new miner can be spawned before the current one dies of old age.
findSourceIdMissingMiner now compares the ticksToLive of each miner to the path stored in the room memory to determine whether to return a missingSourceId or not. If a creep has fewer ticksToLive than 3 * the length of the stored path, then that sourceId will be returned so that a new miner can be spawned before the current one dies of old age.

AlexABallWebDev/screeps-scripts,AlexABallWebDev/screeps-scripts