mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 23:37:31 +07:00
Resolved #7846 - Don't show hidden improvements in nation info
This commit is contained in:
parent
f976d1da71
commit
5c973b0de5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user