Skip to content

Commit

Permalink
Notification for city conversion when removing heresy
Browse files Browse the repository at this point in the history
  • Loading branch information
yairm210 committed Jan 12, 2025
1 parent d077f93 commit 6a7945e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class CityReligionManager : IsPartOfGameInfoSerialization {

fun getMajorityReligionName(): String? {
if (followers.isEmpty()) return null
val religionWithMaxPressure = pressures.maxByOrNull { it.value }!!.key
val religionWithMaxPressure = followers.maxByOrNull { it.value }!!.key
return when {
religionWithMaxPressure == Constants.noReligionName -> null
followers[religionWithMaxPressure] >= city.population.population / 2 -> religionWithMaxPressure
Expand Down

0 comments on commit 6a7945e

Please sign in to comment.