mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-24 13:41:08 +07:00
Show terrain overriding yields in Civilopedia (#8796)
This commit is contained in:
parent
458d35026c
commit
29982eba9e
@ -1468,6 +1468,8 @@ Units: =
|
||||
Unit types =
|
||||
Domain: [param] =
|
||||
Toggle UI (World Screen only) =
|
||||
Overrides yields from underlying terrain =
|
||||
No yields =
|
||||
|
||||
# Policies
|
||||
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user