###########SUBJECTS OF RUSSIA - INFLUENCE HELPERS########### # Wraps the +2% SOV->ROOT influence bump used throughout integration blocks. SUB_ensure_cossack_regiment_template = { if = { limit = { NOT = { has_template = "Cossack Regiment" } } division_template = { name = "Cossack Regiment" is_locked = yes regiments = { L_Inf_Bat = { x = 0 y = 0 } L_Inf_Bat = { x = 0 y = 1 } L_Inf_Bat = { x = 0 y = 2 } } } } } SUB_integrate_influence_bonus_to_root = { set_temp_variable = { percent_change = 2 } set_temp_variable = { tag_index = SOV } change_influence_percentage = yes } ###########SUBJECTS OF RUSSIA - VARIABLES########### update_sub_sovfed_dirty_variable = { if = { limit = { check_variable = { SUB_sovfed_gui_dirty_var < 10000 } } add_to_variable = { SUB_sovfed_gui_dirty_var = 1 } } else = { set_variable = { SUB_sovfed_gui_dirty_var = 1 } } } modify_subjectavtoritet_support = { add_to_variable = { subjectavtoritet = modify_subjectavtoritet } custom_effect_tooltip = SOV_subjectavtoritet_tt clamp_variable = { var = subjectavtoritet min = 1 max = 100 } update_sub_sovfed_dirty_variable = yes } modify_subjectinped_support = { add_to_variable = { subjectinped = modify_subjectinped } custom_effect_tooltip = SOV_subjectinped_tt clamp_variable = { var = subjectinped min = 1 max = 100 } } modify_subjectnalogs_support = { add_to_variable = { subjectnalogs = modify_subjectnalogs } custom_effect_tooltip = SOV_subjectnalogs_tt clamp_variable = { var = subjectnalogs min = 0 max = 10000 } update_sub_sovfed_dirty_variable = yes } ###########SUBJECTS OF RUSSIA - MONEY FOR SUBJECT(SMALL OR BIG)########## russia_subject_money_small = { if = { limit = { OR = { original_tag = KBK original_tag = TUV original_tag = ALT original_tag = KHS original_tag = KAE original_tag = CKK original_tag = KCC original_tag = ING original_tag = ADY original_tag = SOO original_tag = PMR original_tag = CHU original_tag = MEL original_tag = MOV original_tag = UDM original_tag = LAG } } SOV = { country_event = { id = subject_rus.45 days = 1 } } } if = { limit = { OR = { original_tag = CHE original_tag = DPR original_tag = LPR original_tag = HPR original_tag = OPR original_tag = BSH original_tag = TAT original_tag = YAK original_tag = BRY original_tag = KOM original_tag = KHM original_tag = YAM original_tag = NEE original_tag = DAG original_tag = KLM original_tag = CRM original_tag = FAR original_tag = URA original_tag = KUB original_tag = GOR original_tag = SIB original_tag = FIN original_tag = NOV original_tag = MLR } } SOV = { country_event = { id = subject_rus.13 days = 1 } } } } ###########SUBJECTS OF RUSSIA - SEPARATISM MINUS########## SUB_separatism_minus_subject = { every_subject_country = { limit = { SUB_is_rf_subject = yes } random_list = { 30 = { set_temp_variable = { modify_subjectinped = -3 } modify_subjectinped_support = yes } 30 = { set_temp_variable = { modify_subjectinped = -5 } modify_subjectinped_support = yes } 30 = { set_temp_variable = { modify_subjectinped = -7 } modify_subjectinped_support = yes } 10 = { set_temp_variable = { modify_subjectinped = -10 } modify_subjectinped_support = yes } } } } ###########SUBJECTS OF RUSSIA - SEPARATISM PLUS########## SUB_separatism_plus_subject = { every_subject_country = { limit = { SUB_is_rf_subject = yes } random_list = { 30 = { set_temp_variable = { modify_subjectinped = 5 } modify_subjectinped_support = yes } 30 = { set_temp_variable = { modify_subjectinped = 6 } modify_subjectinped_support = yes } 30 = { set_temp_variable = { modify_subjectinped = 7 } modify_subjectinped_support = yes } 10 = { set_temp_variable = { modify_subjectinped = 12 } modify_subjectinped_support = yes } } } } ###########SUBJECTS OF RUSSIA - STATUS OF SUBJECT CHANGE########## SUB_change_status_subject = { if = { limit = { has_autonomy_state = autonomy_kray_rf has_country_flag = SOV_subject_kray } clr_country_flag = SOV_subject_kray set_country_flag = SOV_subject_republic SOV = { set_autonomy = { target = ROOT autonomy_state = autonomy_republic_rf } } } else_if = { limit = { has_autonomy_state = autonomy_oblast_rf has_country_flag = SOV_subject_oblast } clr_country_flag = SOV_subject_oblast set_country_flag = SOV_subject_kray SOV = { set_autonomy = { target = ROOT autonomy_state = autonomy_kray_rf } } } else_if = { limit = { has_autonomy_state = autonomy_okrug_rf has_country_flag = SOV_subject_okrug } clr_country_flag = SOV_subject_okrug set_country_flag = SOV_subject_oblast SOV = { set_autonomy = { target = ROOT autonomy_state = autonomy_oblast_rf } } } else_if = { limit = { has_autonomy_state = autonomy_governorate_rf has_country_flag = SOV_subject_governorate } clr_country_flag = SOV_subject_governorate set_country_flag = SOV_subject_okrug add_ideas = CHE_republic_rf add_ideas = SUB_small_taxes SOV = { set_autonomy = { target = ROOT autonomy_state = autonomy_okrug_rf } } } } ###########SUBJECTS OF RUSSIA - CHECK REPUBLICAN SEPARATISM########## # Republics fire event 69, okrugs fire event 98. # TAT/BSH/CHE rebel at subjectinped > 75; all other republics at > 85. # Set the rebellion flag at queue time so a timed-out popup cannot re-queue next tick. # # NOTE: every_subject_country only iterates EXISTING subjects. Absorbed regions (where # SOV owns the flagship state but the TAG was annexed) still accumulate subjectinped # via SUB_update_separatism_stability below, but cannot trigger rebellion in this loop. # The OLD per-TAG checks fired the event regardless of country existence and used # release = TAG inside option .a to re-spawn the absorbed subject. If that behavior # is desired in the future, re-add it via a separate per-TAG path here. SUB_update_separatism_rebellion = { # Volatile republics (TAT/BSH/CHE) — threshold 75 every_subject_country = { limit = { check_variable = { subjectinped > 75 } NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { original_tag = TAT original_tag = BSH original_tag = CHE } OR = { has_autonomy_state = autonomy_republic_rf has_autonomy_state = autonomy_state_rf } } set_country_flag = SUB_subject_rebellion_flag country_event = subject_rus.70 } # Other republic-tier subjects (includes autonomy_state_rf for KUB) — threshold 85 every_subject_country = { limit = { check_variable = { subjectinped > 85 } NOT = { has_country_flag = SUB_subject_rebellion_flag } NOT = { original_tag = TAT } NOT = { original_tag = BSH } NOT = { original_tag = CHE } OR = { has_autonomy_state = autonomy_republic_rf has_autonomy_state = autonomy_state_rf } } set_country_flag = SUB_subject_rebellion_flag country_event = subject_rus.70 } # Okrug-tier subjects (KHM, YAM, NEE) — threshold 85 every_subject_country = { limit = { check_variable = { subjectinped > 85 } NOT = { has_country_flag = SUB_subject_rebellion_flag } has_autonomy_state = autonomy_okrug_rf } set_country_flag = SUB_subject_rebellion_flag country_event = subject_rus.97 } } ###########SUBJECTS OF RUSSIA - REPUBLICAN SEPARATISM UPDATE########## # Path A (every_subject_country): all active RF subjects are updated in one pass. # Path B (per-TAG if blocks): handles the absorbed-region case where SOV owns the # region's flagship state and the original TAG no longer exists but carries no # rebellion flag. State IDs differ per TAG, so this branch stays hand-rolled. SUB_update_separatism_stability = { if = { limit = { SOV = { has_stability < 0.32 } } every_subject_country = { limit = { SUB_is_active_rf_subject = yes } SUB_update_separatism_stability_effect = yes } # Absorbed regions — state_id differs per TAG # These checks are expensive; only run 25% of the time (quarterly on average) random = { chance = 25 if = { limit = { SOV = { owns_state = 672 } NOT = { country_exists = CHE } CHE = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } CHE = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1126 } NOT = { country_exists = ING } ING = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } ING = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 674 } NOT = { country_exists = KBK } KBK = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } KBK = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1125 } NOT = { country_exists = KCC } KCC = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } KCC = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1127 } NOT = { country_exists = ADY } ADY = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } ADY = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 671 } NOT = { country_exists = DAG } DAG = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } DAG = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1107 } NOT = { country_exists = KLM } KLM = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } KLM = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 661 } NOT = { country_exists = TAT } TAT = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } TAT = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1134 } NOT = { country_exists = MEL } MEL = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } MEL = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1135 } NOT = { country_exists = CHU } CHU = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } CHU = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1132 } NOT = { country_exists = MOV } MOV = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } MOV = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1133 } NOT = { country_exists = UDM } UDM = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } UDM = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 664 } NOT = { country_exists = BSH } BSH = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } BSH = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1128 } NOT = { country_exists = KAE } KAE = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } KAE = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 648 } NOT = { country_exists = KOM } KOM = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } KOM = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 683 } NOT = { country_exists = NEE } NEE = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } NEE = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1011 } NOT = { country_exists = TUV } TUV = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } TUV = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 1065 } NOT = { country_exists = KHS } KHS = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } KHS = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 686 } NOT = { country_exists = BRY } BRY = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } BRY = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 688 } NOT = { country_exists = YAK } YAK = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } YAK = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 684 } NOT = { country_exists = ALT } ALT = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } ALT = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 678 } NOT = { country_exists = KHM } KHM = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } KHM = { SUB_update_separatism_stability_effect = yes } } if = { limit = { SOV = { owns_state = 679 } NOT = { country_exists = YAM } YAM = { NOT = { has_country_flag = SUB_subject_rebellion_flag } } } YAM = { SUB_update_separatism_stability_effect = yes } } } } } SUB_update_separatism_stability_effect = { random_list = { 30 = { set_temp_variable = { modify_subjectinped = 0.03 } modify_subjectinped_support = yes } 30 = { set_temp_variable = { modify_subjectinped = 0.02 } modify_subjectinped_support = yes } 30 = { set_temp_variable = { modify_subjectinped = 0.01 } modify_subjectinped_support = yes } 10 = { set_temp_variable = { modify_subjectinped = 0.05 } modify_subjectinped_support = yes } } } ###########SUBJECTS OF RUSSIA - SUBJECT TAXES UP########## SUB_taxes_subject_rise = { if = { limit = { has_idea = SUB_medium_taxes } swap_ideas = { remove_idea = SUB_medium_taxes add_idea = SUB_hard_taxes } hidden_effect = { SOV = { set_temp_variable = { modify_subjectnalogs = 8 } modify_subjectnalogs_support = yes } } } else_if = { limit = { has_idea = SUB_small_taxes } swap_ideas = { remove_idea = SUB_small_taxes add_idea = SUB_medium_taxes } hidden_effect = { SOV = { set_temp_variable = { modify_subjectnalogs = 5 } modify_subjectnalogs_support = yes } } } } ###########SUBJECTS OF RUSSIA - SUBJECT TAXES DOWN########## SUB_taxes_subject_fall = { if = { limit = { has_idea = SUB_medium_taxes } swap_ideas = { remove_idea = SUB_medium_taxes add_idea = SUB_small_taxes } hidden_effect = { SOV = { set_temp_variable = { modify_subjectnalogs = 1.5 } modify_subjectnalogs_support = yes } } } else_if = { limit = { has_idea = SUB_hard_taxes } swap_ideas = { remove_idea = SUB_hard_taxes add_idea = SUB_medium_taxes } hidden_effect = { SOV = { set_temp_variable = { modify_subjectnalogs = 3 } modify_subjectnalogs_support = yes } } } } ###########CHECHNYA - SCRIPTED EFFECTS########### ###########CHECHNYA - SILESIA BUNT########### modify_silesiabund_support = { add_to_variable = { silesiabund = modify_silesiabund } custom_effect_tooltip = SIL_silesiabund_tt clamp_variable = { var = silesiabund min = 1 max = 100 } } ###########CHECHNYA - CHECHNYA KADYROV CULT########## CHE_kadyrov_cult_script = { if = { limit = { has_idea = CHE_kadyrov_voruet3 } swap_ideas = { remove_idea = CHE_kadyrov_voruet3 add_idea = CHE_kadyrov_voruet4 } } else_if = { limit = { has_idea = CHE_kadyrov_voruet2 } swap_ideas = { remove_idea = CHE_kadyrov_voruet2 add_idea = CHE_kadyrov_voruet3 } } else_if = { limit = { has_idea = CHE_kadyrov_voruet1 } swap_ideas = { remove_idea = CHE_kadyrov_voruet1 add_idea = CHE_kadyrov_voruet2 } } else_if = { limit = { has_idea = CHE_kadyrov_voruet } swap_ideas = { remove_idea = CHE_kadyrov_voruet add_idea = CHE_kadyrov_voruet1 } } } ###########YUGRA - SCRIPTED EFFECTS########### ###########YUGRA - YUGRA OIL INFRA########## KHM_oil_good_script = { if = { limit = { has_idea = KHM_bad_oilinfra_idea1 } remove_ideas = KHM_bad_oilinfra_idea1 } else_if = { limit = { has_idea = KHM_bad_oilinfra_idea } swap_ideas = { remove_idea = KHM_bad_oilinfra_idea add_idea = KHM_bad_oilinfra_idea1 } } } ###########YUGRA - YUGRA ECOLOGY GOOD########## KHM_ecology_good_script = { if = { limit = { has_idea = SUB_khmao_ecology_3 } remove_ideas = SUB_khmao_ecology_3 } else_if = { limit = { has_idea = SUB_khmao_ecology_2 } swap_ideas = { remove_idea = SUB_khmao_ecology_2 add_idea = SUB_khmao_ecology_3 } } else_if = { limit = { has_idea = SUB_khmao_ecology_1 } swap_ideas = { remove_idea = SUB_khmao_ecology_1 add_idea = SUB_khmao_ecology_2 } } else_if = { limit = { has_idea = SUB_khmao_ecology_0 } swap_ideas = { remove_idea = SUB_khmao_ecology_0 add_idea = SUB_khmao_ecology_1 } } } ###########YUGRA - YUGRA ECOLOGY BAD########## KHM_ecology_sad_script = { if = { limit = { has_idea = SUB_khmao_ecology_1 } swap_ideas = { remove_idea = SUB_khmao_ecology_1 add_idea = SUB_khmao_ecology_0 } } else_if = { limit = { has_idea = SUB_khmao_ecology_2 } swap_ideas = { remove_idea = SUB_khmao_ecology_2 add_idea = SUB_khmao_ecology_1 } } else_if = { limit = { has_idea = SUB_khmao_ecology_3 } swap_ideas = { remove_idea = SUB_khmao_ecology_3 add_idea = SUB_khmao_ecology_2 } } } ###########URAL REPUBLIC - SCRIPTED EFFECTS########### ###########URAL REPUBLIC - URAL SPIRIT########### URA_ural_spirit_plus = { if = { limit = { has_idea = URA_uralian_spirit_idea3 } set_temp_variable = { percent_change = 5 } change_domestic_influence_percentage = yes } else_if = { limit = { has_idea = URA_uralian_spirit_idea2 } swap_ideas = { remove_idea = URA_uralian_spirit_idea2 add_idea = URA_uralian_spirit_idea3 } } else_if = { limit = { has_idea = URA_uralian_spirit_idea1 } swap_ideas = { remove_idea = URA_uralian_spirit_idea1 add_idea = URA_uralian_spirit_idea2 } } else_if = { limit = { has_idea = URA_uralian_spirit_idea } swap_ideas = { remove_idea = URA_uralian_spirit_idea add_idea = URA_uralian_spirit_idea1 } } else_if = { limit = { NOT = { has_idea = URA_uralian_spirit_idea } } add_ideas = URA_uralian_spirit_idea } } URA_ural_spirit_minus = { if = { limit = { has_idea = URA_uralian_spirit_idea3 } swap_ideas = { remove_idea = URA_uralian_spirit_idea3 add_idea = URA_uralian_spirit_idea2 } } else_if = { limit = { has_idea = URA_uralian_spirit_idea2 } swap_ideas = { remove_idea = URA_uralian_spirit_idea2 add_idea = URA_uralian_spirit_idea1 } } else_if = { limit = { has_idea = URA_uralian_spirit_idea1 } swap_ideas = { remove_idea = URA_uralian_spirit_idea1 add_idea = URA_uralian_spirit_idea } } else_if = { limit = { has_idea = URA_uralian_spirit_idea } remove_ideas = URA_uralian_spirit_idea } } ###########URAL REPUBLIC - UGMK########### URA_ural_ugmk = { if = { limit = { has_idea = URA_ugmk_idea3 } swap_ideas = { remove_idea = URA_ugmk_idea3 add_idea = URA_ugmk_idea4 } } else_if = { limit = { has_idea = URA_ugmk_idea2 } swap_ideas = { remove_idea = URA_ugmk_idea2 add_idea = URA_ugmk_idea3 } } else_if = { limit = { has_idea = URA_ugmk_idea1 } swap_ideas = { remove_idea = URA_ugmk_idea1 add_idea = URA_ugmk_idea2 } } else_if = { limit = { has_idea = URA_ugmk_idea } swap_ideas = { remove_idea = URA_ugmk_idea add_idea = URA_ugmk_idea1 } } } ###########URAL REPUBLIC - URAL ARMY########### URA_idea_ural_army_reforms = { if = { limit = { has_idea = URA_reform_army3 } remove_ideas = URA_reform_army3 } else_if = { limit = { has_idea = URA_reform_army2 } swap_ideas = { remove_idea = URA_reform_army2 add_idea = URA_reform_army3 } } else_if = { limit = { has_idea = URA_reform_army1 } swap_ideas = { remove_idea = URA_reform_army1 add_idea = URA_reform_army2 } } else_if = { limit = { has_idea = URA_reform_army } swap_ideas = { remove_idea = URA_reform_army add_idea = URA_reform_army1 } } } ###########URAL REPUBLIC - URAL ARMY RUSSIAN########### URA_idea_ural_russian_reforms = { if = { limit = { has_idea = URA_russian_dependent_military2 } remove_ideas = URA_russian_dependent_military2 } else_if = { limit = { has_idea = URA_russian_dependent_military1 } swap_ideas = { remove_idea = URA_russian_dependent_military1 add_idea = URA_russian_dependent_military2 } } else_if = { limit = { has_idea = URA_russian_dependent_military } swap_ideas = { remove_idea = URA_russian_dependent_military add_idea = URA_russian_dependent_military1 } } } ###########URAL REPUBLIC - URAL SEPARATISM########### URA_ural_spirit_separatism = { if = { limit = { has_idea = URA_uralian_spirit_idea } set_temp_variable = { modify_subjectinped = 5 } modify_subjectinped_support = yes } else_if = { limit = { has_idea = URA_uralian_spirit_idea1 } set_temp_variable = { modify_subjectinped = 7 } modify_subjectinped_support = yes } else_if = { limit = { has_idea = URA_uralian_spirit_idea2 } set_temp_variable = { modify_subjectinped = 9 } modify_subjectinped_support = yes } else_if = { limit = { has_idea = URA_uralian_spirit_idea3 } set_temp_variable = { modify_subjectinped = 11 } modify_subjectinped_support = yes } } ###########URAL REPUBLIC - URAL EMPIRE MONARCHY########### URA_ural_monarchy_empire = { if = { limit = { country_exists = MNT MNT = { is_ai = yes is_subject_of = URA } } set_temp_variable = { treasury_change = -1 } modify_treasury_effect = yes add_political_power = -100 annex_country = { target = MNT transfer_troops = yes } MNT = { every_core_state = { add_core_of = URA } } hidden_effect = { add_to_variable = { treasury = MNT.treasury } add_to_variable = { debt = MNT.debt } add_to_variable = { int_investments = MNT.int_investments } } } if = { limit = { country_exists = ALB ALB = { is_ai = yes is_subject_of = URA } } set_temp_variable = { treasury_change = -1 } modify_treasury_effect = yes add_political_power = -100 annex_country = { target = ALB transfer_troops = yes } ALB = { every_core_state = { add_core_of = URA } } hidden_effect = { add_to_variable = { treasury = ALB.treasury } add_to_variable = { debt = ALB.debt } add_to_variable = { int_investments = ALB.int_investments } } } if = { limit = { country_exists = FYR FYR = { is_ai = yes is_subject_of = URA } } set_temp_variable = { treasury_change = -1 } modify_treasury_effect = yes add_political_power = -100 annex_country = { target = FYR transfer_troops = yes } FYR = { every_core_state = { add_core_of = URA } } hidden_effect = { add_to_variable = { treasury = FYR.treasury } add_to_variable = { debt = FYR.debt } add_to_variable = { int_investments = FYR.int_investments } } } if = { limit = { country_exists = GAM GAM = { is_ai = yes is_subject_of = URA } } set_temp_variable = { treasury_change = -1 } modify_treasury_effect = yes add_political_power = -100 annex_country = { target = GAM transfer_troops = yes } GAM = { every_core_state = { add_core_of = URA } } hidden_effect = { add_to_variable = { treasury = GAM.treasury } add_to_variable = { debt = GAM.debt } add_to_variable = { int_investments = GAM.int_investments } } } if = { limit = { country_exists = TRI TRI = { is_ai = yes is_subject_of = URA } } set_temp_variable = { treasury_change = -1 } modify_treasury_effect = yes add_political_power = -100 annex_country = { target = TRI transfer_troops = yes } TRI = { every_core_state = { add_core_of = URA } } hidden_effect = { add_to_variable = { treasury = TRI.treasury } add_to_variable = { debt = TRI.debt } add_to_variable = { int_investments = TRI.int_investments } } } } ###########URAL REPUBLIC - EKB METRO########### URA_ural_metro_expand = { if = { limit = { NOT = { has_country_flag = EKB_metro1 } } set_temp_variable = { treasury_change = -1.5 } modify_treasury_effect = yes 676 = { set_variable = { URA_metro_army_speed = 0.07 tooltip = army_speed_factor_for_controller_tt } set_variable = { URA_metro_development = 0.15 tooltip = state_productivity_growth_modifier_tt } add_dynamic_modifier = { modifier = URA_metro_modifier } } set_country_flag = EKB_metro1 } else_if = { limit = { NOT = { has_country_flag = EKB_metro2 } } set_temp_variable = { treasury_change = -1.5 } modify_treasury_effect = yes custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = URA_metro_modifier } 676 = { add_to_variable = { URA_metro_army_speed = 0.02 tooltip = army_speed_factor_for_controller_tt } add_to_variable = { URA_metro_development = 0.05 tooltip = state_productivity_growth_modifier_tt } } set_country_flag = EKB_metro2 } } TAT_update_party_modifiers = { if = { limit = { has_dynamic_modifier = { modifier = TAT_liberals_modifier } } remove_dynamic_modifier = { modifier = TAT_liberals_modifier } } if = { limit = { has_dynamic_modifier = { modifier = TAT_tatar_kommi_modifier } } remove_dynamic_modifier = { modifier = TAT_tatar_kommi_modifier } } if = { limit = { has_dynamic_modifier = { modifier = TAT_tatarin_nati_modifier } } remove_dynamic_modifier = { modifier = TAT_tatarin_nati_modifier } } if = { limit = { has_completed_focus = TAT_western_start has_government = democratic } add_dynamic_modifier = { modifier = TAT_liberals_modifier } } else_if = { limit = { has_completed_focus = TAT_Communism_start emerging_communist_state_are_in_power = yes } add_dynamic_modifier = { modifier = TAT_tatar_kommi_modifier } } else_if = { limit = { has_completed_focus = TAT_constitution_return has_government = nationalist } add_dynamic_modifier = { modifier = TAT_tatarin_nati_modifier } } } BSH_update_party_modifiers = { if = { limit = { has_dynamic_modifier = { modifier = BSH_tatar_kommi_modifier } } remove_dynamic_modifier = { modifier = BSH_tatar_kommi_modifier } } if = { limit = { has_dynamic_modifier = { modifier = BSH_tatarin_nati_modifier } } remove_dynamic_modifier = { modifier = BSH_tatarin_nati_modifier } } if = { limit = { has_completed_focus = BSH_Communism_start emerging_communist_state_are_in_power = yes } add_dynamic_modifier = { modifier = BSH_tatar_kommi_modifier } } else_if = { limit = { has_completed_focus = BSH_constitution_return has_government = nationalist } add_dynamic_modifier = { modifier = BSH_tatarin_nati_modifier } } } ###########SUBJECTS OF RUSSIA - INTEGRATE RUSSIAN ECONOMIC########### SUB_subjects_integrate_economic_of_russia = { if = { limit = { NOT = { has_dynamic_modifier = { modifier = SUB_russian_economy_modifier } } } add_dynamic_modifier = { modifier = SUB_russian_economy_modifier } } # Influence still accrues per newly shared company, so integrating again as Moscow keeps # buying firms is worth the same as it was when each company arrived as its own spirit. set_temp_variable = { percent_change = SOV.SOV_econ_sphere_company_count } subtract_from_temp_variable = { percent_change = SUB_russian_companies_integrated } multiply_temp_variable = { percent_change = 2 } set_temp_variable = { tag_index = SOV } change_influence_percentage = yes set_variable = { SUB_russian_companies_integrated = SOV.SOV_econ_sphere_company_count } if = { limit = { has_idea = PMR_inter_rao SOV = { has_completed_focus = SOV_economic_interrao } } remove_ideas = PMR_inter_rao } } ###########SUBJECTS OF RUSSIA - INTEGRATE IN RUSSIAN ARMY########### SUB_subjects_integrate_army_of_russia = { #Russian Space Force if = { limit = { SOV = { has_completed_focus = SOV_kosmo_voiska } NOT = { has_idea = SOV_russian_spaceforce } } add_ideas = SOV_russian_spaceforce SUB_integrate_influence_bonus_to_root = yes } #Russian Far Aviation Force if = { limit = { SOV = { has_completed_focus = SOV_airforce_far_aviation } NOT = { has_idea = SOV_far_aviation_idea } } add_ideas = SOV_far_aviation_idea SUB_integrate_influence_bonus_to_root = yes } #Russian Transport Aviation Force if = { limit = { SOV = { has_completed_focus = SOV_airforce_transport_aviation } NOT = { has_idea = SOV_transport_aviation_idea } } add_ideas = SOV_transport_aviation_idea SUB_integrate_influence_bonus_to_root = yes } #Air and Missile Defense Forces if = { limit = { SOV = { has_completed_focus = SOV_air_rocket_defence } NOT = { has_idea = SOV_air_missile_defence_idea } } add_ideas = SOV_air_missile_defence_idea SUB_integrate_influence_bonus_to_root = yes } #Anti-Aircraft missile Forces if = { limit = { SOV = { has_completed_focus = SOV_missile_defense_investments } NOT = { has_idea = SOV_anti_aircraft_forces_idea } } add_ideas = SOV_anti_aircraft_forces_idea SUB_integrate_influence_bonus_to_root = yes } #Radio-Technical Troops if = { limit = { SOV = { has_completed_focus = SOV_radio_defense_investments } NOT = { has_idea = SOV_radio_technical_troops_idea } } add_ideas = SOV_radio_technical_troops_idea SUB_integrate_influence_bonus_to_root = yes } #Satellites if = { limit = { SOV = { has_completed_focus = SOV_roscosmos_intel } NOT = { has_idea = SOV_russian_satellite_idea } } add_ideas = SOV_russian_satellite_idea SUB_integrate_influence_bonus_to_root = yes } #Strategic Rocket Forces if = { limit = { SOV = { has_completed_focus = SOV_missile_development } NOT = { has_idea = SOV_rocket_forces_idea } } add_ideas = SOV_rocket_forces_idea SUB_integrate_influence_bonus_to_root = yes } #Army Ipso if = { limit = { SOV = { has_completed_focus = SOV_armyreform_ipso } NOT = { has_idea = SOV_army_ipso } } add_ideas = SOV_army_ipso SUB_integrate_influence_bonus_to_root = yes } #Army MTO if = { limit = { SOV = { has_completed_focus = SOV_mto } NOT = { has_idea = SOV_army_mto } } add_ideas = SOV_army_mto SUB_integrate_influence_bonus_to_root = yes } #Army Engineer if = { limit = { SOV = { has_completed_focus = SOV_armyreform_engineer } NOT = { has_idea = SOV_army_engineer } } add_ideas = SOV_army_engineer SUB_integrate_influence_bonus_to_root = yes } #Army AntiAir if = { limit = { SOV = { has_completed_focus = SOV_armyreform_anti_air } NOT = { has_idea = SOV_army_anti_air } } add_ideas = SOV_army_anti_air SUB_integrate_influence_bonus_to_root = yes } #Army Railway Troops if = { limit = { SOV = { has_completed_focus = SOV_railway_troops } NOT = { has_idea = SOV_army_railway } } add_ideas = SOV_army_railway SUB_integrate_influence_bonus_to_root = yes } #Army RadioElectir Troops if = { limit = { SOV = { has_completed_focus = SOV_radioelectronic_warfare } NOT = { has_idea = SOV_army_radioelectric } } add_ideas = SOV_army_radioelectric SUB_integrate_influence_bonus_to_root = yes } } ###########SUBJECTS OF RUSSIA - MERGE SUBJECT INTO ROOT########### # Pre-set: set_temp_variable = { SUB_merge_target = TAG } # Transfers cores, leaders, treasury, debt, investments from SUB_merge_target to ROOT, # then annexes the target. Bumps avtoritet +2, domestic influence +0.5%, # and adds bidirectional positive opinion with SOV. SUB_merge_subject_into_root = { set_temp_variable = { modify_subjectavtoritet = 2 } modify_subjectavtoritet_support = yes add_to_variable = { treasury = var:SUB_merge_target.treasury } add_to_variable = { debt = var:SUB_merge_target.debt } add_to_variable = { int_investments = var:SUB_merge_target.int_investments } var:SUB_merge_target = { every_core_state = { add_core_of = ROOT } every_unit_leader = { set_nationality = ROOT } SOV = { annex_country = { target = PREV transfer_troops = yes } } } set_temp_variable = { percent_change = 0.5 } change_domestic_influence_percentage = yes add_opinion_modifier = { target = SOV modifier = recent_actions_positive } SOV = { add_opinion_modifier = { target = ROOT modifier = recent_actions_positive } } } ###########SUBJECTS OF RUSSIA - ANNEX SUBJECTS########### # Tag tiers: # minor = -95 pp / -3 treasury / -0.03 popularity (small unrecognised republics) # small = -90 pp / -4 treasury / -0.03 popularity (internal RF republics/okrugs/DNR tier) # mid = -100 pp / -5 treasury / -0.06 popularity (external post-Soviet states, Baltics, governorates) # FIN = -300 pp / -12 treasury / -0.13 popularity (Finland) # UKR = -300 pp / -25 treasury / -0.06 popularity (Ukraine) russia_subjects_annex = { decrease_economic_growth = yes add_timed_idea = { idea = SUB_annex_debuff days = 465 } set_temp_variable = { tag_index = FIN.id } SUB_annex_prep_FIN = yes set_temp_variable = { tag_index = UKR.id } SUB_annex_prep_UKR = yes set_temp_variable = { tag_index = PMR.id } SUB_annex_prep_minor = yes set_temp_variable = { tag_index = CHE.id } SUB_annex_prep_minor = yes set_temp_variable = { tag_index = CRM.id } SUB_annex_prep_minor = yes set_temp_variable = { tag_index = NEE.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = CHU.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = MEL.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = MOV.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = UDM.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = YAM.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = KHM.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = CKK.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = KAE.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = KHS.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = ALT.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = TUV.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = DPR.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = HPR.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = OPR.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = LPR.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = KOM.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = KBK.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = ADY.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = KCC.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = SOO.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = ING.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = DAG.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = TAT.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = YAK.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = BRY.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = KLM.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = BSH.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = MLR.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = URA.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = KUB.id } SUB_annex_prep_small = yes set_temp_variable = { tag_index = BLR.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = AZE.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = ARM.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = LAT.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = LIT.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = EST.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = GEO.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = KAZ.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = KYR.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = TAJ.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = UZB.id } SUB_annex_prep_mid = yes set_temp_variable = { tag_index = MLV.id } SUB_annex_prep_mid = yes } ###########SUBJECTS OF RUSSIA - ANNEX STATES########### russia_state_annex = { decrease_economic_growth = yes add_timed_idea = { idea = SUB_annex_debuff days = 465 } set_temp_variable = { tag_index = KUB.id } SUB_annex_prep_mid_state = yes set_temp_variable = { tag_index = URA.id } SUB_annex_prep_mid_state = yes set_temp_variable = { tag_index = SIB.id } SUB_annex_prep_mid_state = yes set_temp_variable = { tag_index = FAR.id } SUB_annex_prep_mid_state = yes set_temp_variable = { tag_index = GOR.id } SUB_annex_prep_mid_state = yes } ##########SUBJECTS ANNEX - TIER HELPERS########### # Each tier helper sets the cost temp vars and delegates to russian_subject_annex_effect. # The caller must set { tag_index = TAG.id } before calling. SUB_annex_prep_small = { set_temp_variable = { pp_cost = -90 } set_temp_variable = { treasury_cost = -4 } set_temp_variable = { popularity_change = -0.03 } russian_subject_annex_effect = yes } SUB_annex_prep_minor = { set_temp_variable = { pp_cost = -95 } set_temp_variable = { treasury_cost = -3 } set_temp_variable = { popularity_change = -0.03 } russian_subject_annex_effect = yes } SUB_annex_prep_mid = { set_temp_variable = { pp_cost = -100 } set_temp_variable = { treasury_cost = -5 } set_temp_variable = { popularity_change = -0.06 } russian_subject_annex_effect = yes } SUB_annex_prep_mid_state = { set_temp_variable = { pp_cost = -100 } set_temp_variable = { treasury_cost = -5 } set_temp_variable = { popularity_change = -0.06 } russian_state_annex_effect = yes } SUB_annex_prep_FIN = { set_temp_variable = { pp_cost = -300 } set_temp_variable = { treasury_cost = -12 } set_temp_variable = { popularity_change = -0.13 } russian_subject_annex_effect = yes } SUB_annex_prep_UKR = { set_temp_variable = { pp_cost = -300 } set_temp_variable = { treasury_cost = -25 } set_temp_variable = { popularity_change = -0.06 } russian_subject_annex_effect = yes } ##########SUBJECTS ANNEX - BASED CODE########### # Applies payment + annex + tax-downgrade to the subject in var:tag_index. # Caller must set: tag_index, pp_cost, treasury_cost, popularity_change. SUB_apply_annex_transfer = { add_political_power = pp_cost set_temp_variable = { treasury_change = treasury_cost } modify_treasury_effect = yes set_temp_variable = { party_popularity_increase = popularity_change } set_temp_variable = { temp_outlook_increase = popularity_change } change_relative_party_popularity = yes var:tag_index = { SOV = { annex_country = { target = PREV transfer_troops = yes } } every_core_state = { add_core_of = SOV } } hidden_effect = { var:tag_index = { every_unit_leader = { set_nationality = SOV } add_to_variable = { PREV.treasury = treasury } add_to_variable = { PREV.debt = debt } add_to_variable = { PREV.int_investments = int_investments } SUB_downgrade_subject_taxes_on_annex = yes } } } SUB_downgrade_subject_taxes_on_annex = { if = { limit = { has_idea = SUB_smallish_taxes } set_temp_variable = { modify_subjectnalogs = -0.5 } } else_if = { limit = { has_idea = SUB_small_taxes } set_temp_variable = { modify_subjectnalogs = -1.5 } } else_if = { limit = { has_idea = SUB_medium_taxes } set_temp_variable = { modify_subjectnalogs = -3 } } else_if = { limit = { has_idea = SUB_hard_taxes } set_temp_variable = { modify_subjectnalogs = -5 } } SOV = { set_temp_variable = { modify_subjectnalogs = PREV.modify_subjectnalogs } modify_subjectnalogs_support = yes } } russian_subject_annex_effect = { if = { limit = { var:tag_index = { influence_higher_40 = yes is_ai = yes SUB_is_rf_subject = yes } country_exists = var:tag_index } SUB_apply_annex_transfer = yes } } russian_state_annex_effect = { if = { limit = { var:tag_index = { influence_higher_50 = yes is_ai = yes has_autonomy_state = autonomy_state_rf } country_exists = var:tag_index } SUB_apply_annex_transfer = yes } } MSC_abolish_mayor_office = { 652 = { if = { limit = { has_dynamic_modifier = { modifier = MSC_mayor_modifier } } remove_dynamic_modifier = { modifier = MSC_mayor_modifier } } MSC_clear_mayor_office = yes } } MSC_clear_mayor_office = { clear_variable = MSC_mayor_communism_drift clear_variable = MSC_mayor_nationalist_drift clear_variable = MSC_mayor_democratic_drift clear_variable = MSC_mayor_stability_factor clear_variable = MSC_mayor_corporate_tax_income_multiplier_modifier clear_variable = MSC_mayor_production_speed_industrial_complex_factor clear_variable = MSC_mayor_consumer_goods_factor clear_variable = MSC_mayor_surrender_limit clear_variable = MSC_mayor_drift_defence_factor clear_variable = MSC_mayor_opinion_gain_monthly_same_ideology_factor clear_variable = MSC_mayor_social_cost_multiplier_modifier clear_variable = MSC_mayor_corruption_cost_factor clear_variable = MSC_mayor_police_cost_multiplier_modifier } MSC_elect_lujkov = { MSC_clear_mayor_office = yes custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = MSC_mayor_modifier } set_variable = { MSC_mayor_communism_drift = 0.01 tooltip = communism_drift_tt } } MSC_elect_sobyanin_edro = { MSC_clear_mayor_office = yes custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = MSC_mayor_modifier } set_variable = { MSC_mayor_communism_drift = 0.02 tooltip = communism_drift_tt } set_variable = { MSC_mayor_stability_factor = 0.01 tooltip = stability_factor_tt } set_variable = { MSC_mayor_corporate_tax_income_multiplier_modifier = 0.01 tooltip = corporate_tax_income_multiplier_modifier_tt } } MSC_elect_melnikov_cprf = { MSC_clear_mayor_office = yes custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = MSC_mayor_modifier } set_variable = { MSC_mayor_communism_drift = 0.02 tooltip = communism_drift_tt } set_variable = { MSC_mayor_production_speed_industrial_complex_factor = 0.01 tooltip = production_speed_industrial_complex_factor_tt } set_variable = { MSC_mayor_consumer_goods_factor = -0.01 tooltip = consumer_goods_factor_tt } } MSC_elect_degtyarev_ldpr = { MSC_clear_mayor_office = yes custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = MSC_mayor_modifier } set_variable = { MSC_mayor_nationalist_drift = 0.02 tooltip = nationalist_drift_tt } set_variable = { MSC_mayor_surrender_limit = 0.01 tooltip = surrender_limit_tt } set_variable = { MSC_mayor_drift_defence_factor = 0.01 tooltip = drift_defence_factor_tt } } MSC_elect_mitrohin_yablo = { MSC_clear_mayor_office = yes custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = MSC_mayor_modifier } set_variable = { MSC_mayor_democratic_drift = 0.02 tooltip = democratic_drift_tt } set_variable = { MSC_mayor_opinion_gain_monthly_same_ideology_factor = 0.01 tooltip = opinion_gain_monthly_same_ideology_factor_tt } set_variable = { MSC_mayor_social_cost_multiplier_modifier = -0.01 tooltip = social_cost_multiplier_modifier_tt } } MSC_elect_navalny_parnas = { MSC_clear_mayor_office = yes custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = MSC_mayor_modifier } set_variable = { MSC_mayor_democratic_drift = 0.02 tooltip = democratic_drift_tt } set_variable = { MSC_mayor_corruption_cost_factor = -0.01 tooltip = corruption_cost_factor_tt } set_variable = { MSC_mayor_police_cost_multiplier_modifier = -0.01 tooltip = police_cost_multiplier_modifier_tt } } SOV_city_upgrade = { add_to_variable = { SOV_city_level = 1 } add_to_variable = { SOV_city_development = 0.035 tooltip = state_production_speed_buildings_factor_tt } add_to_variable = { SOV_city_army_speed = 0.025 tooltip = army_speed_factor_for_controller_tt } add_to_variable = { SOV_city_manpower = 0.02 tooltip = local_manpower_tt } if = { limit = { check_variable = { SOV_city_level > 3 } } add_to_variable = { SOV_city_slots = 1 tooltip = local_building_slots_tt } } } SOV_moscow_build_script = { 652 = { custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = SOV_moscow_levels } SOV_city_upgrade = yes } if = { limit = { 652 = { check_variable = { SOV_city_level > 8 } } } set_temp_variable = { treasury_change = -25 } } else_if = { limit = { 652 = { check_variable = { SOV_city_level > 6 } } } set_temp_variable = { treasury_change = -20 } } else_if = { limit = { 652 = { check_variable = { SOV_city_level > 4 } } } set_temp_variable = { treasury_change = -15 } } else = { set_temp_variable = { treasury_change = -10 } } modify_treasury_effect = yes } SOV_ekb_build_script = { 676 = { if = { limit = { NOT = { has_dynamic_modifier = { modifier = SOV_ekaterinburg_levels } } } set_variable = { SOV_city_development = 0.015 tooltip = state_production_speed_buildings_factor_tt } set_variable = { SOV_city_army_speed = 0.025 tooltip = army_speed_factor_for_controller_tt } add_dynamic_modifier = { modifier = SOV_ekaterinburg_levels } } custom_effect_tooltip = { localization_key = modifies_dynamic_modifier_tt MODIFIER = SOV_ekaterinburg_levels } SOV_city_upgrade = yes } if = { limit = { 676 = { check_variable = { SOV_city_level > 3 } } } set_temp_variable = { treasury_change = -15 } } else = { set_temp_variable = { treasury_change = -10 } } modify_treasury_effect = yes } SOV_subject_taxation_payment = { if = { limit = { has_idea = SUB_smallish_taxes } set_temp_variable = { treasury_change = -0.5 } } else_if = { limit = { has_idea = SUB_small_taxes } set_temp_variable = { treasury_change = -1.5 } } else_if = { limit = { has_idea = SUB_medium_taxes } set_temp_variable = { treasury_change = -3 } } else_if = { limit = { has_idea = SUB_hard_taxes } set_temp_variable = { treasury_change = -5 } } modify_treasury_effect = yes SOV = { set_temp_variable = { treasury_change = PREV.treasury_change } multiply_temp_variable = { treasury_change = -1 } modify_treasury_effect = yes } }