diff --git a/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt b/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt index 8400a5083..f7a4d4a78 100644 --- a/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt +++ b/common/coat_of_arms/coat_of_arms/NEOW_landed_titles.txt @@ -21162,3 +21162,166 @@ c_attica={ instance={scale={0.2 0.2}} } } + +e_spain={ + pattern="pattern__solid_designer.dds" + color1=red + color2=yellow + color3=blue + colored_emblem={ + color1=red + color2=red + texture="ce_shield_02.dds" + instance={ + position={ 0.615000 0.565000 } + scale={ 0.285000 0.285000 } + depth=9.010000 + } + + } + + colored_emblem={ + color1=black + color2=black + texture="ce_shield_02.dds" + instance={ + scale={ 0.595000 0.595000 } + depth=12.010000 + } + + } + + colored_emblem={ + color1=rgb { 170 95 130 } + color2=yellow + texture="ce_lion_rampant_crown.dds" + instance={ + position={ 0.620000 0.345000 } + scale={ 0.195000 0.195000 } + depth=5.010000 + } + + } + + colored_emblem={ + color1=green + color2=red + texture="ce_pomegranate.dds" + instance={ + position={ 0.501000 0.712000 } + scale={ 0.155000 0.090000 } + } + + } + + colored_emblem={ + color1=rgb { 169 169 169 } + texture="ce_block_02.dds" + instance={ + position={ 0.616000 0.337000 } + scale={ 0.220000 0.205000 } + depth=7.010000 + } + + } + + colored_emblem={ + color1=red + texture="ce_block_02.dds" + instance={ + position={ 0.393000 0.337000 } + scale={ 0.220000 0.205000 } + depth=8.010000 + } + + } + + colored_emblem={ + color1=yellow + color2=yellow + texture="ce_shield_02.dds" + instance={ + position={ 0.391000 0.564000 } + scale={ 0.285000 0.285000 } + depth=10.010000 + } + + } + + colored_emblem={ + color1=red + texture="ce_pales_04.dds" + instance={ + position={ 0.391000 0.556000 } + scale={ 0.232000 0.232000 } + depth=4.010000 + } + + } + + colored_emblem={ + color1=red + texture="ce_block_04.dds" + instance={ + position={ 0.372000 0.584000 } + scale={ 0.235000 0.235000 } + depth=2.010000 + rotation=90 + } + + instance={ + position={ 0.411000 0.581000 } + scale={ 0.235000 0.235000 } + depth=3.010000 + rotation=90 + } + + } + + colored_emblem={ + color1=grey + color2=grey + texture="ce_shield_02.dds" + instance={ + scale={ 0.565000 0.565000 } + depth=11.010000 + } + + } + + colored_emblem={ + color1=yellow + color2=blue + texture="ce_castle.dds" + instance={ + position={ 0.388000 0.339000 } + scale={ 0.210000 0.210000 } + depth=6.010000 + } + + } + + colored_emblem={ + color1=yellow + color2=green + texture="ce_chains.dds" + instance={ + position={ 0.619000 0.569000 } + scale={ 0.300000 0.300000 } + depth=1.010000 + } + + } + + colored_emblem={ + color1=yellow + texture="ce_block_02.dds" + instance={ + position={ 0.500000 0.498000 } + scale={ 1.000000 0.655000 } + depth=13.010000 + } + + } + +} diff --git a/common/decisions/NEOW_historical_formation_decisions.txt b/common/decisions/NEOW_historical_formation_decisions.txt index 918bfae91..c6ccb5625 100644 --- a/common/decisions/NEOW_historical_formation_decisions.txt +++ b/common/decisions/NEOW_historical_formation_decisions.txt @@ -487,3 +487,63 @@ reform_czechoslovakia_decision = { } ai_will_do = { base = 100 } } +spain_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = spain_decision_desc + selection_tooltip = spain_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + culture = { has_cultural_pillar = heritage_hispanic } + NOT = { any_parent_culture_or_above = { this = culture:portuguese } } + title:e_spain = { is_titular = yes } + } + + is_valid = { + completely_controls = title:k_andalusia + completely_controls = title:k_castille_leon + completely_controls = title:k_aragon + completely_controls = title:k_navarra + completely_controls = title:k_spanish_galicia + completely_controls = title:k_canarias + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + show_as_tooltip = { + spain_decision_effect = yes + } + + hidden_effect = { + spain_decision_effect = yes + } + } + + 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 b42340a57..ca1e328af 100644 --- a/common/landed_titles/NEOW_special_titles.txt +++ b/common/landed_titles/NEOW_special_titles.txt @@ -23,6 +23,12 @@ h_numenor = { capital = c_ile_de_france } +e_spain = { + color = { 206 178 39 } + + capital = c_madrid # Madrid +} + e_sweden = { color = { 5 50 90 } diff --git a/common/scripted_effects/NEOW_historical_formation_decisions.txt b/common/scripted_effects/NEOW_historical_formation_decisions.txt index 04627a659..eacaa664c 100644 --- a/common/scripted_effects/NEOW_historical_formation_decisions.txt +++ b/common/scripted_effects/NEOW_historical_formation_decisions.txt @@ -45,3 +45,57 @@ realize_domowina_decision_effect = { title:c_gorlitz= { set_de_jure_liege_title = title:d_upper_lusatia } } } +spain_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:e_spain = { + change_title_holder = { + holder = scope:scoped_ruler + change = scope:change + } + } + + resolve_title_and_vassal_change = scope:change + + hidden_effect = { + set_primary_title_to = title:e_spain + + title:k_andalusia = { set_de_jure_liege_title = title:e_spain } + title:k_castille_leon = { set_de_jure_liege_title = title:e_spain } + title:k_aragon = { set_de_jure_liege_title = title:e_spain } + title:k_navarra = { set_de_jure_liege_title = title:e_spain } + title:k_spanish_galicia = { set_de_jure_liege_title = title:e_spain } + title:k_canarias = { set_de_jure_liege_title = title:e_spain } + + if = { + limit = { + title:k_sardinia_and_corsica = { is_titular = no } + OR = { + has_title = title:k_sardinia_and_corsica + completely_controls = title:k_sardinia_and_corsica + } + } + title:k_sardinia_and_corsica = { set_de_jure_liege_title = title:e_spain } + } + + if = { + limit = { + title:k_sicily = { is_titular = no } + OR = { + has_title = title:k_sicily + completely_controls = title:k_sicily + } + } + title:k_sicily = { set_de_jure_liege_title = title:e_spain } + } + } + } +} \ No newline at end of file diff --git a/localization/english/replace/titles_l_english.yml b/localization/english/replace/titles_l_english.yml index 31e157dfa..ff98461e5 100644 --- a/localization/english/replace/titles_l_english.yml +++ b/localization/english/replace/titles_l_english.yml @@ -27175,6 +27175,8 @@ b_gubin:0 "Forst" b_forst:0 "Żary" + e_spain:0 "Spain" + e_spain_adj:0 "Spainish" b_tosno:0 "Tosno" b_putina:0 "Putina" b_eolie:0 "Eolie" diff --git a/localization/english/replace/zz_NEOW_decisions_l_english.yml b/localization/english/replace/zz_NEOW_decisions_l_english.yml index 3c370d927..903d47eaf 100644 --- a/localization/english/replace/zz_NEOW_decisions_l_english.yml +++ b/localization/english/replace/zz_NEOW_decisions_l_english.yml @@ -1729,4 +1729,9 @@ reform_czechoslovakia_decision_tooltip:0 "Reform Czechoslovakia" reform_czechoslovakia_decision_effect_tooltip:0 "Reformed Czechoslovakia" custom_czechoslovakia:0 "Czechoslovakia" #No newline at end of file + + spain_decision:0 "Reunite Spain" + spain_decision_confirm:0 "May it be eternal." + spain_decision_tooltip:0 "Reunite the scattered spainish lands into one empire once more." + spain_decision_desc:0 "Since the Event, the lands of Spain have been divided among countless kingdoms, each one claiming some fragment of the old country as their own. Now, at last, the peninsula stands united beneath our rule. The divisions of the past shall be put aside, and from the scattered realms of Iberia, Spain shall be made whole once more." \ No newline at end of file