diff --git a/buildSrc/src/main/kotlin/BuildConfig.kt b/buildSrc/src/main/kotlin/BuildConfig.kt index d3448e424c..3aaca10981 100644 --- a/buildSrc/src/main/kotlin/BuildConfig.kt +++ b/buildSrc/src/main/kotlin/BuildConfig.kt @@ -3,8 +3,8 @@ package com.unciv.build object BuildConfig { const val kotlinVersion = "1.5.30" const val appName = "Unciv" - const val appCodeNumber = 639 - const val appVersion = "3.17.10" + const val appCodeNumber = 640 + const val appVersion = "3.17.11" const val gdxVersion = "1.10.0" const val roboVMVersion = "2.3.1" diff --git a/changelog.md b/changelog.md index 47cd9eb9ce..fd3d95e6fa 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,18 @@ +## 3.17.11 + +City construction speedup with caching stats from tiles + +Fixed "[stats] from all [stat] buildings" check for stat relatedness + +By xlenstra: +- Fixed Siam's unique applying multiple times +- Added missing unit type filter +- Enumified all remaining resource & improvement uniques +- Fixed a bug where AI would not found religions +- Fixed a bug where buying units with faith would not increase in cost + +Inner Sea map type - By SimonCeder + ## 3.17.10 Global uniques from buildings register correctly for units diff --git a/core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt b/core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt index a2d6a57ebb..85fdd8e8b0 100644 --- a/core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt +++ b/core/src/com/unciv/logic/civilization/diplomacy/DiplomacyManager.kt @@ -237,9 +237,10 @@ class DiplomacyManager() { for (unique in otherCiv().getMatchingUniques("Resting point for Influence with City-States is increased by []")) restingPoint += unique.params[0].toInt() - for (unique in otherCiv().getMatchingUniques("Resting point for Influence with City-States following this religion []")) - if (otherCiv().religionManager.religion?.name == civInfo.getCapital().religion.getMajorityReligionName()) - restingPoint += unique.params[0].toInt() + if (civInfo.cities.any()) // no capital if no cities + for (unique in otherCiv().getMatchingUniques("Resting point for Influence with City-States following this religion []")) + if (otherCiv().religionManager.religion?.name == civInfo.getCapital().religion.getMajorityReligionName()) + restingPoint += unique.params[0].toInt() if (diplomaticStatus == DiplomaticStatus.Protector) restingPoint += 10