Allow city state uniques for nation descriptions (#11232)

This commit is contained in:
SeventhM 2024-03-03 10:03:20 -08:00 committed by GitHub
parent 2d1e55a4d4
commit d99bd03277
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,10 +109,10 @@ class Nation : RulesetObject() {
}
override fun getCivilopediaTextLines(ruleset: Ruleset): List<FormattedLine> {
if (isCityState) return getCityStateInfo(ruleset)
val textList = ArrayList<FormattedLine>()
if (isCityState) textList += getCityStateInfo(ruleset)
if (leaderName.isNotEmpty()) {
textList += FormattedLine(extraImage = "LeaderIcons/$leaderName", imageSize = 200f)
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
return textList