#Russia2 decision categories
SOV_russia_reworked_load_decision_category_russia2 = {

	allowed = {
		original_tag = SOV
	}

	visible = {
		always = no
	}
}

SOV_great_purge_decisions = {

	icon = GFX_great_purge_decision_category

	picture = GFX_decision_cat_picture_fatherland_front

	scripted_gui = sov_great_purge_decisions_scripted_gui

	visible_when_empty = yes

    allowed = {
     	original_tag = SOV
    }

	priority = 100

    visible = {
		has_government = communism
		is_subject = no
		OR = {
			has_idea = SOV_Great_purge_idea_russia2
			has_idea = SOV_Remnants_purge
			has_completed_focus = SOV_great_purge2
		}
    }
}

SOV_democratic_help = {

	icon = GFX_decision_category_generic_democracy

	picture = GFX_decision_cat_picture_chi_political_support

    allowed = {
     	original_tag = SOV
    }

    available = {

    }

	priority = 30

    visible = {
		has_government = democratic
    }
}

SOV_move_capital_neutrality = {

	icon = GFX_decision_category_generic_monarchism

	picture = GFX_move_capital_decision

    allowed = {
     	original_tag = SOV
    }

    available = {

    }

	priority = 20

    visible = {
		has_government = neutrality
		has_global_flag = second_russian_civil_war_over
    }
}

SOV_europe_expansion = {

	icon = GFX_decision_category_border_war

	picture = GFX_decision_cat_picture_macedonian_organizations

    allowed = {
     	original_tag = SOV
    }

	priority = 25

    available = {
    	has_completed_focus = SOV_russian_expansion
    }

    visible = {
		has_completed_focus = SOV_russian_expansion
		NOT = {
			has_government = anarchy
			has_completed_focus = SOV_preemptive_coup
			has_completed_focus = SOV_reunification
			has_completed_focus = SOV_freedom_all
		}
		is_subject = no
    }
}

SOV_europe_expansion_democratic = {

	icon = GFX_decision_category_generic_democracy

	picture = GFX_decision_cat_picture_government_in_exile

    allowed = {
     	original_tag = SOV
    }

	priority = 15

    available = {
    	has_completed_focus = SOV_russian_expansion
    }

    visible = {
		has_completed_focus = SOV_russian_expansion
		OR = {
			has_completed_focus = SOV_preemptive_coup
			has_completed_focus = SOV_reunification
			has_completed_focus = SOV_freedom_all
		}
		NOT = {
			has_government = anarchy
			has_completed_focus = SOV_united_russia
			has_completed_focus = SOV_abandon_foreign_claims
		}
		has_government = democratic
		is_subject = no
    }
}

SOV_integrate_the_baltics = {

	icon = GFX_decision_category_eng_move_to_secure_the_dominions

	picture = GFX_decision_cat_generic_baltic_federation

	allowed = {
		original_tag = SOV
	}

	priority = 15

	available = {
		has_completed_focus = SOV_russian_expansion
	}

	visible = {
		has_completed_focus = SOV_russian_expansion
		NOT = {
			has_government = anarchy
			has_completed_focus = SOV_freedom_all
		}
	}
}

SOV_unhappy_peasants = {

	icon = GFX_decision_generic_ignite_civil_war

	picture = GFX_Russian_peasants_rebellion

	allowed = {
		original_tag = SOV
	}

	available = {
		hidden_trigger = {
			NOT = {
				has_idea = SOV_Happy_peasants
			}
		}
	}

	priority = 20

	visible = {
		OR = {
			has_idea = SOV_Unhappy_peasants1
			has_idea = SOV_Unhappy_peasants2
			has_idea = SOV_Unhappy_peasants3
			has_idea = SOV_Unhappy_peasants4
			has_idea = SOV_Unhappy_peasants5
			has_idea = SOV_Unhappy_peasants6
			has_idea = SOV_Regular_peasants_strikes
		}
	}
}

SOV_chinese_war = {

	icon = GFX_decision_category_generic_foreign_policy

	picture = GFX_russian_plane_russia2

	allowed = {
		original_tag = SOV
	}

	available = {
		has_completed_focus = SOV_weapons_china
	}

	priority = 10

	visible = {
		has_completed_focus = SOV_weapons_china
		OR = {
			event_target:WTT_current_china_leader = {
				has_war_with = JAP
			}
			PRC = {
				has_war_with = JAP
			}
		}
	}
}

SOV_minor_communist_countries_europe = {

	icon = GFX_decision_category_sov_great_patriotic_war

	picture = GFX_decision_cat_picture_chi_political_support

	allowed = {
		original_tag = SOV
	}

	priority = 20

	available = {
		has_completed_focus = SOV_communist_minorities_europe
	}

	visible = {
		has_completed_focus = SOV_communist_minorities_europe
	}
}

SOV_help_spain = {

	icon = GFX_decision_category_spr_reassert_american_dominance

	picture = GFX_decision_cat_picture_spr_civil_war_offensives

	allowed = {
		original_tag = SOV
	}

	priority = 10

	available = {
		has_completed_focus = SOV_weapons_spain
	}

	visible = {
		has_completed_focus = SOV_weapons_spain
	}
}

SOV_mission_op = {

	icon = GFX_decision_category_generic_propaganda
}

SOV_invite_revolution = {

	icon = GFX_decision_category_sov_great_patriotic_war

	picture = GFX_decision_cat_picture_chi_political_support

	allowed = {
		original_tag = SOV
	}

	available = {
		has_completed_focus = SOV_revolution_to_the_utmost
	}

	priority = 30

	visible = {
		is_faction_leader = yes
		has_completed_focus = SOV_revolution_to_the_utmost
		any_country = {
			has_country_flag = liberated_by_sov
		}
		has_government = communism
	}
}

