Slight improvements to movement. Started using regions.

This commit is contained in:
DouweRavers
2022-05-03 20:28:24 +02:00
parent 4e3ad07fff
commit 1806935c50
4 changed files with 91 additions and 41 deletions

View File

@@ -17,9 +17,10 @@ module.exports = {
delete Memory.creeps[creep_name];
return;
}
if (creep.memory.init == undefined) creep.init();
switch (creep.memory.role) {
case ROLE_HARVESTER:
if (creep.memory.recharge) creep.harvestSource();
if (creep.memory.gathering) creep.harvestSource();
else creep.harvesterJobs();
break;
default: