Show terrain overriding yields in Civilopedia (#8796)

This commit is contained in:
SomeTroglodyte
2023-03-03 15:07:42 +01:00
committed by GitHub
parent 458d35026c
commit 29982eba9e
2 changed files with 6 additions and 2 deletions

View File

@ -1468,6 +1468,8 @@ Units: =
Unit types = Unit types =
Domain: [param] = Domain: [param] =
Toggle UI (World Screen only) = Toggle UI (World Screen only) =
Overrides yields from underlying terrain =
No yields =
# Policies # Policies

View File

@ -74,9 +74,11 @@ class Terrain : RulesetStatsObject() {
} }
val stats = cloneStats() val stats = cloneStats()
if (!stats.isEmpty()) { if (!stats.isEmpty() || overrideStats) {
textList += FormattedLine() textList += FormattedLine()
textList += FormattedLine("$stats") textList += FormattedLine(if (stats.isEmpty()) "No yields" else "$stats")
if (overrideStats)
textList += FormattedLine("Overrides yields from underlying terrain")
} }
if (occursOn.isNotEmpty() && !hasUnique(UniqueType.NoNaturalGeneration)) { if (occursOn.isNotEmpty() && !hasUnique(UniqueType.NoNaturalGeneration)) {