Slight improvements to movement. Started using regions.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user