Merge pull request #15 from NewHappyRabbit/main

Added checkboxes to disable Bots and NPCs for single player and private lobbies
This commit is contained in:
evanpelle
2025-02-11 08:28:24 -08:00
committed by GitHub
14 changed files with 213 additions and 105 deletions
+4 -1
View File
@@ -76,7 +76,10 @@ export class DefaultConfig implements Config {
return 5;
}
spawnNPCs(): boolean {
return true;
return !this._gameConfig.disableNPCs;
}
spawnBots(): boolean {
return !this._gameConfig.disableBots;
}
tradeShipGold(dist: number): Gold {
return 10000 + 100 * Math.pow(dist, 1.1);