screeps/RoomInit.js
2020-11-10 01:29:27 -06:00

14 lines
486 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
Game.rooms[name].memory.maphits={}
}
}
module.exports = initroom