From 60b03956cfd6f5f37b52a7f3b1f6f31330b906c1 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Sun, 2 Aug 2020 12:44:07 +0300 Subject: [PATCH] Resolved #2926 - cost reduction from big ben and policies works correctly --- core/src/com/unciv/models/ruleset/Building.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/Building.kt b/core/src/com/unciv/models/ruleset/Building.kt index 409fd31f7f..4ea6998ced 100644 --- a/core/src/com/unciv/models/ruleset/Building.kt +++ b/core/src/com/unciv/models/ruleset/Building.kt @@ -209,7 +209,7 @@ class Building : NamedStats(), IConstruction{ var cost = (30 * getProductionCost(civInfo)).toDouble().pow(0.75) * (1 + hurryCostModifier / 100) for (unique in civInfo.getMatchingUniques("Cost of purchasing items in cities reduced by []%")) - cost *= 1 - (unique.getPlaceholderParameters()[0].toFloat()) + cost *= 1 - (unique.getPlaceholderParameters()[0].toFloat() / 100) for (unique in civInfo.getMatchingUniques("Cost of purchasing [] buildings reduced by []%")) { val placeholderParams = unique.getPlaceholderParameters()