mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 09:48:12 +07:00
genericised stats before tech unique (#3421)
* generic stats before tech/policy unique * simplified
This commit is contained in:
@ -119,6 +119,11 @@ class CityStats {
|
||||
&& !cityInfo.civInfo.tech.isResearched("Steam Power"))
|
||||
stats.culture += 2
|
||||
|
||||
for (unique in cityInfo.civInfo.getMatchingUniques("[] per turn from cities before []")) {
|
||||
if (!cityInfo.civInfo.tech.isResearched(unique.params[1])
|
||||
&& !cityInfo.civInfo.policies.adoptedPolicies.contains(unique.params[1]))
|
||||
stats.add(unique.stats)
|
||||
}
|
||||
return stats
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user