mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 18:26:43 +00:00
cap city & port at 1 million
This commit is contained in:
@@ -72,7 +72,7 @@ export class DefaultConfig implements Config {
|
||||
return {
|
||||
cost: (p: Player) =>
|
||||
Math.min(
|
||||
10_000_000,
|
||||
1_000_000,
|
||||
Math.pow(2, p.units(UnitType.Port).length) * 250_000
|
||||
),
|
||||
territoryBound: true
|
||||
@@ -108,7 +108,10 @@ export class DefaultConfig implements Config {
|
||||
}
|
||||
case UnitType.City:
|
||||
return {
|
||||
cost: (p: Player) => Math.pow(2, p.units(UnitType.City).length) * 125_000,
|
||||
cost: (p: Player) => Math.min(
|
||||
1_000_000,
|
||||
Math.pow(2, p.units(UnitType.City).length) * 125_000,
|
||||
),
|
||||
territoryBound: true
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user