SOV_proclaim_revolution = {

	icon = GFX_decision_category_sov_great_patriotic_war

	picture = GFX_decision_cat_picture_chi_political_support

	scripted_gui = sov_international_revolution_scripted_gui

	allowed = {
		original_tag = SOV
	}

	priority = 35

	available = {
		has_country_leader = {
			character = SOV_Leon_trotsky
			ruling_only = yes
		}
		is_faction_leader = yes
	}

	visible = {
		has_completed_focus = SOV_consolidate_true_communism
		has_government = communism
		is_major = yes
		NOT = {
			has_country_flag = SOV_ended_revolution
			has_cosmetic_tag = SOV_proletarian_union
		}
	}
}

SOV_invest_russian_sphere = {

	icon = GFX_decision_category_generic_economy

	picture = GFX_decision_cat_generic_mefo_bills

	allowed = {
		original_tag = SOV
	}

	priority = 40

	available = {
		has_completed_focus = SOV_investment_russian_sphere
		has_government = democratic
		is_faction_leader = yes
	}

	visible = {
		has_completed_focus = SOV_investment_russian_sphere
		NOT = {
			OR = {
				has_country_flag = sov_started_reunification
				has_country_flag = sov_finished_reunification
			}
			has_completed_focus = SOV_end_investments
		}
		has_government = democratic
		is_faction_leader = yes
	}
}

SOV_the_second_civil_war_fn = {

	icon = GFX_decision_category_SOV_civil_war

	picture = GFX_second_civil_war_decision_russia2

	visibility_type = map_and_decisions_view

	priority = 100

	on_map_area = {
		name = SOV_the_second_civil_war_fn_tt
		zoom = 800

		target_array = sov_white_guard_states
	}

	allowed = {
		original_tag = SOV
	}

	available = {
		has_country_flag = second_civil_war_mission
	}

	visible = {
		has_country_flag = second_civil_war_mission
	}
}

SOV_deal_with_britain = {

	icon = GFX_decision_category_border_conflicts

	picture = GFX_naval_blockade_english_russia2

	allowed = {
		original_tag = SOV
	}

	priority = 25

	available = {
		is_subject = no
	}

	visible = {
		has_idea = SOV_Blockaded_by_eng
		has_completed_focus = SOV_those_who_threaten_democracy
		NOT = {
			has_country_flag = dealt_with_britain
		}
	}
}

SOV_expand_entente_decision = {

	icon = GFX_decision_category_generic_foreign_policy

	picture = GFX_decision_cat_picture_concessions_to_the_trade_unions

	allowed = {
		original_tag = SOV
	}

	priority = 20

	available = {
		is_subject = no
		OR = {
			is_faction_leader = yes
			AND = {
				FRA = {
					is_in_faction_with = ROOT
					is_faction_leader = yes
				}
			}
		}
	}

	visible = {
		OR = {
			has_government = democratic
			has_government = neutrality
		}
		is_subject = no
		has_completed_focus = SOV_reform_entente
	}
}

SOV_perpetual_defense_liberty_decisions = {

	icon = GFX_decision_category_usa_congress

	picture = GFX_perpetual_defense_russia2

	allowed = {
		original_tag = SOV
	}

	priority = 26

	available = {

	}

	visible = {
		has_government = democratic
		is_subject = no
		has_completed_focus = SOV_perpetual_defense_liberty
	}
}

SOV_control_of_church = {

	icon = GFX_decision_category_eng_appeal_to_imperial_loyalists

	picture = GFX_control_church_russia2

	allowed = {
		original_tag = SOV
	}

	priority = 25

	available = {
		if = {
			limit = {
				has_country_flag = church_last_reform
			}
			custom_trigger_tooltip = {
				tooltip = SOV_control_of_church_tt
				has_country_flag = {
					flag = church_last_reform
					days > 70
				}
			}
		}
	}

	visible = {
		OR = {
			has_government = neutrality
			has_government = fascism
		}
		has_completed_focus = SOV_control_church
		has_idea = SOV_Church_power
	}
}

SOV_destroy_communist_resistance = {

	icon = GFX_decision_category_sov_great_patriotic_war

	picture = GFX_communist_resistance_russia2

	priority = 30

	allowed = {
		original_tag = SOV
	}

	available = {
		has_completed_focus = SOV_destroy_communist
	}

	visible = {
		has_completed_focus = SOV_destroy_communist
		has_idea = SOV_Communist_resistance3
		has_government = neutrality
	}
}

SOV_buy_guns_foreign_country = {

	icon = GFX_decision_category_generic_arms_trade

	priority = 20

	allowed = {
		original_tag = SOV
	}

	available = {
		has_completed_focus = SOV_buying_equipment
	}

	visible = {
		has_completed_focus = SOV_buying_equipment
	}
}

SOV_unite_slavic_nation_ultimatum_decision = {

	icon = GFX_decision_category_eng_move_to_secure_the_dominions

	priority = 30

	allowed = {
		original_tag = SOV
	}

	visible = {
		has_completed_focus = SOV_unite_slavic_nations
		has_government = neutrality
	}
}

SOV_defend_slavic_borders_category = {

	icon = GFX_decision_category_border_war

	priority = 15

	allowed = {
		original_tag = SOV
	}

	available = {
		has_completed_focus = SOV_preemptive_strike_middle_east
	}

	visible = {
		NOT = {
			is_subject = yes
		}
		has_completed_focus = SOV_preemptive_strike_middle_east
		has_completed_focus = SOV_slavic_empire
		has_government = neutrality
	}
}

