From 7e05183076b88638e47feeaa68ff7942b58dcbb1 Mon Sep 17 00:00:00 2001 From: iht Date: Sat, 18 Jan 2025 19:36:44 +0100 Subject: [PATCH] Prevent random Muslim characters being generated --- .../configurables/removable_file_blocks.txt | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/ImperatorToCK3/Data_Files/configurables/removable_file_blocks.txt b/ImperatorToCK3/Data_Files/configurables/removable_file_blocks.txt index 5719be393..1b2f1fece 100644 --- a/ImperatorToCK3/Data_Files/configurables/removable_file_blocks.txt +++ b/ImperatorToCK3/Data_Files/configurables/removable_file_blocks.txt @@ -14742,4 +14742,46 @@ apply_historic_administrative_game_rule_effect = { } } } +} + + +"common/scripted_character_templates/00_pool_repopulation_character_templates.txt" = { + # Prevent random Muslim characters from being spawned. + { + else_if = { + limit = { + OR = { + culture = culture:bolghar + culture = culture:somali + } + } + set_character_faith = faith:ashari + if = { + limit = { + root.capital_county.faith = { + religion_tag = islam_religion + } + } + set_character_faith = root.capital_county.faith + } + } + } + { + else_if = { + limit = { + OR = { + culture = culture:butr + culture = culture:zaghawa + } + } + random_list = { + 10 = { + set_character_faith = faith:ibadi + } + 10 = { + set_character_faith = faith:sufri + } + } + } + } } \ No newline at end of file