From 77409096c06b9f35eb1f96d1d94d7e5587295ebf Mon Sep 17 00:00:00 2001 From: 1brucben <1benjbruce@gmail.com> Date: Wed, 7 May 2025 17:53:36 +0200 Subject: [PATCH] smoothed ship spawn rate function (#553) ## Description: Fixes #552 ## Please complete the following: - [ X] I have added screenshots for all UI updates - [ 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: Discord Name: 1brucben --- src/core/configuration/DefaultConfig.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/core/configuration/DefaultConfig.ts b/src/core/configuration/DefaultConfig.ts index 660820fd8..e8c3e9881 100644 --- a/src/core/configuration/DefaultConfig.ts +++ b/src/core/configuration/DefaultConfig.ts @@ -251,12 +251,7 @@ export class DefaultConfig implements Config { return 10000 + 150 * Math.pow(dist, 1.1); } tradeShipSpawnRate(numberOfPorts: number): number { - if (numberOfPorts <= 3) return 18; - if (numberOfPorts <= 5) return 25; - if (numberOfPorts <= 8) return 35; - if (numberOfPorts <= 10) return 40; - if (numberOfPorts <= 12) return 45; - return 50; + return Math.round(10 * Math.pow(numberOfPorts, 0.6)); } unitInfo(type: UnitType): UnitInfo {