Skip to content

Commit aeefdc9

Browse files
committed
scripted_triggers: minor fix for tooltip
- move mecca_medina above jerusalem_damascus_baghdad for consistency - only display the piety option for sayyid - no sayyid bonus for kharijite - hide unused sayyid bonus for bloodline owners
1 parent 1818a7f commit aeefdc9

1 file changed

Lines changed: 36 additions & 14 deletions

File tree

CleanSlate/common/scripted_triggers/00_title_triggers.txt

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,29 @@ muslim_religion_head_trigger = {
106106
}
107107
}
108108

109-
AND = {
110-
trait = sayyid
109+
trigger_if = {
110+
limit = {
111+
trait = sayyid
112+
NOR = {
113+
# Not for Kharijite
114+
FROM = { title = d_kharijite }
115+
# Not for bloodline owners as they have better option
116+
any_owned_bloodline = {
117+
has_bloodline_flag = bloodline_shiite_leader
118+
bloodline_is_active_for = PREV
119+
}
120+
}
121+
}
111122
piety >= 1000
112123
}
113124
}
114125
}
115126
trigger_else = {
116127
OR = {
117128
custom_tooltip = {
118-
text = controls_jerusalem_damascus_baghdad
129+
text = controls_mecca_medina
119130

120-
c_jerusalem = {
131+
c_mecca = {
121132
holder_scope = {
122133
OR = {
123134
character = ROOT
@@ -126,29 +137,29 @@ muslim_religion_head_trigger = {
126137
}
127138
}
128139

129-
c_damascus = {
140+
c_medina = {
130141
holder_scope = {
131142
OR = {
132143
character = ROOT
133144
is_vassal_or_below_of = ROOT
134145
}
135146
}
136147
}
148+
}
137149

138-
c_baghdad = {
150+
custom_tooltip = {
151+
text = controls_jerusalem_damascus_baghdad
152+
153+
c_jerusalem = {
139154
holder_scope = {
140155
OR = {
141156
character = ROOT
142157
is_vassal_or_below_of = ROOT
143158
}
144159
}
145160
}
146-
}
147161

148-
custom_tooltip = {
149-
text = controls_mecca_medina
150-
151-
c_mecca = {
162+
c_damascus = {
152163
holder_scope = {
153164
OR = {
154165
character = ROOT
@@ -157,7 +168,7 @@ muslim_religion_head_trigger = {
157168
}
158169
}
159170

160-
c_medina = {
171+
c_baghdad = {
161172
holder_scope = {
162173
OR = {
163174
character = ROOT
@@ -167,8 +178,19 @@ muslim_religion_head_trigger = {
167178
}
168179
}
169180

170-
AND = {
171-
trait = sayyid
181+
trigger_if = {
182+
limit = {
183+
trait = sayyid
184+
NOR = {
185+
# Not for Kharijite
186+
FROM = { title = d_kharijite }
187+
# Not for bloodline owners as they have better option
188+
any_owned_bloodline = {
189+
has_bloodline_flag = bloodline_shiite_leader
190+
bloodline_is_active_for = PREV
191+
}
192+
}
193+
}
172194
piety >= 1000
173195
}
174196
}

0 commit comments

Comments
 (0)