mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 03:18:18 +07:00
Transportation upkeep no longer disappears after adopting Trade Unions - kudos ..,,,!
This commit is contained in:
parent
67916f9be2
commit
b9f79376ce
@ -48,7 +48,8 @@ class CivInfoStats(val civInfo: CivilizationInfo){
|
||||
}
|
||||
}
|
||||
}
|
||||
if (civInfo.policies.isAdopted("Trade Unions")) transportationUpkeep *= (2 / 3f).toInt()
|
||||
if (civInfo.policies.isAdopted("Trade Unions"))
|
||||
transportationUpkeep = (transportationUpkeep * 2 / 3f).toInt()
|
||||
return transportationUpkeep
|
||||
}
|
||||
|
||||
|
@ -271,7 +271,8 @@ class WorldScreenOptionsTable(val worldScreen:WorldScreen) : PopupTable(worldScr
|
||||
GameBasics.Translations.getLanguages().map { Language(it) }.sortedByDescending { it.percentComplete }
|
||||
.forEach { languageArray.add(it) }
|
||||
languageSelectBox.items = languageArray
|
||||
languageSelectBox.selected = languageArray.first { it.language == UnCivGame.Current.settings.language }
|
||||
val matchingLanguage = languageArray.firstOrNull { it.language == UnCivGame.Current.settings.language }
|
||||
languageSelectBox.selected = if (matchingLanguage != null) matchingLanguage else languageArray.first()
|
||||
innerTable.add(languageSelectBox).pad(10f).row()
|
||||
|
||||
languageSelectBox.addListener(object : ChangeListener() {
|
||||
|
Loading…
Reference in New Issue
Block a user