From 68493b137c290e958c858bf84d20149905cbcdf5 Mon Sep 17 00:00:00 2001 From: Dan Hamik Date: Thu, 5 May 2022 09:57:58 -0500 Subject: [PATCH] set cap on storage during RCL increasing --- role.phase1worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/role.phase1worker.js b/role.phase1worker.js index 050f9ec..b870d8c 100644 --- a/role.phase1worker.js +++ b/role.phase1worker.js @@ -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})