changed git root

This commit is contained in:
Gebruiker
2022-10-23 01:23:27 +02:00
parent ef9159260b
commit 90448c79e4
12 changed files with 5 additions and 0 deletions

15
default/ClassRoom.js Normal file
View 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;
}
}