mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 11:34:54 -04: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) }
|
.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?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user