Removed the harvester. Introduced the cleaner (not active yet) spawners use full room capacity now.

This commit is contained in:
unknown
2023-08-30 23:37:04 +02:00
parent 112c3c3a97
commit eda20c2dce
6 changed files with 118 additions and 112 deletions

View File

@@ -75,9 +75,14 @@ function findTransferTarget(creep) {
switch (creep.memory.counter%3) {
case 0: target = creep.pos.findClosestByRange(FIND_MY_STRUCTURES, {
filter:(s)=> {
return (s.structureType == STRUCTURE_SPAWN || s.structureType == STRUCTURE_EXTENSION)
return (s.structureType == STRUCTURE_EXTENSION)
&& s.store.getFreeCapacity(RESOURCE_ENERGY) > 0;
}});
if(!target) target = creep.pos.findClosestByRange(FIND_MY_STRUCTURES, {
filter:(s)=> {
return (s.structureType == STRUCTURE_SPAWN)
&& s.store.getFreeCapacity(RESOURCE_ENERGY) > 0;
}});
break;
case 1: target = creep.pos.findClosestByRange(FIND_STRUCTURES, {
filter:(s)=> {