mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 23:41:59 +00:00
4470c3d58a
## Description: The **proximityBonusPortsNb** function increased the likelihood a tradeship would go to a nearby port. But now that trade gold is nerfed from nearby ports, we shouldn't encourage trading with ports that are too close. So now add another factor **tradeShipShortRangeDebuff** That cancels out the proximity bonus if the port is too close. Now tradeships are encouraged to go to ports that are close, but not too close. Also move tradingPorts method to the PortExecution class because that's the only place it's used. ## 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 ## Please put your Discord username so you can be contacted if a bug or regression is found: evan