Resolved #7846 - Don't show hidden improvements in nation info

This commit is contained in:
Yair Morgenstern 2022-10-09 12:28:19 +03:00
parent f976d1da71
commit 5c973b0de5

View File

@ -277,7 +277,7 @@ class Nation : RulesetObject() {
private fun getUniqueImprovementsText(ruleset: Ruleset) = sequence {
for (improvement in ruleset.tileImprovements.values) {
if (improvement.uniqueTo != name) continue
if (improvement.uniqueTo != name || improvement.hasUnique(UniqueType.HiddenFromCivilopedia)) continue
yield(FormattedLine(improvement.name, link = "Improvement/${improvement.name}"))
yield(FormattedLine(improvement.cloneStats().toString(), indent = 1)) // = (improvement as Stats).toString minus import plus copy overhead