mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:30:43 +00:00
Allow boat discount based on number of units owned (#1261)
## Description: The boat discount cannot be abused and when you’re stuck on a small island, kind of isolated and low on resources, being able to afford a boat with your last few gold can. A last move resistance and fun to play. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I understand that submitting code with bugs that could have been caught through manual testing blocks releases and new features for all contributors ## Please put your Discord username so you can be contacted if a bug or regression is found: devalnor
This commit is contained in:
@@ -332,7 +332,7 @@ export class DefaultConfig implements Config {
|
||||
: BigInt(
|
||||
Math.min(
|
||||
1_000_000,
|
||||
(p.unitsConstructed(UnitType.Warship) + 1) * 250_000,
|
||||
(p.unitsOwned(UnitType.Warship) + 1) * 250_000,
|
||||
),
|
||||
),
|
||||
territoryBound: false,
|
||||
|
||||
Reference in New Issue
Block a user