mirror of
https://github.com/paradizelost/screeps.git
synced 2024-11-28 19:54:01 -06:00
13 lines
443 B
JavaScript
13 lines
443 B
JavaScript
|
let initroom = {
|
||
|
run: function(name) {
|
||
|
console.log('Initing room ' + name)
|
||
|
Game.rooms[name].memory.phase=0
|
||
|
Game.rooms[name].memory.CreepNum=0
|
||
|
Game.rooms[name].memory.minbuildpct=-1
|
||
|
Game.rooms[name].memory.minupgradepct=.5
|
||
|
Game.rooms[name].memory.minrepairpct=.5
|
||
|
Game.rooms[name].memory.hasbeeninited=1
|
||
|
Game.rooms[name].memory.tickssofar=0
|
||
|
}
|
||
|
}
|
||
|
module.exports = initroom
|