mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 13:55:54 -04: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
|
return transportationUpkeep
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,7 +271,8 @@ class WorldScreenOptionsTable(val worldScreen:WorldScreen) : PopupTable(worldScr
|
|||||||
GameBasics.Translations.getLanguages().map { Language(it) }.sortedByDescending { it.percentComplete }
|
GameBasics.Translations.getLanguages().map { Language(it) }.sortedByDescending { it.percentComplete }
|
||||||
.forEach { languageArray.add(it) }
|
.forEach { languageArray.add(it) }
|
||||||
languageSelectBox.items = languageArray
|
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()
|
innerTable.add(languageSelectBox).pad(10f).row()
|
||||||
|
|
||||||
languageSelectBox.addListener(object : ChangeListener() {
|
languageSelectBox.addListener(object : ChangeListener() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user