mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-25 10:26:05 +07:00
Terrain civilopedia displays improvements that can be placed there
This commit is contained in:
parent
147fdb24fa
commit
acb1096615
@ -97,6 +97,15 @@ class Terrain : RulesetStatsObject() {
|
||||
}
|
||||
}
|
||||
|
||||
val improvementsThatCanBePlacedHere = ruleset.tileImprovements.values
|
||||
.filter { it.terrainsCanBeBuiltOn.contains(name) }
|
||||
if (improvementsThatCanBePlacedHere.isNotEmpty()){
|
||||
textList += FormattedLine("{Tile Improvements}:")
|
||||
for (improvement in improvementsThatCanBePlacedHere){
|
||||
textList += FormattedLine(improvement.name, improvement.makeLink(), indent=1)
|
||||
}
|
||||
}
|
||||
|
||||
if (turnsInto != null) {
|
||||
textList += FormattedLine("Placed on [$turnsInto]", link="Terrain/$turnsInto")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user