Fix tech description items alignment

This commit is contained in:
vegeta1k95
2023-02-23 14:55:46 +01:00
parent 145811849c
commit 33ddb2dc3a

View File

@ -56,7 +56,7 @@ class Technology: RulesetObject() {
if (enabledUnits.any()) { if (enabledUnits.any()) {
lineList += "{Units enabled}: " lineList += "{Units enabled}: "
for (unit in enabledUnits) for (unit in enabledUnits)
lineList += " * " + unit.name.tr() + " (" + unit.getShortDescription() + ")" lineList += " " + unit.name.tr() + " (" + unit.getShortDescription() + ")"
} }
val enabledBuildings = getEnabledBuildings(ruleset, viewingCiv) val enabledBuildings = getEnabledBuildings(ruleset, viewingCiv)
@ -65,14 +65,14 @@ class Technology: RulesetObject() {
if (regularBuildings.any()) { if (regularBuildings.any()) {
lineList += "{Buildings enabled}: " lineList += "{Buildings enabled}: "
for (building in regularBuildings) for (building in regularBuildings)
lineList += "* " + building.name.tr() + " (" + building.getShortDescription() + ")" lineList += " " + building.name.tr() + " (" + building.getShortDescription() + ")"
} }
val wonders = enabledBuildings.filter { it.isAnyWonder() } val wonders = enabledBuildings.filter { it.isAnyWonder() }
if (wonders.any()) { if (wonders.any()) {
lineList += "{Wonders enabled}: " lineList += "{Wonders enabled}: "
for (wonder in wonders) for (wonder in wonders)
lineList += " * " + wonder.name.tr() + " (" + wonder.getShortDescription() + ")" lineList += " " + wonder.name.tr() + " (" + wonder.getShortDescription() + ")"
} }
for (obj in getObsoletedObjects(ruleset, viewingCiv)) for (obj in getObsoletedObjects(ruleset, viewingCiv))