Fix a code style bug that caused exception mentioned in last commit.

This commit is contained in:
Duan Tao 2019-09-25 18:57:47 +08:00 committed by Yair Morgenstern
parent e511385d12
commit 4ca32a0523

View File

@ -61,9 +61,10 @@ class CityConstructions {
val currentConstructionSnapshot = currentConstruction // See below
var result = currentConstructionSnapshot.tr()
if (currentConstructionSnapshot!=""
&& SpecialConstruction.getSpecialConstructions().none { it.name==currentConstructionSnapshot })
&& SpecialConstruction.getSpecialConstructions().none { it.name==currentConstructionSnapshot }) {
result += ("\r\nCost " + getConstruction(currentConstruction).getProductionCost(cityInfo.civInfo).toString()).tr()
result += "\r\n" + turnsToConstruction(currentConstructionSnapshot ) + " {turns}".tr()
result += "\r\n" + turnsToConstruction(currentConstructionSnapshot) + " {turns}".tr()
}
return result
}