SOV_appeasement_communist = {

	icon = GFX_decision_category_generic_foreign_policy

	picture = GFX_decision_cat_picture_government_in_exile

	priority = 30

	allowed = {
		original_tag = SOV
	}

	available = {
		has_completed_focus = SOV_appease_communist
	}

	visible = {
		has_completed_focus = SOV_appease_communist
		has_government = neutrality
		OR = {
			has_idea = SOV_Communist_resistance2
			has_idea = SOV_Communist_resistance4
			has_idea = SOV_Communist_resistance5
			has_idea = SOV_Communist_resistance6
			has_idea = SOV_Communist_resistance7
		}
	}
}

SOV_transfer_of_power = {

	icon = GFX_decision_category_generic_foreign_policy

	allowed = {
		original_tag = SOV
	}

	priority = 10

	visible = {
		has_completed_focus = SOV_firm_hand
		has_government = neutrality
		is_subject = no
		has_full_control_of_state = 231
		NOT = {
			has_country_leader = {
				character = SOV_Pavel_bermondt_avalov
				ruling_only = yes
			}
		}
		has_country_flag = {
			flag = andrey_vlasov_in_power_count
			days > 100
		}
	}
}

SOV_monarchy_congress = {

	icon = GFX_decision_category_usa_congress

	picture = GFX_decision_cat_picture_government_in_exile

	allowed = {
		original_tag = SOV
	}

	priority = 40

	available = {

	}

	visible = {
		has_country_flag = SOV_has_constitutional_monarchy
		has_government = neutrality
		is_subject = no
	}
}

SOV_reintegrate_lost_states_decisions = {

	icon = GFX_decision_category_eng_move_to_secure_the_dominions

	picture = GFX_reintegrate_lost_state_russia2

	allowed = {
		original_tag = SOV
	}

	priority = 30

	available = {

	}

	visible = {
		has_completed_focus = SOV_reintegrate_lost_state
		has_government = neutrality
		is_subject = no
		OR = {
			UKR = {
				is_subject_of = SOV
			}
			BLR = {
				is_subject_of = SOV
			}
			KAZ = {
				is_subject_of = SOV
			}
			TMS = {
				is_subject_of = SOV
			}
			GEO = {
				is_subject_of = SOV
			}
			AZR = {
				is_subject_of = SOV
			}
			ARM = {
				is_subject_of = SOV
			}
			CRI = {
				is_subject_of = SOV
			}
		}
		is_ai = no
	}
}

SOV_reintegrate_lost_states_decisions_ai = {

	icon = GFX_decision_category_eng_move_to_secure_the_dominions

	picture = GFX_reintegrate_lost_state_russia2

	allowed = {
		original_tag = SOV
	}

	available = {

	}

	visible = {
		has_completed_focus = SOV_reintegrate_lost_state
		has_government = neutrality
		is_subject = no
		OR = {
			UKR = {
				is_subject_of = SOV
			}
			BLR = {
				is_subject_of = SOV
			}
			KAZ = {
				is_subject_of = SOV
			}
			TMS = {
				is_subject_of = SOV
			}
			GEO = {
				is_subject_of = SOV
			}
			AZR = {
				is_subject_of = SOV
			}
			ARM = {
				is_subject_of = SOV
			}
		}
		is_ai = yes
	}
}

SOV_imperial_obligations = {

	icon = GFX_decision_category_eng_move_to_secure_the_dominions

	allowed = {
		original_tag = SOV
	}

	available = {
		has_idea = SOV_Tsar_we_trust
		has_government = neutrality
		is_subject = no
	}

	priority = 5

	visible = {
		always = no
		has_idea = SOV_Tsar_we_trust
		has_government = neutrality
		is_subject = no
		any_country = {
			is_subject_of = SOV
			NOT = {
				has_autonomy_state = autonomy_imperial_governorates
			}
		}
	}
}

SOV_second_civil_war_during_bonus = {

	icon = GFX_decision_category_SOV_civil_war

	picture = GFX_second_civil_war_decision_russia2

	priority = 30

	allowed = {
		original_tag = SOV
	}

	available = {
		has_completed_focus = SOV_war_against_bolshevism
	}

	visible = {
		has_completed_focus = SOV_war_against_bolshevism
		has_global_flag = second_russian_civil_war_in_progress
	}
}

SOV_fascist_women_movement_decisions = {

	icon = GFX_decision_category_ger_reichskommissariats

	picture = GFX_Russian_womens_fascist_movement

	priority = 40

	allowed = {
		original_tag = SOV
	}

	available = {
		#can't put anything because it'll mess up the mission :)
	}

	visible = {
		has_completed_focus = SOV_russia_women_fascist_movement
		OR = {
			has_idea = SOV_Women_fascist_movement
			has_idea = SOV_Otdel_bezopasnosti
		}
		has_government = fascism
	}
}

SOV_custom_formable_nations_endgame = {

	icon = GFX_decision_category_eng_move_to_secure_the_dominions

	priority = 15

	available = {
		has_government = fascism
		is_subject = no
	}

	visible = {
		has_government = fascism
		has_completed_focus = SOV_the_thoughts_of_many
	}
}

SOV_focus_fascist_russia_europe = {

	icon = GFX_decision_category_ger_military_buildup

	picture = GFX_focus_fascist_russia2

	priority = 10

	allowed = {
		original_tag = SOV
	}

	visible = {
		has_country_flag = SOV_fascist_focus_on_europe
		has_government = fascism
	}
}

SOV_focus_fascist_russia_asia = {

	icon = GFX_decision_category_ger_military_buildup

	picture = GFX_focus_fascist_russia2

	priority = 10

	allowed = {
		original_tag = SOV
	}

	visible = {
		has_country_flag = SOV_fascist_focus_on_asia
		has_government = fascism
	}
}

SOV_focus_fascist_russia_america = {

	icon = GFX_decision_category_ger_military_buildup

	picture = GFX_focus_fascist_russia2

	priority = 10

	allowed = {
		original_tag = SOV
	}

	visible = {
		has_country_flag = SOV_fascist_focus_on_america
		has_government = fascism
	}
}

SOV_focus_fascist_defense = {

	icon = GFX_decision_category_ger_military_buildup

	picture = GFX_russian_plane_russia2

	priority = 10

	allowed = {
		original_tag = SOV
	}

	visible = {
		has_country_flag = SOV_fascist_focus_on_defense
		has_government = fascism
	}
}

SOV_expand_russian_dominance = {

	icon = GFX_decision_category_usa_intervention_mandate

	picture = GFX_reintegrate_lost_state_russia2

	priority = 10

	allowed = {
		original_tag = SOV
	}

	visible = {
		has_completed_focus = SOV_new_russian_era
		has_government = fascism
		is_subject = no
	}
}

SOV_build_up_border_from = {

	icon = GFX_decision_category_ger_military_buildup

	picture = GFX_focus_fascist_russia2

	priority = 15

	visible = {
		OR = {
			has_country_flag = is_target_of_SOV_fascist
			has_country_flag = is_target_of_SOV_democratic
		}
	}
}

SOV_third_rome_decision_categories = {

	icon = GFX_decision_category_generic_fascism

	priority = 30

	visible = {
		has_completed_focus = SOV_the_third_rome_russia2
		is_subject = no
	}
}

SOV_legacy_of_byzantine = {

	icon = GFX_decision_category_eng_appeal_to_imperial_loyalists

	picture = GFX_decision_cat_generic_byzantine_empire

	priority = 25

	visible = {
		has_completed_focus = SOV_the_third_rome_russia2
		is_subject = no
		has_country_flag = take_legacy_byzantine
	}
}

SOV_seek_greater_ambition = {

	icon = GFX_decision_category_generic_fascism

	priority = 30

	visible = {
		has_completed_focus = SOV_seek_greater_ambitions
		is_subject = no
	}
}

SOV_spread_america_anasta = {

	icon = GFX_decision_category_usa_congress

	priority = 25

	visible = {
		has_country_flag = has_formed_greater_russia
		is_subject = no
	}
}

SOV_balkanize_germany = {

	icon = GFX_decision_category_border_war

	priority = 10

	visible = {
		has_completed_focus = SOV_order_with_discipline
		is_subject = no
	}
}

SOV_balkanize_japan = {

	icon = GFX_decision_category_border_war

	priority = 10

	visible = {
		has_completed_focus = SOV_the_world_anew
		is_subject = no
	}
}

SOV_invite_neighbours = {

	icon = GFX_decision_category_generic_foreign_policy

	priority = 25

	visible = {
		is_subject = no
		has_government = fascism
		has_idea = SOV_Closed_alliance
	}

}

SOV_impose_order_subjects = {

	allowed = {
		original_tag = SOV
	}

	priority = 5

	available = {
		has_idea = SOV_Impose_order
		has_government = fascism
		is_subject = no
	}

	visible = {
		always = no
		has_idea = SOV_Impose_order
		has_government = fascism
		is_subject = no
		any_country = {
			is_subject_of = SOV
			NOT = {
				has_autonomy_state = autonomy_state_magistrate
			}
		}
	}
}

SOV_end_second_civil_war = {

	icon = GFX_decision_category_army_reform

	picture = GFX_second_civil_war_decision_russia2

	available = {
		NOT = {
			country_exists = SOJ
		}
	}

	visible = {
		NOT = {
			has_war_with = SOJ
			country_exists = SOJ
		}
		has_global_flag = second_russian_civil_war_in_progress
	}
}

SOV_help_manchuria = {

	icon = GFX_decision_category_power_struggle

	available = {

	}

	priority = 25

	visible = {
		country_exists = MAN
		NOT = {
			has_war_with = MAN
		}
		has_country_flag = opened_manchurian_border
		has_government = fascism
		is_subject = no
	}
}

SOV_fourth_international_council = {

	icon = GFX_decision_category_generic_communism

	picture = GFX_4th_international_decision

	allowed = {
		original_tag = SOV
	}

	priority = 1

	available = {
		is_faction_leader = yes
	}

	visible = {
		has_government = communism
		has_completed_focus = SOV_fourth_int_council
		is_subject = no
	}
}

SOV_communist_influence_international = {

	icon = GFX_decision_category_generic_communism

	picture = GFX_4th_international_decision

	allowed = {
		NOT = {
			tag = SOV
		}
	}

	priority = 50

	visible = {
		NOT = {
			has_government = communism
		}
		OR = {
			has_idea = SOV_Communist_influence_international_1
			has_idea = SOV_Communist_influence_international_2
			has_idea = SOV_Communist_influence_international_3
		}
	}
}

SOV_iron_curtain = {

	icon = GFX_decision_category_generic_communism

	picture = GFX_Iron_curtain_decision

	allowed = {
		original_tag = SOV
	}

	priority = 30

	available = {
		is_faction_leader = yes
	}

	visible = {
		has_government = communism
		has_completed_focus = SOV_iron_curtain_focus
		is_subject = no
	}
}

SOV_target_iron_curtain = {

	icon = GFX_decision_category_generic_communism

	picture = GFX_Iron_curtain_decision

	allowed = {
		has_country_flag = target_civil_war_iron_curtain
	}

	priority = 30

	visible = {
		NOT = {
			has_government = communism
		}
		has_country_flag = target_civil_war_iron_curtain
	}
}

