Perpetual constructions display "0 turn" in the queue (#2435)

This gag or omitting the line entirely both look better
This commit is contained in:
SomeTroglodyte
2020-04-16 19:40:27 +02:00
committed by GitHub
parent ac8648216e
commit 3f7d5a5cb4

View File

@ -185,7 +185,9 @@ class ConstructionsTable(val cityScreen: CityScreen) : Table(CameraStageBaseScre
val isFirstConstructionOfItsKind = cityConstructions.isFirstConstructionOfItsKind(constructionQueueIndex, name)
val turnsToComplete = cityConstructions.turnsToConstruction(name, isFirstConstructionOfItsKind)
var text = name.tr() + turnOrTurns(turnsToComplete)
var text = name.tr() +
if (name in PerpetualConstruction.perpetualConstructionsMap) "\n"
else turnOrTurns(turnsToComplete)
val constructionResource = cityConstructions.getConstruction(name).getResource()