From d99bd03277a86458055b5361850865d226746d67 Mon Sep 17 00:00:00 2001 From: SeventhM <127357473+SeventhM@users.noreply.github.com> Date: Sun, 3 Mar 2024 10:03:20 -0800 Subject: [PATCH] Allow city state uniques for nation descriptions (#11232) --- core/src/com/unciv/models/ruleset/nation/Nation.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/models/ruleset/nation/Nation.kt b/core/src/com/unciv/models/ruleset/nation/Nation.kt index a4d62265cd..23110bc219 100644 --- a/core/src/com/unciv/models/ruleset/nation/Nation.kt +++ b/core/src/com/unciv/models/ruleset/nation/Nation.kt @@ -109,10 +109,10 @@ class Nation : RulesetObject() { } override fun getCivilopediaTextLines(ruleset: Ruleset): List { - if (isCityState) return getCityStateInfo(ruleset) - val textList = ArrayList() + 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