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) => cost: (p: Player) =>
p.type() == PlayerType.Human && this.infiniteGold() p.type() == PlayerType.Human && this.infiniteGold()
? 0 ? 0
: (p.unitsIncludingConstruction(UnitType.Warship).length + 1) * : Math.min(
250_000, 1_000_000,
(p.unitsIncludingConstruction(UnitType.Warship).length + 1) *
250_000,
),
territoryBound: false, territoryBound: false,
maxHealth: 1000, maxHealth: 1000,
}; };