Resolved #2926 - cost reduction from big ben and policies works correctly

This commit is contained in:
Yair Morgenstern 2020-08-02 12:44:07 +03:00
parent 6cc4db69b1
commit 60b03956cf

View file

@ -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()