Fixed Great Improvement bonus not working (#4193)

This commit is contained in:
Xander Lenstra 2021-06-19 20:41:25 +02:00 committed by GitHub
parent 9eb2d1fffb
commit 3686366156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,8 +318,8 @@ open class TileInfo {
}
for (unique in observingCiv.getMatchingUniques("+[]% yield from every []"))
if (improvement.matchesFilter(unique.params[0]))
stats.timesInPlace(1f + unique.params[1].toFloat() / 100f)
if (improvement.matchesFilter(unique.params[1]))
stats.timesInPlace(1f + unique.params[0].toFloat() / 100f)
// Deprecated since 3.15
if (containsGreatImprovement() && observingCiv.hasUnique("Tile yield from Great Improvements +100%"))