From e71d40140aab4e120ba0d3189406b68878734b57 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sun, 2 Sep 2018 08:43:48 +0300 Subject: [PATCH] Wonder unique abilities now properly displayed in tech screen again --- core/src/com/unciv/models/gamebasics/Building.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/gamebasics/Building.kt b/core/src/com/unciv/models/gamebasics/Building.kt index b8a7de07ed..63a5b86557 100644 --- a/core/src/com/unciv/models/gamebasics/Building.kt +++ b/core/src/com/unciv/models/gamebasics/Building.kt @@ -57,7 +57,7 @@ class Building : NamedStats(), IConstruction{ // buildings that improve resources infoList += improvedResources.joinToString()+ " {provide} ".tr()+ resourceBonusStats.toString() } - infoList += uniques.map { it.tr() }.joinToString { "\n" } + if(uniques.isNotEmpty()) infoList += uniques.map { it.tr() }.joinToString() if(cityStrength!=0) infoList+="{City strength} +".tr()+cityStrength if(cityHealth!=0) infoList+="{City health} +".tr()+cityHealth if(xpForNewUnits!=0) infoList+= "+$xpForNewUnits {XP for new units}".tr()