mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-26 23:58:43 +07:00
Resolved #2926 - cost reduction from big ben and policies works correctly
This commit is contained in:
@ -209,7 +209,7 @@ class Building : NamedStats(), IConstruction{
|
|||||||
var cost = (30 * getProductionCost(civInfo)).toDouble().pow(0.75) * (1 + hurryCostModifier / 100)
|
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 []%"))
|
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 []%")) {
|
for (unique in civInfo.getMatchingUniques("Cost of purchasing [] buildings reduced by []%")) {
|
||||||
val placeholderParams = unique.getPlaceholderParameters()
|
val placeholderParams = unique.getPlaceholderParameters()
|
||||||
|
Reference in New Issue
Block a user