mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 07:21:34 -04:00
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
@ -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…
x
Reference in New Issue
Block a user