Bugs
This commit is contained in:
parent
26b04f6db4
commit
c6eb868ef4
116 changed files with 69758 additions and 26333 deletions
|
|
@ -819,154 +819,154 @@ on_death = {
|
|||
}
|
||||
}
|
||||
|
||||
# Struggle Catalysts
|
||||
## Generic unnatural deaths.
|
||||
if = {
|
||||
limit = { exists = scope:killer }
|
||||
if = { # FP2/Generic
|
||||
limit = {
|
||||
is_important_or_vip_struggle_character = yes
|
||||
any_character_struggle = {
|
||||
involvement = involved
|
||||
phase_has_catalyst = catalyst_unnatural_death_important_character
|
||||
}
|
||||
}
|
||||
every_character_struggle = {
|
||||
involvement = involved
|
||||
activate_struggle_catalyst = {
|
||||
catalyst = catalyst_unnatural_death_important_character
|
||||
character = root
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_trait = fp3_struggle_supporter
|
||||
any_character_struggle = {
|
||||
involvement = involved
|
||||
phase_has_catalyst = catalyst_unnatural_death_supporter
|
||||
}
|
||||
}
|
||||
every_character_struggle = {
|
||||
involvement = involved
|
||||
activate_struggle_catalyst = {
|
||||
catalyst = catalyst_unnatural_death_supporter
|
||||
character = root
|
||||
}
|
||||
log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_unnatural_death_supporter }
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_trait = fp3_struggle_detractor
|
||||
any_character_struggle = {
|
||||
involvement = involved
|
||||
phase_has_catalyst = catalyst_unnatural_death_detractor
|
||||
}
|
||||
}
|
||||
every_character_struggle = {
|
||||
involvement = involved
|
||||
activate_struggle_catalyst = {
|
||||
catalyst = catalyst_unnatural_death_detractor
|
||||
character = root
|
||||
}
|
||||
log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_unnatural_death_detractor }
|
||||
}
|
||||
}
|
||||
}
|
||||
## Caliphal deaths.
|
||||
if = {
|
||||
limit = { has_title = title:d_sunni }
|
||||
## Did they die violently?
|
||||
### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific.
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:killer
|
||||
struggle:persian_struggle ?= {
|
||||
phase_has_catalyst = catalyst_caliph_died_violently
|
||||
NOT = { has_variable = significant_character_death_cooldown }
|
||||
}
|
||||
}
|
||||
struggle:persian_struggle = {
|
||||
activate_struggle_catalyst = {
|
||||
catalyst = catalyst_caliph_died_violently
|
||||
character = root
|
||||
}
|
||||
log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_violently }
|
||||
set_variable = {
|
||||
name = significant_character_death_cooldown
|
||||
value = yes
|
||||
years = catalyst_cooldown_between_significant_character_deaths_years_value
|
||||
}
|
||||
}
|
||||
}
|
||||
## If not, give the natural version.
|
||||
### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific.
|
||||
else_if = {
|
||||
limit = {
|
||||
struggle:persian_struggle ?= {
|
||||
phase_has_catalyst = catalyst_caliph_died_naturally
|
||||
NOT = { has_variable = significant_character_death_cooldown }
|
||||
}
|
||||
}
|
||||
struggle:persian_struggle = {
|
||||
activate_struggle_catalyst = {
|
||||
catalyst = catalyst_caliph_died_naturally
|
||||
character = root
|
||||
}
|
||||
log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_naturally }
|
||||
set_variable = {
|
||||
name = significant_character_death_cooldown
|
||||
value = yes
|
||||
years = catalyst_cooldown_between_significant_character_deaths_years_value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# Other Struggle Stuff
|
||||
## Caliphal deaths part 2: because people tend to remember stuff like that.
|
||||
if = {
|
||||
limit = {
|
||||
has_title = title:d_sunni
|
||||
# Check that scope:killer is in some way involved in the on-going disputes.
|
||||
scope:killer ?= {
|
||||
any_character_struggle = { this = struggle:persian_struggle }
|
||||
# Inter-familial murders within the caliphate don't count, that's just politics.
|
||||
exists = root.dynasty
|
||||
NOT = { dynasty ?= root.dynasty }
|
||||
}
|
||||
}
|
||||
# Cool, we've established you're involved enough to assign traits to and don't have extenuating circumstances.
|
||||
scope:killer = {
|
||||
# Are you a supporter? If so, invert.
|
||||
if = {
|
||||
limit = { has_trait = fp3_struggle_supporter }
|
||||
send_interface_toast = {
|
||||
type = event_toast_effect_neutral
|
||||
title = persian_struggle.tt.supporter_killed_caliph
|
||||
left_icon = root
|
||||
hidden_effect = { remove_trait = fp3_struggle_supporter }
|
||||
add_trait_force_tooltip = fp3_struggle_detractor
|
||||
}
|
||||
}
|
||||
# Are you neutral? If so, become a detractor.
|
||||
else_if = {
|
||||
limit = {
|
||||
NOR = {
|
||||
has_trait = fp3_struggle_supporter
|
||||
has_trait = fp3_struggle_detractor
|
||||
}
|
||||
}
|
||||
send_interface_toast = {
|
||||
type = event_toast_effect_neutral
|
||||
title = persian_struggle.tt.neutral_killed_caliph
|
||||
left_icon = root
|
||||
add_trait = fp3_struggle_detractor
|
||||
}
|
||||
}
|
||||
# Else you're a detractor? You're good, carry on as you are.
|
||||
}
|
||||
}
|
||||
# # Struggle Catalysts
|
||||
# ## Generic unnatural deaths.
|
||||
# if = {
|
||||
# limit = { exists = scope:killer }
|
||||
# if = { # FP2/Generic
|
||||
# limit = {
|
||||
# is_important_or_vip_struggle_character = yes
|
||||
# any_character_struggle = {
|
||||
# involvement = involved
|
||||
# phase_has_catalyst = catalyst_unnatural_death_important_character
|
||||
# }
|
||||
# }
|
||||
# every_character_struggle = {
|
||||
# involvement = involved
|
||||
# activate_struggle_catalyst = {
|
||||
# catalyst = catalyst_unnatural_death_important_character
|
||||
# character = root
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# if = {
|
||||
# limit = {
|
||||
# has_trait = fp3_struggle_supporter
|
||||
# any_character_struggle = {
|
||||
# involvement = involved
|
||||
# phase_has_catalyst = catalyst_unnatural_death_supporter
|
||||
# }
|
||||
# }
|
||||
# every_character_struggle = {
|
||||
# involvement = involved
|
||||
# activate_struggle_catalyst = {
|
||||
# catalyst = catalyst_unnatural_death_supporter
|
||||
# character = root
|
||||
# }
|
||||
# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_unnatural_death_supporter }
|
||||
# }
|
||||
# }
|
||||
# if = {
|
||||
# limit = {
|
||||
# has_trait = fp3_struggle_detractor
|
||||
# any_character_struggle = {
|
||||
# involvement = involved
|
||||
# phase_has_catalyst = catalyst_unnatural_death_detractor
|
||||
# }
|
||||
# }
|
||||
# every_character_struggle = {
|
||||
# involvement = involved
|
||||
# activate_struggle_catalyst = {
|
||||
# catalyst = catalyst_unnatural_death_detractor
|
||||
# character = root
|
||||
# }
|
||||
# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_unnatural_death_detractor }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# ## Caliphal deaths.
|
||||
# if = {
|
||||
# limit = { has_title = title:d_sunni }
|
||||
# ## Did they die violently?
|
||||
# ### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific.
|
||||
# if = {
|
||||
# limit = {
|
||||
# exists = scope:killer
|
||||
# struggle:persian_struggle ?= {
|
||||
# phase_has_catalyst = catalyst_caliph_died_violently
|
||||
# NOT = { has_variable = significant_character_death_cooldown }
|
||||
# }
|
||||
# }
|
||||
# struggle:persian_struggle = {
|
||||
# activate_struggle_catalyst = {
|
||||
# catalyst = catalyst_caliph_died_violently
|
||||
# character = root
|
||||
# }
|
||||
# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_violently }
|
||||
# set_variable = {
|
||||
# name = significant_character_death_cooldown
|
||||
# value = yes
|
||||
# years = catalyst_cooldown_between_significant_character_deaths_years_value
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# ## If not, give the natural version.
|
||||
# ### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific.
|
||||
# else_if = {
|
||||
# limit = {
|
||||
# struggle:persian_struggle ?= {
|
||||
# phase_has_catalyst = catalyst_caliph_died_naturally
|
||||
# NOT = { has_variable = significant_character_death_cooldown }
|
||||
# }
|
||||
# }
|
||||
# struggle:persian_struggle = {
|
||||
# activate_struggle_catalyst = {
|
||||
# catalyst = catalyst_caliph_died_naturally
|
||||
# character = root
|
||||
# }
|
||||
# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_naturally }
|
||||
# set_variable = {
|
||||
# name = significant_character_death_cooldown
|
||||
# value = yes
|
||||
# years = catalyst_cooldown_between_significant_character_deaths_years_value
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# # Other Struggle Stuff
|
||||
# ## Caliphal deaths part 2: because people tend to remember stuff like that.
|
||||
# if = {
|
||||
# limit = {
|
||||
# has_title = title:d_sunni
|
||||
# # Check that scope:killer is in some way involved in the on-going disputes.
|
||||
# scope:killer ?= {
|
||||
# any_character_struggle = { this = struggle:persian_struggle }
|
||||
# # Inter-familial murders within the caliphate don't count, that's just politics.
|
||||
# exists = root.dynasty
|
||||
# NOT = { dynasty ?= root.dynasty }
|
||||
# }
|
||||
# }
|
||||
# # Cool, we've established you're involved enough to assign traits to and don't have extenuating circumstances.
|
||||
# scope:killer = {
|
||||
# # Are you a supporter? If so, invert.
|
||||
# if = {
|
||||
# limit = { has_trait = fp3_struggle_supporter }
|
||||
# send_interface_toast = {
|
||||
# type = event_toast_effect_neutral
|
||||
# title = persian_struggle.tt.supporter_killed_caliph
|
||||
# left_icon = root
|
||||
# hidden_effect = { remove_trait = fp3_struggle_supporter }
|
||||
# add_trait_force_tooltip = fp3_struggle_detractor
|
||||
# }
|
||||
# }
|
||||
# # Are you neutral? If so, become a detractor.
|
||||
# else_if = {
|
||||
# limit = {
|
||||
# NOR = {
|
||||
# has_trait = fp3_struggle_supporter
|
||||
# has_trait = fp3_struggle_detractor
|
||||
# }
|
||||
# }
|
||||
# send_interface_toast = {
|
||||
# type = event_toast_effect_neutral
|
||||
# title = persian_struggle.tt.neutral_killed_caliph
|
||||
# left_icon = root
|
||||
# add_trait = fp3_struggle_detractor
|
||||
# }
|
||||
# }
|
||||
# # Else you're a detractor? You're good, carry on as you are.
|
||||
# }
|
||||
# }
|
||||
|
||||
every_close_family_member = {
|
||||
create_character_memory = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue