on_actions = { on_weekly_SOV = { effect = { if = { limit = { has_full_control_of_state = 1118 NOT = { has_idea = landmark_ICBMsiloyasny_hidden } } add_ideas = landmark_ICBMsiloyasny_hidden } else_if = { limit = { NOT = { has_full_control_of_state = 1118 } has_idea = landmark_ICBMsiloyasny_hidden } remove_ideas = landmark_ICBMsiloyasny_hidden } for_each_loop = { array = SOV.subjects value = v index = i var:v = { if = { limit = { exists = yes SUB_is_rf_subject = yes } if = { limit = { NOT = { has_idea = CHE_republic_rf } } add_ideas = CHE_republic_rf } if = { limit = { SOV = { has_country_flag = SOV_united_russia } NOT = { has_country_flag = SUB_united_russia } } set_country_flag = SUB_united_russia } set_temp_variable = { modify_subjectavtoritet = 2 } modify_subjectavtoritet_support = yes } } } if = { limit = { SOV = { has_idea = faction_warsaw_pact_idea } GER = { has_country_flag = raskol } any_of_scopes = { array = GER.enemies NOT = { has_country_flag = WP_escaped } has_autonomy_state = autonomy_warsaw has_country_flag = GDR_test } NOT = { has_country_flag = reistablish_frg_raskol } } set_country_flag = reistablish_frg_raskol SOV = { country_event = sov_warsaw_pact.17 } } } } on_monthly_SOV = { random_events = { 1000 = 0 100 = sov_economic.28 150 = sov_economic.24 100 = sov_economic.23 100 = sov_economic.22 150 = sov_economic.27 } effect = { every_subject_country = { limit = { SUB_is_soviet_sphere_subject = yes } SOV_subject_taxation_payment = yes } if = { limit = { NOT = { has_country_flag = SOV_loss_dissoultion } has_war = yes surrender_progress > 0.8 } set_country_flag = SOV_loss_dissoultion country_event = { id = sov_dissolution.1 days = 1 } } #Capitalisation Companies if = { limit = { NOT = { SOV_moex_is_nationalized = yes } is_subject = no NOT = { has_country_flag = SOV_stop_moex } } if = { limit = { has_completed_focus = SOV_economic_reform_gazprom } SOV_capitalisation_gazprom_calculate = yes } if = { limit = { has_completed_focus = SOV_economic_use_yukos } SOV_capitalisation_rosneft_calculate = yes } if = { limit = { has_completed_focus = SOV_economic_destiny_sber } SOV_capitalisation_sberbank_calculate = yes } if = { limit = { has_completed_focus = SOV_economic_mts } SOV_capitalisation_mts_calculate = yes } if = { limit = { has_completed_focus = SOV_economic_vtb } SOV_capitalisation_vtb_calculate = yes } if = { limit = { has_completed_focus = SOV_economic_alrosa } SOV_capitalisation_alrosa_calculate = yes } SOV_recalculate_capitalisation_modifier = yes } #SEPARATIST UPDATE if = { limit = { is_ai = no } SUB_update_separatism_stability = yes SUB_update_separatism_rebellion = yes } } } #ROOT is new controller #FROM is old controller #FROM.FROM is the state on_state_control_changed = { effect = { if = { limit = { FROM.FROM = { state = 934 has_dynamic_modifier = { modifier = SOV_const_rebels } } NOT = { tag = SOV } } FROM.FROM = { remove_dynamic_modifier = { modifier = SOV_const_rebels } } } if = { limit = { FROM.FROM = { state = 652 } } if = { limit = { tag = SOV NOT = { has_country_flag = SOV_moscow_no_more } FROM.FROM = { NOT = { has_dynamic_modifier = { modifier = MSC_mayor_modifier } } } } FROM.FROM = { add_dynamic_modifier = { modifier = MSC_mayor_modifier } } } else_if = { limit = { NOT = { tag = SOV } FROM.FROM = { has_dynamic_modifier = { modifier = MSC_mayor_modifier } } } FROM.FROM = { remove_dynamic_modifier = { modifier = MSC_mayor_modifier } } } } } } # Deferred handoff for Warsaw Pact coup decisions. The coup decision flags the # target with SOV_warsaw_pact_pending_puppet and stores the overlord's id so the # overlord can puppet the country only after the communist side wins the civil # war. This avoids creating an unwinnable mid-civil-war puppet relationship. on_civil_war_end = { effect = { if = { limit = { has_country_flag = SOV_warsaw_pact_pending_puppet } ROOT = { clr_country_flag = SOV_warsaw_pact_pending_puppet news_event = { hours = 1 id = sov_warsaw_pact.4 } var:SOV_warsaw_pact_overlord_id = { set_autonomy = { target = PREV autonomy_state = autonomy_warsaw end_wars = no end_civil_wars = yes } country_event = sov_warsaw_pact.5 } clear_variable = SOV_warsaw_pact_overlord_id } } } } }