mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-26 13:04:35 +00:00
Allow railroad loops (#1274)
## Description: This change enables loop formation in the station network, allowing for enhanced connectivity. However, it can sometimes result in clustered areas as a trade-off. To mitigate excessive clustering, loops are only permitted when there are at least 5 intermediary stations between the source and destination stations.  Also a few fixes for `.dev` players. ## 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
This commit is contained in:
@@ -246,7 +246,10 @@ export class UnitInfoModal extends LitElement implements Layer {
|
||||
class="upgrade-button"
|
||||
title="${translateText("unit_info_modal.create_station")}"
|
||||
style="width: 100px; height: 32px;
|
||||
display: ${this.unit.hasTrainStation() ? "none" : "block"};"
|
||||
display: ${this.unit.hasTrainStation() ||
|
||||
!this.game.unitInfo(this.unit.type()).canBuildTrainStation
|
||||
? "none"
|
||||
: "block"};"
|
||||
>
|
||||
${translateText("unit_info_modal.create_station")}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user