SOV_the_black_revolution = {

	icon = GFX_decision_category_sov_great_patriotic_war

	picture = GFX_decision_cat_picture_spr_the_inevitable_civil_war

	scripted_gui = sov_the_black_revolution_decision_gui

	allowed = {
		original_tag = SOV
	}

	visible_when_empty = no

	visibility_type = map_and_decisions_view

	priority = 20

	on_map_area = {
		name = SOV_infiltrate_state
		zoom = 400

		target_array = SOV.sov_get_black_revolution_states
	}

	visible = {
		NOT = {
			has_completed_focus = SOV_end_revoltion_anarchy
			has_government = anarchy
		}
		has_completed_focus = SOV_black_guard
	}
}

SOV_supreme_court_decisions = {

	icon = GFX_supreme_court_decision_category

	allowed = {
		original_tag = SOV
	}

	priority = 40

	visible = {
		has_government = democratic
		has_completed_focus = SOV_the_supreme_court
	}
}

SOV_crush_the_anti_revolutionary = {

	icon = GFX_decision_spr_political_assassination

	picture = GFX_second_civil_war_decision_russia2

	allowed = {
		original_tag = SOV
	}

	on_map_area = {
		name = SOV_recon_squad
		zoom = 400

		target_array = SOV.sov_recon_rebel_anarchy_states
	}

	priority = 10

	visible = {
		has_idea = SOV_Anti_revolutionary
		has_government = anarchy
	}
}

SOV_track_stalin_decision = {

	icon = GFX_decision_spr_political_assassination

	picture = GFX_track_stalin_decision

	visible_when_empty = no

	visibility_type = map_and_decisions_view

	priority = 20

	on_map_area = {
		name = SOV_track_stalin_decision_zoom_tt
		zoom = 400

		target_array = global.sov_track_available_states
	}

	allowed = {
		original_tag = SOV
	}

	visible = {
		has_completed_focus = SOV_the_track
		has_government = democratic
		has_country_flag = sov_track_begin
		NOT = {
			has_country_flag = sov_stalin_track_found
		}
	}
}

SOV_banditry_decision = {

	icon = GFX_decision_category_eng_move_to_secure_the_dominions

	picture = GFX_decision_cat_picture_generic_border_conflicts

	allowed = {
		original_tag = SOV
	}

	on_map_area = {
		name = SOV_bandits_great_steppe
		zoom = 400

		target_array = SOV.sov_get_steppe_bandit_states
	}

	on_map_area = {
		name = SOV_bandits_arctic_decision
		zoom = 400

		target_array = SOV.sov_get_arctic_bandit_states
	}

	on_map_area = {
		name = SOV_bandits_far_eastern_decision
		zoom = 400

		target_array = SOV.sov_get_far_east_bandit_states
	}

	on_map_area = {
		name = SOV_bandits_west_siberia_decision
		zoom = 400

		target_array = SOV.sov_get_west_siberia_bandit_states
	}

	on_map_area = {
		name = SOV_bandits_kuban_caucasus_decision
		zoom = 400

		target_array = SOV.sov_get_kuban_caucasus_bandit_states
	}

	on_map_area = {
		name = SOV_bandits_transvolga_region_decision
		zoom = 400

		target_array = SOV.sov_get_transvolga_region_bandit_states
	}

	on_map_area = {
		name = SOV_bandits_western_russia_decision
		zoom = 400

		target_array = SOV.sov_get_western_russia_bandit_states
	}

	visibility_type = map_and_decisions_view

	priority = 10

	visible = {
		has_idea = SOV_Bandits_problem
		has_government = anarchy
		has_completed_focus = SOV_deal_with_banditry
	}
}

SOV_chaos_all_over_russia = {

	icon = GFX_decision_category_generic_crisis

	allowed = {
		original_tag = SOV
	}

	priority = 20

	visible = {
		has_completed_focus = SOV_state_country
		NOT = {
			has_country_flag = order_has_been_restored
			has_country_flag = chaos_has_triumphed
		}
		has_government = anarchy
	}
}

SOV_anarchism_election = {

	icon = GFX_decision_category_generic_propaganda

	scripted_gui = sov_anarchism_election_decision_gui

	visible_when_empty = yes

	allowed = {
		original_tag = SOV
	}

	priority = 30

	visible = {
		has_completed_focus = SOV_anarchist_election
		has_government = anarchy
	}
}

SOV_return_ukraine_territory = {

	icon = GFX_decision_category_generic_propaganda

	allowed = {
		original_tag = SOV
	}

	priority = 40

	visible = {
		country_exists = UKR
		UKR = {
			has_idea = SOV_Ukraininan_uprising
			is_subject_of = SOV
		}
	}
}

SOV_diplomatic_plays_decisions_democratic = {

	icon = GFX_decision_category_generic_crisis

	allowed = {
		original_tag = SOV
	}

	priority = 30

	visible = {
		has_government = democratic
		has_completed_focus = SOV_diplomatic_plays
		is_subject = no
		OR = {
			country_exists = BLR
			country_exists = CIR
			country_exists = CRI
			country_exists = DAG
			country_exists = GEO
			country_exists = AZR
			country_exists = ARM
			country_exists = KAZ
			country_exists = UZB
			country_exists = TMS
			country_exists = TAJ
			country_exists = KYR
			NOT = {
				AND = {
					137 = { is_core_of = SOV }
					234 = { is_core_of = SOV }
					235 = { is_core_of = SOV }
					232 = { is_core_of = SOV }
					233 = { is_core_of = SOV }
					231 = { is_core_of = SOV }
					230 = { is_core_of = SOV }
					229 = { is_core_of = SOV }
					826 = { is_core_of = SOV }
					827 = { is_core_of = SOV }
					828 = { is_core_of = SOV }
					821 = { is_core_of = SOV }
				}
			}
		}
	}
}

SOV_reconstruction_economy_democratic = {

	icon = GFX_decision_category_generic_economy

	allowed = {
		original_tag = SOV
	}

	priority = 30

	visible = {
		has_government = democratic
		has_completed_focus = SOV_reconstruction_plans
		has_idea = SOV_Broken_market_2
	}
}

