mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 23:39:40 +07:00
Resolved #3436 - parametrized "+[]% [] in all cities"
This commit is contained in:
@ -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"
|
||||
},
|
||||
|
@ -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]))
|
||||
|
Reference in New Issue
Block a user