Revert "Resolved #10630 - "[relativeAmount]% [stat] from every follower, up to [relativeAmount]%" works off of majority religion, not our religion"

This reverts commit 199b3ada93.
This commit is contained in:
Yair Morgenstern 2023-12-01 10:23:17 +02:00
parent afae9a1e96
commit f36b05f6c0
2 changed files with 2 additions and 2 deletions

View File

@ -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()
))

View File

@ -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.
}