From 9e4597d13935b45892a137e4e70b74fdb0e1ec35 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Tue, 10 Dec 2024 08:11:13 -0800 Subject: [PATCH] cap city & port at 1 million --- src/core/configuration/DefaultConfig.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 6faf08363..211b12bf4 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -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: