Enable market selling globally

This commit is contained in:
Dan Hamik 2022-04-26 23:51:44 -05:00
parent 62419d54d8
commit eab9643b84
2 changed files with 4 additions and 1 deletions

View File

@ -49,6 +49,9 @@ let Phase1 = {
require('proc.spawning').spawnminer(room)
} 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].terminal.store[RESOURCE_ENERGY] > 200000 )){
require('proc.market').sellEnergy(room)
}
//require('proc.market').sellEnergy(room)
}
}

View File

@ -11,7 +11,7 @@ let gomarket={
try{
let availtosell= Game.rooms[myroom].terminal.store[RESOURCE_ENERGY]
if(availtosell>5000){
if(availtosell>200000){
console.log(myroom + ":" + availtosell)
//console.log(JSON.stringify(Game.market.orders))
// if(Game.market.orders.length > 9){