Merge pull request #655 from Am-per-Sand/piety

Activate Piety bonus
This commit is contained in:
Yair Morgenstern 2019-04-17 13:30:25 +03:00 committed by GitHub
commit 54fc81fda7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,6 +275,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", "Broadcast Tower").contains(currentConstruction.name))
stats.production += 15f
if (policies.contains("Reformation") && cityConstructions.getBuiltBuildings().any { it.isWonder })
stats.culture += 33f
if (policies.contains("Commerce") && cityInfo.isCapital())