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:
maxime.io
2025-06-23 21:20:46 +02:00
committed by GitHub
parent 629ce68604
commit ecabdfe4bc
+1 -1
View File
@@ -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,