city pop dynamics

This commit is contained in:
1brucben
2025-05-13 19:05:33 +02:00
parent f28f83ca89
commit a27e7deae2
7 changed files with 38 additions and 6 deletions
+1 -5
View File
@@ -584,11 +584,7 @@ export class DefaultConfig implements Config {
}
maxPopulation(player: Player | PlayerView): number {
const maxPop =
player.type() == PlayerType.Human && this.infiniteTroops()
? 1_000_000_000
: 1 * (player.numTilesOwned() * 30 + 50000) +
player.units(UnitType.City).length * this.cityPopulationIncrease();
const maxPop = player.maxPopulation();
if (player.type() == PlayerType.Bot) {
return maxPop / 2;