Hi forum,
Really fascinating game, but
I experience the my creeps stops moving if the desired source is empty until the source is recharged.
I don't mean this pumping move during charging, I mean moving forward towards the source. When the source is recharged the creeps immediately continue to move their way.
I would prefer if they would continue even if the source is empty.
Here the code I use:
var source = spawn.pos.findClosestByRange(FIND_SOURCES); if(creep.harvest(source) == ERR_NOT_IN_RANGE) {
creep.moveTo(source);
}
Any ideas?