Resolved #3436 - parametrized "+[]% [] in all cities"

This commit is contained in:
Yair Morgenstern
2021-01-25 20:47:50 +02:00
parent 48f68c6bd0
commit 0c89986af4
2 changed files with 5 additions and 1 deletions

View File

@ -599,7 +599,7 @@
"culture": 1,
"isWonder": true,
"greatPersonPoints": {"culture": 2},
"uniques": ["Culture in all cities increased by 25%"],
"uniques": ["+[25]% [Culture] in all cities"],
"requiredTech": "Acoustics",
"quote": "'I live and love in God's peculiar light.' - Michelangelo Buonarroti"
},

View File

@ -331,6 +331,10 @@ class CityStats {
stats.production += unique.params[0].toInt()
}
// For instance "+[50]% [Production]
for (unique in uniques.filter { it.placeholderText == "+[]% [] in all cities"})
stats.add(Stat.valueOf(unique.params[1]), unique.params[0].toFloat())
for (unique in uniques.filter { it.placeholderText == "+[]% Production when constructing []" }) {
if (constructionMatchesFilter(currentConstruction, unique.params[1]))