diff --git a/common/decisions/religious_decisions_NEOW.txt b/common/decisions/religious_decisions_NEOW.txt index 2b46b9f66..dba75f826 100644 --- a/common/decisions/religious_decisions_NEOW.txt +++ b/common/decisions/religious_decisions_NEOW.txt @@ -402,6 +402,85 @@ is_shown = { always = yes } + ai_will_do = { + base = 100 + + ai_value_modifier = { + ai_zeal = 5.0 + } + + modifier = { + factor = 0 + has_trait = cynical + } + } +} +restore_patriarchate_r_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + + desc = restore_patriarchate_r_decision_desc + selection_tooltip = restore_patriarchate_r_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 60 + duchy = 60 + kingdom = 60 + empire = 60 + hegemony = 60 + } + +is_shown = { + is_ruler = yes + is_playable_character = yes + faith = faith:russian_orthodox + + NEOW_has_not_restored_r_patriarchate = yes +} + + is_valid = { + completely_controls = title:c_moskva + piety_level >= max_piety_level + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_patriarchate_r_decision_effect_tooltip + + restore_r_patriarch_scripted_effect = yes + + title:k_russian_orthodox = { + set_variable = { + name = moscow_patriarchate_restored + value = yes + } + } + + + add_prestige = 500 + add_piety = 1000 + add_legitimacy = 50 + + stress_impact = { + zealous = major_stress_impact_loss + } + + trigger_event = NEOW_religious_decision.0201 + } + + ai_potential = { + always = yes + } + ai_will_do = { base = 100 diff --git a/common/religion/doctrine_group_types/00_doctrine_group_types.txt b/common/religion/doctrine_group_types/00_doctrine_group_types.txt index 53e3938ce..dd473144e 100644 --- a/common/religion/doctrine_group_types/00_doctrine_group_types.txt +++ b/common/religion/doctrine_group_types/00_doctrine_group_types.txt @@ -820,6 +820,17 @@ immaterial_harmony = { special_doctrine_immaterial_harmony } } +special_doctrine_otvoyevaniye = { + category = "special" + + is_available_on_create = { + has_doctrine = special_doctrine_otvoyevaniye + } + + doctrine_types = { + special_doctrine_otvoyevaniye + } +} special_doctrine_byzantine_dreaming = { category = "special" diff --git a/common/religion/doctrine_types/40_doctrines_special.txt b/common/religion/doctrine_types/40_doctrines_special.txt index f89c2edc5..ead5fedbe 100644 --- a/common/religion/doctrine_types/40_doctrines_special.txt +++ b/common/religion/doctrine_types/40_doctrines_special.txt @@ -282,4 +282,17 @@ special_doctrine_byzantine_dreaming = { traits = { virtues = { arrogant } } +} +special_doctrine_otvoyevaniye = { + parameters = { + great_holy_wars_active = yes + bonus_holy_war_piety_active = yes + divine_destiny_holy_war_cost_reduction = yes + } + + character_modifier = { + martial_per_piety_level = 1 + ai_war_chance = 1 + ai_war_cooldown = -0.5 + } } \ No newline at end of file diff --git a/common/religion/religion_types/NEOW_orthodox.txt b/common/religion/religion_types/NEOW_orthodox.txt index 3e36f22af..980d65a90 100644 --- a/common/religion/religion_types/NEOW_orthodox.txt +++ b/common/religion/religion_types/NEOW_orthodox.txt @@ -295,10 +295,11 @@ eastern_orthodox_religion = { holy_site = don doctrine = doctrine_clerical_function_taxation + doctrine = special_doctrine_not_allowed_to_hof doctrine = tenet_monasticism doctrine = tenet_symphonia - doctrine = tenet_struggle_submission + doctrine = tenet_iconodulism localization = { HighGodName = russian_orthodox_high_god_name diff --git a/common/scripted_effects/NEOW_religion_effects.txt b/common/scripted_effects/NEOW_religion_effects.txt index 60abefb8c..b1520be9e 100644 --- a/common/scripted_effects/NEOW_religion_effects.txt +++ b/common/scripted_effects/NEOW_religion_effects.txt @@ -241,6 +241,59 @@ restore_patriarch_scripted_effect = { resolve_title_and_vassal_change = scope:patriarch_change } } + +restore_r_patriarch_scripted_effect = { + root.faith = { + change_fervor = { + value = 100 + desc = fervor_gain_ep_restored + } + } + + hidden_effect = { + create_character = { + template = religious_leader_character + random_traits = no + save_scope_as = new_patriarch + } + + scope:new_patriarch = { + add_trait = education_learning_3 + add_trait = zealous + add_trait = intellect_good_1 + + random_list = { + 1 = { add_trait = humble } + 1 = { add_trait = diligent } + 1 = { add_trait = just } + 1 = { add_trait = compassionate } + 1 = { add_trait = stubborn } + } + } + + create_title_and_vassal_change = { + type = returned + save_scope_as = patriarch_change + add_claim_on_loss = no + } + + title:k_russian_orthodox = { + change_title_holder = { + holder = scope:new_patriarch + change = scope:patriarch_change + } + } + + scope:new_patriarch = { + change_liege = { + liege = root + change = scope:patriarch_change + } + } + + resolve_title_and_vassal_change = scope:patriarch_change + } +} form_marblist_decision_effect = { add_prestige = massive_prestige_gain add_piety = massive_piety_gain diff --git a/common/scripted_triggers/NEOW_religion_triggers.txt b/common/scripted_triggers/NEOW_religion_triggers.txt index 5bea27598..659a8ae9c 100644 --- a/common/scripted_triggers/NEOW_religion_triggers.txt +++ b/common/scripted_triggers/NEOW_religion_triggers.txt @@ -36,4 +36,11 @@ NEOW_has_not_restored_ecumenical_patriarchate = { # forgive me i dont know where has_variable = ecumenical_patriarchate_restored } } +} +NEOW_has_not_restored_r_patriarchate = { + title:k_russian_orthodox = { + NOT = { + has_variable = moscow_patriarchate_restored + } + } } \ No newline at end of file diff --git a/events/religion_events/NEOW_religious_decision_events.txt b/events/religion_events/NEOW_religious_decision_events.txt index d3878f510..9d7c3a535 100644 --- a/events/religion_events/NEOW_religious_decision_events.txt +++ b/events/religion_events/NEOW_religious_decision_events.txt @@ -237,3 +237,47 @@ NEOW_religious_decision.0200 = { #restoring the patriarch name = NEOW_religious_decision.0200.a } } +NEOW_religious_decision.0201 = { # Restoring the Patriarch + type = character_event + title = NEOW_religious_decision.0201.t + desc = NEOW_religious_decision.0201.desc + theme = faith + + override_background = { + reference = ep3_hagia_sophia + } + + override_effect_2d = { + reference = legend_glow + } + + left_portrait = { + character = root + animation = prayer + } + + right_portrait = { + character = scope:new_patriarch + animation = wedding_priest + } + + immediate = { + # Give Russian Orthodoxy the doctrine that enables GHWs + faith:russian_orthodox = { + remove_doctrine = special_doctrine_not_allowed_to_hof + add_doctrine = special_doctrine_otvoyevaniye + + # Unlock the GHW system for this faith's religion + religion = { + set_variable = { + name = variable_ghw_unlocked + value = yes + } + } + } + } + + option = { + name = NEOW_religious_decision.0201.a + } +} \ No newline at end of file diff --git a/localization/english/replace/religion/zz_NEOW_religion_orthodox_l_english.yml b/localization/english/replace/religion/zz_NEOW_religion_orthodox_l_english.yml index 2470374fd..6532ceccf 100644 --- a/localization/english/replace/religion/zz_NEOW_religion_orthodox_l_english.yml +++ b/localization/english/replace/religion/zz_NEOW_religion_orthodox_l_english.yml @@ -237,4 +237,8 @@ special_doctrine_byzantine_dreaming_name: "The Dream of Rome" - special_doctrine_byzantine_dreaming_desc: "The awakening of the Marble Emperor marks only the beginning of God's design. Beneath his banner, the Romans shall march ever onward, driving their enemies to the Red Apple Tree at the very ends of the earth." \ No newline at end of file + special_doctrine_byzantine_dreaming_desc: "The awakening of the Marble Emperor marks only the beginning of God's design. Beneath his banner, the Romans shall march ever onward, driving their enemies to the Red Apple Tree at the very ends of the earth." + + special_doctrine_otvoyevaniye_name: "Otvoyevaniye" + + special_doctrine_otvoyevaniye_desc: "The restoration of the Patriarchate has given new force to the conviction that lands and holy places lost by the Church must be won back. Holy war is not merely conquest, but the recovery of a sacred inheritance entrusted to the faithful." \ No newline at end of file diff --git a/localization/english/replace/zz_NEOW_decisions_l_english.yml b/localization/english/replace/zz_NEOW_decisions_l_english.yml index 903d47eaf..5bbd8beb3 100644 --- a/localization/english/replace/zz_NEOW_decisions_l_english.yml +++ b/localization/english/replace/zz_NEOW_decisions_l_english.yml @@ -1693,6 +1693,16 @@ restore_ecumenical_patriarchate_c_decision_effect_tooltip:0 "The Ecumenical Patriarchate will be restored to their dejure see" fervor_gain_ep_restored:0 "Ecumenical Patriarch's return to Constantinople" + restore_patriarchate_r_decision:0 "Restore the Patriarchate of Moscow" + restore_patriarchate_r_decision_desc:0 "The Patriarchal throne of Moscow has fallen vacant, but the Church endured the tide of Heretics. If Moscow is secured by a ruler of unimpeachable devotion, the Patriarchate can be restored and a new Patriarch raised to shepherd the faithful." + restore_patriarchate_r_decision_tooltip:0 "Restore the Patriarchate of Moscow" + restore_patriarchate_r_decision_effect_tooltip:0 "A new Patriarch of Moscow will be enthroned, the Russian Orthodox faith will gain Fervor, and the Church will start declaring Great Holy Wars." + fervor_gain_mp_restored:0 "The Patriarch of Moscow's restoration" + + NEOW_religious_decision.0201.t:0 "The Otvoevaniye" + NEOW_religious_decision.0201.desc:0 "With the Patriarchate of Moscow restored, the Russian Church is no longer on a backfoot against the Heretics. The faithful are called to reclaim the holy places and lands lost to those outside the Orthodox faith. Under the restored Patriarchate, the Church now possesses the authority to proclaim great campaigns of holy reconquest." + NEOW_religious_decision.0201.a:0 "We shall reclaim what was lost." + albanian_two_decision:0 "Form the Kingdom of The Two Albanias" albanian_two_decision_confirm:0 "the Albanians shall be united!" albanian_two_decision_tooltip:0 "Unite Albania with the Albanian lands of diaspora."