mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-19 02:04:39 +00:00
cap warship cost at 1 million
This commit is contained in:
@@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user