Customizable creative mode

This commit is contained in:
NewHappyRabbit
2025-02-24 23:06:50 +02:00
parent f995fc4ec6
commit 02d5060352
11 changed files with 224 additions and 99 deletions
+11 -5
View File
@@ -63,14 +63,20 @@ export class GameServer {
if (gameConfig.difficulty != null) {
this.gameConfig.difficulty = gameConfig.difficulty;
}
if (gameConfig.disableBots != null) {
this.gameConfig.disableBots = gameConfig.disableBots;
}
if (gameConfig.disableNPCs != null) {
this.gameConfig.disableNPCs = gameConfig.disableNPCs;
}
if (gameConfig.creativeMode != null) {
this.gameConfig.creativeMode = gameConfig.creativeMode;
if (gameConfig.bots != null) {
this.gameConfig.bots = gameConfig.bots;
}
if (gameConfig.infiniteGold != null) {
this.gameConfig.infiniteGold = gameConfig.infiniteGold;
}
if (gameConfig.infiniteTroops != null) {
this.gameConfig.infiniteTroops = gameConfig.infiniteTroops;
}
if (gameConfig.instantBuild != null) {
this.gameConfig.instantBuild = gameConfig.instantBuild;
}
}