Great improvement bonus provided properly

This commit is contained in:
Yair Morgenstern 2021-06-18 14:34:15 +03:00
parent 9668d40688
commit 655923f4cf
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@
}, },
{ {
"name": "Freedom Complete", "name": "Freedom Complete",
"uniques": ["+[100]% yield from [Great Improvements]", "Golden Age length increased by [50]%"] "uniques": ["+[100]% yield from every [Great Improvement]", "Golden Age length increased by [50]%"]
} }
] ]
}, },

View File

@ -317,7 +317,7 @@ open class TileInfo {
stats.add(unique.stats.times(numberOfBonuses.toFloat())) stats.add(unique.stats.times(numberOfBonuses.toFloat()))
} }
for (unique in observingCiv.getMatchingUniques("+[]% yield from []")) for (unique in observingCiv.getMatchingUniques("+[]% yield from every []"))
if (improvement.matchesFilter(unique.params[0])) if (improvement.matchesFilter(unique.params[0]))
stats.timesInPlace(1f + unique.params[1].toFloat() / 100f) stats.timesInPlace(1f + unique.params[1].toFloat() / 100f)