SOV_middle_east_conquest = {

	icon = GFX_decision_category_saf_anti_colonialist_crusade

	allowed = {
		original_tag = SOV
	}

	priority = 20

	visible = {
		is_subject = no
		has_government = democratic
		has_completed_focus = SOV_middle_eastern_nuisance
	}
}

SOV_improve_arctic_russia = {

	icon = GFX_decision_category_generic_economy

	allowed = {
		original_tag = SOV
	}

	priority = 20

	visible = {
		is_subject = no
		has_government = democratic
		has_completed_focus = SOV_ice_belongs_to_motherland
	}
}

SOV_reshape_middle_east_democratic = {

	icon = GFX_decision_category_border_war

	picture = GFX_decision_cat_generic_arabia

	allowed = {
		original_tag = SOV
	}

	priority = 20

	visible = {
		is_subject = no
		has_government = democratic
		has_completed_focus = SOV_domination_middle_east
	}
}

SOV_management_suez_canal = {

	icon = GFX_decision_category_generic

	allowed = {
		original_tag = SOV
	}

	priority = 10

	visible = {
		is_subject = no
		has_government = democratic
		has_completed_focus = SOV_domination_middle_east
		country_exists = FSZ
		has_country_flag = canal_suez_is_free_dem
	}
}

SOV_cancel_resource_rights = {

	icon = GFX_decision_category_generic

	priority = 100

	visible = {
		has_country_flag = giving_46_rights_to_sov
		has_full_control_of_state = 46
	}
}

SOV_develop_france_united_russia = {

	icon = GFX_decision_category_generic_economy
	allowed = {
		original_tag = SOV
	}

	priority = 10

	visible = {
		is_subject = no
		has_government = democratic
		has_completed_focus = SOV_ultimatum_france
		country_exists = FRA
		FRA = {
			is_subject_of = SOV
		}
		has_country_flag = france_is_puppet_united_russia
	}
}

SOV_switch_country_soviet_fragmented = {

	icon = GFX_decision_category_generic

	priority = 2022 # ;)

	allowed = {
		OR = {
			tag = SOV
			is_in_array = { global.russia_reworked_russian_states = ROOT }
		}
	}

	visible = {
		is_ai = no
		has_war = no
		has_global_flag = {
			flag = russia_reworked_can_switch_country
			days < 10
		}
	}
}

SOV_rename_soviet_cities = {

	icon = GFX_decision_category_generic

	priority = 1

	allowed = {
		OR = {
			original_tag = SOV
			original_tag = UKR
			original_tag = ARM
			original_tag = AZR
			original_tag = GEO
			original_tag = BLR
			original_tag = KAZ
			original_tag = TMS
			original_tag = CIR
			original_tag = CRI
			original_tag = DAG
			original_tag = EFR
			original_tag = GPM
			original_tag = KAL
			original_tag = KAR
			original_tag = KMI
			original_tag = KUB
			original_tag = KYR
			original_tag = NOV
			original_tag = PRM
			original_tag = ROS
			original_tag = SIB
			original_tag = STP
			original_tag = TAJ
			original_tag = TAN
			original_tag = TAT
			original_tag = TMS
			original_tag = URA
			original_tag = UZB
			original_tag = VLG
			original_tag = VYA
			original_tag = KUR
		}
	}

	visible = {
		NOT = {
			has_civil_war = yes
			has_global_flag = second_russian_civil_war_in_progress
			has_country_flag = black_revolution_civil_war_in_progress
		}
	}
}

SOV_russianize_state = {

	icon = GFX_decision_category_border_war

	priority = 1

	allowed = {
		OR = {
			original_tag = SOV
			original_tag = UKR
			original_tag = ARM
			original_tag = AZR
			original_tag = GEO
			original_tag = BLR
			original_tag = KAZ
			original_tag = TMS
			original_tag = CIR
			original_tag = CRI
			original_tag = DAG
			original_tag = EFR
			original_tag = GPM
			original_tag = KAL
			original_tag = KAR
			original_tag = KMI
			original_tag = KUB
			original_tag = KYR
			original_tag = NOV
			original_tag = PRM
			original_tag = ROS
			original_tag = SIB
			original_tag = STP
			original_tag = TAJ
			original_tag = TAN
			original_tag = TAT
			original_tag = TMS
			original_tag = URA
			original_tag = UZB
			original_tag = VLG
			original_tag = VYA
			original_tag = KUR
		}
	}

	visible = {
		if = {
			limit = {
				original_tag = SOV
			}
			OR = {
				has_completed_focus = SOV_great_purge2
				has_completed_focus = SOV_avoid_purge
				has_completed_focus = SOV_launch_insurrection
				has_completed_focus = SOV_bring_back_old_life
				has_completed_focus = SOV_new_way_life
				has_completed_focus = SOV_proclamation_commune
				has_completed_focus = SOV_embrace_total_anarchy
			}
		}
	}
}

SOV_renegotiate_deals_civil_war = {

	icon = GFX_decision_category_generic

	picture = GFX_move_capital_decision

	allowed = {
		original_tag = SOV
	}

	priority = 10

	visible = {
		is_subject = no
		OR = {
			has_completed_focus = SOV_restoration_tsar
			has_completed_focus = SOV_firm_hand
			has_completed_focus = SOV_the_lawyer_remains
			has_completed_focus = SOV_the_tables_have_turned
		}
	}
}

SOV_alternative_flag = {

	icon = GFX_decision_category_generic_formable_nations

	allowed = {
		original_tag = SOV
	}

	priority = 10

	visible = {
		is_subject = no
		OR = {
			has_country_flag = has_formed_third_rome
			has_country_flag = has_formed_greater_russia
		}
	}
}

