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