mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 12:54:06 -04:00
Allow city state uniques for nation descriptions (#11232)
This commit is contained in:
parent
2d1e55a4d4
commit
d99bd03277
@ -109,10 +109,10 @@ class Nation : RulesetObject() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun getCivilopediaTextLines(ruleset: Ruleset): List<FormattedLine> {
|
override fun getCivilopediaTextLines(ruleset: Ruleset): List<FormattedLine> {
|
||||||
if (isCityState) return getCityStateInfo(ruleset)
|
|
||||||
|
|
||||||
val textList = ArrayList<FormattedLine>()
|
val textList = ArrayList<FormattedLine>()
|
||||||
|
|
||||||
|
if (isCityState) textList += getCityStateInfo(ruleset)
|
||||||
|
|
||||||
if (leaderName.isNotEmpty()) {
|
if (leaderName.isNotEmpty()) {
|
||||||
textList += FormattedLine(extraImage = "LeaderIcons/$leaderName", imageSize = 200f)
|
textList += FormattedLine(extraImage = "LeaderIcons/$leaderName", imageSize = 200f)
|
||||||
textList += FormattedLine(getLeaderDisplayName(), centered = true, header = 3)
|
textList += FormattedLine(getLeaderDisplayName(), centered = true, header = 3)
|
||||||
@ -184,6 +184,7 @@ class Nation : RulesetObject() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
textList += FormattedLine(separator = true)
|
||||||
|
|
||||||
// personality is not a nation property, it gets assigned to the civ randomly
|
// personality is not a nation property, it gets assigned to the civ randomly
|
||||||
return textList
|
return textList
|
||||||
|
Loading…
x
Reference in New Issue
Block a user