From 9b37f0a90728120f440e6768914400fd8d75afb5 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sun, 14 Jun 2020 20:52:00 +0300 Subject: [PATCH] Resolved #2723 - resource-specific improvement bonuses are *in addition to* the regular improvement bonuses, and not instead. --- core/src/com/unciv/logic/map/TileInfo.kt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/src/com/unciv/logic/map/TileInfo.kt b/core/src/com/unciv/logic/map/TileInfo.kt index 02c1317317..d34b75282e 100644 --- a/core/src/com/unciv/logic/map/TileInfo.kt +++ b/core/src/com/unciv/logic/map/TileInfo.kt @@ -253,11 +253,9 @@ open class TileInfo { } fun getImprovementStats(improvement: TileImprovement, observingCiv: CivilizationInfo, city: CityInfo?): Stats { - val stats = - if (hasViewableResource(observingCiv) && getTileResource().improvement == improvement.name) - getTileResource().improvementStats!!.clone() // resource-specific improvement - else - improvement.clone() // basic improvement + val stats = improvement.clone() + if (hasViewableResource(observingCiv) && getTileResource().improvement == improvement.name) + stats.add(getTileResource().improvementStats!!.clone()) // resource-specific improvement if (improvement.improvingTech != null && observingCiv.tech.isResearched(improvement.improvingTech!!)) stats.add(improvement.improvingTechStats!!) // eg Chemistry for mines if (improvement.name == "Trading post" && city != null