Resolved #12176 - Great prophets bought in city with different religion do not get incorrect warning popup

This commit is contained in:
yairm210 2024-09-21 22:44:01 +03:00
parent cfd12fb4b8
commit 5b627389bf

View File

@ -699,7 +699,9 @@ class CityConstructionsTable(private val cityScreen: CityScreen) {
val balance = city.getStatReserve(stat)
val majorityReligion = city.religion.getMajorityReligion()
val yourReligion = city.civ.religionManager.religion
val isBuyingWithFaithForForeignReligion = construction.hasUnique(UniqueType.ReligiousUnit) && majorityReligion != yourReligion
val isBuyingWithFaithForForeignReligion = construction.hasUnique(UniqueType.ReligiousUnit)
&& !construction.hasUnique(UniqueType.TakeReligionOverBirthCity)
&& majorityReligion != yourReligion
addGoodSizedLabel("Currently you have [$balance] [${stat.name}].").padBottom(10f).row()
if (isBuyingWithFaithForForeignReligion) {