Activate Piety bonus
N.B. The same condition may be found in `Building.kt`, so - may be add a function `isCultural` or - add a property `cultural:true` or even `type:[military, cultural, productive, financial, scientific, wonder]` to `Buildings.json` and get rid of `isWonder` there
This commit is contained in:
parent
2db30a247a
commit
35a0dee32f
1 changed files with 3 additions and 0 deletions
|
@ -274,6 +274,9 @@ class CityStats {
|
|||
stats.production += 5f
|
||||
if(policies.contains("Warrior Code") && currentConstruction is BaseUnit && currentConstruction.unitType.isMelee())
|
||||
stats.production += 20
|
||||
if (policies.contains("Piety")
|
||||
&& listOf("Monument", "Temple", "Opera House", "Museum").contains(currentConstruction.name))
|
||||
stats.production += 15f
|
||||
if (policies.contains("Reformation") && cityConstructions.getBuiltBuildings().any { it.isWonder })
|
||||
stats.culture += 33f
|
||||
if (policies.contains("Commerce") && cityInfo.isCapital())
|
||||
|
|
Loading…
Reference in a new issue