From 35a0dee32f0db8cb9593a12e7e9de4e7292b7c72 Mon Sep 17 00:00:00 2001 From: Am-per-Sand <40436282+Am-per-Sand@users.noreply.github.com> Date: Tue, 16 Apr 2019 19:45:19 +0200 Subject: [PATCH 1/2] 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 --- core/src/com/unciv/logic/city/CityStats.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/com/unciv/logic/city/CityStats.kt b/core/src/com/unciv/logic/city/CityStats.kt index 5d1e685036..9ba386e76a 100644 --- a/core/src/com/unciv/logic/city/CityStats.kt +++ b/core/src/com/unciv/logic/city/CityStats.kt @@ -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()) From e3907e0fe1ffa4de43da750c847e3ec96eee42e0 Mon Sep 17 00:00:00 2001 From: Am-per-Sand <40436282+Am-per-Sand@users.noreply.github.com> Date: Tue, 16 Apr 2019 19:50:36 +0200 Subject: [PATCH 2/2] forgot Broadcast Tower --- core/src/com/unciv/logic/city/CityStats.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/city/CityStats.kt b/core/src/com/unciv/logic/city/CityStats.kt index 9ba386e76a..7afb63496a 100644 --- a/core/src/com/unciv/logic/city/CityStats.kt +++ b/core/src/com/unciv/logic/city/CityStats.kt @@ -275,7 +275,7 @@ class CityStats { 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)) + && 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