From 25805141b7288dc16f875184cb5f1588f19e334c Mon Sep 17 00:00:00 2001 From: evanpelle Date: Wed, 6 Aug 2025 15:43:01 -0700 Subject: [PATCH] allow trains & railroads between non-allies (#1719) ## Description: I think it makes sense to allow trains between non-allies, but give a bonus to land trade between players who are allies. ## 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 have read and accepted the CLA agreement (only required once). ## Please put your Discord username so you can be contacted if a bug or regression is found: evan --- src/core/game/TrainStation.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/game/TrainStation.ts b/src/core/game/TrainStation.ts index a0e78fa01..8eb3bacee 100644 --- a/src/core/game/TrainStation.ts +++ b/src/core/game/TrainStation.ts @@ -229,10 +229,7 @@ export class Cluster { availableForTrade(player: Player): Set { const tradingStations = new Set(); for (const station of this.stations) { - if ( - station.unit.owner() === player || - station.unit.owner().isFriendly(player) - ) { + if (station.tradeAvailable(player)) { tradingStations.add(station); } }