reverse previous commit

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

15
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;
}
}