mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 22:06:05 -04:00
genericised stats before tech unique (#3421)
* generic stats before tech/policy unique * simplified
This commit is contained in:
parent
478ea310b4
commit
2b36ad679a
@ -119,6 +119,11 @@ class CityStats {
|
|||||||
&& !cityInfo.civInfo.tech.isResearched("Steam Power"))
|
&& !cityInfo.civInfo.tech.isResearched("Steam Power"))
|
||||||
stats.culture += 2
|
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
|
return stats
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user