mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Notification for city conversion when removing heresy
This commit is contained in:
parent
d077f93457
commit
6a7945e3cb
@ -225,7 +225,7 @@ class CityReligionManager : IsPartOfGameInfoSerialization {
|
|||||||
|
|
||||||
fun getMajorityReligionName(): String? {
|
fun getMajorityReligionName(): String? {
|
||||||
if (followers.isEmpty()) return null
|
if (followers.isEmpty()) return null
|
||||||
val religionWithMaxPressure = pressures.maxByOrNull { it.value }!!.key
|
val religionWithMaxPressure = followers.maxByOrNull { it.value }!!.key
|
||||||
return when {
|
return when {
|
||||||
religionWithMaxPressure == Constants.noReligionName -> null
|
religionWithMaxPressure == Constants.noReligionName -> null
|
||||||
followers[religionWithMaxPressure] >= city.population.population / 2 -> religionWithMaxPressure
|
followers[religionWithMaxPressure] >= city.population.population / 2 -> religionWithMaxPressure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user