mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-03 22:22:51 +07:00
Great prophets do not spawn to pantheons that cannot become religions
This commit is contained in:
parent
59a7300c43
commit
d49fdfc9ff
@ -156,6 +156,7 @@ class ReligionManager : IsPartOfGameInfoSerialization {
|
||||
if (storedFaith < faithForNextGreatProphet()) return false
|
||||
if (!civInfo.isMajorCiv()) return false
|
||||
if (civInfo.hasUnique(UniqueType.MayNotGenerateGreatProphet)) return false
|
||||
if (religionState == ReligionState.Pantheon && remainingFoundableReligions() == 0) return false // too many have been founded
|
||||
return true
|
||||
}
|
||||
|
||||
@ -217,9 +218,7 @@ class ReligionManager : IsPartOfGameInfoSerialization {
|
||||
|
||||
fun mayFoundReligionAtAll(prophet: MapUnit): Boolean {
|
||||
if (!civInfo.gameInfo.isReligionEnabled()) return false // No religion
|
||||
|
||||
if (religionState >= ReligionState.Religion) return false // Already created a major religion
|
||||
|
||||
// Already used its power for other things
|
||||
if (prophet.abilityUsesLeft.any { it.value != prophet.maxAbilityUses[it.key] }) return false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user