From ecabdfe4bccedf57befc0abcc42c88d6bb5cb94e Mon Sep 17 00:00:00 2001 From: "maxime.io" Date: Mon, 23 Jun 2025 21:20:46 +0200 Subject: [PATCH] Allow boat discount based on number of units owned (#1261) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 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 --- src/core/configuration/DefaultConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 2a0a47e2c..aff94aacc 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -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,