mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-16 21:40:04 +00:00
city pop dynamics
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user