make max pop 100 million on creative so it fits in the UI panel

This commit is contained in:
Evan
2025-02-12 12:42:30 -08:00
parent 646806d132
commit cc1291153c
+1 -1
View File
@@ -371,7 +371,7 @@ export class DefaultConfig implements Config {
maxPopulation(player: Player | PlayerView): number {
let maxPop =
player.type() == PlayerType.Human && this.creativeMode()
? 999_999_999_999
? 1_000_000_000
: 2 * (Math.pow(player.numTilesOwned(), 0.6) * 1000 + 50000) +
player.units(UnitType.City).length * this.cityPopulationIncrease();