mirror of
https://github.com/paradizelost/screeps.git
synced 2024-11-25 02:14:44 -06:00
set cap on storage during RCL increasing
This commit is contained in:
parent
faeef7ee03
commit
68493b137c
@ -55,7 +55,7 @@ let Phase1Worker = {
|
||||
if (road.length > 0) {creep.repair(road);}
|
||||
creep.moveTo(target,{ignoreCreeps:ignorecreeps})
|
||||
}
|
||||
} else if(storagetargets){// && creep.room.controller.level*.02 < creep.room.storage.store.getUsedCapacity('energy')/creep.room.storage.store.getCapacity()){
|
||||
} else if(storagetargets && creep.room.controller.level*125000> creep.room.storage.store.getUsedCapacity('energy')){
|
||||
if(creep.transfer(storagetargets, RESOURCE_ENERGY) == ERR_NOT_IN_RANGE) {
|
||||
if (road.length > 0) {creep.repair(road);}
|
||||
creep.moveTo(storagetargets,{ignoreCreeps:ignorecreeps})
|
||||
|
Loading…
Reference in New Issue
Block a user