mirror of
https://github.com/paradizelost/screeps.git
synced 2024-11-28 19:54:01 -06:00
Enable market selling globally
This commit is contained in:
parent
62419d54d8
commit
eab9643b84
@ -49,6 +49,9 @@ let Phase1 = {
|
|||||||
require('proc.spawning').spawnminer(room)
|
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")}}
|
} 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)
|
//require('proc.market').sellEnergy(room)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ let gomarket={
|
|||||||
try{
|
try{
|
||||||
let availtosell= Game.rooms[myroom].terminal.store[RESOURCE_ENERGY]
|
let availtosell= Game.rooms[myroom].terminal.store[RESOURCE_ENERGY]
|
||||||
|
|
||||||
if(availtosell>5000){
|
if(availtosell>200000){
|
||||||
console.log(myroom + ":" + availtosell)
|
console.log(myroom + ":" + availtosell)
|
||||||
//console.log(JSON.stringify(Game.market.orders))
|
//console.log(JSON.stringify(Game.market.orders))
|
||||||
// if(Game.market.orders.length > 9){
|
// if(Game.market.orders.length > 9){
|
||||||
|
Loading…
Reference in New Issue
Block a user