Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 59 additions & 27 deletions CleanSlate/common/landed_titles/01_religion_heads.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ d_hurufi = {
controls_religion = hurufi

allow = {
religion = hurufi
can_create_duchy = yes

trigger_if = {
Expand All @@ -276,7 +275,8 @@ d_hurufi = {
value = random
}
}
can_usurp_religion_head = yes
#can_usurp_religion_head = yes
num_of_holy_sites >= 3
}
trigger_else = {
muslim_religion_head_trigger = yes
Expand Down Expand Up @@ -312,7 +312,6 @@ d_ibadi = {
controls_religion = ibadi

allow = {
religion = ibadi
can_create_duchy = yes

trigger_if = {
Expand All @@ -330,7 +329,8 @@ d_ibadi = {
value = random
}
}
can_usurp_religion_head = yes
#can_usurp_religion_head = yes
num_of_holy_sites >= 3
}
trigger_else = {
muslim_religion_head_trigger = yes
Expand Down Expand Up @@ -428,16 +428,9 @@ d_kharijite = {
controls_religion = kharijite

allow = {
religion = kharijite
can_create_duchy = yes

trigger_if = {
limit = { piety < 1000 }
OR = {
trait = mirza
trait = sayyid
}
}
piety >= 1000

trigger_if = {
limit = {
Expand All @@ -446,7 +439,8 @@ d_kharijite = {
value = random
}
}
can_usurp_religion_head = yes
#can_usurp_religion_head = yes
num_of_holy_sites >= 3
}
trigger_else = {
muslim_religion_head_trigger = yes
Expand Down Expand Up @@ -704,30 +698,43 @@ d_qarmatian = {
controls_religion = qarmatian

allow = {
religion = qarmatian
can_create_duchy = yes

trigger_if = {
limit = {
NOT = {
limit = { piety < 1000 }
OR = {
trait = mirza
trait = sayyid
custom_tooltip = {
text = qarmatian_bloodline_TT

any_owned_bloodline = {
has_bloodline_flag = bloodline_qarmatian_leader
bloodline_is_active_for = PREV
}
}
}
}

trigger_if = {
limit = { piety < 1000 }
OR = {
trait = mirza
trait = sayyid
trigger_if = {
limit = {
NOT = {
any_owned_bloodline = {
has_bloodline_flag = bloodline_qarmatian_leader
bloodline_is_active_for = PREV
}
}
}
can_usurp_religion_head = yes

#can_usurp_religion_head = yes
num_of_holy_sites >= 3
piety >= 500
}
trigger_else = {
piety >= 500
OR = {
num_of_holy_sites >= 3
piety >= 500
}
}
}

Expand Down Expand Up @@ -760,14 +767,21 @@ d_shiite = {
controls_religion = shiite

allow = {
religion = shiite
can_create_duchy = yes

trigger_if = {
limit = { piety < 1000 }
OR = {
trait = mirza
trait = sayyid
custom_tooltip = {
text = shiite_bloodline_TT

any_owned_bloodline = {
has_bloodline_flag = bloodline_shiite_leader
bloodline_is_active_for = PREV
}
}
}
}

Expand All @@ -778,7 +792,17 @@ d_shiite = {
value = random
}
}
can_usurp_religion_head = yes
#can_usurp_religion_head = yes
num_of_holy_sites >= 3
}
trigger_else_if = {
limit = { has_global_flag = shia_caliphate_revolt_ongoing }

custom_tooltip = {
text = not_shia_caliphate_revolt_ongoing

always = no
}
}
trigger_else = {
custom_tooltip = {
Expand Down Expand Up @@ -806,6 +830,12 @@ d_shiite = {

muslim_religion_head_trigger = yes
}
trigger_else = {
OR = {
muslim_religion_head_trigger = yes
piety >= 500
}
}
}
}

Expand Down Expand Up @@ -863,7 +893,6 @@ d_sunni = {
controls_religion = sunni

allow = {
religion = sunni
can_create_duchy = yes

trigger_if = {
Expand All @@ -881,7 +910,8 @@ d_sunni = {
value = random
}
}
can_usurp_religion_head = yes
#can_usurp_religion_head = yes
num_of_holy_sites >= 3
}
trigger_else = {
custom_tooltip = {
Expand Down Expand Up @@ -978,6 +1008,8 @@ d_yazidi = {
controls_religion = yazidi

allow = {
can_create_duchy = yes

piety >= 1000
}

Expand Down
52 changes: 36 additions & 16 deletions CleanSlate/common/scripted_triggers/00_title_triggers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ has_titular_requirements = {
}

muslim_religion_head_trigger = {
NOT = { has_global_flag = shia_caliphate_revolt_ongoing }

trigger_if = {
limit = { has_global_flag = destroyed_caliphates }

Expand Down Expand Up @@ -108,18 +106,29 @@ muslim_religion_head_trigger = {
}
}

AND = {
trait = sayyid
trigger_if = {
limit = {
trait = sayyid
NOR = {
# Not for Kharijite
FROM = { title = d_kharijite }
# Not for bloodline owners as they have better option
any_owned_bloodline = {
has_bloodline_flag = bloodline_shiite_leader
bloodline_is_active_for = PREV
}
}
}
piety >= 1000
}
}
}
trigger_else = {
OR = {
custom_tooltip = {
text = controls_jerusalem_damascus_baghdad
text = controls_mecca_medina

c_jerusalem = {
c_mecca = {
holder_scope = {
OR = {
character = ROOT
Expand All @@ -128,29 +137,29 @@ muslim_religion_head_trigger = {
}
}

c_damascus = {
c_medina = {
holder_scope = {
OR = {
character = ROOT
is_vassal_or_below_of = ROOT
}
}
}
}

c_baghdad = {
custom_tooltip = {
text = controls_jerusalem_damascus_baghdad

c_jerusalem = {
holder_scope = {
OR = {
character = ROOT
is_vassal_or_below_of = ROOT
}
}
}
}

custom_tooltip = {
text = controls_mecca_medina

c_mecca = {
c_damascus = {
holder_scope = {
OR = {
character = ROOT
Expand All @@ -159,7 +168,7 @@ muslim_religion_head_trigger = {
}
}

c_medina = {
c_baghdad = {
holder_scope = {
OR = {
character = ROOT
Expand All @@ -169,8 +178,19 @@ muslim_religion_head_trigger = {
}
}

AND = {
trait = sayyid
trigger_if = {
limit = {
trait = sayyid
NOR = {
# Not for Kharijite
FROM = { title = d_kharijite }
# Not for bloodline owners as they have better option
any_owned_bloodline = {
has_bloodline_flag = bloodline_shiite_leader
bloodline_is_active_for = PREV
}
}
}
piety >= 1000
}
}
Expand Down
2 changes: 2 additions & 0 deletions CleanSlate/decisions/HFP_realm_decisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,7 @@ decisions = {
d_kharijite = { has_holder = yes }
d_yazidi = { has_holder = yes }
d_hurufi = { has_holder = yes }
d_qarmatian = { has_holder = yes }
}
}

Expand All @@ -1668,6 +1669,7 @@ decisions = {
destroy_landed_title = d_kharijite
destroy_landed_title = d_yazidi
destroy_landed_title = d_hurufi
destroy_landed_title = d_qarmatian
}
}

Expand Down