mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-30 09:31:25 +07:00
Display protecting civs for city-states
This commit is contained in:
parent
96172c67d4
commit
9cf47e9f48
@ -228,12 +228,12 @@ class DiplomacyScreen(
|
||||
|
||||
val protectors = otherCiv.getProtectorCivs()
|
||||
if (protectors.isNotEmpty()) {
|
||||
val newProtectors = listOf<String>()
|
||||
val newProtectors = arrayListOf<String>()
|
||||
for (protector in protectors) {
|
||||
if (!viewingCiv.knows(protector) && protector.civName != viewingCiv.civName)
|
||||
newProtectors.plus("Unknown civilization".tr())
|
||||
newProtectors.add("Unknown civilization".tr())
|
||||
else
|
||||
newProtectors.plus(protector.civName.tr())
|
||||
newProtectors.add(protector.civName.tr())
|
||||
}
|
||||
val protectorString = "{Protected by}: " + newProtectors.joinToString(", ")
|
||||
diplomacyTable.add(protectorString.toLabel()).row()
|
||||
|
Loading…
Reference in New Issue
Block a user