#Categories from base game

SOV_industry_relocation_russia2 = {

	allowed = {
		original_tag = SOV
	}

	priority = 9

	available = {
		has_capitulated = no
	}

	visible = {
		has_war = yes
		has_completed_focus = SOV_move_industry_urals
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
			has_country_flag = black_revolution_civil_war_in_progress
		}
	}
}

SOV_great_patriotic_war_russia2 = {

	allowed = {
		original_tag = SOV
	}

	priority = 50

	icon = GFX_decision_category_sov_great_patriotic_war

	picture = GFX_great_patriotic_war_decision

	visible = {
		has_government = communism
		has_war = yes
		has_civil_war = no
		is_subject = no
		has_capitulated = no
		any_enemy_country = {
			is_major = yes
			capital_scope = {
				is_on_continent = europe
			}
		}
		NOT = {
			has_global_flag = second_russian_civil_war_in_progress
			has_country_flag = black_revolution_civil_war_in_progress
		}
	}
}

SOV_greater_kurdistan = {

	icon = GFX_decision_category_border_war

	picture = GFX_kurdistan_ultimatum_decision

	allowed = {
		original_tag = SOV
	}

	priority = 10

	available = {
		KUR = {
			is_subject_of = SOV
		}
	}

	visible = {
		has_completed_focus = SOV_fate_turkey
		KUR = {
			is_subject_of = SOV
		}
		has_country_flag = choose_kurdistan_over_other_option_event_tur
		is_subject = no
	}
}

SOV_slavic_help = {

	icon = GFX_decision_category_sov_great_patriotic_war

	picture = GFX_decision_cat_picture_chi_political_support

	allowed = {
		original_tag = SOV
	}

	priority = 10

	available = {
		has_completed_focus = SOV_slavic_assistance
	}

	visible = {
		has_completed_focus = SOV_slavic_assistance
	}
}

SOV_anna_anderson_legitimacy = {

	icon = GFX_decision_category_eng_appeal_to_imperial_loyalists

	picture = GFX_anna_anderson_decision

	allowed = {
		original_tag = SOV
	}

	priority = 100

	scripted_gui = sov_anna_anderson_decisions_scripted_gui

	available = {
		NOT = {
			has_country_flag = sov_anna_anderson_struggle_over
		}
	}

	visible = {
		NOT = {
			has_country_flag = sov_anna_anderson_struggle_over
		}
		has_country_flag = sov_anna_anderson_returns_russia
		has_government = neutrality
		is_subject = no
		has_capitulated = no
		has_completed_focus = SOV_restoration_tsar
		OR = {
			has_country_leader = {
				character = SOV_Kirill_vladimirovich
				ruling_only = yes
			}
			has_country_leader = {
				character = SOV_Vladimir_kirillovich
				ruling_only = yes
			}
		}
		NOT = {
			has_completed_focus = SOV_the_emperor
			has_completed_focus = SOV_the_empress
			has_country_leader = {
				character = SOV_Anastasia_nikolaevna
				ruling_only = yes
			}
		}
	}
}

SOV_buy_african_colonies_decisions = {

	icon = GFX_decision_category_eng_move_to_secure_the_dominions

	picture = GFX_decision_purchase_africa

	allowed = {
		original_tag = SOV
	}

	priority = 20

	visible = {
		has_government = neutrality
		is_subject = no
		has_capitulated = no
		has_completed_focus = SOV_purchase_african_colonies
	}
}

SOV_encourage_investments_democratic_decisions = {

	icon = gre_paying_ifc_debt

	allowed = {
		original_tag = SOV
	}

	priority = 20

	visible = {
		has_government = democratic
		is_subject = no
		has_capitulated = no
		has_completed_focus = SOV_encourage_investments
	}
}

SOV_external_threats_decisions = {

	icon = saf_anti_colonialist_crusade

	picture = GFX_decision_external_threats

	scripted_gui = sov_democratic_vote_gui

	allowed = {
		original_tag = SOV
	}

	priority = 30

	visible = {
		has_government = democratic
		is_subject = no
		has_capitulated = no
		has_completed_focus = SOV_external_threats
	}
}

SOV_reinstore_german_monarchy_decisions = {

	icon = GFX_decision_category_eng_appeal_to_imperial_loyalists

	allowed = {
		original_tag = SOV
	}

	priority = 25

	visible = {
		has_government = neutrality
		is_subject = no
		has_capitulated = no
		has_completed_focus = SOV_contact_german_exiles
		NOT = {
			GER = {
				has_completed_focus = GER_return_of_the_kaiser
			}
		}
	}
}

SOV_restore_french_monarchy_decisions_cat = {

	icon = GFX_decision_category_intervention_overseas

	allowed = {
		original_tag = SOV
	}

	priority = 25

	visible = {
		has_government = neutrality
		is_subject = no
		has_capitulated = no
		has_completed_focus = SOV_contact_french_exiles
		NOT = {
			FRA = {
				has_completed_focus = FRA_repeal_the_law_of_exile
			}
		}
	}
}

SOV_deal_with_french_monarchy_rise_cat = {

	icon = GFX_decision_category_intervention_overseas

	allowed = {
		original_tag = FRA
	}

	priority = 25

	visible = {
		OR = {
			has_idea = SOV_french_monarchist_sentiment_idea
			has_idea = SOV_french_monarchist_sentiment_idea_2
		}
	}
}

SOV_mission_civil_war_monarchy_russia = {

	icon = GFX_decision_category_generic_crisis

	allowed = {
		OR = {
			original_tag = FRA
			original_tag = GER
		}
	}

	priority = 30

	visible = {
		has_country_flag = is_victim_of_russia_civil_war
	}
}

