cap warship cost at 1 million

This commit is contained in:
Evan
2025-03-06 16:14:13 -08:00
parent d7069b4143
commit df2bb36aae
+5 -2
View File
@@ -145,8 +145,11 @@ export class DefaultConfig implements Config {
cost: (p: Player) =>
p.type() == PlayerType.Human && this.infiniteGold()
? 0
: (p.unitsIncludingConstruction(UnitType.Warship).length + 1) *
250_000,
: Math.min(
1_000_000,
(p.unitsIncludingConstruction(UnitType.Warship).length + 1) *
250_000,
),
territoryBound: false,
maxHealth: 1000,
};