mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-10 12:51:16 +07:00
Civs now have a 50% chance of picking their favored religion (#10825)
This commit is contained in:
parent
54afc5c350
commit
6c8be3c4e5
@ -422,7 +422,8 @@ object ReligionAutomation {
|
||||
.filterNot { civInfo.gameInfo.religions.values.map { religion -> religion.name }.contains(it) }
|
||||
val favoredReligion = civInfo.nation.favoredReligion
|
||||
val religionIcon =
|
||||
if (favoredReligion != null && favoredReligion in availableReligionIcons) favoredReligion
|
||||
if (favoredReligion != null && favoredReligion in availableReligionIcons
|
||||
&& (1..10).random() <= 5) favoredReligion
|
||||
else availableReligionIcons.randomOrNull()
|
||||
?: return // Wait what? How did we pass the checking when using a great prophet but not this?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user