SOV_influence_italy_monarchist = {

	icon = GFX_decision_category_generic_propaganda

	allowed = {
		original_tag = SOV
	}

	priority = 20

	visible = {
		ITA = {
			OR = {
				has_idea = SOV_Russian_influence_monarchist_italy
				has_idea = SOV_Russian_influence_monarchist_italy_2
			}
			is_in_faction_with = SOV
		}
		has_government = neutrality
		is_subject = no
		has_capitulated = no
	}
}

SOV_deal_with_italian_monarchy_rise_cat = {

	icon = GFX_decision_category_generic_propaganda

	allowed = {
		original_tag = ITA
	}

	priority = 25

	visible = {
		OR = {
			has_idea = SOV_Russian_influence_monarchist_italy
			has_idea = SOV_Russian_influence_monarchist_italy_2
		}
	}
}

SOV_replace_puppet_leader = {

	icon = GFX_decision_category_eng_move_to_secure_the_dominions

	allowed = {
		original_tag = SOV
	}

	priority = 50

	visible = {
		OR = {
			AND = {
				has_country_leader = {
					character = SOV_Vasily_stalin
					ruling_only = yes
				}
				has_government = communism
				num_subjects > 0
			}
			AND = {
				OR = {
					has_country_leader = {
						character = SOV_Alexander_konovalov
						ruling_only = yes
					}
					has_country_leader = {
						character = SOV_Wide_putin
						ruling_only = yes
					}
				}
				has_government = democratic
				num_subjects > 0
			}
		}
	}
}

#SCW
SOV_second_civil_war_category_decisions = {

	icon = GFX_decision_category_SOV_civil_war

	allowed = {
		NOT = {
			original_tag = UKR
		}
	}

	scripted_gui = russia2_scw_overview

	priority = 1000

	visible_when_empty = yes

	visible = {
		NOT = {
			original_tag = UKR
		}
		has_global_flag = second_russian_civil_war_in_progress
		is_in_array = { global.russian_scw_participants = ROOT.id }
	}
}

#Decision Reunification War
SOV_reunification_war_anarchist_category_decisions = {

	icon = GFX_decision_category_generic_propaganda

	allowed = {
		original_tag = SOV
	}

	priority = 1000

	visible = {
		has_global_flag = reunification_war_is_ongoing_anarchist
		has_completed_focus = SOV_destroy_opposition_anarchy
		any_country = {
			OR = {
				tag = EFR
				tag = SIB
				tag = URA
				tag = KAZ
				tag = TMS
				tag = UZB
				tag = TAJ
				tag = KYR
				tag = GEO
				tag = AZR
				tag = ARM
				tag = DAG
				tag = ROS
				tag = KAL
				tag = CIR
				tag = VLG
				tag = VYA
				tag = TAT
				tag = PRM
				tag = KMI
				tag = KAR
				tag = NOV
				tag = UKR
				tag = BLR
				tag = CRI
			}
			exists = yes
			has_country_flag = is_neutral_of_anarchist_russia_league_edition
		}
		has_country_flag = can_declare_war_neutral_anarchist_countries
	}
}

#National Obligations
SOV_national_obligations_category_decisions = {

	icon = GFX_decision_category_generic_propaganda

	allowed = {
		original_tag = SOV
	}

	priority = 100000

	scripted_gui = sov_national_obligations_decisions_scripted_gui

	visible_when_empty = yes

	visible = {
		is_subject = no
		has_global_flag = sov_national_obligations_allowed
        has_country_flag = sov_unlocked_national_obligations
		check_variable = {
			var = sov_national_obligations_unlocked_indexes^num
			value = 1
			compare = greater_than_or_equals
		}
	}
}

#Anarchist Negotiation Puppet Decision
SOV_negotiation_disputants_category_decisions = {

	icon = GFX_decision_category_generic_foreign_policy

	allowed = {
		original_tag = SOV
	}

	priority = 100

	visible = {
		is_subject = no
		has_completed_focus = SOV_a_tight_grip
		NOT = {
			has_completed_focus = SOV_implement_the_project
		}
	}
}

#Propaganda Decision but for Our Mod - Base Game
SOV_propaganda_campaigns_russia2 = {
	priority = 100

	icon = GFX_decision_category_SOV_propaganda

	scripted_gui = sov_propaganda_campaigns_ui_russia2

	allowed = {
		original_tag = SOV
	}

	visible = {
		has_completed_focus = SOV_the_agitprop_russia2
	}
}

#Anarchist Selection Beneficiary Decision
SOV_anarchist_selection_beneficiary_decisions = {

	icon = GFX_decision_category_generic_political_actions

	allowed = {
		original_tag = SOV
	}

	priority = 100

	visible = {
		is_subject = no
		has_completed_focus = SOV_semi_devolution
		NOT = {
			has_completed_focus = SOV_officialize_act
		}
	}
}

SOV_anarchist_the_revolution_without_borders = {

	icon = GFX_decision_category_spr_the_seeds_of_revolution

	allowed = {
		original_tag = SOV
	}

	priority = 125

	visible = {
		is_subject = no
		OR = {
			has_completed_focus = SOV_spread_revolution_west
			has_completed_focus = SOV_spread_revolution_east
			has_completed_focus = SOV_spread_revolution_both
		}
		has_government = anarchy
	}
}

SOV_mission_anarchist_revolution = {

	icon = GFX_decision_category_eng_organize_the_blackshirts

	priority = 150
}

SOV_anarchist_the_peoples_commune_formation = {

	icon = GFX_decision_category_generic_independence

	allowed = {
		original_tag = SOV
	}

	priority = 100

	visible = {
		is_subject = no
		has_completed_focus = SOV_form_the_communes_of_peoples
		has_government = anarchy
	}
}