From 2bb4f6c431337bccdc579804102aaec01e8fb25f Mon Sep 17 00:00:00 2001 From: trashb0at Date: Mon, 8 Jun 2026 10:42:33 -0400 Subject: [PATCH] lusatia formable --- .../coat_of_arms/NEOW_easteurope.txt | 29 ++++++++ .../NEOW_historical_formation_decisions.txt | 74 +++++++++++++++++++ common/landed_titles/NEOW_special_titles.txt | 10 +++ .../NEOW_historical_formation_decisions.txt | 25 +++++++ .../titles_cultural_names_l_english.yml | 2 + .../english/replace/titles_l_english.yml | 4 + .../replace/zz_NEOW_decisions_l_english.yml | 6 +- 7 files changed, 149 insertions(+), 1 deletion(-) diff --git a/common/coat_of_arms/coat_of_arms/NEOW_easteurope.txt b/common/coat_of_arms/coat_of_arms/NEOW_easteurope.txt index 84ef7d67..df29b2f3 100644 --- a/common/coat_of_arms/coat_of_arms/NEOW_easteurope.txt +++ b/common/coat_of_arms/coat_of_arms/NEOW_easteurope.txt @@ -9,4 +9,33 @@ instance = { offset = { 0.5 0.0 } scale = { 0.5 0.5 } } # top right instance = { offset = { 0.0 0.5 } scale = { 0.5 0.5 } } # bottom left } +} + +k_lusatia={ + pattern="pattern_horizontal_split_01.dds" + color1=white + color2=red + colored_emblem={ + color1=white + color2=green + texture="ce_chief.dds" + instance={scale={1 -1}} + } + colored_emblem={ + color1=red + color2=yellow + texture="ce_bull_passant.dds" + } + colored_emblem={ + color1=white + texture="ce_circle_mask.dds" + instance={position={0 0} scale={0.87 0.91}} + } + colored_emblem={ + color1=red + color2=yellow + color3=white + texture="ce_bull_head.dds" + instance={position={0.26 0.28} scale={0.4 0.4}} + } } \ No newline at end of file diff --git a/common/decisions/NEOW_historical_formation_decisions.txt b/common/decisions/NEOW_historical_formation_decisions.txt index f4469918..20e0a536 100644 --- a/common/decisions/NEOW_historical_formation_decisions.txt +++ b/common/decisions/NEOW_historical_formation_decisions.txt @@ -321,3 +321,77 @@ restore_polish_borders_decision = { } ai_check_interval = 0 } + +realize_domowina_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = realize_domowina_decision_desc + selection_tooltip = realize_domowina_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + OR = { + culture = culture:sorbian + } + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_lusatia + } + } + } + + is_valid = { + has_title = title:d_lower_lusatia + has_title = title:d_upper_lusatia + has_title = title:c_zary + has_title = title:c_gorlitz + prestige_level >= 3 + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + custom_tooltip = realize_domowina_decision_effect_tooltip + show_as_tooltip = { + realize_domowina_decision_effect = yes + } + hidden_effect = { + realize_domowina_decision_effect = yes + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_lusatia + } + set_global_variable = { + name = flag_created_lusatia + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} \ No newline at end of file diff --git a/common/landed_titles/NEOW_special_titles.txt b/common/landed_titles/NEOW_special_titles.txt index b5bed001..fac7b18b 100644 --- a/common/landed_titles/NEOW_special_titles.txt +++ b/common/landed_titles/NEOW_special_titles.txt @@ -74,4 +74,14 @@ e_poland_lithuania = { ai_primary_priority = { add = @always_primary_score } +} + +k_lusatia = { + color = { 232 50 27 } + + capital = c_cottbus + + cultural_names = { + name_list_NEOW_sorbian = cn_luzica + } } \ No newline at end of file diff --git a/common/scripted_effects/NEOW_historical_formation_decisions.txt b/common/scripted_effects/NEOW_historical_formation_decisions.txt index 0f50423c..c0095529 100644 --- a/common/scripted_effects/NEOW_historical_formation_decisions.txt +++ b/common/scripted_effects/NEOW_historical_formation_decisions.txt @@ -19,4 +19,29 @@ title:k_poland = { set_de_jure_liege_title = title:e_poland_lithuania } title:k_lithuania = { set_de_jure_liege_title = title:e_poland_lithuania } } +} + +realize_domowina_decision_effect = { + add_prestige = massive_prestige_gain + save_scope_as = scoped_ruler + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_lusatia = { + change_title_holder = { + holder = scope:scoped_ruler + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + hidden_effect = { + set_primary_title_to = title:k_lusatia + title:k_lusatia = { set_de_jure_liege_title = title:e_visegrad } + title:d_upper_lusatia = { set_de_jure_liege_title = title:k_lusatia } + title:d_lower_lusatia = { set_de_jure_liege_title = title:k_lusatia } + title:c_zary = { set_de_jure_liege_title = title:d_lower_lusatia } + title:c_gorlitz= { set_de_jure_liege_title = title:d_upper_lusatia } + } } \ No newline at end of file diff --git a/localization/english/replace/titles_cultural_names_l_english.yml b/localization/english/replace/titles_cultural_names_l_english.yml index c10a08ea..1f3632bd 100644 --- a/localization/english/replace/titles_cultural_names_l_english.yml +++ b/localization/english/replace/titles_cultural_names_l_english.yml @@ -3935,6 +3935,8 @@ cn_p_l_stk_awno:0 "Pławno" cn_plavno:0 "Plavno" cn_reignbach:0 "Reignbach" + ###Lusatia + cn_luzica:0 "Łužica" ## Upper Lusatia cn_g_o_act_rne__l_stk_u_z_dot_yce:0 "Górne Łużyce" cn_g_u_rng_rno__l_stk_u_z_dot_yca:0 "Gůrno Łużyca" diff --git a/localization/english/replace/titles_l_english.yml b/localization/english/replace/titles_l_english.yml index 93f6232d..c84761cd 100644 --- a/localization/english/replace/titles_l_english.yml +++ b/localization/english/replace/titles_l_english.yml @@ -25952,6 +25952,10 @@ e_visegrad:0 "Visegrad" e_visegrad_adj:0 "Visegrader" e_visegrad_pre:0 "Visegradic" + ###Lusatia + k_lusatia:0 "Lusatia" + k_lusatia_adj:0 "Lusatian" + k_lusatia_pre:0 "Lusatian" ### Poland c_koszalin:0 "Koszalin" c_koszalin_adj:0 "Koszaliński" diff --git a/localization/english/replace/zz_NEOW_decisions_l_english.yml b/localization/english/replace/zz_NEOW_decisions_l_english.yml index b42380c1..c0020112 100644 --- a/localization/english/replace/zz_NEOW_decisions_l_english.yml +++ b/localization/english/replace/zz_NEOW_decisions_l_english.yml @@ -1639,4 +1639,8 @@ restore_poland_lithuania_decision_desc:0 "Recreate the Polish-Lithuanian Commonwealth" restore_poland_lithuania_decision_effect_tooltip:0 "Poland and Lithuania will be united as the Polish-Lithuanian Commonwealth." - \ No newline at end of file + realize_domowina_decision:0 "Realize Domowina" + realize_domowina_decision_desc:0 "bwaa" + realize_domowina_decision_confirm:0 "Create the Kingdom of Lusatia" + realize_domowina_decision_tooltip:0 "Create the Kingdom of Lusatia." + realize_domowina_decision_effect_tooltip:0 "Silesia will become a De Jure kingdom within Zapadoslavia, and the duchies of Lower and Upper Lusatia will expand to encompass Żarów and Zhorjelc." \ No newline at end of file