Civs now have a 50% chance of picking their favored religion (#10825)

This commit is contained in:
Oskar Niesen 2023-12-28 14:38:13 -06:00 committed by GitHub
parent 54afc5c350
commit 6c8be3c4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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?