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