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