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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

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

View File

@ -74,9 +74,11 @@ class Terrain : RulesetStatsObject() {
}
val stats = cloneStats()
if (!stats.isEmpty()) {
if (!stats.isEmpty() || overrideStats) {
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)) {