diff --git a/Room.Phase1.js b/Room.Phase1.js index fe29278..a9925c2 100644 --- a/Room.Phase1.js +++ b/Room.Phase1.js @@ -50,7 +50,8 @@ let Phase1 = { } else { if(Game.flags.debug && Game.flags.debug.room == Game.rooms[room]){console.log("Not spawning miner in " + room + ", waiting for regen")}} } if(Game.rooms[room].find(FIND_MY_STRUCTURES, {filter: {structureType: STRUCTURE_TERMINAL}}).length > 0){ - if(Game.rooms[room].terminal.store[RESOURCE_ENERGY]>200000){ + if(Game.rooms[room].terminal.storage[RESOURCE_ENERGY] > 200000){ + console.log("") require('proc.market').sellEnergy(room) } }