If you are having an issue with a code section or want help outlining a new feature make a post here.
If you are posting code then please use a Code Tag from above. It makes it much easier to read.

function extendSource(creep) {
let target = Game.getObjectById(creep.memory.task.source);
let inRange = creep.pos.inRangeTo(target, 3);
if (inRange && creep.powers[PWR_REGEN_SOURCE].cooldown == 0) {
creep.usePower(PWR_REGEN_SOURCE, target);
delete creep.memory.task;
} else {
creep.moveTo(target, {reusePath: 15, ignoreRoads: true, plainCost: 1, swampCost: 1, range: 3});
}
}
-
This topic was modified 1 year, 1 month ago by
Atanner.
-
This topic was modified 1 year, 1 month ago by
Atanner.
-
This topic was modified 1 year, 1 month ago by
Atanner.
-
This topic was modified 1 year, 1 month ago by
Atanner.
-
This topic was modified 1 year, 1 month ago by
Atanner.