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:
Am-per-Sand 2019-04-16 19:45:19 +02:00 committed by GitHub
parent 2db30a247a
commit 35a0dee32f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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())