From 8be7611672253492b07f3187d311ba6f878d262d Mon Sep 17 00:00:00 2001 From: Greekman Date: Thu, 26 Nov 2026 15:05:13 +0000 Subject: [PATCH] little religion fixes --- .../NEOW_religion_effects.txt | 3 + .../pam_scripted_triggers.txt | 72 +++++++++++++++---- ...zz_NEOW_religion_core_tenets_l_english.yml | 10 ++- ...z_NEOW_clerical_region_stuff_l_english.yml | 22 +++++- .../geographical_region.txt | 5 +- 5 files changed, 92 insertions(+), 20 deletions(-) diff --git a/common/scripted_effects/NEOW_religion_effects.txt b/common/scripted_effects/NEOW_religion_effects.txt index 0aa28ce71..82b240fda 100644 --- a/common/scripted_effects/NEOW_religion_effects.txt +++ b/common/scripted_effects/NEOW_religion_effects.txt @@ -1174,6 +1174,9 @@ neow_establish_western_orthodox_rite_effect = { # cannot be lost across the rite-creation/title-change effects. hidden_effect = { neow_merge_western_clerical_regions_under_rome_effect = yes + title:d_et_lazio = { + set_title_color = { 135 25 35 } + } } set_global_variable = { diff --git a/common/scripted_triggers/pam_scripted_triggers.txt b/common/scripted_triggers/pam_scripted_triggers.txt index 72c3b3983..02b6cd492 100644 --- a/common/scripted_triggers/pam_scripted_triggers.txt +++ b/common/scripted_triggers/pam_scripted_triggers.txt @@ -1606,7 +1606,10 @@ pam_is_clerical_title_authority_trigger = { pam_symphonia_secular_emperor_investiture_trigger = { is_ruler = yes highest_held_title_tier >= tier_empire - government_is_religious_trigger = no + custom_tooltip = { + text = neow_symphonia_secular_ruler_tt + government_is_religious_trigger = no + } rite ?= { rite_has_parameter = neow_symphonia_secular_imperial_investiture } } @@ -1631,11 +1634,14 @@ pam_clerical_title_held_by_own_hof_trigger = { pam_symphonia_clerical_region_in_realm_trigger = { - any_county_in_clerical_region = { - holder ?= { - OR = { - this = $RULER$ - is_vassal_or_below_of = $RULER$ + custom_tooltip = { + text = neow_symphonia_imperial_region_in_realm_tt + any_county_in_clerical_region = { + holder ?= { + OR = { + this = $RULER$ + is_vassal_or_below_of = $RULER$ + } } } } @@ -3733,13 +3739,44 @@ pam_acting_clerical_region_trigger = { } } +# Protected sees cannot be absorbed by ordinary mergers; they may absorb other eligible sees. +neow_protected_pentarchy_clerical_region_trigger = { + OR = { + this = title:d_et_lazio + this = title:d_et_constantinople + this = title:d_et_alexandria + this = title:d_et_coptic_alexandria + this = title:d_et_cyprus + this = title:d_et_antioch + this = title:d_et_jerusalem + AND = { + this = title:d_et_maronite_lebanon + has_variable = NEOW_maronite_antioch_restored + } + } +} + +neow_clerical_region_can_merge_trigger = { + custom_tooltip = { + text = neow_clerical_region_can_merge_tt + neow_protected_pentarchy_clerical_region_trigger = no + } +} + # Cheap pre-filter for HoF merge clerical region title list pam_potential_merge_clerical_region_title_trigger = { $TITLE$ = { has_clerical_region = yes - is_head_of_faith = no + neow_clerical_region_can_merge_trigger = yes + custom_tooltip = { + text = neow_merge_absorbed_not_hof_tt + is_head_of_faith = no + } # Absorbed regions stay as empty picker shells until reload - clerical_region_size > 0 + custom_tooltip = { + text = neow_merge_nonempty_region_tt + clerical_region_size > 0 + } custom_tooltip = { text = pam_potential_merge_clerical_region_title_same_title_trigger this != $ABSORBING_TITLE$ @@ -3818,9 +3855,14 @@ pam_clerical_region_at_most_three_duchies_trigger = { pam_symphonia_imperial_merge_acting_region_trigger = { $ARCHBISHOP$ = { save_temporary_scope_as = neow_symphonia_merge_archbishop_temp + custom_tooltip = { + text = neow_imperial_merge_acting_region_tt + capital_province.county.clerical_region_title ?= { + has_clerical_region = yes + holder = scope:neow_symphonia_merge_archbishop_temp + } + } capital_province.county.clerical_region_title ?= { - has_clerical_region = yes - holder = scope:neow_symphonia_merge_archbishop_temp pam_symphonia_clerical_region_in_realm_trigger = { RULER = scope:actor } } } @@ -3830,12 +3872,13 @@ pam_symphonia_imperial_merge_acting_region_trigger = { # Keep the normal merger's same-Head-of-Faith, non-rite-head, and AI-holder protections. pam_symphonia_imperial_has_adjacent_mergeable_clerical_region_trigger = { custom_tooltip = { - text = pam_has_adjacent_mergeable_clerical_region_trigger + text = neow_imperial_adjacent_mergeable_region_tt save_temporary_scope_as = absorbing_clerical_region_temp any_county_in_clerical_region = { any_neighboring_county = { clerical_region_title ?= { has_clerical_region = yes + neow_protected_pentarchy_clerical_region_trigger = no is_head_of_faith = no this != scope:absorbing_clerical_region_temp clerical_region_size > 0 @@ -3843,8 +3886,8 @@ pam_symphonia_imperial_has_adjacent_mergeable_clerical_region_trigger = { holder ?= { is_ai = yes religious_head_or_challenger = scope:absorbing_clerical_region_temp.holder.religious_head_or_challenger - NOT = { this = rite.head_of_rite } } + NOT = { rite.head_of_rite ?= holder } } } } @@ -3859,12 +3902,15 @@ pam_has_adjacent_mergeable_clerical_region_trigger = { any_neighboring_county = { clerical_region_title ?= { has_clerical_region = yes + neow_protected_pentarchy_clerical_region_trigger = no is_head_of_faith = no this != scope:absorbing_clerical_region_temp + clerical_region_size > 0 holder ?= { + is_ai = yes religious_head_or_challenger = scope:absorbing_clerical_region_temp.holder.religious_head_or_challenger - NOT = { this = rite.head_of_rite } } + NOT = { rite.head_of_rite ?= holder } } } } diff --git a/localization/english/replace/religion/doctrines/zz_NEOW_religion_core_tenets_l_english.yml b/localization/english/replace/religion/doctrines/zz_NEOW_religion_core_tenets_l_english.yml index 1492f9eec..82b1e13d2 100644 --- a/localization/english/replace/religion/doctrines/zz_NEOW_religion_core_tenets_l_english.yml +++ b/localization/english/replace/religion/doctrines/zz_NEOW_religion_core_tenets_l_english.yml @@ -373,9 +373,9 @@ pam_1_timothy_2_2_greek_glossary:0 "#bold 1 Timothy 2:2#!\nPray for kings and all who hold authority, that we may live a calm and peaceful life in all godliness and dignity.\n\n#italic Greek New Testament (English rendering)#!" doctrine_parameter_tenet_symphonia_puppeting_cost_reduction:0 "As a [personal_tenet|E], reduces the Piety cost of clerical puppeting and the Prestige cost of secular puppeting by #P 50%#!" doctrine_parameter_neow_theocrats_can_use_secular_cbs:0 "[rulers|E] with Ecclesiastical Government may use secular [casus_belli|E], subject to the usual requirements" - doctrine_parameter_neow_symphonia_secular_imperial_investiture:0 "Secular rulers of Empire rank may appoint and replace bishops, including Heads of Faith, in clerical regions extending into their realm. They may also split and merge such regions, even where Clerical Appointment doctrine reserves these powers to the priesthood." - neow_symphonia_imperial_region_in_realm_tt:0 "This clerical region must include land within your realm." - neow_clerical_grant_hof_must_replace_tt:0 "A clerical title held by your Head of Faith cannot be granted away. Replace the Head of Faith to appoint a new holder." + doctrine_parameter_neow_symphonia_secular_imperial_investiture:0 "Secular [rulers|E] of [empire|E] rank can appoint and replace bishops, including Heads of Faith, in Clerical Regions with land within their [realm|E]. They can also split and merge such regions regardless of Clerical Appointment doctrine. Protected sees can only be absorbed through special decisions" + neow_symphonia_imperial_region_in_realm_tt:0 "At least #V 1#! [county|E] in this Clerical Region is within your [realm|E]" + neow_clerical_grant_hof_must_replace_tt:0 "A Clerical Title held by your [head_of_faith|E] cannot be granted away #weak (Use the replacement interaction)#!" tenet_symphonia_irish_name:0 "Comhréiteach" tenet_symphonia_irish_desc:0 "The Church and the ruler are each entrusted with duties before God. Let the bishop guide consciences and guard the faith, while the sovereign govern justly, defend the innocent, and uphold the liberty of the Church. Neither office should consume the other.\n\n$pam_1_timothy_2_2_irish$" @@ -403,3 +403,7 @@ pam_1_timothy_2_2_slavonic_glossary:0 "#bold 1 Timotheyu 2:2#!\nza tsarya i za vsekh, izhe vo vlasti sutĭ, da tikhoe i bezmolvnoe zhitie pozhivem\n\n#italic Elizavetinskaya Bibliya (1751)#!" must_select_carnal_exaltation_or_love_under_will:0 "Requires Carnal Exaltation or Love Under Will" + + neow_symphonia_secular_imperial_investiture_name:0 "Imperial Investiture" + neow_theocrats_can_use_secular_cbs_name:0 "Can Use Secular Casus Belli" + tenet_symphonia_puppeting_cost_reduction_name:0 "Reduced Puppeting Cost" diff --git a/localization/english/replace/religion/zz_NEOW_clerical_region_stuff_l_english.yml b/localization/english/replace/religion/zz_NEOW_clerical_region_stuff_l_english.yml index e2dc1fe07..99d78e37d 100644 --- a/localization/english/replace/religion/zz_NEOW_clerical_region_stuff_l_english.yml +++ b/localization/english/replace/religion/zz_NEOW_clerical_region_stuff_l_english.yml @@ -30,7 +30,7 @@ clerical_region_duchy_orthodox: "Church" clerical_region_duchy_east_christian: "Church" clerical_region_duchy_patriarchate: "Patriarchate" - clerical_region_duchy_metropolitanate: "Metropolitanate" + clerical_region_duchy_metropolitanate: "Church" clerical_elector_cardinalate: "Cardinalate" monastery_christian: "Monastery" clerical_region_duchy_archbishopric: "Church" @@ -398,7 +398,7 @@ neow_maronite_patriarch_possessive:0 "Patriarch's" d_et_neow_wales:0 "Wales" d_et_neow_wales_adj:0 "Welsh" - et_2555_neow_wales_region:0 "Archbishop of Wales" + et_2555_neow_wales_region:0 "Archbishopric of Wales" neow_priest_kings_deposition_cost_desc:0 "Deposing a Priest King" d_et_neow_uzrohod:0 "Uzhhorod" @@ -406,4 +406,20 @@ et_2555_neow_uzrohod_region:0 "Church of Uzhhorod" d_et_neow_tuam:0 "Tuam" d_et_neow_tuam_adj:0 "Tuam" - et_2555_neow_tuam_region:0 "Archdiocese of Tuam" \ No newline at end of file + et_2555_neow_tuam_region:0 "Archdiocese of Tuam" + et_2555_alexandria_region:0 "$et_2555_greek_alexandria_region$" + + neow_clerical_region_can_merge_tt:0 "The target is not a protected Clerical Title #weak (Protected sees can only be absorbed through special [decision|E]s)#!" + neow_merge_absorbed_not_hof_tt:0 "The target is not a [head_of_faith|E] [title|E]" + neow_merge_nonempty_region_tt:0 "The target Clerical Region contains at least #V 1#! [county|E]" + neow_imperial_merge_acting_region_tt:0 "The recipient holds the Clerical Region containing their capital" + neow_symphonia_secular_ruler_tt:0 "You are a secular [ruler|E]" + pam_has_adjacent_mergeable_clerical_region_trigger:0 "Has a neighboring Clerical Region eligible to be absorbed #weak (Not a protected see, held by an AI [ruler|E] following the same Head of Faith or Challenger, not held by its Head of Rite, and not a Head of Faith title)#!" + neow_imperial_adjacent_mergeable_region_tt:0 "Has a neighboring Clerical Region eligible to be absorbed with at least #V 1#! [county|E] in your [realm|E] #weak (Not a protected see, held by an AI [ruler|E] following the same Head of Faith or Challenger, not held by its Head of Rite, and not a Head of Faith title)#!" + pam_potential_merge_clerical_region_title_same_title_trigger:0 "The target is a different Clerical Title" + pam_potential_merge_clerical_region_title_rite_trigger:0 "The target is not held by its Head of Rite" + pam_potential_merge_clerical_region_title_same_hof_trigger:0 "Both holders follow the same [head_of_faith|E] or Challenger Head of Faith" + pam_potential_merge_clerical_region_title_no_holder_trigger:0 "The target Clerical Title has a holder" + pam_potential_merge_clerical_region_title_neighboring_trigger:0 "The Clerical Regions share a [county|E] border" + pam_acting_clerical_region_trigger:0 "The recipient holds the Clerical Region containing their capital, which is not a [head_of_faith|E] [title|E]" + merge_new_ecclesiastical_title_cooldown_trigger:0 "The recipient's Clerical Region is not on a merger cooldown" diff --git a/map_data/geographical_regions/geographical_region.txt b/map_data/geographical_regions/geographical_region.txt index 603457e7b..700e2a6fe 100644 --- a/map_data/geographical_regions/geographical_region.txt +++ b/map_data/geographical_regions/geographical_region.txt @@ -4235,9 +4235,12 @@ et_2555_antioch_region = { } } et_2555_jerusalem_region = { + kingdoms = { + k_jordan + } counties = { c_jerusalem c_jaffa c_ghazza c_acre c_tiberias - c_kerak c_negev + c_negev } } et_2555_greek_alexandria_region = {