Skip to content

Commit

Permalink
Merge branch 'Imperia-austria-rework' of https://github.com/Imperia-D…
Browse files Browse the repository at this point in the history
…evelopment-Victoria-3/Victoria-3-Dev into Imperia-austria-rework
  • Loading branch information
Unintuition-Time committed Jan 14, 2025
2 parents bd5eac8 + 6321b8e commit 1a161fa
Show file tree
Hide file tree
Showing 16 changed files with 859 additions and 289 deletions.
46 changes: 46 additions & 0 deletions common/customizable_localization/imperia_localisation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1132,4 +1132,50 @@ imperia_dead_man_leading_faction_name = {
fallback = yes
localization_key = EMPTY
}
}

imperia_passive_resistance_commissioned_art_form_name = {
type = country
text = {
trigger = {
c:HUN.var:hungarian_art_type = 1
}
localization_key = POEM
}
text = {
trigger = {
c:HUN.var:hungarian_art_type = 2
}
localization_key = PLAY
}
text = {
trigger = {
c:HUN.var:hungarian_art_type = 3
}
localization_key = MUSIC
}
text = {
fallback = yes
localization_key = ART
}
}

imperia_passive_resistance_secret_society_spread_form_name = {
type = country
text = {
trigger = {
c:HUN.var:passive_resistance_underground_network_strength = 1
}
localization_key = FOUND_SECRET_SOCIETY
}
text = {
trigger = {
c:HUN.var:passive_resistance_underground_network_strength > 1
}
localization_key = WIDEN_UNDERGROUND_NETWORK
}
tetx = {
fallback = yes
localization_key = FOUND_SECRET_SOCIETY
}
}
151 changes: 121 additions & 30 deletions common/diplomatic_plays/imperia_diplomatic_plays.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
dp_imperia_unify_america = {
war_goal = annex_country
requires_interest_marker = no

texture = "gfx/interface/icons/war_goals/annex_country.dds"

selectable_in_lens = {
OR = {
country_has_primary_culture = cu:yankee
country_has_primary_culture = cu:dixie
}
}

possible = {
NOT = { is_country_type = decentralized }
NOT = {
is_country_type = decentralized
}
aggressive_diplomatic_plays_permitted = yes
NOT = { is_subject_of = scope:target_country }
NOT = {
is_subject_of = scope:target_country
}
has_technology_researched = nationalism

scope:target_country = {
NOT = { is_subject_of = root }
NOT = { is_country_type = decentralized }
NOT = {
is_subject_of = root
}
NOT = {
is_country_type = decentralized
}
country_is_in_north_america = yes
OR = {
country_has_primary_culture = cu:yankee
Expand All @@ -29,36 +33,42 @@
}
}
}

on_weekly_pulse = {}

on_war_begins = {}

on_war_end = {}
on_weekly_pulse = {
}
on_war_begins = {
}
on_war_end = {
}
}

dp_imperia_great_war = {
requires_interest_marker = no
war_goal = humiliation
texture = "gfx/interface/icons/war_goals/great_war.dds"
possible = {
NOT = { is_country_type = decentralized }
NOT = {
is_country_type = decentralized
}
imperia_aggressive_diplomatic_plays_permitted = yes
NOT = { is_subject_of = scope:target_country }
NOT = {
is_subject_of = scope:target_country
}
has_technology_researched = multilateral_alliances
has_global_variable = trench_works_invented_global

scope:target_country = {
NOT = { is_country_type = decentralized }
NOT = { is_subject_of = root }
NOT = {
is_country_type = decentralized
}
NOT = {
is_subject_of = root
}
has_technology_researched = multilateral_alliances
}
custom_tooltip = {
text = DIPLO_ACTION_RELATIONS_CORDIAL_OR_GREATER_NOT
scope:target_country.relations:root < relations_threshold:cordial
}
}

on_weekly_pulse = {
every_scope_play_involved = {
root.war = {
Expand All @@ -69,7 +79,6 @@ dp_imperia_great_war = {
value < 0
}
}

add_war_war_support = {
target = prev
value = 10
Expand All @@ -78,10 +87,10 @@ dp_imperia_great_war = {
}
}
}

on_war_begins = {}

on_war_end = {}
on_war_begins = {
}
on_war_end = {
}
}

dp_imperia_gutter_german_revolt = {
Expand All @@ -97,9 +106,91 @@ dp_imperia_gutter_german_revolt = {
possible = {
always = no
}
on_weekly_pulse = {}

on_war_begins = {}

on_war_end = {}
on_weekly_pulse = {
}
on_war_begins = {
}
on_war_end = {
}
}

# Should only ever be used by Hungary against Austria
dp_imperia_hungarian_revolt = {
allow_negotiated_peace = no
requires_interest_marker = no
initiator_can_add_war_goals = no
target_can_add_war_goals = no
war_goal = independence
texture = "gfx/interface/icons/war_goals/independence.dds"
confirmation_sound = "event:/SFX/UI/SubjectInteractions/subject_button_small_independence"
selectable_in_lens = {
always = no
}
possible = {
always = no
}
on_weekly_pulse = {
}
on_war_begins = {
every_country = {
limit = {
OR = {
neighbors_power_bloc = c:AUS.power_bloc
country_rank >= rank_value:great_power
AND = {
country_rank >= rank_value:major_power
country_is_in_europe = yes
}
imperia_hungarian_revolution_country_has_unique_aid_effects = yes
}
# Should also not be countries that are already at odds with Austria/Hungary
# Would like to use a diplomatic play participant check against the play in root, but that's seemingly not possible..?
NOR = {
has_war_with = c:AUS
has_war_with = c:HUN
}
}
# Trigger the foreign aid event for them
trigger_event = {
id = imperia_dual_monarchy.4
days = 7
popup = yes
}
}
}
on_war_end = {
every_country = {
# Ideally we'd check if the country got the event, but... Oh well
# Luckily doesnt do anything if the country doesnt have any of the modifiers
imperia_hungarian_revolution_remove_aid_effect = yes
}
# Furthermore, if the Hungarian revolt is lost, exile all agitators and set the lost revolution variable
if = {
limit = {
c:HUN.overlord = c:AUS
}
c:HUN = {
set_variable = lost_hungarian_revolution
# Remember to get all the laws
copy_laws = overlord
add_journal_entry = {
type = je_imperia_passive_resistance
}
}
c:AUS = {
trigger_event = {
id = imperia_dual_monarchy.3
popup = yes
}
add_journal_entry = {
type = je_imperia_austrian_neo_absolutism
}
# Just to make sure Austria doesnt make Hungary a dominion or something
create_diplomatic_pact = {
country = c:HUN
type = crownland
}
}
}
}
}
3 changes: 3 additions & 0 deletions common/flag_definitions/imperia_flag_definitions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,9 @@ HUN = {
exists = c:HUN
c:HUN = {
is_subject_of = c:AUS
NOT = {
has_war_with = c:AUS
}
}
c:AUS = {
has_law = law_type:law_monarchy
Expand Down
3 changes: 3 additions & 0 deletions common/government_types/00_imperia_governments.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,8 @@ gov_austrian_palatine_kingdom = {
is_subject = yes
is_subject_type = subject_type_crownland
is_subject_of = c:AUS
NOT = {
has_war_with = overlord
}
}
}
Loading

0 comments on commit 1a161fa

Please sign in to comment.