Every unit enabled by a tech gets its own line now
This commit is contained in:
parent
3e02417838
commit
9d27e22952
2 changed files with 6 additions and 2 deletions
|
@ -21,7 +21,11 @@ class Technology : ICivilopedia {
|
|||
var enabledUnits = GameBasics.Units.values.filter { it.requiredTech==name && (it.uniqueTo==null || it.uniqueTo==UnCivGame.Current.gameInfo.getPlayerCivilization().civName) }
|
||||
val replacedUnits = enabledUnits.map { it.replaces }.filterNotNull()
|
||||
enabledUnits = enabledUnits.filter { it.name !in replacedUnits}
|
||||
if(enabledUnits.isNotEmpty()) SB.appendln("{Units enabled}: "+enabledUnits.map { it.name.tr() + " ("+it.getShortDescription()+")" }.joinToString())
|
||||
if(enabledUnits.isNotEmpty()){
|
||||
SB.appendln("{Units enabled}: ")
|
||||
for(unit in enabledUnits)
|
||||
SB.appendln(" * "+unit.name.tr() + " ("+unit.getShortDescription()+")")
|
||||
}
|
||||
|
||||
var enabledBuildings = GameBasics.Buildings.values.filter { it.requiredTech==name && (it.uniqueTo==null || it.uniqueTo==UnCivGame.Current.gameInfo.getPlayerCivilization().civName) }
|
||||
val replacedBuildings = enabledBuildings.map { it.replaces }.filterNotNull()
|
||||
|
|
Loading…
Reference in a new issue