changed git root
This commit is contained in:
15
default/ClassRoom.js
Normal file
15
default/ClassRoom.js
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports = {
|
||||
setup: function () { Room.prototype = _Room.prototype; }
|
||||
}
|
||||
|
||||
|
||||
class _Room extends Room {
|
||||
// Initialize the room object
|
||||
init() {
|
||||
// Initialize memory
|
||||
if (this.memory.state == undefined) this.memory.state = ROOMSTATE_NEUTRAL;
|
||||
|
||||
// Start game when spawn is in neutral room make it the capital.
|
||||
if (this.controller.my && this.memory.state == ROOMSTATE_NEUTRAL) this.memory.state = ROOMSTATE_CAPITAL;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user