diff --git a/core/src/com/unciv/logic/city/CityStats.kt b/core/src/com/unciv/logic/city/CityStats.kt index 57fc02bb27..ed3b515585 100644 --- a/core/src/com/unciv/logic/city/CityStats.kt +++ b/core/src/com/unciv/logic/city/CityStats.kt @@ -295,7 +295,7 @@ class CityStats(val city: City) { for (unique in city.getMatchingUniques(UniqueType.StatPercentFromReligionFollowers)) addUniqueStats(unique, Stat.valueOf(unique.params[1]), min( - unique.params[0].toFloat() * city.religion.getFollowersOfMajorityReligion(), + unique.params[0].toFloat() * city.religion.getFollowersOfOurReligion(), unique.params[2].toFloat() )) diff --git a/core/src/com/unciv/models/ruleset/unique/IHasUniques.kt b/core/src/com/unciv/models/ruleset/unique/IHasUniques.kt index 56f37df158..1dda45abaf 100644 --- a/core/src/com/unciv/models/ruleset/unique/IHasUniques.kt +++ b/core/src/com/unciv/models/ruleset/unique/IHasUniques.kt @@ -61,6 +61,6 @@ interface IHasUniques : INamed { requiredTechs().map{ ruleset.technologies[it]!! } fun era(ruleset: Ruleset): Era? = - requiredTechnologies(ruleset).map{ ruleset.eras[it.era()]!! }.maxByOrNull{ it.eraNumber } + requiredTechnologies(ruleset).map{ it.era() }.map{ ruleset.eras[it]!! }.maxByOrNull{ it.eraNumber } // This will return null only if requiredTechnologies() is empty. }