diff --git a/common/decisions/dlc_decisions/pam/bulls_decisions.txt b/common/decisions/dlc_decisions/pam/bulls_decisions.txt index a3b6140bf..39ae15843 100644 --- a/common/decisions/dlc_decisions/pam/bulls_decisions.txt +++ b/common/decisions/dlc_decisions/pam/bulls_decisions.txt @@ -1094,49 +1094,7 @@ neow_issue_encyclical_decision = { localization = neow_issue_encyclical_decision_option_rite_heresy icon = "gfx/interface/icons/message_feed/heresy.dds" } - item = { - value = encyclical_option_tenet_stance_permitted - is_shown = { always = yes } - is_valid = { - custom_tooltip = { - text = neow_encyclical_tenet_permitted_cooldown_tt - NOT = { exists = var:neow_encyclical_tenet_permitted_cooldown } - } - any_character_tenet = { - knowledge_filter = known - pam_tenet_can_be_permitted_no_actor_trigger = yes - } - custom_tooltip = { - text = ecumenical_council_already_ongoing_tt - NOT = { faith = { has_variable = ecumenical_council_ongoing } } - } - } - current_description = neow_issue_encyclical_decision_option_tenet_stance_permitted_desc - localization = neow_issue_encyclical_decision_option_tenet_stance_permitted - icon = "gfx/interface/icons/character_interactions/religious.dds" - ai_chance = { value = 30 } - } - item = { - value = encyclical_option_tenet_stance_forbidden - is_shown = { always = yes } - is_valid = { - custom_tooltip = { - text = neow_encyclical_tenet_forbidden_cooldown_tt - NOT = { exists = var:neow_encyclical_tenet_forbidden_cooldown } - } - any_character_tenet = { - knowledge_filter = known - pam_tenet_can_be_prohibited_no_actor_trigger = yes - } - custom_tooltip = { - text = ecumenical_council_already_ongoing_tt - NOT = { faith = { has_variable = ecumenical_council_ongoing } } - } - } - current_description = neow_issue_encyclical_decision_option_tenet_stance_forbidden_desc - localization = neow_issue_encyclical_decision_option_tenet_stance_forbidden - icon = "gfx/interface/icons/character_interactions/excommunication.dds" - } + } effect = { @@ -1171,22 +1129,6 @@ neow_issue_encyclical_decision = { player = root } } - scope:encyclical_option_tenet_stance_permitted = { - custom_tooltip = encyclical_option_tenet_stance_permitted_tt - open_view_data = { - view = decision_detail - data = decision:neow_permit_tenet_encyclical_decision - player = root - } - } - scope:encyclical_option_tenet_stance_forbidden = { - custom_tooltip = encyclical_option_tenet_stance_forbidden_tt - open_view_data = { - view = decision_detail - data = decision:neow_prohibit_tenet_encyclical_decision - player = root - } - } } } @@ -1422,457 +1364,3 @@ neow_condemn_rite_encyclical_decision = { } } } - -neow_permit_tenet_encyclical_decision = { - picture = { - reference = "gfx/interface/illustrations/event_story/pam_the_christian_church_stability.dds" - } - decision_group_type = major - is_invisible = yes - should_create_alert = { always = no } - - cooldown = { years = 5 } - - ai_check_interval_by_tier = { - barony = 0 - county = 200 - duchy = 200 - kingdom = 200 - empire = 200 - hegemony = 200 - } - - desc = neow_permit_tenet_encyclical_decision_desc - selection_tooltip = neow_permit_tenet_encyclical_decision_tooltip - confirm_text = neow_permit_tenet_encyclical_decision_confirm - - is_valid = { - any_character_tenet = { - knowledge_filter = known - pam_tenet_can_be_permitted_no_actor_trigger = yes - } - } - - is_valid_showing_failures_only = { - is_available_adult = yes - custom_tooltip = { - text = neow_encyclical_tenet_permitted_cooldown_tt - NOT = { exists = var:neow_encyclical_tenet_permitted_cooldown } - } - custom_tooltip = { - text = pam_tenet_stance_select_tt - exists = scope:selected_item - } - custom_tooltip = { - text = ecumenical_council_already_ongoing_tt - NOT = { faith = { has_variable = ecumenical_council_ongoing } } - } - } - - cost = { - piety = pam_enact_a_bull_cost_value - } - - effect = { - set_variable = { name = encyclical_option value = flag:tenet_permitted years = 1 } - save_scope_as = neow_encyclical_issuer - save_scope_as = pam_tenet_stance_issuer - save_scope_as = pam_tenet_stance_permit - scope:selected_item = { save_scope_as = pam_tenet_stance_tenet } - show_as_tooltip = { - faith = { - set_tenet_status = { tenet = scope:selected_item status = permitted } - change_fervor = { value = significant_fervor_loss desc = fervor_loss_pam_tenet_permitted } - if = { - limit = { has_tenet_popularity_trigger = yes } - change_tenet_popularity = { target = scope:selected_item change = medium_tenet_popularity_gain } - } - } - } - set_variable = { name = neow_encyclical_tenet_permitted_cooldown years = 5 } - trigger_event = pam_decision_events.0412 - } - - widget = { - gui = "decision_view_widget_select_tenet" - controller = select_scope_object - show_from_start = yes - decision_to_second_step_button = "SELECT" - - # List is tenets the HoF personally knows + tenets the rite knows - setup_items = { - scope:actor = { - ordered_character_tenet = { - knowledge_filter = known - order_by = { - value = pam_raw_tenet_popularity_value - multiply = -1 - } - max = 200 - check_range_bounds = no - add_to_list = item_list - } - } - } - - default_item = { - scope:actor = { - random_character_tenet = { - knowledge_filter = known - limit = { pam_tenet_can_be_permitted_trigger = yes } - save_scope_as = selected_item - } - } - } - - is_item_valid = { - pam_tenet_can_be_permitted_trigger = yes - } - - ai_select_item = { - scope:actor = { - if = { # The Pope does not leave his own practice a crime, whatever the desired list says - limit = { - any_personal_tenet = { - scope:actor.rite = { - has_tenet_status = { tenet = prev status = prohibited } - } - pam_tenet_ai_may_permit_trigger = { CHARACTER = scope:actor } - } - } - random_personal_tenet = { - limit = { - scope:actor.rite = { - has_tenet_status = { tenet = prev status = prohibited } - } - pam_tenet_ai_may_permit_trigger = { CHARACTER = scope:actor } - } - save_scope_as = selected_item - } - } - else_if = { # A tenet the faith adores gets sanctioned whether or not the Pope cares for it - limit = { - any_character_tenet = { - knowledge_filter = known - pam_tenet_can_be_permitted_trigger = yes - pam_tenet_is_overwhelmingly_popular_trigger = { CHARACTER = scope:actor } - } - } - ordered_character_tenet = { - knowledge_filter = known - limit = { - pam_tenet_can_be_permitted_trigger = yes - pam_tenet_is_overwhelmingly_popular_trigger = { CHARACTER = scope:actor } - } - order_by = pam_raw_tenet_popularity_value - position = 0 - save_scope_as = selected_item - } - } - else_if = { - limit = { - any_personal_tenet = { - pam_tenet_can_be_permitted_trigger = yes - pam_tenet_ai_may_permit_trigger = { CHARACTER = scope:actor } - } - } - random_personal_tenet = { - limit = { - pam_tenet_can_be_permitted_trigger = yes - pam_tenet_ai_may_permit_trigger = { CHARACTER = scope:actor } - } - weight = { - base = 10 - modifier = { - add = pam_tenet_popularity_impact_value - } - modifier = { - factor = 0.25 - OR = { - this = tenet:tenet_polyamory - this = tenet:tenet_love_under_will - } - } - } - save_scope_as = selected_item - } - } - else = { - random_desired_tenet = { - limit = { - pam_tenet_can_be_permitted_trigger = yes - pam_tenet_ai_may_permit_trigger = { CHARACTER = scope:actor } - } - only_positive = yes - threshold = 1 - selection_count = 97 - weight = { - base = 10 - modifier = { - add = pam_tenet_popularity_impact_value - } - modifier = { - factor = 0.25 - OR = { - this = tenet:tenet_polyamory - this = tenet:tenet_love_under_will - } - } - } - save_scope_as = selected_item - } - } - } - } - } - - ai_potential = { - has_pam_dlc_trigger = yes - this = faith.religious_head - religion = religion:eastern_orthodox_religion - OR = { - any_personal_tenet = { - root.rite = { - has_tenet_status = { tenet = prev status = prohibited } - } - pam_tenet_ai_may_permit_trigger = { CHARACTER = root } - } - any_desired_tenet = { - only_positive = yes - threshold = 1 - selection_count = 97 - root.rite = { - NOR = { - has_tenet_status = { tenet = prev status = permitted } - has_tenet_status = { tenet = prev status = core } - } - } - pam_tenet_ai_may_permit_trigger = { CHARACTER = root } - } - any_character_tenet = { - knowledge_filter = known - pam_tenet_can_be_permitted_no_actor_trigger = yes - pam_tenet_is_overwhelmingly_popular_trigger = { CHARACTER = root } - } - } - } - - ai_will_do = { - base = 100 - modifier = { - add = 25 - has_trait = zealous - } - modifier = { - add = 20 - has_trait = theologian - } - modifier = { - add = -30 - has_trait = cynical - } - } -} - -neow_prohibit_tenet_encyclical_decision = { - picture = { - reference = "gfx/interface/illustrations/event_story/pam_the_christian_church_instability.dds" - } - decision_group_type = major - is_invisible = yes - should_create_alert = { always = no } - - cooldown = { years = 5 } - - ai_check_interval_by_tier = { - barony = 0 - county = 200 - duchy = 200 - kingdom = 200 - empire = 200 - hegemony = 200 - } - - desc = neow_prohibit_tenet_encyclical_decision_desc - selection_tooltip = neow_prohibit_tenet_encyclical_decision_tooltip - confirm_text = neow_prohibit_tenet_encyclical_decision_confirm - - is_valid = { - any_character_tenet = { - knowledge_filter = known - pam_tenet_can_be_prohibited_no_actor_trigger = yes - } - } - - is_valid_showing_failures_only = { - is_available_adult = yes - custom_tooltip = { - text = neow_encyclical_tenet_forbidden_cooldown_tt - NOT = { exists = var:neow_encyclical_tenet_forbidden_cooldown } - } - custom_tooltip = { - text = pam_tenet_stance_select_tt - exists = scope:selected_item - } - custom_tooltip = { - text = ecumenical_council_already_ongoing_tt - NOT = { faith = { has_variable = ecumenical_council_ongoing } } - } - } - - cost = { - piety = pam_enact_a_bull_cost_value - } - - effect = { - set_variable = { name = encyclical_option value = flag:tenet_forbidden years = 1 } - save_scope_as = neow_encyclical_issuer - save_scope_as = pam_tenet_stance_issuer - save_scope_as = pam_tenet_stance_prohibit - scope:selected_item = { save_scope_as = pam_tenet_stance_tenet } - show_as_tooltip = { - faith = { - set_tenet_status = { tenet = scope:selected_item status = prohibited } - change_fervor = { value = notable_fervor_value desc = fervor_gain_pam_tenet_prohibited } - if = { - limit = { has_tenet_popularity_trigger = yes } - change_tenet_popularity = { target = scope:selected_item change = major_tenet_popularity_loss } - } - } - } - set_variable = { name = neow_encyclical_tenet_forbidden_cooldown years = 5 } - trigger_event = pam_decision_events.0413 - } - - widget = { - gui = "decision_view_widget_select_tenet" - controller = select_scope_object - show_from_start = yes - decision_to_second_step_button = "SELECT" - - # List is tenets the HoF personally knows + tenets the rite knows - setup_items = { - scope:actor = { - ordered_character_tenet = { - knowledge_filter = known - order_by = pam_raw_tenet_popularity_value - max = 200 - check_range_bounds = no - add_to_list = item_list - } - } - } - - default_item = { - scope:actor = { - random_character_tenet = { - knowledge_filter = known - limit = { pam_tenet_can_be_prohibited_trigger = yes } - save_scope_as = selected_item - } - } - } - - is_item_valid = { - pam_tenet_can_be_prohibited_trigger = yes - } - - ai_select_item = { - scope:actor = { - if = { # Reform moves against the most entrenched vice whether or not the Pope minds it - limit = { - any_character_tenet = { - knowledge_filter = known - pam_tenet_can_be_prohibited_trigger = yes - scope:actor = { - NOT = { has_personal_tenet = scope:pam_tenet_candidate } - } - pam_tenet_ai_should_purge_trigger = { CHARACTER = scope:actor } - } - } - ordered_character_tenet = { - knowledge_filter = known - limit = { - pam_tenet_can_be_prohibited_trigger = yes - scope:actor = { - NOT = { has_personal_tenet = scope:pam_tenet_candidate } - } - pam_tenet_ai_should_purge_trigger = { CHARACTER = scope:actor } - } - order_by = pam_raw_tenet_popularity_value - position = 0 - save_scope_as = selected_item - } - } - else = { - random_undesired_tenet = { - limit = { - pam_tenet_can_be_prohibited_trigger = yes - scope:actor = { - NOT = { has_personal_tenet = scope:pam_tenet_candidate } - } - pam_tenet_ai_may_prohibit_trigger = { CHARACTER = scope:actor } - } - known_tenets = yes - only_negative = yes - threshold = -1 - selection_count = 97 - weight = { - base = 10 - modifier = { - add = pam_tenet_unpopularity_impact_value - } - } - save_scope_as = selected_item - } - } - } - } - } - - ai_potential = { - has_pam_dlc_trigger = yes - is_ai = yes - religion = religion:eastern_orthodox_religion - this = faith.religious_head - OR = { - any_character_tenet = { - knowledge_filter = known - pam_tenet_can_be_prohibited_no_actor_trigger = yes - root = { - NOT = { has_personal_tenet = scope:pam_tenet_candidate } - } - pam_tenet_ai_should_purge_trigger = { CHARACTER = root } - } - any_undesired_tenet = { - known_tenets = yes - only_negative = yes - threshold = -1 - selection_count = 97 - root.rite = { - NOR = { - has_tenet_status = { tenet = prev status = prohibited } - has_tenet_status = { tenet = prev status = core } - } - } - pam_tenet_ai_may_prohibit_trigger = { CHARACTER = root } - } - } - } - - ai_will_do = { - base = 100 - modifier = { - add = 25 - has_trait = zealous - } - modifier = { - add = 20 - has_trait = theologian - } - modifier = { - add = -30 - has_trait = cynical - } - } -}