# Author(s): LordBogdanoff # Subject is neither in rebellion nor scheduled for destruction. # Replaces the 4-line NOT = { flag_A flag_B } pattern which evaluates as # NOT(A AND B) — i.e. "not both set" — when the intent is "neither set". SOV_subject_not_rebelling_or_destroyed = { NOT = { has_country_flag = SUB_subject_rebellion_flag } NOT = { has_country_flag = SUB_subject_destroy_flag } } # Common eligibility check for a subject becoming an RF governorate. SOV_can_be_governorate = { influence_higher_50 = yes is_subject_of = SOV NOT = { has_autonomy_state = autonomy_governorate_rf } } SOV_targeted_country_has_more_than_10_percent_influence = { any_of = { array = influence_array value = v index = i var:v = { tag = SOV } check_variable = { influence_array_val^i > 9.999 } } } SOV_targeted_country_has_more_than_20_percent_influence = { any_of = { array = influence_array value = v index = i var:v = { tag = SOV } check_variable = { influence_array_val^i > 19.999 } } } SOV_targeted_country_has_more_than_30_percent_influence = { any_of = { array = influence_array value = v index = i var:v = { tag = SOV } check_variable = { influence_array_val^i > 29.999 } } } SOV_cis_countries_available = { any_country_of = { target = { BLR AZE ARM UKR MLV TRK TAJ KYR GEO KAZ LAT LIT EST PMR SOO ABK } has_idea = CIS_member_state_idea OR = { is_subject = no is_subject_of = SOV } NOT = { is_in_faction = yes } } } SOV_russian_empire_create_governorates_availables = { # Each branch: SOV has completed the enabling focus AND at least one # of the targeted subjects meets the common governorate eligibility. OR = { AND = { SOV = { has_completed_focus = SOV_zhirinovsky_secure_central_asia } any_country_of = { target = { KAZ TRK UZB KYR TAJ } SOV_can_be_governorate = yes } } AND = { SOV = { has_completed_focus = SOV_claim_finland } FIN = { SOV_can_be_governorate = yes } } AND = { SOV = { has_completed_focus = SOV_question_of_poland } POL = { SOV_can_be_governorate = yes } } AND = { SOV = { OR = { has_completed_focus = SOV_zhirinovsky_attack_ukraha has_completed_focus = SOV_zhirinovsky_attack_ruthenia } } UKR = { SOV_can_be_governorate = yes } } AND = { SOV = { has_completed_focus = SOV_help_armenia } ARM = { SOV_can_be_governorate = yes } } AND = { SOV = { has_completed_focus = SOV_crusade_antioch } LEB = { SOV_can_be_governorate = yes } } AND = { SOV = { has_completed_focus = SOV_crusade_isr } ISR = { SOV_can_be_governorate = yes } } AND = { SOV = { has_completed_focus = SOV_crusade_assiryan } SYR = { SOV_can_be_governorate = yes } } AND = { SOV = { has_completed_focus = SOV_crusade_egy } EGY = { SOV_can_be_governorate = yes } } AND = { SOV = { has_completed_focus = SOV_zheltoros } MON = { SOV_can_be_governorate = yes } } AND = { SOV = { has_completed_focus = SOV_czechoslovak_region } any_country_of = { target = { CZE SLO } SOV_can_be_governorate = yes } } AND = { SOV = { has_completed_focus = SOV_governorates } any_country_of = { target = { BLR NOV CRM EST LAT LIT GEO AZE } SOV_can_be_governorate = yes } } } } SOV_russian_empire_annex_governorates_availables = { custom_trigger_tooltip = { tooltip = SOV_available_governorate_annex_tt any_subject_country = { has_autonomy_state = autonomy_governorate_rf influence_higher_50 = yes } } } SOV_russian_empire_destroy_republic_povoljie_availables = { OR = { any_subject_country = { OR = { original_tag = TAT original_tag = BSH original_tag = MEL original_tag = MOV original_tag = UDM original_tag = CHU } SOV_subject_not_rebelling_or_destroyed = yes } AND = { SOV = { owns_state = 661 } TAT = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 664 } BSH = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 1134 } MEL = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 1132 } MOV = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 1133 } UDM = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 1135 } CHU = { SOV_subject_not_rebelling_or_destroyed = yes } } } } SOV_russian_empire_destroy_republic_caucas_availables = { OR = { any_subject_country = { OR = { original_tag = CHE original_tag = DAG original_tag = ADY original_tag = KCC original_tag = ING original_tag = KBK } SOV_subject_not_rebelling_or_destroyed = yes } AND = { SOV = { owns_state = 672 } CHE = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 671 } DAG = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 1127 } ADY = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 1125 } KCC = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 1126 } ING = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 674 } KBK = { SOV_subject_not_rebelling_or_destroyed = yes } } } } SOV_russian_empire_destroy_republic_siberia_availables = { OR = { any_subject_country = { OR = { original_tag = YAK original_tag = TUV original_tag = BRY original_tag = KOM original_tag = ALT original_tag = YAM original_tag = NEE original_tag = CKK original_tag = KHS original_tag = KHM } SOV_subject_not_rebelling_or_destroyed = yes } AND = { SOV = { owns_state = 688 } YAK = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 1011 } TUV = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 686 } BRY = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 648 } KOM = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 684 } ALT = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 679 } YAM = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 683 } NEE = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 689 } CKK = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 1065 } KHS = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 678 } KHM = { SOV_subject_not_rebelling_or_destroyed = yes } } } } SOV_russian_empire_destroy_republic_other_availables = { OR = { any_subject_country = { OR = { original_tag = KAE original_tag = KLM } SOV_subject_not_rebelling_or_destroyed = yes } AND = { SOV = { owns_state = 1128 } KAE = { SOV_subject_not_rebelling_or_destroyed = yes } } AND = { SOV = { owns_state = 1107 } KLM = { SOV_subject_not_rebelling_or_destroyed = yes } } } } SOV_separatism_caucas_availables = { OR = { CHE = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 672 } SUB_is_rf_lesser_subject = yes } check_variable = { CHE.subjectinped > 15 } } ING = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1126 } SUB_is_rf_lesser_subject = yes } check_variable = { ING.subjectinped > 15 } } KBK = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 674 } SUB_is_rf_lesser_subject = yes } check_variable = { KBK.subjectinped > 15 } } KCC = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1125 } SUB_is_rf_lesser_subject = yes } check_variable = { KCC.subjectinped > 15 } } ADY = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1127 } SUB_is_rf_lesser_subject = yes } check_variable = { ADY.subjectinped > 15 } } DAG = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 671 } SUB_is_rf_lesser_subject = yes } check_variable = { DAG.subjectinped > 15 } } } } SOV_separatism_volga_availables = { OR = { TAT = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 661 } SUB_is_rf_lesser_subject = yes } check_variable = { TAT.subjectinped > 15 } } BSH = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 664 } SUB_is_rf_lesser_subject = yes } check_variable = { BSH.subjectinped > 15 } } MEL = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1134 } SUB_is_rf_lesser_subject = yes } check_variable = { MEL.subjectinped > 15 } } MOV = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1132 } SUB_is_rf_lesser_subject = yes } check_variable = { MOV.subjectinped > 15 } } UDM = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1133 } SUB_is_rf_lesser_subject = yes } check_variable = { UDM.subjectinped > 15 } } CHU = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1135 } SUB_is_rf_lesser_subject = yes } check_variable = { CHU.subjectinped > 15 } } } } SOV_separatism_siberia_availables = { OR = { KOM = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 648 } SUB_is_rf_lesser_subject = yes } check_variable = { KOM.subjectinped > 15 } } NEE = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 683 } SUB_is_rf_lesser_subject = yes } check_variable = { NEE.subjectinped > 15 } } TUV = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1011 } SUB_is_rf_lesser_subject = yes } check_variable = { TUV.subjectinped > 15 } } YAM = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 679 } SUB_is_rf_lesser_subject = yes } check_variable = { YAM.subjectinped > 15 } } KHM = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 678 } SUB_is_rf_lesser_subject = yes } check_variable = { KHM.subjectinped > 15 } } KHS = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1065 } SUB_is_rf_lesser_subject = yes } check_variable = { KHS.subjectinped > 15 } } BRY = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 686 } SUB_is_rf_lesser_subject = yes } check_variable = { BRY.subjectinped > 15 } } YAK = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 688 } SUB_is_rf_lesser_subject = yes } check_variable = { YAK.subjectinped > 15 } } ALT = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 684 } SUB_is_rf_lesser_subject = yes } check_variable = { ALT.subjectinped > 15 } } } } SOV_separatism_other_availables = { OR = { KUB = { SUB_is_active_rf_lesser_subject = yes check_variable = { KUB.subjectinped > 15 } } KAE = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1128 } SUB_is_rf_lesser_subject = yes } check_variable = { KAE.subjectinped > 15 } } KLM = { NOT = { has_country_flag = SUB_subject_rebellion_flag } OR = { SOV = { owns_state = 1107 } SUB_is_rf_lesser_subject = yes } check_variable = { KLM.subjectinped > 15 } } URA = { SUB_is_active_rf_lesser_subject = yes check_variable = { URA.subjectinped > 15 } } } } SOV_soviet_russia_annex_republic_availables = { any_country_of = { target = { LAT LIT EST BLR UKR AZE ARM GEO KAZ KYR UZB TRK TAJ MLV SOO ABK NKR } is_subject_of = SOV influence_higher_50 = yes emerging_communist_state_are_in_power = yes } } svr_visible_trigger = { has_country_flag = SOV_svr_open has_completed_focus = SOV_svr } SOV_has_empowered_fsb = { OR = { has_completed_focus = SOV_empower_siloviki has_completed_focus = SOV_jirik_fear } } SOV_has_internal_troops = { has_completed_focus = SOV_inner_army NOT = { OR = { has_completed_focus = SOV_jirik_fear has_completed_focus = SOV_rosgvardia has_completed_focus = SOV_demilitarize_mia } } } warsaw_pact_svr_visible_trigger = { emerging_communist_state_are_in_power = yes svr_visible_trigger = yes } nationalist_svr_visible_trigger = { OR = { nationalist_monarchists_are_in_power = yes nationalist_right_wing_populists_are_in_power = yes } svr_visible_trigger = yes } SOV_has_fixed_the_economy = { custom_trigger_tooltip = { tooltip = SOV_has_fixed_the_economy_tt NOT = { OR = { has_idea = SOV_broken_economy_idea_1 has_idea = SOV_broken_economy_idea_2 has_idea = SOV_broken_economy_idea_3 } } } } SOV_constantine_petrov_trigger = { custom_trigger_tooltip = { tooltip = jreci_rule nationalist_military_junta_are_in_power = yes has_country_leader = { name = "Constantine Petrov" ruling_only = yes } } } SOV_has_updated_the_outdated_military = { custom_trigger_tooltip = { tooltip = SOV_has_updated_the_military_trigger_TT NOT = { OR = { has_idea = SOV_outdated_army_idea has_idea = SOV_outdated_army_idea_1 has_idea = SOV_outdated_army_idea_2 has_idea = SOV_outdated_army_idea_3 } } } } # The awarded idea is the authoritative outcome; no parallel flag is kept. SOV_computing_sovereignty_outcome_settled = { OR = { has_idea = SOV_computing_sovereignty_sovereign_computing_stack has_idea = SOV_computing_sovereignty_chinese_substitution has_idea = SOV_computing_sovereignty_parallel_import_economy has_idea = SOV_computing_sovereignty_mature_node_specialization } } SOV_moex_is_nationalized = { OR = { emerging_communist_state_are_in_power = yes neutrality_neutral_communism_are_in_power = yes AND = { nationalist_monarchists_are_in_power = yes has_completed_focus = SOV_nationalize } AND = { nationalist_right_wing_populists_are_in_power = yes has_completed_focus = SOV_nationalize } AND = { nationalist_fascist_are_in_power = yes has_completed_focus = SOV_nazbols_natiolalize } AND = { nationalist_monarchists_are_in_power = yes nationalist_fascist_are_in_coalition = yes has_completed_focus = SOV_nazbols_natiolalize } AND = { nationalist_right_wing_populists_are_in_power = yes nationalist_fascist_are_in_coalition = yes has_completed_focus = SOV_nazbols_natiolalize } } } SOV_ai_alt_path = { OR = { has_global_flag = SOV_OLIGARCHS_FOCUS_PATH has_global_flag = SOV_LIBERAL_REFORM_FOCUS_PATH has_global_flag = SOV_COMMUNIST_REVIVAL_FOCUS_PATH has_global_flag = SOV_NATIONALIST_FOCUS_PATH has_global_flag = SOV_NATIONAL_BOLSHEVIK_FOCUS_PATH has_global_flag = SOV_MEDVEDEV_HARDLINE_FOCUS_PATH has_global_flag = SOV_MEDVEDEV_LIBERAL_FOCUS_PATH } } SOV_ai_any_path = { OR = { has_global_flag = SOV_HISTORICAL_FOCUS_PATH SOV_ai_alt_path = yes } } SOV_ai_historical_path = { OR = { has_global_flag = SOV_HISTORICAL_FOCUS_PATH AND = { is_historical_focus_on = yes NOT = { SOV_ai_alt_path = yes } } } } SOV_ai_not_historical_path = { SOV_ai_alt_path = yes } SOV_ai_not_oligarchs_path = { NOT = { has_global_flag = SOV_OLIGARCHS_FOCUS_PATH } OR = { is_historical_focus_on = yes SOV_ai_any_path = yes } } SOV_ai_not_liberal_reform_path = { NOT = { has_global_flag = SOV_LIBERAL_REFORM_FOCUS_PATH } OR = { is_historical_focus_on = yes SOV_ai_any_path = yes } } SOV_ai_not_communist_revival_path = { NOT = { has_global_flag = SOV_COMMUNIST_REVIVAL_FOCUS_PATH } OR = { is_historical_focus_on = yes SOV_ai_any_path = yes } } SOV_ai_not_nationalist_path = { NOT = { has_global_flag = SOV_NATIONALIST_FOCUS_PATH } OR = { is_historical_focus_on = yes SOV_ai_any_path = yes } } SOV_ai_not_national_bolshevik_path = { NOT = { has_global_flag = SOV_NATIONAL_BOLSHEVIK_FOCUS_PATH } OR = { is_historical_focus_on = yes SOV_ai_any_path = yes } } SOV_ai_medvedev_path = { OR = { has_global_flag = SOV_MEDVEDEV_HARDLINE_FOCUS_PATH has_global_flag = SOV_MEDVEDEV_LIBERAL_FOCUS_PATH } } SOV_ai_not_medvedev_path = { NOT = { SOV_ai_medvedev_path = yes } OR = { is_historical_focus_on = yes SOV_ai_any_path = yes } } SOV_ai_putin_spine_path = { OR = { SOV_ai_historical_path = yes SOV_ai_medvedev_path = yes } } SOV_ai_not_putin_spine_path = { NOT = { SOV_ai_putin_spine_path = yes } OR = { is_historical_focus_on = yes SOV_ai_any_path = yes } } SOV_ai_not_medvedev_hardline_path = { NOT = { has_global_flag = SOV_MEDVEDEV_HARDLINE_FOCUS_PATH } OR = { is_historical_focus_on = yes SOV_ai_any_path = yes } } SOV_ai_not_medvedev_liberal_path = { NOT = { has_global_flag = SOV_MEDVEDEV_LIBERAL_FOCUS_PATH } OR = { is_historical_focus_on = yes SOV_ai_any_path = yes } }