mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 23:39:40 +07:00
Show terrain overriding yields in Civilopedia (#8796)
This commit is contained in:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user