#russia2 decisions
SOV_russia_reworked_load_decision_category_russia2 = {

	SOV_russia_reworked_load_decision_russia2 = {
		allowed = {
			original_tag = SOV
		}

		visible = {
			always = no
		}
	}
}

SOV_great_purge_decisions = {

	SOV_move_on_from_purges = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Remnants_purge
		}

		available = {
			has_idea = SOV_Remnants_purge
			surrender_progress > 0.25
		}

		custom_cost_trigger = {
            has_army_experience > 49
			has_political_power > 74
        }

        custom_cost_text = SOV_reform_purge_major_cost_tt

		ai_will_do = {
			factor = 10000
		}

		complete_effect = {
			hidden_effect = {
				add_political_power = -75
				army_experience = -50
			}
			add_stability = 0.05
			add_doctrine_cost_reduction = {
				name = SOV_move_on_from_purges
				cost_reduction = 0.25
				uses = 1
				category = land_doctrine
			}
			remove_ideas = SOV_Remnants_purge
		}
	}

	SOV_reform_military_staff = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Great_purge_idea_russia2
			has_country_flag = sov_purge_over
			OR = {
				check_variable = {
					var = party_popularity_stability_factor_great_purge
					value = 0
					compare = less_than
				}
				check_variable = {
					var = send_volunteer_factor_great_purge
					value = 0
					compare = less_than
				}
				check_variable = {
					var = political_advisor_cost_factor_great_purge
					value = 0
					compare = less_than
				}
			}
		}

		available = {
			has_idea = SOV_Great_purge_idea_russia2
			has_completed_focus = SOV_reign_of_terror
		}

		custom_cost_trigger = {
            has_army_experience > 24
			has_political_power > 49
        }

        custom_cost_text = SOV_reform_purge_no_major_cost_tt

		days_remove = 70

		days_re_enable = 1

		ai_will_do = {
			factor = 10000
		}

		complete_effect = {
			add_doctrine_cost_reduction = {
				name = SOV_reform_military_staff
				cost_reduction = 0.1
				uses = 1
				category = land_doctrine
			}
			hidden_effect = {
				army_experience = -25
				add_political_power = -50
			}
		}

		remove_effect = {
			set_temp_variable = { party_popularity_stability_factor_great_purge_temp = party_popularity_stability_factor_great_purge }
			add_to_temp_variable = { party_popularity_stability_factor_great_purge_temp = 0.025 }
			set_temp_variable = { send_volunteer_factor_great_purge_temp = send_volunteer_factor_great_purge }
			add_to_temp_variable = { send_volunteer_factor_great_purge_temp = 0.05 }
			set_temp_variable = { political_advisor_cost_factor_great_purge_temp = political_advisor_cost_factor_great_purge }
			add_to_temp_variable = { political_advisor_cost_factor_great_purge_temp = -0.05 }

			add_to_variable = { party_popularity_stability_factor_great_purge = 0.025 }
			clamp_variable = {
				var = party_popularity_stability_factor_great_purge
				min = var:party_popularity_stability_factor_great_purge_max
				max = 0
			}
			add_to_variable = { send_volunteer_factor_great_purge = 0.05 }
			clamp_variable = {
				var = send_volunteer_factor_great_purge
				min = var:send_volunteer_factor_great_purge_max
				max = 0
			}
			add_to_variable = { political_advisor_cost_factor_great_purge = -0.05 }
			clamp_variable = {
				var = political_advisor_cost_factor_great_purge
				min = 0
				max = var:political_advisor_cost_factor_great_purge_max
			}

			if = {
				limit = {
					OR = {
						check_variable = {
							var = party_popularity_stability_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = send_volunteer_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = political_advisor_cost_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = experience_gain_army_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_org_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_attack_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_defence_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = training_time_factor_great_purge
							value = 0
							compare = less_than
						}
					}
				}
				custom_effect_tooltip = SOV_reform_military_staff_tt
			}
			else = {
				custom_effect_tooltip = SOV_reform_purge_remove_purge_idea_tt
				hidden_effect = {
					if = {
						limit = {
							has_idea = SOV_Great_purge_idea_russia2
						}
						remove_ideas = SOV_Great_purge_idea_russia2
					}
				}
			}
		}
	}

	SOV_engage_new_officer = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Great_purge_idea_russia2
			has_country_flag = sov_purge_over
			OR = {
				check_variable = {
					var = experience_gain_army_factor_great_purge
					value = 0
					compare = less_than
				}
				check_variable = {
					var = army_org_factor_great_purge
					value = 0
					compare = less_than
				}
			}
		}

		available = {
			has_idea = SOV_Great_purge_idea_russia2
			has_completed_focus = SOV_train_new_officers
		}

		custom_cost_trigger = {
            has_army_experience > 24
			has_political_power > 49
        }

        custom_cost_text = SOV_reform_purge_no_major_cost_tt

		days_remove = 70

		days_re_enable = 1

		ai_will_do = {
			factor = 10000
		}

		complete_effect = {
			add_doctrine_cost_reduction = {
				name = SOV_engage_new_officer
				cost_reduction = 0.1
				uses = 1
				category = land_doctrine
			}
			hidden_effect = {
				army_experience = -25
				add_political_power = -50
			}
		}

		remove_effect = {
			set_temp_variable = { experience_gain_army_factor_great_purge_temp = experience_gain_army_factor_great_purge }
			add_to_temp_variable = { experience_gain_army_factor_great_purge_temp = 0.05 }
			set_temp_variable = { army_org_factor_great_purge_temp = army_org_factor_great_purge }
			add_to_temp_variable = { army_org_factor_great_purge_temp = 0.05 }

			add_to_variable = { experience_gain_army_factor_great_purge = 0.05 }
			clamp_variable = {
				var = experience_gain_army_factor_great_purge
				min = var:experience_gain_army_factor_great_purge_max
				max = 0
			}
			add_to_variable = { army_org_factor_great_purge = 0.05 }
			clamp_variable = {
				var = army_org_factor_great_purge
				min = var:army_org_factor_great_purge_max
				max = 0
			}

			if = {
				limit = {
					OR = {
						check_variable = {
							var = experience_gain_army_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_org_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = party_popularity_stability_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = send_volunteer_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = political_advisor_cost_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_attack_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_defence_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = training_time_factor_great_purge
							value = 0
							compare = less_than
						}
					}
				}
				custom_effect_tooltip = SOV_engage_new_officer_tt
			}
			else = {
				custom_effect_tooltip = SOV_reform_purge_remove_purge_idea_tt
				hidden_effect = {
					if = {
						limit = {
							has_idea = SOV_Great_purge_idea_russia2
						}
						remove_ideas = SOV_Great_purge_idea_russia2
					}
				}
			}
		}
	}

	SOV_review_military_tactics = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Great_purge_idea_russia2
			has_country_flag = sov_purge_over
			OR = {
				check_variable = {
					var = army_attack_factor_great_purge
					value = 0
					compare = less_than
				}
				check_variable = {
					var = army_defence_factor_great_purge
					value = 0
					compare = less_than
				}
				check_variable = {
					var = training_time_factor_great_purge
					value = 0
					compare = less_than
				}
			}
		}

		available = {
			has_idea = SOV_Great_purge_idea_russia2
			has_completed_focus = SOV_new_russia_military
		}

		custom_cost_trigger = {
            has_army_experience > 24
			has_political_power > 49
        }

        custom_cost_text = SOV_reform_purge_no_major_cost_tt

		days_remove = 70

		days_re_enable = 1

		ai_will_do = {
			factor = 10000
		}

		complete_effect = {
			add_doctrine_cost_reduction = {
				name = SOV_review_military_tactics
				cost_reduction = 0.1
				uses = 1
				category = land_doctrine
			}
			hidden_effect = {
				army_experience = -25
				add_political_power = -50
			}
		}

		remove_effect = {
			set_temp_variable = { army_attack_factor_great_purge_temp = army_attack_factor_great_purge }
			add_to_temp_variable = { army_attack_factor_great_purge_temp = 0.05 }
			set_temp_variable = { army_defence_factor_great_purge_temp = army_defence_factor_great_purge }
			add_to_temp_variable = { army_defence_factor_great_purge_temp = 0.05 }
			set_temp_variable = { training_time_factor_great_purge_temp = training_time_factor_great_purge }
			add_to_temp_variable = { training_time_factor_great_purge_temp = -0.025 }

			add_to_variable = { army_attack_factor_great_purge = 0.05 }
			clamp_variable = {
				var = army_attack_factor_great_purge
				min = var:army_attack_factor_great_purge_max
				max = 0
			}
			add_to_variable = { army_defence_factor_great_purge = 0.05 }
			clamp_variable = {
				var = army_defence_factor_great_purge
				min = var:army_defence_factor_great_purge_max
				max = 0
			}
			add_to_variable = { training_time_factor_great_purge = -0.025 }
			clamp_variable = {
				var = training_time_factor_great_purge
				min = 0
				max = var:training_time_factor_great_purge_max
			}

			if = {
				limit = {
					OR = {
						check_variable = {
							var = army_attack_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_defence_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = training_time_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = experience_gain_army_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_org_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = party_popularity_stability_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = send_volunteer_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = political_advisor_cost_factor_great_purge
							value = 0
							compare = less_than
						}
					}
				}
				custom_effect_tooltip = SOV_review_military_tactics_tt
			}
			else = {
				custom_effect_tooltip = SOV_reform_purge_remove_purge_idea_tt
				hidden_effect = {
					if = {
						limit = {
							has_idea = SOV_Great_purge_idea_russia2
						}
						remove_ideas = SOV_Great_purge_idea_russia2
					}
				}
			}
		}
	}

	SOV_emergency_training_reservist = {

		icon = GFX_decision_generic_military

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Great_purge_idea_russia2
			has_country_flag = sov_purge_over
			OR = {
				check_variable = {
					var = party_popularity_stability_factor_great_purge
					value = 0
					compare = less_than
				}
				check_variable = {
					var = send_volunteer_factor_great_purge
					value = 0
					compare = less_than
				}
				check_variable = {
					var = political_advisor_cost_factor_great_purge
					value = 0
					compare = less_than
				}
			}
		}

		available = {
			has_idea = SOV_Great_purge_idea_russia2
			any_country = {
				is_major = yes
				has_war_with = SOV
			}
		}

		custom_cost_trigger = {
            has_army_experience > 49
			has_political_power > 74
        }

        custom_cost_text = SOV_reform_purge_major_cost_tt

		days_remove = 35

		days_re_enable = 1

		ai_will_do = {
			factor = 10000
		}

		complete_effect = {
			add_doctrine_cost_reduction = {
				name = SOV_emergency_training_reservist
				cost_reduction = 0.25
				uses = 1
				category = land_doctrine
			}
			hidden_effect = {
				army_experience = -50
				add_political_power = -75
			}
		}

		remove_effect = {
			set_temp_variable = { party_popularity_stability_factor_great_purge_temp = party_popularity_stability_factor_great_purge }
			add_to_temp_variable = { party_popularity_stability_factor_great_purge_temp = 0.05 }
			set_temp_variable = { send_volunteer_factor_great_purge_temp = send_volunteer_factor_great_purge }
			add_to_temp_variable = { send_volunteer_factor_great_purge_temp = 0.1 }
			set_temp_variable = { political_advisor_cost_factor_great_purge_temp = political_advisor_cost_factor_great_purge }
			add_to_temp_variable = { political_advisor_cost_factor_great_purge_temp = -0.1 }

			add_to_variable = { party_popularity_stability_factor_great_purge = 0.05 }
			clamp_variable = {
				var = party_popularity_stability_factor_great_purge
				min = var:party_popularity_stability_factor_great_purge_max
				max = 0
			}
			add_to_variable = { send_volunteer_factor_great_purge = 0.1 }
			clamp_variable = {
				var = send_volunteer_factor_great_purge
				min = var:send_volunteer_factor_great_purge_max
				max = 0
			}
			add_to_variable = { political_advisor_cost_factor_great_purge = -0.1 }
			clamp_variable = {
				var = political_advisor_cost_factor_great_purge
				min = 0
				max = var:political_advisor_cost_factor_great_purge_max
			}

			if = {
				limit = {
					OR = {
						check_variable = {
							var = party_popularity_stability_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = send_volunteer_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = political_advisor_cost_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = experience_gain_army_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_org_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_attack_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_defence_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = training_time_factor_great_purge
							value = 0
							compare = less_than
						}
					}
				}
				custom_effect_tooltip = SOV_emergency_training_reservist_tt
			}
			else = {
				custom_effect_tooltip = SOV_reform_purge_remove_purge_idea_tt
				hidden_effect = {
					if = {
						limit = {
							has_idea = SOV_Great_purge_idea_russia2
						}
						remove_ideas = SOV_Great_purge_idea_russia2
					}
				}
			}
		}
	}

	SOV_abolish_temporarily_political_commisars = {

		icon = GFX_decision_generic_arrest

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Great_purge_idea_russia2
			has_country_flag = sov_purge_over
			OR = {
				check_variable = {
					var = experience_gain_army_factor_great_purge
					value = 0
					compare = less_than
				}
				check_variable = {
					var = army_org_factor_great_purge
					value = 0
					compare = less_than
				}
			}
		}

		available = {
			has_idea = SOV_Great_purge_idea_russia2
			any_country = {
				is_major = yes
				has_war_with = SOV
			}
		}

		custom_cost_trigger = {
            has_army_experience > 49
			has_political_power > 74
        }

        custom_cost_text = SOV_reform_purge_major_cost_tt

		days_remove = 35

		days_re_enable = 1

		ai_will_do = {
			factor = 10000
		}

		complete_effect = {
			add_doctrine_cost_reduction = {
				name = SOV_abolish_temporarily_political_commisars
				cost_reduction = 0.25
				uses = 1
				category = land_doctrine
			}
			hidden_effect = {
				army_experience = -50
				add_political_power = -75
			}
		}

		remove_effect = {
			set_temp_variable = { experience_gain_army_factor_great_purge_temp = experience_gain_army_factor_great_purge }
			add_to_temp_variable = { experience_gain_army_factor_great_purge_temp = 0.1 }
			set_temp_variable = { army_org_factor_great_purge_temp = army_org_factor_great_purge }
			add_to_temp_variable = { army_org_factor_great_purge_temp = 0.1 }

			add_to_variable = { experience_gain_army_factor_great_purge = 0.1 }
			clamp_variable = {
				var = experience_gain_army_factor_great_purge
				min = var:experience_gain_army_factor_great_purge_max
				max = 0
			}
			add_to_variable = { army_org_factor_great_purge = 0.1 }
			clamp_variable = {
				var = army_org_factor_great_purge
				min = var:army_org_factor_great_purge_max
				max = 0
			}

			if = {
				limit = {
					OR = {
						check_variable = {
							var = experience_gain_army_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_org_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = party_popularity_stability_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = send_volunteer_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = political_advisor_cost_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_attack_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_defence_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = training_time_factor_great_purge
							value = 0
							compare = less_than
						}
					}
				}
				custom_effect_tooltip = SOV_abolish_temporarily_political_commisars_tt
			}
			else = {
				custom_effect_tooltip = SOV_reform_purge_remove_purge_idea_tt
				hidden_effect = {
					if = {
						limit = {
							has_idea = SOV_Great_purge_idea_russia2
						}
						remove_ideas = SOV_Great_purge_idea_russia2
					}
				}
			}
		}
	}

	SOV_restore_military_rank_decoration = {

		icon = GFX_decision_eng_propaganda_campaigns

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Great_purge_idea_russia2
			has_country_flag = sov_purge_over
			OR = {
				check_variable = {
					var = army_attack_factor_great_purge
					value = 0
					compare = less_than
				}
				check_variable = {
					var = army_defence_factor_great_purge
					value = 0
					compare = less_than
				}
				check_variable = {
					var = training_time_factor_great_purge
					value = 0
					compare = less_than
				}
			}
		}

		available = {
			has_idea = SOV_Great_purge_idea_russia2
			any_country = {
				is_major = yes
				has_war_with = SOV
			}
		}

		custom_cost_trigger = {
            has_army_experience > 49
			has_political_power > 74
        }

        custom_cost_text = SOV_reform_purge_major_cost_tt

		days_remove = 35

		days_re_enable = 1

		ai_will_do = {
			factor = 10000
		}

		complete_effect = {
			add_doctrine_cost_reduction = {
				name = SOV_restore_military_rank_decoration
				cost_reduction = 0.25
				uses = 1
				category = land_doctrine
			}
			hidden_effect = {
				army_experience = -50
				add_political_power = -75
			}
		}

		remove_effect = {
			set_temp_variable = { army_attack_factor_great_purge_temp = army_attack_factor_great_purge }
			add_to_temp_variable = { army_attack_factor_great_purge_temp = 0.1 }
			set_temp_variable = { army_defence_factor_great_purge_temp = army_defence_factor_great_purge }
			add_to_temp_variable = { army_defence_factor_great_purge_temp = 0.1 }
			set_temp_variable = { training_time_factor_great_purge_temp = training_time_factor_great_purge }
			add_to_temp_variable = { training_time_factor_great_purge_temp = -0.05 }

			add_to_variable = { army_attack_factor_great_purge = 0.1 }
			clamp_variable = {
				var = army_attack_factor_great_purge
				min = var:army_attack_factor_great_purge_max
				max = 0
			}
			add_to_variable = { army_defence_factor_great_purge = 0.1 }
			clamp_variable = {
				var = army_defence_factor_great_purge
				min = var:army_defence_factor_great_purge_max
				max = 0
			}
			add_to_variable = { training_time_factor_great_purge = -0.05 }
			clamp_variable = {
				var = training_time_factor_great_purge
				min = 0
				max = var:training_time_factor_great_purge_max
			}

			if = {
				limit = {
					OR = {
						check_variable = {
							var = army_attack_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_defence_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = training_time_factor_great_purge_temp
							value = 0
							compare = less_than
						}
						check_variable = {
							var = experience_gain_army_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = army_org_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = party_popularity_stability_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = send_volunteer_factor_great_purge
							value = 0
							compare = less_than
						}
						check_variable = {
							var = political_advisor_cost_factor_great_purge
							value = 0
							compare = less_than
						}
					}
				}
				custom_effect_tooltip = SOV_restore_military_rank_decoration_tt
			}
			else = {
				custom_effect_tooltip = SOV_reform_purge_remove_purge_idea_tt
				hidden_effect = {
					if = {
						limit = {
							has_idea = SOV_Great_purge_idea_russia2
						}
						remove_ideas = SOV_Great_purge_idea_russia2
					}
				}
			}
		}
	}

	SOV_reform_hastily_the_army = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Great_purge_idea_russia2
			has_country_flag = sov_purge_over
		}

		available = {
			has_idea = SOV_Great_purge_idea_russia2
			surrender_progress > 0.4
			any_country = {
				is_major = yes
				has_war_with = SOV
			}
		}

		custom_cost_trigger = {
            has_army_experience > 49
			has_political_power > 74
        }

        custom_cost_text = SOV_reform_hastily_the_army_tt

		ai_will_do = {
			factor = 10000
		}

		complete_effect = {
			custom_effect_tooltip = SOV_reform_hastily_the_army_tt2
			hidden_effect = {
				remove_ideas = SOV_Great_purge_idea_russia2
			}
		}
	}

	SOV_emergency_drills = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Great_purge_idea_russia2
			has_country_flag = sov_purge_over
		}

		available = {
			has_idea = SOV_Great_purge_idea_russia2
			has_completed_focus = SOV_reign_of_terror
			command_power_daily > 0.09
		}

		custom_cost_trigger = {
            command_power > 25
        }

        custom_cost_text = SOV_emergency_drills_tt

		days_remove = 40

		days_re_enable = 20

		ai_will_do = {
			factor = 10000
		}

		modifier = {
			experience_gain_army_factor = 0.5
			command_power_gain = -0.1
		}
	}

	SOV_allow_formation_penal_batallion = {

		icon = GFX_decision_generic_arrest

		allowed = {
			original_tag = SOV
		}

		visible = {
			OR = {
				has_idea = SOV_Great_purge_idea_russia2
				has_idea = SOV_Remnants_purge
			}
		}

		available = {
			OR = {
				has_idea = SOV_Great_purge_idea_russia2
				has_idea = SOV_Remnants_purge
			}
			any_country = {
				is_major = yes
				has_war_with = SOV
			}
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			division_template = {
				name = "Shtrafbats Diviziya"
				is_locked = no
				priority = 0
				division_names_group = SOV_PEN_01
				regiments = {
					penal_battalion = { x = 0 y = 0 }
					penal_battalion = { x = 0 y = 1 }
					penal_battalion = { x = 1 y = 0 }
					penal_battalion = { x = 1 y = 1 }
					penal_battalion = { x = 2 y = 0 }
					penal_battalion = { x = 2 y = 1 }
					penal_battalion = { x = 2 y = 2 }
					penal_battalion = { x = 2 y = 3 }
				}
				support = {
					engineer = { x = 0 y = 0 }
					recon = { x = 0 y = 1 }
				}
			}
			add_stability = -0.05
			add_war_support = -0.05
			add_manpower = -132000
			custom_effect_tooltip = unlock_shtrafbat_temlate_capital
			hidden_effect = {
				capital_scope = {
					create_unit = {
						division = "name = \"1st Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"2nd Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"3rd Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"4th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"5th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"6th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"7th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"8th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"9th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"10th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"11th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"12th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"13th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"14th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"15th Shtrafbats Diviziya\" division_template = \"Shtrafbats Diviziya\" start_experience_factor = 0.2 start_equipment_factor = 1.0"
						owner = SOV
					}
				}
			}
		}
	}

	SOV_search_trotsky_in_from = {

		icon = GFX_decision_generic_nationalism

		state_target = yes

		target_array = SOV.sov_trotsky_hiding_states

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		highlight_states = {
			highlight_states_trigger = {
				state = FROM.Capital
			}
		}

		visible = {
			NOT = {
				has_global_flag = sov_leon_trotsky_dead
			}
		}

		available = {
			has_civil_war = no
			NOT = {
				has_country_leader = {
					character = SOV_Leon_trotsky
					ruling_only = yes
				}
				has_country_flag = sov_purge_ongoing
				has_country_flag = sov_searching_for_trotsky
				has_global_flag = sov_leon_trotsky_dead
			}
		}

		cost = 150

		days_remove = 200

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				has_idea = SOV_Great_purge_idea_russia2
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_search_trotsky_in_from_tt
			set_country_flag = sov_searching_for_trotsky
		}

		remove_effect = {
			custom_effect_tooltip = SOV_search_trotsky_in_from_tt2
			hidden_effect = {
				if = {
					limit = {
						FROM = {
							state = var:sov.sov_leon_trotsky_hiding_state
						}
					}
					country_event = russia2_russia.650
				}
				else = {
					random_list = {
						50 = {
							country_event = russia2_russia.648
						}
						50 = {
							country_event = russia2_russia.649
						}
					}
				}
				clr_country_flag = sov_searching_for_trotsky
			}
		}
	}
}

SOV_democratic_help = {

	SOV_encourage_the_workers = {

		icon = GFX_decision_generic_construction

		days_re_enable = 50

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_government = democratic
		}

		available = {
			has_government = democratic
		}

		cost = 100

		days_remove = 100

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 0
				has_country_flag = investment_russian_sphere_decision
				date < 1939.01.01
			}
		}

		modifier = {
			production_speed_buildings_factor = 0.1
		}
	}

	SOV_encourage_the_scientists = {

		icon = GFX_decision_generic_research

		days_re_enable = 50

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_government = democratic
		}

		available = {
			has_government = democratic
		}

		cost = 100

		days_remove = 100

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 0
				has_country_flag = investment_russian_sphere_decision
				date < 1939.01.01
			}
		}

		modifier = {
			research_speed_factor = 0.05
		}
	}

	SOV_encourage_the_army = {

		icon = GFX_decision_generic_army_support

		days_re_enable = 50

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_government = democratic
		}

		available = {
			has_government = democratic
		}

		cost = 100

		days_remove = 100

		ai_will_do = {
			factor = 0
			modifier = {
				add = 25
				has_war = yes
			}
		}

		modifier = {
			army_speed_factor = 0.1
		}
	}
}

SOV_move_capital_neutrality = {

	SOV_move_capital_195 = {

		icon = GFX_decision_infiltrate_state

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_government = neutrality
			has_global_flag = second_russian_civil_war_over
		}

		available = {
			has_government = neutrality
			has_full_control_of_state = 195
			custom_trigger_tooltip = {
				tooltip = move_capital_is_not_195
				any_state = {
					is_controlled_by = ROOT
					is_capital = yes
					NOT = {
						state = 195
					}
				}
			}
		}

		cost = 25

		ai_will_do = {
			factor = 0
			modifier = {
				add = 100
				has_war = yes
				surrender_progress > 0.25
				NOT = {
					has_war_with = FIN
				}
			}
		}

		complete_effect = {
			country_event = { id = russia2_russia.236 }
		}
	}
}

SOV_europe_expansion = {

    SOV_join_the_war_against_poland = {

		icon = GFX_decision_generic_tank

     	available = {
			date > 1939.09.17
			has_idea = SOV_molotov_ribbentrop_pact
			POL = {
				exists = yes
				has_war_with = GER
				NOT = {
					has_capitulated = yes
					is_in_faction_with = ROOT
					is_subject_of = ROOT
					has_capitulated = yes
				}
			}
			poland_controls_eastern_poland_trigger = yes
			if = {
				limit = {
					ROOT = {
						is_ai = yes
					}
				}
				NOT = {
					any_country = {
						NOT = {
							tag = POL
						}
						is_major = yes
						is_faction_leader = yes
						is_in_faction_with = POL
					}
				}
			}
			OR = {
				is_neighbor_of = POL
				any_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					is_neighbor_of = POL
				}
			}
     	}

		visible = {
			POL = {
				exists = yes
				NOT = {
					is_subject_of = ROOT
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				tag = POL
			}
		}

     	fire_only_once = yes

     	cost = 50

		ai_will_do = {
			factor = 2000
			modifier = {
				factor = 0
				OR = {
					any_other_country = {
						is_major = yes
						OR = {
							is_in_faction_with = POL
							has_guaranteed = POL
						}
					}
					POL = {
						has_idea = anti_soviet_pact
					}
				}
			}
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_war_poland
			every_country = {
				limit = {
					has_guaranteed = POL
				}
				diplomatic_relation = {
					country = POL
					relation = guarantee
					active = no
				}
			}
			SOV = {
				declare_war_on = {
					target = POL
					type = take_state_focus
					generator = { 89 91 93 94 95 96 784 }
				}
			}
		}
	}

    SOV_demand_poland = {

		icon = GFX_decision_eng_trade_unions_support

     	available = {
     	    has_army_manpower = {
    			size > 1500000
    		}
			NOT = {
				has_idea = SOV_molotov_ribbentrop_pact
			}
			poland_controls_eastern_poland_trigger = yes
			POL = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_subject_of = ROOT
					is_in_faction_with = ROOT
				}
			}
			OR = {
				AND = {
					ROOT = {
						is_neighbor_of = POL
					}
					is_neighbor_of_poland_eastern_state_trigger_root = yes
				}
				any_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					is_neighbor_of = POL
					is_neighbor_of_poland_eastern_state_trigger_puppet = yes
				}
			}
     	}

		visible = {
			POL = {
				exists = yes
				NOT = {
					is_subject_of = ROOT
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				tag = POL
			}
		}

     	fire_only_once = yes

     	cost = 100

		ai_will_do = {
			factor = 2000
			modifier = {
				GER = {
					has_war_with = POL
				}
				factor = 0
			}
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_ultimatum_poland
			if = {
				limit = {
					POL = {
						is_subject = yes
					}
				}
				POL = {
					OVERLORD = {
						country_event = { hours = 6 id = russia2_poland.1 }
						custom_effect_tooltip = SOV_demand_poland_tt
					}
				}
			}
			else = {
				POL = {
					country_event = { hours = 6 id = russia2_poland.1 }
				}
			}
		}
    }

    SOV_demand_bessarabia = {

		icon = GFX_decision_eng_trade_unions_support

     	available = {
     	    has_army_manpower = {
    			size > 1000000
    		}
			78 = {
				OWNER = {
					has_full_control_of_state = 78
					NOT = {
						has_war_with = ROOT
						is_subject_of = ROOT
						is_in_faction_with = ROOT
					}
					is_neighbor_of = ROOT
				}
				any_neighbor_state = {
					is_owned_by = ROOT
				}
			}
     	}

		visible = {
			NOT = {
				owns_state = 78
			}
		}

     	fire_only_once = yes

     	cost = 50

		ai_will_do = {
			factor = 1000
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				owns_state = 78
			}
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_ultimatum_bessarabia
			if = {
				limit = {
					any_country = {
						is_subject = yes
						owns_state = 78
					}
				}
				78 = {
					OWNER = {
						OVERLORD = {
							country_event = { hours = 6 id = russia2_romania.1 }
							custom_effect_tooltip = SOV_demand_bessarabia_tt
						}
					}
				}
			}
			else = {
				every_country = {
					limit = {
						owns_state = 78
					}
					country_event = { hours = 6 id = russia2_romania.1 }
				}
			}
		}
    }

    SOV_demand_estonia = {

		icon = GFX_decision_eng_trade_unions_support

     	available = {
     	    has_army_manpower = {
    			size > 1000000
    		}
    		EST = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_subject_of = ROOT
					is_in_faction_with = ROOT
				}
			}
			OR = {
				is_neighbor_of = EST
				any_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					is_neighbor_of = EST
				}
			}
     	}

		visible = {
			EST = {
				exists = yes
				NOT = {
					is_subject_of = ROOT
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				tag = EST
			}
		}

     	fire_only_once = yes

     	cost = 50

		ai_will_do = {
			factor = 1000
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_ultimatum_estonia
			if = {
				limit = {
					EST = {
						is_subject = yes
					}
				}
				EST = {
					OVERLORD = {
						country_event = { hours = 6 id = russia2_baltic.1 }
						custom_effect_tooltip = SOV_demand_estonia_tt
					}
				}
			}
			else = {
				EST = {
					country_event = { hours = 6 id = russia2_baltic.1 }
				}
			}
		}
    }

    SOV_demand_latvia = {

		icon = GFX_decision_eng_trade_unions_support

     	available = {
     	    has_army_manpower = {
    			size > 1000000
    		}
    		LAT = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_subject_of = ROOT
					is_in_faction_with = ROOT
				}
			}
			OR = {
				is_neighbor_of = LAT
				any_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					is_neighbor_of = LAT
				}
			}
     	}

		visible = {
			LAT = {
				exists = yes
				NOT = {
					is_subject_of = ROOT
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				tag = LAT
			}
		}

     	fire_only_once = yes

     	cost = 50

		ai_will_do = {
			factor = 1000
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_ultimatum_latvia
			if = {
				limit = {
					LAT = {
						is_subject = yes
					}
				}
				LAT = {
					OVERLORD = {
						country_event = { hours = 6 id = russia2_baltic.2 }
						custom_effect_tooltip = SOV_demand_latvia_tt
					}
				}
			}
			else = {
				LAT = {
					country_event = { hours = 6 id = russia2_baltic.2 }
				}
			}
		}
    }

    SOV_demand_lithuania = {

		icon = GFX_decision_eng_trade_unions_support

     	available = {
     	    has_army_manpower = {
    			size > 1000000
    		}
    		LIT = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_subject_of = ROOT
					is_in_faction_with = ROOT
				}
			}
			OR = {
				is_neighbor_of = LIT
				any_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					is_neighbor_of = LIT
				}
			}
     	}

		visible = {
			LIT = {
				exists = yes
				NOT = {
					is_subject_of = ROOT
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				tag = LIT
			}
		}

     	fire_only_once = yes

     	cost = 50

		ai_will_do = {
			factor = 1000
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_ultimatum_lithuania
			if = {
				limit = {
					LIT = {
						is_subject = yes
					}
				}
				LIT = {
					OVERLORD = {
						country_event = { hours = 6 id = russia2_baltic.3 }
						custom_effect_tooltip = SOV_demand_lithuania_tt
					}
				}
			}
			else = {
				LIT = {
					country_event = { hours = 6 id = russia2_baltic.3 }
				}
			}
		}
    }
}

SOV_europe_expansion_democratic = {

    SOV_demand_poland_democratic = {

		icon = GFX_decision_hol_war_on_pacifism

     	available = {
     	    has_army_manpower = {
    			size > 1500000
    		}
    		POL = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_subject = yes
					is_in_faction_with = ROOT
					has_government = democratic
				}
			}
			OR = {
				is_neighbor_of = POL
				any_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					is_neighbor_of = POL
				}
			}
     	}

		visible = {
			has_government = democratic
			POL = {
				exists = yes
				NOT = {
					is_subject = yes
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				tag = POL
			}
		}

     	fire_only_once = yes

     	cost = 25

		ai_will_do = {
			factor = 2000
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_ultimatum_poland
			POL = {
				country_event = russia2_russia.170
			}
		}
    }

	SOV_demand_bessarabia_democratic = {

		icon = GFX_decision_hol_war_on_pacifism

     	available = {
     	    has_army_manpower = {
    			size > 1000000
    		}
    		ROM = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_subject = yes
					is_in_faction_with = ROOT
					has_government = democratic
				}
			}
			OR = {
				is_neighbor_of = ROM
				any_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					is_neighbor_of = ROM
				}
			}
     	}

		visible = {
			has_government = democratic
			ROM = {
				exists = yes
				NOT = {
					is_subject = yes
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				tag = ROM
			}
		}

     	fire_only_once = yes

     	cost = 15

		ai_will_do = {
			factor = 1000
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_ultimatum_bessarabia
			ROM = {
				country_event = russia2_russia.170
			}
		}
    }

    SOV_demand_estonia_democratic = {

		icon = GFX_decision_hol_war_on_pacifism

     	available = {
     	    has_army_manpower = {
    			size > 1000000
    		}
    		EST = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_subject = yes
					is_in_faction_with = ROOT
					has_government = democratic
				}
			}
			OR = {
				is_neighbor_of = EST
				any_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					is_neighbor_of = EST
				}
			}
     	}

		visible = {
			has_government = democratic
			EST = {
				exists = yes
				NOT = {
					is_subject = yes
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				tag = EST
			}
		}

     	fire_only_once = yes

     	cost = 10

		ai_will_do = {
			factor = 1000
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_ultimatum_estonia
			EST = {
				country_event = russia2_russia.170
			}
		}
    }

    SOV_demand_latvia_democratic = {

		icon = GFX_decision_hol_war_on_pacifism

     	available = {
     	    has_army_manpower = {
    			size > 1000000
    		}
    		LAT = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_subject = yes
					is_in_faction_with = ROOT
					has_government = democratic
				}
			}
			OR = {
				is_neighbor_of = LAT
				any_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					is_neighbor_of = LAT
				}
			}
     	}

		visible = {
			has_government = democratic
			LAT = {
				exists = yes
				NOT = {
					is_subject = yes
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				tag = LAT
			}
		}

     	fire_only_once = yes

     	cost = 10

		ai_will_do = {
			factor = 1000
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_ultimatum_latvia
			LAT = {
				country_event = russia2_russia.170
			}
		}
    }

    SOV_demand_lithuania_democratic = {

		icon = GFX_decision_hol_war_on_pacifism

     	available = {
     	    has_army_manpower = {
    			size > 1000000
    		}
    		LIT = {
				exists = yes
				NOT = {
					has_war_with = ROOT
					is_subject = yes
					is_in_faction_with = ROOT
					has_government = democratic
				}
			}
			OR = {
				is_neighbor_of = LIT
				any_country = {
					OR = {
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
					is_neighbor_of = LIT
				}
			}
     	}

		visible = {
			has_government = democratic
			LIT = {
				exists = yes
				NOT = {
					is_subject = yes
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_russian_expansion
		}

		target_trigger = {
			FROM = {
				tag = LIT
			}
		}

     	fire_only_once = yes

     	cost = 10

		ai_will_do = {
			factor = 1000
		}

     	complete_effect = {
			set_country_flag = sov_russian_expansion_ultimatum_lithuania
			LIT = {
				country_event = russia2_russia.170
			}
		}
    }
}

SOV_integrate_the_baltics = {

	SOV_integrate_lithuania = {

		icon = GFX_decision_generic_nationalism

		available = {
			LIT = { is_subject_of = ROOT }
			date > 1940.05.15
		}

		visible = {
			LIT = {
				is_subject_of = ROOT
				is_ai = yes
			}
		}

		target_root_trigger = {
			tag = SOV
		}

		target_trigger = {
			FROM = {
				tag = LIT
				is_subject_of = ROOT
			}
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 80
		}

		days_remove = 70

		remove_effect = {
			annex_country = {
				target = LIT
			}
		}
	}

	SOV_integrate_latvia = {

		icon = GFX_decision_generic_nationalism

		available = {
			LAT = { is_subject_of = ROOT }
			date > 1940.05.15
		}

		visible = {
			LAT = {
				is_subject_of = ROOT
				is_ai = yes
			}
		}

		target_root_trigger = {
			tag = SOV
		}

		target_trigger = {
			FROM = {
				tag = LAT
				is_subject_of = ROOT
			}
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 80
		}

		days_remove = 70

		remove_effect = {
			annex_country = {
				target = LAT
			}
		}
	}

	SOV_integrate_estonia = {

		icon = GFX_decision_generic_nationalism

		available = {
			EST = { is_subject_of = ROOT }
			date > 1940.05.15
		}

		visible = {
			EST = {
				is_subject_of = ROOT
				is_ai = yes
			}
		}

		target_root_trigger = {
			tag = SOV
		}

		target_trigger = {
			FROM = {
				tag = EST
				is_subject_of = ROOT
			}
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 80
		}

		days_remove = 70

		remove_effect = {
			annex_country = {
				target = EST
			}
		}
	}

	SOV_core_baltic_state = {

		icon = GFX_decision_generic_form_nation

		state_target = yes

		target_trigger = {
			FROM = {
				OR = {
					state = 191
					state = 13
					state = 813
					state = 812
					state = 811
					state = 12
					state = 190
					state = 810
					state = 808
					state = 809
					state = 11
					state = 189
					state = 188
					state = 814
					state = 815
				}
			}
		}

		available = {
			FROM = {
				NOT = {
					is_core_of = ROOT
				}
				is_fully_controlled_by = ROOT
			}
		}

		visible = {
			owns_state = FROM
			NOT = {
				has_government = fascism
				has_government = anarchy
			}
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 80
		}

		days_remove = 30

		remove_effect = {
			add_state_core = FROM
		}
	}
}

SOV_unhappy_peasants = {

	SOV_peasants_rebelion = {

		icon = generic_civil_support

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
		    	tooltip = SOV_peasants_rebelion_tt
				NOT = {
					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
				}
			}
		}

		activation = {
			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
			}
		}

		visible = {

		}

		is_good = no

		fire_only_once = yes

		days_mission_timeout = 2920

		cancel_trigger = {
			hidden_trigger = {
				has_idea = SOV_Happy_peasants
			}
		}

		timeout_effect = {
            country_event = russia2_russia.18
        }

		complete_effect = {
			add_manpower = 100000
		}
	}

	SOV_peasants_propaganda = {

		icon = GFX_decision_eng_propaganda_campaigns

        cost = 50

		ai_will_do = {
			factor = 300
			modifier = {
				factor = 0
				is_subject = no
				OR = {
					has_completed_focus = SOV_terrible_fate
					focus_progress = {
						focus = SOV_terrible_fate
						progress > 0.01
					}
					AND = {
						OR = {
							has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
						}
						date < 1936.05.01
					}
				}
				NOT = {
					has_completed_focus = SOV_right_to_believe
					has_completed_focus = SOV_second_civil_war
				}
			}
		}

        fire_only_once = yes

        visible = {
			has_idea = SOV_Unhappy_peasants1
        }

        available = {
        	has_completed_focus = SOV_start_five_year_plan
        	custom_trigger_tooltip = {
	        	tooltip = SOV_unhappy_peasants_tt
	            has_idea = SOV_Unhappy_peasants1
            }
        }

        complete_effect = {
	        swap_ideas = {
				remove_idea = SOV_Unhappy_peasants1
				add_idea = SOV_Unhappy_peasants2
			}
        }
    }

    SOV_peasants_compensations = {

		icon = GFX_decision_hol_attract_foreign_investors

        cost = 100

		ai_will_do = {
			factor = 300
			modifier = {
				factor = 0
				is_subject = no
				OR = {
					has_completed_focus = SOV_terrible_fate
					focus_progress = {
						focus = SOV_terrible_fate
						progress > 0.01
					}
					AND = {
						OR = {
							has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
						}
						date < 1936.05.01
					}
				}
				NOT = {
					has_completed_focus = SOV_right_to_believe
					has_completed_focus = SOV_second_civil_war
				}
			}
		}

        fire_only_once = yes

        visible = {
        	OR = {
				has_idea = SOV_Unhappy_peasants1
				has_idea = SOV_Unhappy_peasants2
			}
        }

        available = {
        	has_completed_focus = SOV_improve_russia
            custom_trigger_tooltip = {
	        	tooltip = SOV_peasants_propaganda_tt
	            has_idea = SOV_Unhappy_peasants2
            }
        }

        complete_effect = {
	        swap_ideas = {
				remove_idea = SOV_Unhappy_peasants2
				add_idea = SOV_Unhappy_peasants3
			}
        }
    }

    SOV_peasants_recruiting = {

		icon = GFX_decision_generic_nationalism

        cost = 100

		ai_will_do = {
			factor = 300
			modifier = {
				factor = 0
				is_subject = no
				OR = {
					has_completed_focus = SOV_terrible_fate
					focus_progress = {
						focus = SOV_terrible_fate
						progress > 0.01
					}
					AND = {
						OR = {
							has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
						}
						date < 1936.05.01
					}
				}
				NOT = {
					has_completed_focus = SOV_right_to_believe
					has_completed_focus = SOV_second_civil_war
				}
			}
		}

        fire_only_once = yes

        visible = {
        	OR = {
				has_idea = SOV_Unhappy_peasants1
				has_idea = SOV_Unhappy_peasants2
				has_idea = SOV_Unhappy_peasants3
			}
        }

        available = {
        	has_completed_focus = SOV_new_soviet_uniform
            custom_trigger_tooltip = {
	        	tooltip = SOV_peasants_compensations_tt
	            has_idea = SOV_Unhappy_peasants3
            }
        }

        complete_effect = {
	        swap_ideas = {
				remove_idea = SOV_Unhappy_peasants3
				add_idea = SOV_Unhappy_peasants4
			}
        }
    }

    SOV_peasants_exile = {

		icon = GFX_decision_oppression

        cost = 150

		ai_will_do = {
			factor = 300
			modifier = {
				factor = 0
				is_subject = no
				OR = {
					has_completed_focus = SOV_terrible_fate
					focus_progress = {
						focus = SOV_terrible_fate
						progress > 0.01
					}
					AND = {
						OR = {
							has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
						}
						date < 1936.05.01
					}
				}
				NOT = {
					has_completed_focus = SOV_right_to_believe
					has_completed_focus = SOV_second_civil_war
				}
			}
		}

        fire_only_once = yes

        visible = {
        	OR = {
				has_idea = SOV_Unhappy_peasants1
				has_idea = SOV_Unhappy_peasants2
				has_idea = SOV_Unhappy_peasants3
				has_idea = SOV_Unhappy_peasants4
			}
        }

        available = {
        	has_completed_focus = SOV_improve_siberias_railways
            custom_trigger_tooltip = {
	        	tooltip = SOV_peasants_recruiting_tt
	            has_idea = SOV_Unhappy_peasants4
            }
        }

        complete_effect = {
	        swap_ideas = {
				remove_idea = SOV_Unhappy_peasants4
				add_idea = SOV_Unhappy_peasants5
			}
        }
    }

    SOV_peasants_demands = {

		icon = GFX_decision_eng_trade_unions_support

        cost = 150

		ai_will_do = {
			factor = 300
			modifier = {
				factor = 0
				is_subject = no
				OR = {
					has_completed_focus = SOV_terrible_fate
					focus_progress = {
						focus = SOV_terrible_fate
						progress > 0.01
					}
					AND = {
						OR = {
							has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
						}
						date < 1936.05.01
					}
				}
				NOT = {
					has_completed_focus = SOV_right_to_believe
					has_completed_focus = SOV_second_civil_war
				}
			}
		}

        fire_only_once = yes

        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
			}
        }

        available = {
        	has_completed_focus = SOV_new_russia
            custom_trigger_tooltip = {
	        	tooltip = SOV_peasants_exile_tt
	            has_idea = SOV_Unhappy_peasants5
            }
        }

        complete_effect = {
	        swap_ideas = {
				remove_idea = SOV_Unhappy_peasants5
				add_idea = SOV_Unhappy_peasants6
			}
        }
    }

    SOV_happy_peasants = {

		icon = GFX_decision_hol_exchange_intelligence_data

        cost = 150

		ai_will_do = {
			factor = 300
			modifier = {
				factor = 0
				is_subject = no
				OR = {
					has_completed_focus = SOV_terrible_fate
					focus_progress = {
						focus = SOV_terrible_fate
						progress > 0.01
					}
					AND = {
						OR = {
							has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_ANDREY_VLASOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
							has_country_flag = RUS_AI_KONSTANTIN_RODZAEVSKY_FASCIST_BEHAVIOR
							has_country_flag = RUS_AI_ANASTASY_VONSYATSKY_FASCIST_BEHAVIOR
						}
						date < 1936.05.01
					}
				}
				NOT = {
					has_completed_focus = SOV_right_to_believe
					has_completed_focus = SOV_second_civil_war
				}
			}
		}

        fire_only_once = yes

        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
			}
        }

        available = {
        	has_completed_focus = SOV_finish_the_second_five_year_plan
            custom_trigger_tooltip = {
	        	tooltip = SOV_peasants_demands_tt
	            has_idea = SOV_Unhappy_peasants6
            }
        }

        complete_effect = {
			remove_ideas = SOV_Unhappy_peasants6
			add_ideas = SOV_Happy_peasants
        }
    }

	SOV_fix_peasants_situation = {

		icon = GFX_decision_hol_exchange_intelligence_data

        cost = 2000 # :)

		ai_will_do = {
			factor = 500
		}

        fire_only_once = yes

        visible = {
        	has_idea = SOV_Regular_peasants_strikes
        }

        available = {
        	has_idea = SOV_Regular_peasants_strikes
        }

		complete_effect = {
			add_stability = -0.05
			add_manpower = -10000
			remove_ideas = SOV_Regular_peasants_strikes
		}
	}
}

SOV_chinese_war = {

	SOV_send_guns_nationalist = {
		icon = GFX_decision_generic_prepare_civil_war
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = SOV_weapons_china
			event_target:WTT_current_china_leader = {
				has_war_with = JAP
			}
		}
		available = {
			has_equipment = {
				infantry_equipment > 3999
			}
		}
		complete_effect = {
			send_equipment = {
				equipment = infantry_equipment
				amount = 4000
				target = event_target:WTT_current_china_leader
			}
			army_experience = 25
		}
	}

	SOV_send_planes_nationalist = {
		icon = GFX_decision_generic_air
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = SOV_weapons_china
			event_target:WTT_current_china_leader = {
				has_war_with = JAP
			}
		}
		available = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				has_equipment = {
					small_plane_airframe > 499
				}
				has_equipment = {
					medium_plane_airframe > 499
				}
			}
			else = {
				has_equipment = {
					fighter_equipment_1 > 499
				}
				has_equipment = {
					tac_bomber_equipment_1 > 499
				}
			}
		}
		complete_effect = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				send_equipment = {
					equipment = small_plane_airframe
					amount = 500
					target = event_target:WTT_current_china_leader
				}
				send_equipment = {
					equipment = medium_plane_airframe
					amount = 500
					target = event_target:WTT_current_china_leader
				}
			}
			else = {
				send_equipment = {
					equipment = fighter_equipment_1
					amount = 500
					target = event_target:WTT_current_china_leader
				}
				send_equipment = {
					equipment = tac_bomber_equipment_1
					amount = 500
					target = event_target:WTT_current_china_leader
				}
			}
			air_experience = 50
		}
	}

	SOV_send_guns_communist = {
		icon = GFX_decision_generic_prepare_civil_war
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = SOV_weapons_china
			PRC = {
				has_war_with = JAP
			}
		}
		available = {
			has_equipment = {
				infantry_equipment > 2999
			}
		}
		complete_effect = {
			send_equipment = {
				equipment = infantry_equipment
				amount = 3000
				target = PRC
			}
			army_experience = 25
		}
	}

	SOV_send_planes_communist = {
		icon = GFX_decision_generic_air
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = SOV_weapons_china
			PRC = {
				has_war_with = JAP
			}
		}
		available = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				has_equipment = {
					small_plane_airframe > 249
				}
				has_equipment = {
					medium_plane_airframe > 249
				}
			}
			else = {
				has_equipment = {
					fighter_equipment_1 > 249
				}
				has_equipment = {
					tac_bomber_equipment_1 > 249
				}
			}
		}
		complete_effect = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				send_equipment = {
					equipment = small_plane_airframe
					amount = 250
					target = PRC
				}
				send_equipment = {
					equipment = medium_plane_airframe
					amount = 250
					target = PRC
				}
			}
			else = {
				send_equipment = {
					equipment = fighter_equipment_1
					amount = 250
					target = PRC
				}
				send_equipment = {
					equipment = tac_bomber_equipment_1
					amount = 250
					target = PRC
				}
			}
			air_experience = 75
		}
	}

	SOV_send_support_equipment_nationalist = {
		icon = GFX_decision_generic_operation
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = SOV_weapons_china
			event_target:WTT_current_china_leader = {
				has_war_with = JAP
			}
		}
		available = {
			has_equipment = {
				support_equipment > 199
			}
		}
		complete_effect = {
			send_equipment = {
				equipment = support_equipment
				amount = 200
				target = event_target:WTT_current_china_leader
			}
			army_experience = 20
		}
	}

	SOV_send_support_equipment_communist = {
		icon = GFX_decision_generic_operation
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = SOV_weapons_china
			PRC = {
				has_war_with = JAP
			}
		}
		available = {
			has_equipment = {
				support_equipment > 199
			}
		}
		complete_effect = {
			send_equipment = {
				equipment = support_equipment
				amount = 200
				target = PRC
			}
			army_experience = 20
		}
	}
}

SOV_minor_communist_countries_europe = {

	SOV_invite_countries = {

		icon = GFX_decision_hol_exchange_intelligence_data

		fire_only_once = yes

		days_remove = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_communist_minorities_europe
			has_government = communism
			FROM = {
				exists = yes
				has_government = communism
				NOT = {
					is_in_faction_with = ROOT
					has_civil_war = yes
				}
				is_major = no
				NOT = {
					tag = SLV
					tag = CRO
					tag = BOS
					tag = SER
					tag = MNT
					tag = MAC
					tag = CAT
					tag = NAV
					tag = GLC
					tag = SCO
					tag = WLS
					tag = NIR
					tag = KOR
					tag = VIN
					tag = CAM
					tag = LAO
					tag = TIB
					tag = ETH
					tag = MOR
					tag = EGY
					has_idea = SOV_Communist_influence_international_1
					has_idea = SOV_Communist_influence_international_2
					has_idea = SOV_Communist_influence_international_3
					has_idea = SOV_Supporters_fourth_international
					has_idea = SOV_Fight_revolution
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_communist_minorities_europe
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_government = communism
				NOT = {
					is_in_faction_with = ROOT
					has_civil_war = yes
				}
				is_major = no
				NOT = {
					tag = SLV
					tag = CRO
					tag = BOS
					tag = SER
					tag = MNT
					tag = MAC
					tag = CAT
					tag = NAV
					tag = GLC
					tag = SCO
					tag = WLS
					tag = NIR
					tag = KOR
					tag = VIN
					tag = CAM
					tag = LAO
					tag = TIB
					tag = ETH
					tag = MOR
					tag = EGY
					has_idea = SOV_Communist_influence_international_1
					has_idea = SOV_Communist_influence_international_2
					has_idea = SOV_Communist_influence_international_3
					has_idea = SOV_Supporters_fourth_international
					has_idea = SOV_Fight_revolution
				}
			}
		}

		available = {
			OR = {
				has_opinion = {
					target = FROM
					value > 29
				}
				FROM = {
					has_opinion = {
						target = ROOT
						value > 29
					}
				}
			}
			FROM = {
				is_subject = no
				is_faction_leader = no
				OR = {
					has_government = communism
					communism > 0.4
				}
				NOT = {
					has_war_with = SOV
				}
			}
		}

		remove_effect = {
			FROM = {
				country_event = {
					id = russia2_russia.69
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_invest_countries = {

		icon = GFX_decision_ger_military_buildup

		fire_only_once = yes

		days_remove = 30

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_help_minor_communist_countries_europe
			has_government = communism
			FROM = {
				exists = yes
				has_government = communism
				is_in_faction_with = ROOT
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_help_minor_communist_countries_europe
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_government = communism
				is_in_faction_with = ROOT
			}
		}

		available = {
			num_of_civilian_factories_available_for_projects > 0
		}

		modifier = {
			civilian_factory_use = 1
		}

		cost = 25

		remove_effect = {
			FROM = {
				country_event = russia2_russia.375
			}
		}

		ai_will_do = {
			factor = 80
		}
	}
}

SOV_help_spain = {

	SOV_send_weapons_spain = {
		icon = GFX_decision_generic_prepare_civil_war
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		allowed = {
			original_tag = SOV
		}
		visible = {
			has_completed_focus = SOV_weapons_spain
			country_exists = SPD
			SPD = {
				has_civil_war = yes
			}
		}
		available = {
			SPD = {
				has_civil_war = yes
			}
			has_equipment = {
				infantry_equipment > 1999
			}
		}
		complete_effect = {
			send_equipment = {
				equipment = infantry_equipment
				amount = 2000
				target = SPD
			}
			army_experience = 25
		}
	}

	SOV_send_planes_spain = {
		icon = GFX_decision_generic_air
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		allowed = {
			original_tag = SOV
		}
		visible = {
			has_completed_focus = SOV_weapons_spain
			country_exists = SPD
			SPD = {
				has_civil_war = yes
			}
		}
		available = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				has_equipment = {
					small_plane_airframe > 49
				}
				has_equipment = {
					medium_plane_airframe > 49
				}
			}
			else = {
				has_equipment = {
					fighter_equipment_1 > 49
				}
				has_equipment = {
					tac_bomber_equipment_1 > 49
				}
			}
		}
		complete_effect = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				send_equipment = {
					equipment = small_plane_airframe
					amount = 50
					target = SPD
				}
				send_equipment = {
					equipment = medium_plane_airframe
					amount = 50
					target = SPD
				}
			}
			else = {
				send_equipment = {
					equipment = fighter_equipment_1
					amount = 50
					target = SPD
				}
				send_equipment = {
					equipment = tac_bomber_equipment_1
					amount = 50
					target = SPD
				}
			}
			air_experience = 75
		}
	}

	SOV_send_support_equipment_spain = {
		icon = GFX_decision_generic_operation
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = SOV_weapons_spain
			country_exists = SPD
			SPD = {
				has_civil_war = yes
			}
		}
		available = {
			has_equipment = {
				support_equipment > 299
			}
		}
		complete_effect = {
			send_equipment = {
				equipment = support_equipment
				amount = 300
				target = SPD
			}
			army_experience = 20
		}
	}

	SOV_send_volunteer = {
		icon = GFX_decision_eng_blackshirt_march
		cost = 50
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = SOV_weapons_spain
			country_exists = SPD
			SPD = {
				has_civil_war = yes
			}
		}
		available = {
			SPD = {
				OR = {
					has_government = communism
					has_government = democratic
				}
			}
		}
		complete_effect = {
			SPD = {
				country_event = { id = russia2_spain.4 days = 1 }
			}
			add_manpower = -10500
		}
	}

	SOV_send_weapons_communism_rebel = {
		icon = GFX_decision_generic_prepare_civil_war
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		allowed = {
			original_tag = SOV
		}
		visible = {
			has_completed_focus = SOV_weapons_spain
			country_exists = SPC
			SPC = {
				has_civil_war = yes
				has_government = communism
			}
		}
		available = {
			SPC = {
				has_civil_war = yes
				has_government = communism
			}
			has_equipment = {
				infantry_equipment > 1999
			}
		}
		complete_effect = {
			send_equipment = {
				equipment = infantry_equipment
				amount = 2000
				target = SPC
			}
			army_experience = 25
		}
	}

	SOV_send_planes_communism_rebel = {
		icon = GFX_decision_generic_air
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		allowed = {
			original_tag = SOV
		}
		visible = {
			has_completed_focus = SOV_weapons_spain
			country_exists = SPC
			SPC = {
				has_civil_war = yes
				has_government = communism
			}
		}
		available = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				has_equipment = {
					small_plane_airframe > 49
				}
				has_equipment = {
					medium_plane_airframe > 49
				}
			}
			else = {
				has_equipment = {
					fighter_equipment_1 > 49
				}
				has_equipment = {
					tac_bomber_equipment_1 > 49
				}
			}
			SPC = {
				has_government = communism
			}
		}
		complete_effect = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				send_equipment = {
					equipment = small_plane_airframe
					amount = 50
					target = SPC
				}
				send_equipment = {
					equipment = medium_plane_airframe
					amount = 50
					target = SPC
				}
			}
			else = {
				send_equipment = {
					equipment = fighter_equipment_1
					amount = 50
					target = SPC
				}
				send_equipment = {
					equipment = tac_bomber_equipment_1
					amount = 50
					target = SPC
				}
			}
			air_experience = 75
		}
	}

	SOV_send_support_equipment_communism_rebel = {
		icon = GFX_decision_generic_operation
		cost = 25
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = SOV_weapons_spain
			country_exists = SPC
			SPC = {
				has_civil_war = yes
				has_government = communism
			}
		}
		available = {
			has_equipment = {
				support_equipment > 299
			}
			SPC = {
				has_government = communism
			}
		}
		complete_effect = {
			send_equipment = {
				equipment = support_equipment
				amount = 300
				target = SPC
			}
			army_experience = 20
		}
	}

	SOV_send_volunteer_communism_rebel = {
		icon = GFX_decision_eng_blackshirt_march
		cost = 50
		ai_will_do = {
			factor = 70
		}
		fire_only_once = yes
		visible = {
			has_completed_focus = SOV_weapons_spain
			country_exists = SPC
			SPC = {
				has_civil_war = yes
				has_government = communism
			}
		}
		available = {
			SPC = {
				has_government = communism
			}
		}
		complete_effect = {
			SPC = {
				country_event = { id = russia2_spain.4 days = 1 }
			}
			add_manpower = -10500
		}
	}
}

SOV_mission_op = {

	SOV_mission_korea = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			has_country_flag = SOV_liberated_korea
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_korea
			}
			has_country_flag = SOV_is_liberation_target_korea
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
		complete_effect = {
			hidden_effect = {
				clr_country_flag = SOV_is_liberation_target_korea
			}
		}
	}

	SOV_mission_indochina = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			has_country_flag = SOV_liberated_indochina
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_indochina
			}
			FROM = {
				has_country_flag = SOV_is_liberation_target_indochina
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
		complete_effect = {
			hidden_effect = {
				clr_country_flag = SOV_is_liberation_target_indochina
			}
		}
	}

	SOV_mission_tibet = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			has_country_flag = SOV_liberated_tibet
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_tibet
			}
			FROM = {
				has_country_flag = SOV_is_liberation_target_tibet
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
		complete_effect = {
			hidden_effect = {
				clr_country_flag = SOV_is_liberation_target_tibet
			}
		}
	}

	SOV_mission_ethiopia = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			has_country_flag = SOV_liberated_ethiopia
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_ethiopia
			}
			FROM = {
				has_country_flag = SOV_is_liberation_target_ethiopia
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
		complete_effect = {
			hidden_effect = {
				clr_country_flag = SOV_is_liberation_target_ethiopia
			}
		}
	}

	SOV_mission_morocco = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			has_country_flag = SOV_liberated_morocco
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_morocco
			}
			FROM = {
				has_country_flag = SOV_is_liberation_target_morocco
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
		complete_effect = {
			hidden_effect = {
				clr_country_flag = SOV_is_liberation_target_morocco
			}
		}
	}

	SOV_mission_egypt = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			has_country_flag = SOV_liberated_egypt
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_egypt
			}
			FROM = {
				has_country_flag = SOV_is_liberation_target_egypt
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
		complete_effect = {
			hidden_effect = {
				clr_country_flag = SOV_is_liberation_target_egypt
			}
		}
	}

	SOV_mission_balkan = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			has_country_flag = SOV_liberated_balkan
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_balkan
			}
			FROM = {
				has_country_flag = SOV_is_liberation_target_balkan
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
		complete_effect = {
			hidden_effect = {
				clr_country_flag = SOV_is_liberation_target_balkan
			}
		}
	}

	SOV_mission_british = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			has_country_flag = SOV_liberated_uk
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_uk
			}
			FROM = {
				has_country_flag = SOV_is_liberation_target_uk
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
		complete_effect = {
			hidden_effect = {
				clr_country_flag = SOV_is_liberation_target_uk
			}
		}
	}

	SOV_mission_iberia = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			has_country_flag = SOV_liberated_iberia
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_iberia
			}
			FROM = {
				has_country_flag = SOV_is_liberation_target_iberia
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
		complete_effect = {
			hidden_effect = {
				clr_country_flag = SOV_is_liberation_target_iberia
			}
		}
	}

	SOV_liberation_europe = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_is_liberating_europe
				SOV = {
					NOT = {
						has_country_flag = SOV_is_liberating_europe
					}
				}
			}
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_europe
			}
			FROM = {
				has_country_flag = target_europe
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
	}

	SOV_liberation_africa = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_is_liberating_africa
				SOV = {
					NOT = {
						has_country_flag = SOV_is_liberating_africa
					}
				}
			}
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_africa
			}
			FROM = {
				has_country_flag = target_africa
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
	}

	SOV_liberation_asia = {
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = NAF
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_is_liberating_asia
				SOV = {
					NOT = {
						has_country_flag = SOV_is_liberating_asia
					}
				}
			}
		}
		visible = {
			SOV = {
				has_country_flag = SOV_is_liberating_asia
			}
			FROM = {
				has_country_flag = target_asia
			}
		}
		days_mission_timeout = 360
		is_good = no
		timeout_effect = {

		}
	}
}

SOV_invite_revolution = {

	SOV_invite_communist_revolution = {

		icon = GFX_generic_political_discourse

		fire_only_once = yes

		days_remove = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_revolution_to_the_utmost
			any_country = {
				has_country_flag = liberated_by_sov
			}
			has_government = communism
			FROM = {
				exists = yes
				NOT = { is_in_faction_with = ROOT }
				has_government = communism
				has_country_flag = liberated_by_sov
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_revolution_to_the_utmost
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = { is_in_faction_with = ROOT }
				has_government = communism
				has_country_flag = liberated_by_sov
			}
		}

		available = {
			OR = {
				has_opinion = {
					target = FROM
					value > 49
				}
				FROM = {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
			FROM = {
				is_subject = no
				has_government = communism
				NOT = {
					has_war_with = SOV
				}
				NOT = {
					has_idea = SOV_Fight_revolution
				}
			}
		}

		cost = 10

		remove_effect = {
			FROM = {
				country_event = {
					id = russia2_russia.98
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_proclaim_revolution = {

	SOV_triumph_warsaw = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 10
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_warsaw_tt
				OR = {
					10 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 10
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_1_scale
			add_to_variable = {
			    var = revolution_count
			    value = 1
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 1
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_old_city_europe
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_madrid = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}


		highlight_states = {
			highlight_states_trigger = {
				state = 41
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_madrid_tt
				OR = {
					41 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 41
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_1_scale
			add_to_variable = {
			    var = revolution_count
			    value = 1
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 1
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_old_city_europe
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_istanbul = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 797
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_istanbul_tt
				OR = {
					797 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 797
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_1_scale
			add_to_variable = {
			    var = revolution_count
			    value = 1
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 1
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_old_city_europe
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_vienna = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 4
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_vienna_tt
				OR = {
					4 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 4
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_1_scale
			add_to_variable = {
			    var = revolution_count
			    value = 1
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 1
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_old_city_europe
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_paris = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 16
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_paris_tt
				OR = {
					16 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 16
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_2_scale
			add_to_variable = {
			    var = revolution_count
			    value = 2
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 2
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_major_city_europe
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_berlin = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 64
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_berlin_tt
				OR = {
					64 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 64
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_2_scale
			add_to_variable = {
			    var = revolution_count
			    value = 2
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 2
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_major_city_europe
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_rome = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 2
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_rome_tt
				OR = {
					2 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 2
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_2_scale
			add_to_variable = {
			    var = revolution_count
			    value = 2
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 2
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_major_city_europe
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_london = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 126
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_london_tt
				OR = {
					126 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 126
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_2_scale
			add_to_variable = {
			    var = revolution_count
			    value = 2
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 2
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_major_city_europe
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_washington = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 361
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_washington_tt
				OR = {
					361 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 361
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_2_scale
			add_to_variable = {
			    var = revolution_count
			    value = 2
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 2
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_old_city
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_tokyo = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 282
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_tokyo_tt
				OR = {
					282 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 282
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_2_scale
			add_to_variable = {
			    var = revolution_count
			    value = 2
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 2
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_old_city
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_beijing = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 608
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_beijing_tt
				OR = {
					608 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 608
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_1_scale
			add_to_variable = {
			    var = revolution_count
			    value = 1
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 1
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_old_city
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_triumph_delhi = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		cost = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 439
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_triumph_delhi_tt
				OR = {
					439 = {
						is_controlled_by = SOV
					}
					any_allied_country = {
						has_government = communism
						controls_state = 439
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_add_1_scale
			add_to_variable = {
			    var = revolution_count
			    value = 1
			}
			set_variable = { revolution_count_gui = revolution_count }
			multiply_variable = { revolution_count_gui = 100 }
			subtract_from_variable = {
			    var = revolution_final_count
			    value = 1
			}
			clamp_variable = {
				var = revolution_count
				min = 0
				max = 12
			}
			clamp_variable = {
				var = revolution_count_gui
				min = 0
				max = 1000
			}
			clamp_variable = {
				var = revolution_final_count
				min = 0
				max = 12
			}
			set_country_flag = SOV_has_conquered_old_city
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_secure_revolution = {

		icon = generic_civil_support

		fire_only_once = yes

		cost = 50

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_secure_revolution_tt
				has_country_flag = SOV_has_conquered_old_city_europe
			}
			custom_trigger_tooltip = {
				tooltip = SOV_secure_revolution_tt2
				check_variable = {
					var = revolution_count
					value = 3
					compare = greater_than_or_equals
				}
			}
		}

		complete_effect = {
			add_stability = 0.1
			add_ideas = SOV_Marching_revolution
			set_country_flag = SOV_secured_revolution
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_expand_revolution = {

		icon = generic_industry

		fire_only_once = yes

		cost = 50

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_expand_revolution_tt
				has_country_flag = SOV_secured_revolution
			}
			custom_trigger_tooltip = {
				tooltip = SOV_expand_revolution_tt2
				has_country_flag = SOV_has_conquered_major_city_europe
			}
			custom_trigger_tooltip = {
				tooltip = SOV_expand_revolution_tt3
				check_variable = {
					var = revolution_count
					value = 6
					compare = greater_than_or_equals
				}
			}
		}

		complete_effect = {
			swap_ideas = {
				remove_idea = SOV_Marching_revolution
				add_idea = SOV_Marching_revolution2
			}
			hidden_effect = {
				if = {
					limit = {
						NOT = {
							has_tech = tech_logistics_company
						}
					}
					set_technology = {
						tech_logistics_company = 1
					}
				}
				if = {
					limit = {
						NOT = {
							has_tech = tech_signal_company
						}
					}
					set_technology = {
						tech_signal_company = 1
					}
				}
				division_template = {
					name = "Strazhi Revolyutsii"
					priority = 2
					regiments = {
						infantry = { x = 0 y = 0 }
						infantry = { x = 0 y = 1 }
						infantry = { x = 0 y = 2 }
						infantry = { x = 0 y = 3 }
						artillery_brigade = { x = 0 y = 4 }
						infantry = { x = 1 y = 0 }
						infantry = { x = 1 y = 1 }
						infantry = { x = 1 y = 2 }
						infantry = { x = 1 y = 3 }
						artillery_brigade = { x = 1 y = 4 }
						infantry = { x = 2 y = 0 }
						infantry = { x = 2 y = 1 }
						infantry = { x = 2 y = 2 }
						infantry = { x = 2 y = 3 }
						artillery_brigade = { x = 2 y = 4 }
						infantry = { x = 3 y = 0 }
						infantry = { x = 3 y = 1 }
						artillery_brigade = { x = 3 y = 2 }
					}
					support = {
						artillery = { x = 0 y = 0 }
						logistics_company = { x = 0 y = 1 }
						signal_company = { x = 0 y = 2 }
						mot_recon = { x = 0 y = 3 }
						engineer = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Strazhi Revolyutsii Division\" division_template = \"Strazhi Revolyutsii\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"2nd Strazhi Revolyutsii Division\" division_template = \"Strazhi Revolyutsii\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"3rd Strazhi Revolyutsii Division\" division_template = \"Strazhi Revolyutsii\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"4th Strazhi Revolyutsii Division\" division_template = \"Strazhi Revolyutsii\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"5th Strazhi Revolyutsii Division\" division_template = \"Strazhi Revolyutsii\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
						owner = SOV
					}
				}
			}
			custom_effect_tooltip = SOV_expand_revolution_tt4
			set_country_flag = SOV_expanded_revolution
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_last_step_revolution = {

		icon = eng_blackshirt_march

		fire_only_once = yes

		cost = 50

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_last_step_revolution_tt
				has_country_flag = SOV_expanded_revolution
			}
			custom_trigger_tooltip = {
				tooltip = SOV_last_step_revolution_tt2
				has_country_flag = SOV_has_conquered_old_city
			}
			custom_trigger_tooltip = {
				tooltip = SOV_last_step_revolution_tt3
				check_variable = {
					var = revolution_count
					value = 9
					compare = greater_than_or_equals
				}
			}
		}

		complete_effect = {
			swap_ideas = {
				remove_idea = SOV_Marching_revolution2
				add_idea = SOV_Marching_revolution3
			}
			hidden_effect = {
				if = {
					limit = {
						NOT = {
							has_tech = tech_logistics_company
						}
					}
					set_technology = {
						tech_logistics_company = 1
					}
				}
				if = {
					limit = {
						NOT = {
							has_tech = tech_signal_company
						}
					}
					set_technology = {
						tech_signal_company = 1
					}
				}
				if = {
					limit = { #TODO Check this again
						NOT = {
							has_tech = basic_medium_tank
						}
					}
					set_technology = {
						basic_medium_tank = 1
					}
				}
				if = {
					limit = {
						NOT = {
							has_tech = mechanised_infantry
						}
					}
					set_technology = {
						mechanised_infantry = 1
					}
				}
				if = {
					limit = {
						NOT = {
							has_tech = armored_car1
						}
					}
					set_technology = {
						armored_car1 = 1
					}
				}
				if = {
					limit = {
						NOT = {
							has_tech = rocket_artillery
						}
					}
					set_technology = {
						rocket_artillery = 1
					}
				}
				division_template = {
					name = "Tanki Osvobozhdeniya"
					priority = 2
					regiments = {
						medium_armor = { x = 0 y = 0 }
						medium_armor = { x = 0 y = 1 }
						medium_armor = { x = 0 y = 2 }
						medium_armor = { x = 0 y = 3 }
						medium_armor = { x = 0 y = 4 }
						medium_armor = { x = 1 y = 0 }
						medium_armor = { x = 1 y = 1 }
						medium_armor = { x = 1 y = 2 }
						medium_armor = { x = 1 y = 3 }
						medium_armor = { x = 1 y = 4 }
						mechanized = { x = 2 y = 0 }
						mechanized = { x = 2 y = 1 }
						mechanized = { x = 2 y = 2 }
						mechanized = { x = 2 y = 3 }
						mechanized = { x = 2 y = 4 }
						mechanized = { x = 3 y = 0 }
						mechanized = { x = 3 y = 1 }
						mechanized = { x = 3 y = 2 }
						mechanized = { x = 3 y = 3 }
						mechanized = { x = 3 y = 4 }
					}
					support = {
						rocket_artillery = { x = 0 y = 0 }
						logistics_company = { x = 0 y = 1 }
						signal_company = { x = 0 y = 2 }
						light_tank_recon = { x = 0 y = 3 }
						engineer = { x = 0 y = 4 }
					}
				}
				capital_scope = {
					create_unit = {
						division = "name = \"1st Tanki Osvobozhdeniya Divsion\" division_template = \"Tanki Osvobozhdeniya\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
						owner = SOV
					}
					create_unit = {
						division = "name = \"2nd Tanki Osvobozhdeniya Divsion\" division_template = \"Tanki Osvobozhdeniya\" start_experience_factor = 1.0 start_equipment_factor = 1.0"
						owner = SOV
					}
				}
			}
			custom_effect_tooltip = SOV_last_step_revolution_tt4
			set_country_flag = SOV_last_step_of_revolution
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_end_revolution = {

		icon = generic_form_nation

		fire_only_once = yes

		cost = 100

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_completed_focus = SOV_consolidate_true_communism
		}

		available = {
			has_completed_focus = SOV_revolution_to_the_utmost
			custom_trigger_tooltip = {
				tooltip = SOV_end_revolution_tt
				NOT = {
					any_country = {
						is_major = yes
						NOT = {
							has_government = communism
						}
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_end_revolution_tt2
				has_country_flag =  SOV_last_step_of_revolution
			}
			custom_trigger_tooltip = {
				tooltip = SOV_end_revolution_tt3
				check_variable = {
					var = revolution_count
					value = 12
					compare = greater_than_or_equals
				}
			}
		}

		complete_effect = {
			country_event = russia2_russia.92
			remove_ideas = SOV_Marching_revolution3
			add_ideas = SOV_Dancing_revolution
			custom_effect_tooltip = SOV_end_revolution_tt4
			hidden_effect = {
				add_state_core = 766
				add_state_core = 78
				add_state_core = 80
				add_state_core = 91
				add_state_core = 89
				add_state_core = 93
				add_state_core = 94
				add_state_core = 95
				add_state_core = 96
				add_state_core = 784
				add_state_core = 11
				add_state_core = 189
				add_state_core = 188
				add_state_core = 815
				add_state_core = 814
				add_state_core = 12
				add_state_core = 190
				add_state_core = 809
				add_state_core = 808
				add_state_core = 810
				add_state_core = 191
				add_state_core = 13
				add_state_core = 811
				add_state_core = 812
				add_state_core = 813
				add_state_core = 146
				add_state_core = 147
				add_state_core = 722
				add_state_core = 330
				add_state_core = 820
				add_state_core = 818
				add_state_core = 817
				add_state_core = 819
				add_state_core = 537
				add_state_claim = 463
				add_state_claim = 797
				add_state_claim = 10
				add_state_claim = 64
				add_state_claim = 42
				add_state_claim = 16
				add_state_claim = 126
				add_state_claim = 2
				add_state_claim = 41
				add_state_claim = 4
				add_state_claim = 608
				add_state_claim = 282
				add_state_claim = 439
				add_state_claim = 361
			}
			set_country_flag = SOV_ended_revolution
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_invest_russian_sphere = {

	SOV_invest_russian_sphere_europe = {

		icon = GFX_decision_generic_construction

		days_remove = 180

		allowed = {
			original_tag = SOV
		}

		target_array = global.russia_reworked_russian_states

		highlight_states = {
			highlight_states_trigger = {
				state = FROM.capital
			}
		}

		visible = {
			FROM = {
				exists = yes
				has_country_flag = democratic_russia_chaos_europe
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_investment_russian_sphere
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_country_flag = democratic_russia_chaos_europe
			}
		}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			FROM = {
				is_subject_of = ROOT
			}
			if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 0
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_no_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 1
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_low_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 2
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_medium_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
				has_completed_focus = SOV_continue_investments
			}
			else_if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_high_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
				has_completed_focus = SOV_continue_investments
			}
			custom_trigger_tooltip = {
				tooltip = SOV_preemptive_coup_tt
				check_variable = {
					var = united_russia_strength
					value = 3
					compare = less_than_or_equals
				}
			}
		}

		modifier = {
			civilian_factory_use = 3
		}

		cost = 40

		remove_effect = {
			FROM = {
				random_owned_state = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
				random_owned_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				add_to_variable = {
					var = russian_investment@FROM
					value = 1
				}
			}
			add_to_variable = {
				var = sov_total_investment
				value = 1
			}
		}

		ai_will_do = {
			factor = 500
		}
	}

	SOV_invest_russian_sphere_asia = {

		icon = GFX_decision_generic_construction

		days_remove = 140

		allowed = {
			original_tag = SOV
		}

		target_array = global.russia_reworked_russian_states

		highlight_states = {
			highlight_states_trigger = {
				state = FROM.capital
			}
		}

		visible = {
			FROM = {
				exists = yes
				has_country_flag = democratic_russia_chaos_asia
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_investment_russian_sphere
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_country_flag = democratic_russia_chaos_asia
			}
		}

		available = {
			num_of_civilian_factories_available_for_projects > 1
			FROM = {
				is_subject_of = ROOT
			}
			if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 0
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_no_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 1
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_low_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 2
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_medium_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_high_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_preemptive_coup_tt
				check_variable = {
					var = united_russia_strength
					value = 3
					compare = less_than_or_equals
				}
			}
		}

		modifier = {
			civilian_factory_use = 2
		}

		cost = 30

		remove_effect = {
			FROM = {
				random_owned_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				random_owned_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				add_to_variable = {
					var = russian_investment@FROM
					value = 1
				}
			}
			add_to_variable = {
				var = sov_total_investment
				value = 1
			}
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_invest_russian_sphere_caucasus = {

		icon = GFX_decision_generic_construction

		days_remove = 100

		allowed = {
			original_tag = SOV
		}

		target_array = global.russia_reworked_russian_states

		highlight_states = {
			highlight_states_trigger = {
				state = FROM.capital
			}
		}

		visible = {
			FROM = {
				exists = yes
				has_country_flag = democratic_russia_chaos_caucasus
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_investment_russian_sphere
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_country_flag = democratic_russia_chaos_caucasus
			}
		}

		available = {
			num_of_civilian_factories_available_for_projects > 0
			FROM = {
				is_subject_of = ROOT
			}
			if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 0
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_no_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 1
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_low_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 2
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_medium_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = equals
						}
					}
				}
				custom_trigger_tooltip = {
					tooltip = russian_sphere_high_investment
					FROM = {
						check_variable = {
							var = russian_investment@FROM
							value = 3
							compare = less_than
						}
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_preemptive_coup_tt
				check_variable = {
					var = united_russia_strength
					value = 3
					compare = less_than_or_equals
				}
			}
		}

		modifier = {
			civilian_factory_use = 1
		}

		cost = 20

		remove_effect = {
			FROM = {
				random_owned_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				random_owned_state = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
				add_to_variable = {
					var = russian_investment@FROM
					value = 1
				}
			}
			add_to_variable = {
				var = sov_total_investment
				value = 1
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_the_second_civil_war_fn = {

	#This is just for informational purposes.
	SOV_second_civil_war_fn = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = yes
			has_completed_focus = SOV_second_civil_war
		}

		activation = {
			has_country_flag = second_civil_war_mission
		}

		days_mission_timeout = 140

		is_good = no

		timeout_effect = {

		}

		complete_effect = {

		}
	}

	SOV_relocate_civ_industry = {

		icon = GFX_decision_hol_attract_foreign_investors

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = second_civil_war_mission
		}

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
					check_variable = {
						var = civilian_relocate_count
						value = 2
						compare = greater_than
					}
				}
			}
		}

		cost = 10

		days_remove = 15

		remove_effect = {

		}

		complete_effect = {
			custom_effect_tooltip = SOV_relocate_civ_industry_tt
			add_to_variable = { civilian_relocate_count = 1 }
			hidden_effect = {
				random_owned_state = {
					limit = {
						industrial_complex > 0
						original_white_province_second_civil_war = no
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}
				random_owned_state = {
					limit = {
						original_white_province_second_civil_war = yes
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	SOV_relocate_arms_industry = {

		icon = GFX_decision_ger_military_buildup

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = second_civil_war_mission
		}

		ai_will_do = {
			factor = 150
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
					check_variable = {
						var = military_relocate_count
						value = 2
						compare = greater_than
					}
				}
			}
		}

		cost = 15

		days_remove = 15
		remove_effect = {

		}

		complete_effect = {
			custom_effect_tooltip = SOV_relocate_arms_industry_tt
			add_to_variable = { military_relocate_count = 1 }
			hidden_effect = {
				random_owned_state = {
					limit = {
						arms_factory > 0
						original_white_province_second_civil_war = no
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
				}
				random_owned_state = {
					limit = {
						original_white_province_second_civil_war = yes
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	SOV_buy_weapons = {

		icon = GFX_decision_generic_industry

		allowed = {
			tag = SOV
		}
		available = {
			has_civil_war = no
			custom_trigger_tooltip = {
				tooltip = SOV_buy_weapons_tt
				check_variable = {
					var = buy_weapons_count
					value = 6
					compare = less_than_or_equals
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_tokens_to_buy_weapons
				check_variable = {
					var = token_buy_weapons
					value = 1
					compare = greater_than_or_equals
				}
			}
		}
		visible = {
			has_country_flag = second_civil_war_mission
			check_variable = {
				var = buy_weapons_count
				value = 7
				compare = less_than
			}
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		cost = 15

		days_remove = 14
		remove_effect = {

		}

		complete_effect = {
			custom_effect_tooltip = buy_weapons
			set_country_flag = buy_weaps
			add_to_variable = {
				var = buy_weapons_count
				value = 1
			}
			add_to_variable = {
				var = token_buy_weapons
				value = -1
			}
			add_to_variable = {
				var = buy_weapons_final_count
				value = 2500
			}
		}
	}

	SOV_contact_foreign_countries = {

		icon = GFX_decision_eng_trade_unions_support

		target_array = global.sov_foreign_major_country

		allowed = {
			tag = SOV
		}

		available = {
			FROM = {
				NOT = {
					has_civil_war = yes
				}
				exists = yes
			}
			NOT = {
				has_country_flag = is_contacting_foreign_major_power
			}
		}

		visible = {
			FROM = {
				NOT = {
					has_government = communism
					has_civil_war = yes
					has_war_with = ROOT
				}
				exists = yes
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = FROM.capital
			}
		}

		fire_only_once = yes

		ai_will_do = {
			factor = 150
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
					has_country_flag = sov_from_accepts_to_help_scw
				}
			}
		}

		cost = 20

		days_remove = 14

		remove_effect = {
			clr_country_flag = is_contacting_foreign_major_power
			FROM = {
				country_event = { id = russia2_generic.31 hours = 1 }
			}
			remove_from_array = { global.sov_foreign_major_country = FROM }
			custom_effect_tooltip = result_of_contacting_foreing_country
		}

		complete_effect = {
			set_country_flag = is_contacting_foreign_major_power
		}
	}

	SOV_sympathize_with_ukraine = {

		icon = GFX_decision_generic_political_discourse

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 202
				is_controlled_by = ROOT
			}
		}

		visible = {
			has_country_flag = second_civil_war_mission
		}

		ai_will_do = {
			factor = 800
			modifier = {
				factor = 0.1
				UKR = {
					OR = {
						has_country_flag = UKR_AI_ISOLATED_BEHAVIOR
						has_country_flag = UKR_AI_AGGRESSIVE_BEHAVIOR
						has_country_flag = UKR_AI_ALLIANCE_FINLAND_BEHAVIOR
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					UKR = {
						has_country_flag = UKR_AI_ANARCHIST_BEHAVIOR
					}
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 50

		complete_effect = {
			custom_effect_tooltip = sympathize_with_ukraine_civil_war_tt
			if = {
				limit = {
					UKR = {
						is_ai = yes
						OR = {
							has_country_flag = UKR_AI_ISOLATED_BEHAVIOR
							has_country_flag = UKR_AI_AGGRESSIVE_BEHAVIOR
							has_country_flag = UKR_AI_ALLIANCE_FINLAND_BEHAVIOR
						}
					}
				}
				custom_effect_tooltip = sympathize_with_ukraine_will_have_less_effect_tt
			}
			else_if = {
				limit = {
					UKR = {
						is_ai = yes
						has_country_flag = UKR_AI_ANARCHIST_BEHAVIOR
					}
				}
				custom_effect_tooltip = sympathize_with_ukraine_wont_have_effect_tt
			}
			hidden_effect = {
				set_country_flag = sympathize_with_ukraine
			}
		}

	}

	SOV_take_control_caucasus = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			tag = SOV
		}

		on_map_mode = map_and_decisions_view

		highlight_states = {
			highlight_states_trigger = {
				state = 235
			}
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = second_civil_war_mission
		}

		ai_will_do = {
			factor = 700
		}

		fire_only_once = yes

		cost = 40

		complete_effect = {
			custom_effect_tooltip = control_caucasus_civil_war_tt
			hidden_effect = {
				set_country_flag = control_caucasus
			}
		}
	}

	SOV_take_control_central_asia = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			tag = SOV
		}

		on_map_mode = map_and_decisions_view

		highlight_states = {
			highlight_states_trigger = {
				state = 404
			}
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = second_civil_war_mission
		}

		ai_will_do = {
			factor = 650
		}

		fire_only_once = yes

		cost = 35

		complete_effect = {
			custom_effect_tooltip = control_central_asia_civil_war_tt
			hidden_effect = {
				set_country_flag = control_central_asia
			}
		}
	}

	SOV_take_control_belarus = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			tag = SOV
		}

		on_map_mode = map_and_decisions_view

		highlight_states = {
			highlight_states_trigger = {
				state = 206
			}
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = second_civil_war_mission
		}

		ai_will_do = {
			factor = 600
		}

		fire_only_once = yes

		cost = 25

		complete_effect = {
			custom_effect_tooltip = control_belarus_civil_war_tt
			hidden_effect = {
				set_country_flag = control_belarus
			}
		}
	}

	SOV_sabotage_military_industries = {

		icon = GFX_decision_generic_scorched_earth

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
			command_power > 15
		}

		visible = {
			has_country_flag = second_civil_war_mission
			all_of = {
				array = sabotage_military_count
				value = current
				index = i

				set_temp_variable = { sabotage_count = i }
				check_variable = {
					var = sabotage_count
					value = 4
					compare = less_than
				}
			}
		}

		ai_will_do = {
			factor = 9
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = train_caucasian_soldiers_civil_war
					}
					check_variable = {
						var = sabotage_count
						value = 1
						compare = greater_than
					}
				}
			}
		}

		cost = 0

		days_remove = 20

		remove_effect = {

		}

		complete_effect = {
			add_to_array = { sabotage_military_count = 1 }
			custom_effect_tooltip = sabotage_military
			hidden_effect = {
				add_command_power = -15
			}
			set_country_flag = sabotage_mils
		}
	}

	SOV_sabotage_civilian_industries = {

		icon = GFX_decision_generic_scorched_earth

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
			command_power > 15
		}

		visible = {
			has_country_flag = second_civil_war_mission
			all_of = {
				array = sabotage_civilian_count
				value = current
				index = i

				set_temp_variable = { sabotage_count = i }
				check_variable = {
					var = sabotage_count
					value = 4
					compare = less_than
				}
			}
		}

		ai_will_do = {
			factor = 9
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = train_caucasian_soldiers_civil_war
					}
					check_variable = {
						var = sabotage_count
						value = 1
						compare = greater_than
					}
				}
			}
		}

		cost = 0

		days_remove = 20

		remove_effect = {

		}

		complete_effect = {
			add_to_array = { sabotage_civilian_count = 1 }
			custom_effect_tooltip = sabotage_civilian
			hidden_effect = {
				add_command_power = -15
			}
			set_country_flag = sabotage_civs
		}
	}

	SOV_steal_weapons = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
			command_power > 20
			custom_trigger_tooltip = {
				tooltip = SOV_steal_weapons_tt
				check_variable = {
					var = steal_weapons_count
					value = 6
					compare = less_than
				}
			}
		}

		visible = {
			has_country_flag = second_civil_war_mission
		}

		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = train_caucasian_soldiers_civil_war
				}
			}
		}

		cost = 0

		days_remove = 20

		remove_effect = {

		}

		complete_effect = {
			add_to_variable = {
				var = steal_weapons_count
				value = 1
			}
			add_to_variable = {
				var = steal_weapons_final_count
				value = 1000
			}
			custom_effect_tooltip = steal_weapons
			hidden_effect = {
				add_command_power = -20
			}
			set_country_flag = steal_weaps
		}
	}

	SOV_train_caucasus_soldiers = {

		icon = GFX_decision_generic_army_support

		allowed = {
			tag = SOV
		}

		available = {
			has_country_flag = control_caucasus
			has_civil_war = no
			command_power > 30
		}

		visible = {
			has_country_flag = second_civil_war_mission
		}

		ai_will_do = {
			factor = 500
		}

		fire_only_once = yes

		cost = 0

		days_remove = 20

		remove_effect = {

		}

		complete_effect = {
			custom_effect_tooltip = train_caucasian_soldiers
			hidden_effect = {
				add_command_power = -30
				set_country_flag = train_caucasian_soldiers_civil_war
			}
		}
	}

	SOV_train_mountaineers_elite_unit = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
			command_power > 25
		}

		visible = {
			has_country_flag = can_train_mountaineers
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_train_mountaineers_tt
			custom_effect_tooltip = if_we_own_caucasus_they_will_spawn_here
			hidden_effect = {
				add_command_power = -25
				set_country_flag = has_trained_mountaineers_for_civil_war
			}
		}
	}

	SOV_train_elite_unit = {

		icon = GFX_decision_generic_army_support

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
			command_power > 30
		}

		visible = {
			has_country_flag = second_civil_war_mission
			if = {
				limit = {
					is_ai = yes
				}
				has_country_flag = train_caucasian_soldiers_civil_war
			}
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 0

		days_remove = 20

		remove_effect = {

		}

		complete_effect = {
			custom_effect_tooltip = SOV_train_elite_unit_tt
			hidden_effect = {
				add_command_power = -30
				set_country_flag = train_elite_soldiers_civil_war
			}
		}
	}

	SOV_engage_italian_unit = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
			has_country_flag = control_caucasus
		}

		visible = {
			has_country_flag = can_engage_italian_volunteers
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_engage_italian_unit_tt
			hidden_effect = {
				set_country_flag = has_engaged_italian_division_for_civil_war
				if = {
					limit = {
						has_country_flag = sov_from_accepts_to_help_scw
					}
					clr_country_flag = sov_from_accepts_to_help_scw
				}
			}
		}
	}

	SOV_purchase_panzer_elite_unit = {

		icon = GFX_decision_generic_tank

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
			command_power > 30
		}

		visible = {
			has_country_flag = can_purchase_panzer
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_train_panzer_unit_tt
			hidden_effect = {
				add_command_power = -30
				set_country_flag = has_purchased_panzers_for_civil_war
				if = {
					limit = {
						has_country_flag = sov_from_accepts_to_help_scw
					}
					clr_country_flag = sov_from_accepts_to_help_scw
				}
			}
		}
	}

	SOV_recruit_japanese_elite_unit = {

		icon = GFX_decision_jap_pacific_guardian

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
			command_power > 30
		}

		visible = {
			has_country_flag = can_recruit_japanese_volunteer
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_recruit_japanese_unit_tt
			hidden_effect = {
				add_command_power = -30
				set_country_flag = has_recruited_japanese_elite_for_civil_war
				if = {
					limit = {
						has_country_flag = sov_from_accepts_to_help_scw
					}
					clr_country_flag = sov_from_accepts_to_help_scw
				}
			}
		}
	}

	SOV_buy_japanese_ships_cw = {

		icon = GFX_decision_generic_naval

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = can_recruit_japanese_volunteer
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 40

		complete_effect = {
			custom_effect_tooltip = SOV_buy_japanese_ships_cw_tt
			hidden_effect = {
				set_country_flag = has_bought_japanese_ships_for_civil_war
				if = {
					limit = {
						has_country_flag = sov_from_accepts_to_help_scw
					}
					clr_country_flag = sov_from_accepts_to_help_scw
				}
			}
		}
	}

	SOV_buy_american_planes_cw = {

		icon = GFX_decision_generic_air

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = can_buy_american_planes
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_buy_american_planes_cw_tt
			hidden_effect = {
				set_country_flag = has_bought_american_planes_for_civil_war
				if = {
					limit = {
						has_country_flag = sov_from_accepts_to_help_scw
					}
					clr_country_flag = sov_from_accepts_to_help_scw
				}
			}
		}
	}

	SOV_buy_french_artillery_cw = {

		icon = GFX_decision_generic_industry

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = can_buy_french_artillery
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_buy_french_artillery_cw_tt
			hidden_effect = {
				set_country_flag = has_bought_french_artillery_for_civil_war
				if = {
					limit = {
						has_country_flag = sov_from_accepts_to_help_scw
					}
					clr_country_flag = sov_from_accepts_to_help_scw
				}
			}
		}
	}

	SOV_buy_french_support_equipment_cw = {

		icon = GFX_decision_ger_military_buildup

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = can_buy_french_support_equipment
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_buy_french_support_equipment_cw_tt
			hidden_effect = {
				set_country_flag = has_bought_french_support_equipment_for_civil_war
				if = {
					limit = {
						has_country_flag = sov_from_accepts_to_help_scw
					}
					clr_country_flag = sov_from_accepts_to_help_scw
				}
			}
		}
	}

	SOV_buy_english_ships_cw = {

		icon = GFX_decision_generic_naval

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = can_buy_english_ships
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 35

		complete_effect = {
			custom_effect_tooltip = SOV_buy_english_ships_cw_tt
			hidden_effect = {
				set_country_flag = has_bought_english_ships_for_civil_war
				if = {
					limit = {
						has_country_flag = sov_from_accepts_to_help_scw
					}
					clr_country_flag = sov_from_accepts_to_help_scw
				}
			}
		}
	}

	SOV_train_russian_marine_cw = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = no
		}

		visible = {
			has_country_flag = can_buy_english_ships
		}

		ai_will_do = {
			factor = 400
			modifier = {
				factor = 0
				OR = {
					NOT = {
						has_country_flag = control_belarus
					}
					NOT = {
						has_country_flag = control_central_asia
					}
					NOT = {
						has_country_flag = control_caucasus
					}
				}
			}
		}

		fire_only_once = yes

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_train_russian_marine_cw_tt
			hidden_effect = {
				set_country_flag = has_trained_russian_marine_for_civil_war
				if = {
					limit = {
						has_country_flag = sov_from_accepts_to_help_scw
					}
					clr_country_flag = sov_from_accepts_to_help_scw
				}
			}
		}
	}

	SOV_soviet_declaration = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			tag = SOV
		}

		available = {
			has_civil_war = yes
		}

		activation = {
			has_country_flag = preparation_done_russian_civil_war_russia2
		}

		days_mission_timeout = 5

		is_good = no

		timeout_effect = {
			SOV = {
				country_event = { id = russia2_russia.131 }
			}
		}

		complete_effect = {

		}
	}
}

SOV_deal_with_britain = {

	SOV_air_raid_british_ships = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			tag = SOV
		}
		available = {
			has_full_control_of_state = 195
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			custom_effect_tooltip = sov_air_raid_use_mil_tt
			hidden_effect = {
				random_owned_state = {
					limit = {
						arms_factory > 0
						NOT = {
							has_state_flag = give_back_mil_after_air_raid
						}
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
					set_state_flag = give_back_mil_after_air_raid
				}
				random_owned_state = {
					limit = {
						arms_factory > 0
						NOT = {
							has_state_flag = give_back_mil_after_air_raid
						}
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
					set_state_flag = give_back_mil_after_air_raid
				}
				random_owned_state = {
					limit = {
						arms_factory > 0
						NOT = {
							has_state_flag = give_back_mil_after_air_raid
						}
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
					set_state_flag = give_back_mil_after_air_raid
				}
				random_owned_state = {
					limit = {
						arms_factory > 0
						NOT = {
							has_state_flag = give_back_mil_after_air_raid
						}
					}
					remove_building = {
						type = arms_factory
						level = 1
					}
					set_state_flag = give_back_mil_after_air_raid
				}
			}
		}

		cost = 100

		days_remove = 60

		remove_effect = {
			ENG = {
				country_event = { id = russia2_russia.126 days = 1 }
			}
			set_country_flag = dealt_with_britain
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = give_back_mil_after_air_raid
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	SOV_last_british_ultimatum = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			tag = SOV
		}

		ai_will_do = {
			factor = 0
		}

		cost = 50

		complete_effect = {
			ENG = {
				country_event = { id = russia2_russia.128 days = 1 }
			}
			set_country_flag = dealt_with_britain
			custom_effect_tooltip = will_war_with_uk_if_fail_tt
		}
	}
}

SOV_expand_entente_decision = {

	SOV_invite_old_entente = {

		icon = GFX_decision_eng_trade_unions_support

		fire_only_once = yes

		days_remove = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_reform_entente
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = { is_in_faction_with = ROOT }
				OR = {
					tag = ENG
					tag = USA
					tag = ITA
					tag = SER
					tag = MNT
					tag = BEL
					tag = SAU
					tag = POR
					tag = ROM
					tag = GRE
					tag = SIA
					tag = BRA
				}
			}
		}

		available = {
			OR = {
				has_opinion = {
					target = FROM
					value > 49
				}
				FROM = {
					has_opinion = {
						target = ROOT
						value > 49
					}
				}
			}
			FROM = {
				is_subject = no
				OR = {
					has_government = democratic
					has_government = neutrality
				}
				NOT = {
					has_war_with = SOV
				}
				if = {
					limit = {
						FROM = {
							tag = USA
						}
					}

					has_war_support > 0.5
				}
				if = {
					limit = {
						FROM = {
							has_country_flag = is_target_of_SOV_democratic
						}
					}
					NOT = {
						has_country_flag = is_target_of_SOV_democratic
					}
				}
			}
			if = {
				limit = {
					FROM = {
						tag = ENG
					}
				}
				NOT = {
					ENG = {
						has_country_flag = cut_all_diplomatic_ties_with_sov
					}
					has_idea = SOV_Blockaded_by_eng
				}
			}
		}

		cost = 50

		remove_effect = {
			FROM = {
				country_event = {
					id = russia2_russia.154
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_perpetual_defense_liberty_decisions = {

	SOV_demand_change_government = {

		icon = GFX_decision_hol_war_on_pacifism

		fire_only_once = yes

		days_remove = 30

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				NOT = {
					is_subject_of = ROOT
					if = {
						limit = {
							NOT = {
								has_government = democratic
							}
						}
						is_in_faction_with = ROOT
					}
					has_capitulated = yes
				}
			}
			FROM = {
				exists = yes
				NOT = {
					is_subject_of = ROOT
					is_in_faction_with = ROOT
					has_capitulated = yes
					has_government = democratic
					tag = POL
					tag = LIT
					tag = LAT
					tag = EST
					tag = ROM
				}
				any_owned_state = {
					is_controlled_by = FROM
					is_capital = yes
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_perpetual_defense_liberty
		}

		target_trigger = {
			FROM = {
				exists = yes
				OR = {
					is_neighbor_of = ROOT
					any_country = {
						is_in_faction_with = ROOT
						is_neighbor_of = FROM
					}
					any_country = {
						is_subject_of = ROOT
						is_neighbor_of = FROM
					}
				}
				NOT = {
					is_subject_of = ROOT
					is_in_faction_with = ROOT
					has_capitulated = yes
					has_government = democratic
					tag = POL
					tag = LIT
					tag = LAT
					tag = EST
					tag = ROM
				}
				any_owned_state = {
					is_controlled_by = FROM
					is_capital = yes
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				is_owned_and_controlled_by = FROM
				is_capital = yes
			}
		}

		war_with_target_on_remove = yes

		available = {
			NOT = {
				has_country_flag = is_changing_foreign_government
			}
			FROM = {
				is_subject = no
				NOT = {
					has_government = democratic
				}
				NOT = {
					has_war_with = ROOT
				}
			}
		}

		complete_effect = {
			set_country_flag = is_changing_foreign_government
			FROM = {
				country_event = russia2_russia.331
				set_country_flag = is_target_of_SOV_democratic
				activate_mission = SOV_is_building_up_against_from_democratic
			}
		}

		cost = 50

		cancel_effect = {
			hidden_effect = {
				FROM = {
					clr_country_flag = is_target_of_SOV_democratic
				}
				clr_country_flag = is_changing_foreign_government
			}
		}

		remove_effect = {
			FROM = {
				country_event = {
					id = russia2_russia.170
				}
				clr_country_flag = is_target_of_SOV_democratic
			}
			clr_country_flag = is_changing_foreign_government
		}

		ai_will_do = {
			factor = 100
			modifier = {
				add = -90
				has_war = yes
				OR = {
					any_country = {
						is_major = yes
						is_in_faction_with = FROM
					}
					any_country = {
						is_major = yes
						has_guaranteed = FROM
					}
					FROM = {
						is_major = yes
					}
				}
			}
			modifier = {
				factor = 0
				FROM = {
					alliance_strength_ratio > 1
				}
			}
		}
	}
}

SOV_control_of_church = {

	SOV_change_church_control_base = {

		icon = GFX_decision_hol_war_on_pacifism

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = reform_church_control
				value = 1
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = has_reformed_church_1_times_or_more
				check_variable = {
					var = reform_church_control
					value = 1
					compare = greater_than_or_equals
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_change_church_control_base_tt
			custom_effect_tooltip = SOV_Church_power_idead_tt
			clr_country_flag = church_last_reform
      		set_country_flag = church_last_reform
			set_variable = { pp_gain_church_power = 0.25 }
			set_variable = { stability_gain_church_power = 0 }
			set_variable = { war_support_gain_church_power = 0 }
			set_variable = { research_gain_church_power = 0 }
			set_variable = { resistance_gain_church_power = 0 }
			set_variable = { army_core_attack_gain_church_power = 0 }
			set_variable = { army_core_defense_gain_church_power = 0 }
			set_variable = { mobilization_gain_church_power = 0 }
			set_variable = { building_gain_church_power = 0 }
			set_variable = { infrastructure_gain_church_power = 0 }
			set_variable = { industrial_fac_gain_church_power = 0 }
			set_variable = { efficiency_fac_gain_church_power = 0 }
			set_variable = { reform_church_control = 0 }
		}

		cost = 25

		ai_will_do = {
			factor = 100
		}
	}

	SOV_change_church_control_stability = {

		icon = GFX_decision_hol_attract_foreign_investors

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = stability_gain_church_power
				value = 0.15
				compare = less_than
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = not_has_reformed_church_4_times
				check_variable = {
					var = reform_church_control
					value = 4
					compare = less_than
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = add_15_stability_to_church_control
			custom_effect_tooltip = remove_15_political_daily_gain_to_church_control
			add_to_variable = {
				var = pp_gain_church_power
				value = -0.15
			}
			add_to_variable = {
				var = reform_church_control
				value = 1
			}
			add_to_variable = {
				var = stability_gain_church_power
				value = 0.15
			}
			clr_country_flag = church_last_reform
      		set_country_flag = church_last_reform
		}

		cost = 50

		ai_will_do = {
			factor = 100
		}
	}

  	SOV_change_church_control_war = {

		icon = GFX_decision_eng_propaganda_campaigns

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = war_support_gain_church_power
				value = 0.20
				compare = less_than
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = not_has_reformed_church_4_times
				check_variable = {
					var = reform_church_control
					value = 4
					compare = less_than
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = add_20_war_support_to_church_control
			custom_effect_tooltip = remove_15_political_daily_gain_to_church_control
			add_to_variable = {
				var = pp_gain_church_power
				value = -0.15
			}
			add_to_variable = {
				var = reform_church_control
				value = 1
			}
			add_to_variable = {
				var = war_support_gain_church_power
				value = 0.20
			}
			clr_country_flag = church_last_reform
      		set_country_flag = church_last_reform
		}

		cost = 50

		ai_will_do = {
			factor = 100
		}
	}

	SOV_change_church_control_research = {

		icon = GFX_decision_generic_research

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = research_gain_church_power
				value = 0.025
				compare = less_than
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = not_has_reformed_church_4_times
				check_variable = {
					var = reform_church_control
					value = 4
					compare = less_than
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = add_025_research_speed_to_church_control
			custom_effect_tooltip = remove_15_political_daily_gain_to_church_control
			add_to_variable = {
				var = pp_gain_church_power
				value = -0.15
			}
			add_to_variable = {
				var = reform_church_control
				value = 1
			}
			add_to_variable = {
				var = research_gain_church_power
				value = 0.025
			}
			clr_country_flag = church_last_reform
      		set_country_flag = church_last_reform
		}

		cost = 50

		ai_will_do = {
			factor = 100
		}
	}

	SOV_change_church_control_open_other_religion = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = resistance_gain_church_power
				value = -0.10
				compare = greater_than
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = not_has_reformed_church_4_times
				check_variable = {
					var = reform_church_control
					value = 4
					compare = less_than
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = add_10_resistance_target_to_church_control
			custom_effect_tooltip = remove_15_political_daily_gain_to_church_control
			add_to_variable = {
				var = pp_gain_church_power
				value = -0.15
			}
			add_to_variable = {
				var = reform_church_control
				value = 1
			}
			add_to_variable = {
				var = resistance_gain_church_power
				value = -0.10
			}
			clr_country_flag = church_last_reform
      		set_country_flag = church_last_reform
		}

		cost = 50

		ai_will_do = {
			factor = 100
		}
	}

 	SOV_change_church_control_military = {

		icon = GFX_decision_eng_support_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = army_core_attack_gain_church_power
				value = 0.10
				compare = less_than
			}
			check_variable = {
				var = army_core_defense_gain_church_power
				value = 0.10
				compare = less_than
			}
			check_variable = {
				var = mobilization_gain_church_power
				value = 0.10
				compare = less_than
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = not_has_reformed_church_4_times
				check_variable = {
					var = reform_church_control
					value = 4
					compare = less_than
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = add_army_core_and_mobi_to_church_control
			custom_effect_tooltip = remove_30_political_daily_gain_to_church_control
			add_to_variable = {
				var = pp_gain_church_power
				value = -0.30
			}
			add_to_variable = {
				var = reform_church_control
				value = 1
			}
			add_to_variable = {
				var = army_core_attack_gain_church_power
				value = 0.10
			}
			add_to_variable = {
				var = army_core_defense_gain_church_power
				value = 0.10
			}
			add_to_variable = {
				var = mobilization_gain_church_power
				value = 0.10
			}
			clr_country_flag = church_last_reform
      		set_country_flag = church_last_reform

		}

		cost = 75

		ai_will_do = {
			factor = 100
		}
	}

	SOV_change_church_control_aid_poorer_region = {

		icon = GFX_decision_generic_construction

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = building_gain_church_power
				value = 0.05
				compare = less_than
			}
			check_variable = {
				var = infrastructure_gain_church_power
				value = 0.10
				compare = less_than
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = not_has_reformed_church_4_times
				check_variable = {
					var = reform_church_control
					value = 4
					compare = less_than
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = add_construction_speed_infra_to_church_control
			custom_effect_tooltip = remove_30_political_daily_gain_to_church_control
			add_to_variable = {
				var = pp_gain_church_power
				value = -0.30
			}
			add_to_variable = {
				var = reform_church_control
				value = 1
			}
			add_to_variable = {
				var = building_gain_church_power
				value = 0.05
			}
			add_to_variable = {
				var = infrastructure_gain_church_power
				value = 0.10
			}
			clr_country_flag = church_last_reform
      		set_country_flag = church_last_reform

		}

		cost = 75

		ai_will_do = {
			factor = 100
		}
	}

	SOV_change_church_control_motivate_factory_workers = {

		icon = GFX_decision_generic_industry

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = industrial_fac_gain_church_power
				value = 0.05
				compare = less_than
			}
			check_variable = {
				var = efficiency_fac_gain_church_power
				value = 0.10
				compare = less_than
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = not_has_reformed_church_4_times
				check_variable = {
					var = reform_church_control
					value = 4
					compare = less_than
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = add_industrial_gain_to_church_control
			custom_effect_tooltip = remove_30_political_daily_gain_to_church_control
			add_to_variable = {
				var = pp_gain_church_power
				value = -0.30
			}
			add_to_variable = {
				var = reform_church_control
				value = 1
			}
			add_to_variable = {
				var = industrial_fac_gain_church_power
				value = 0.05
			}
			add_to_variable = {
				var = efficiency_fac_gain_church_power
				value = 0.10
			}
			clr_country_flag = church_last_reform
      		set_country_flag = church_last_reform

		}

		cost = 75

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_destroy_communist_resistance = {

	SOV_send_recon_team_central_russia = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			command_power > 20
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = central_russia_claims
			has_completed_focus = SOV_destroy_communist
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 254
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 25

		remove_effect = {
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
						    var = recon_team_central_russia_variables
						    value = 75
						    compare = greater_than_or_equals
						}
					}
					SOV = {
						country_event = { id = russia2_russia.199 hours = 2 }
					}
				}
				else = {
					SOV = {
						country_event = { id = russia2_russia.200 hours = 2 }
					}
					add_to_variable = {
						var = recon_team_central_russia_variables
						value = 15
					}
					randomize_variable = {
						var = recon_team_central_russia_variables
						distribution = uniform
						min = recon_team_central_russia_variables
						max = 100
					}
					round_variable = recon_team_central_russia_variables
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_send_recon_team_central_russia_tt
			hidden_effect = {
				add_command_power = -20
			}
		}
	}

	SOV_raid_communist_hideout_central_russia = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			has_equipment = {
				infantry_equipment > 4999
			}
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = central_russia_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = no
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 254
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 223
					add_state_core = 222
					add_state_core = 220
					add_state_core = 240
					add_state_core = 260
					add_state_core = 258
					add_state_core = 257
					add_state_core = 255
					add_state_core = 254
					clr_country_flag = central_russia_raids
					set_country_flag = central_russia_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_central_russia_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
			hidden_effect = {
				SOV = {
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = -5000
					}
				}
			}
		}
	}

	SOV_raid_communist_hideout_central_russia_ai = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = central_russia_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = yes
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 254
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 25

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 223
					add_state_core = 222
					add_state_core = 220
					add_state_core = 240
					add_state_core = 260
					add_state_core = 258
					add_state_core = 257
					add_state_core = 255
					add_state_core = 254
					clr_country_flag = central_russia_raids
					set_country_flag = central_russia_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_central_russia_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
		}
	}

	SOV_send_recon_team_kuban_region = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			command_power > 20
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = kuban_region_claims
			has_completed_focus = SOV_destroy_communist
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 235
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 25

		remove_effect = {
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
						    var = recon_team_kuban_region_variables
						    value = 75
						    compare = greater_than_or_equals
						}
					}
					SOV = {
						country_event = { id = russia2_russia.201 hours = 2 }
					}
				}
				else = {
					SOV = {
						country_event = { id = russia2_russia.242 hours = 2 }
					}
					add_to_variable = {
						var = recon_team_kuban_region_variables
						value = 20
					}
					randomize_variable = {
						var = recon_team_kuban_region_variables
						distribution = uniform
						min = recon_team_kuban_region_variables
						max = 100
					}
					round_variable = recon_team_kuban_region_variables
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_send_recon_team_kuban_region_tt
			hidden_effect = {
				add_command_power = -20
			}
		}
	}

	SOV_raid_communist_hideout_kuban_region = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			has_equipment = {
				infantry_equipment > 2499
			}
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = kuban_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = no
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 235
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 218
					add_state_core = 234
					add_state_core = 235
					add_state_core = 232
					add_state_core = 238
					add_state_core = 237
					add_state_core = 236
					clr_country_flag = kuban_region_raids
					set_country_flag = kuban_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_kuban_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
			hidden_effect = {
				SOV = {
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = -2500
					}
				}
			}
		}
	}

	SOV_raid_communist_hideout_kuban_region_ai = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = kuban_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = yes
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 235
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost =25

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 218
					add_state_core = 234
					add_state_core = 235
					add_state_core = 232
					add_state_core = 238
					add_state_core = 237
					add_state_core = 236
					clr_country_flag = kuban_region_raids
					set_country_flag = kuban_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_kuban_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
		}
	}

	SOV_send_recon_team_transvolga_region = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			command_power > 20
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = transvolga_region_claims
			has_completed_focus = SOV_destroy_communist
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 399
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 25

		remove_effect = {
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
						    var = recon_team_transvolga_region_variables
						    value = 75
						    compare = greater_than_or_equals
						}
					}
					SOV = {
						country_event = { id = russia2_russia.202 hours = 2 }
					}
				}
				else = {
					SOV = {
						country_event = { id = russia2_russia.243 hours = 2 }
					}
					add_to_variable = {
						var = recon_team_transvolga_region_variables
						value = 20
					}
					randomize_variable = {
						var = recon_team_transvolga_region_variables
						distribution = uniform
						min = recon_team_transvolga_region_variables
						max = 100
					}
					round_variable = recon_team_transvolga_region_variables
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_send_recon_team_transvolga_region_tt
			hidden_effect = {
				add_command_power = -20
			}
		}
	}

	SOV_raid_communist_hideout_transvolga_region = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			has_equipment = {
				infantry_equipment > 2499
			}
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = transvolga_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = no
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 399
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 250
					add_state_core = 256
					add_state_core = 249
					add_state_core = 400
					add_state_core = 399
					add_state_core = 651
					add_state_core = 398
					add_state_core = 833
					clr_country_flag = transvolga_region_raids
					set_country_flag = transvolga_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_transvolga_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
			hidden_effect = {
				SOV = {
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = -2500
					}
				}
			}
		}
	}

	SOV_raid_communist_hideout_transvolga_region_ai = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = transvolga_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = yes
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 399
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 25

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 250
					add_state_core = 256
					add_state_core = 249
					add_state_core = 400
					add_state_core = 399
					add_state_core = 651
					add_state_core = 398
					add_state_core = 833
					clr_country_flag = transvolga_region_raids
					set_country_flag = transvolga_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_transvolga_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
		}
	}

	SOV_send_recon_team_urals_region = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			command_power > 20
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = urals_region_claims
			has_completed_focus = SOV_destroy_communist
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 573
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 25

		remove_effect = {
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
						    var = recon_team_urals_region_variables
						    value = 60
						    compare = greater_than_or_equals
						}
					}
					SOV = {
						country_event = { id = russia2_russia.203 hours = 2 }
					}
				}
				else = {
					SOV = {
						country_event = { id = russia2_russia.244 hours = 2 }
					}
					add_to_variable = {
						var = recon_team_urals_region_variables
						value = 20
					}
					randomize_variable = {
						var = recon_team_urals_region_variables
						distribution = uniform
						min = recon_team_urals_region_variables
						max = 100
					}
					round_variable = recon_team_urals_region_variables
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_send_recon_team_urals_region_tt
			hidden_effect = {
				add_command_power = -20
			}
		}
	}

	SOV_raid_communist_hideout_urals_region = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			has_equipment = {
				infantry_equipment > 999
			}
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = urals_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = no
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 573
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 582
					add_state_core = 573
					clr_country_flag = urals_region_raids
					set_country_flag = urals_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_urals_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
			hidden_effect = {
				SOV = {
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = -1000
					}
				}
			}
		}
	}

	SOV_raid_communist_hideout_urals_region_ai = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = urals_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = yes
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 573
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 25

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 582
					add_state_core = 573
					clr_country_flag = urals_region_raids
					set_country_flag = urals_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_urals_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
		}
	}

	SOV_send_recon_team_artic_region = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			command_power > 20
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = artic_region_claims
			has_completed_focus = SOV_destroy_communist
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 214
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 25

		remove_effect = {
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
						    var = recon_team_artic_region_variables
						    value = 50
						    compare = greater_than_or_equals
						}
					}
					SOV = {
						country_event = { id = russia2_russia.204 hours = 2 }
					}
				}
				else = {
					SOV = {
						country_event = { id = russia2_russia.245 hours = 2 }
					}
					add_to_variable = {
						var = recon_team_artic_region_variables
						value = 25
					}
					randomize_variable = {
						var = recon_team_artic_region_variables
						distribution = uniform
						min = recon_team_artic_region_variables
						max = 100
					}
					round_variable = recon_team_artic_region_variables
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_send_recon_team_artic_region_tt
			hidden_effect = {
				add_command_power = -20
			}
		}
	}

	SOV_raid_communist_hideout_artic_region = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			has_equipment = {
				infantry_equipment > 1499
			}
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = artic_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = no
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 214
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 351
					add_state_core = 262
					add_state_core = 397
					add_state_core = 215
					add_state_core = 213
					add_state_core = 214
					add_state_core = 581
					add_state_core = 825
					add_state_core = 879
					add_state_core = 880
					clr_country_flag = artic_region_raids
					set_country_flag = artic_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_artic_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
			hidden_effect = {
				SOV = {
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = -1500
					}
				}
			}
		}
	}

	SOV_raid_communist_hideout_artic_region_ai = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = artic_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = yes
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 214
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 25

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 351
					add_state_core = 262
					add_state_core = 397
					add_state_core = 215
					add_state_core = 213
					add_state_core = 214
					add_state_core = 581
					add_state_core = 825
					add_state_core = 879
					add_state_core = 880
					clr_country_flag = artic_region_raids
					set_country_flag = artic_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_artic_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
		}
	}

	SOV_send_recon_team_siberia_region = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			command_power > 20
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = siberia_region_claims
			has_completed_focus = SOV_destroy_communist
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 580
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 25

		remove_effect = {
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
						    var = recon_team_siberia_region_variables
						    value = 50
						    compare = greater_than_or_equals
						}
					}
					SOV = {
						country_event = { id = russia2_russia.205 hours = 2 }
					}
				}
				else = {
					SOV = {
						country_event = { id = russia2_russia.246 hours = 2 }
					}
					add_to_variable = {
						var = recon_team_siberia_region_variables
						value = 25
					}
					randomize_variable = {
						var = recon_team_siberia_region_variables
						distribution = uniform
						min = recon_team_siberia_region_variables
						max = 100
					}
					round_variable = recon_team_siberia_region_variables
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_send_recon_team_siberia_region_tt
			hidden_effect = {
				add_command_power = -20
			}
		}
	}

	SOV_raid_communist_hideout_siberia_region = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			has_equipment = {
				infantry_equipment > 1499
			}
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = siberia_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = no
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 580
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 579
					add_state_core = 580
					add_state_core = 653
					add_state_core = 572
					add_state_core = 403
					add_state_core = 571
					add_state_core = 570
					add_state_core = 40
					add_state_core = 654
					add_state_core = 569
					add_state_core = 578
					add_state_core = 577
					add_state_core = 824
					add_state_core = 516
					add_state_core = 568
					add_state_core = 576
					add_state_core = 567
					add_state_core = 566
					add_state_core = 564
					add_state_core = 575
					add_state_core = 565
					add_state_core = 563
					add_state_core = 878
					add_state_core = 876
					clr_country_flag = siberia_region_raids
					set_country_flag = siberia_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_siberia_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
			hidden_effect = {
				SOV = {
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = -1500
					}
				}
			}
		}
	}

	SOV_raid_communist_hideout_siberia_region_ai = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = siberia_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = yes
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 580
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 25

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 579
					add_state_core = 580
					add_state_core = 653
					add_state_core = 572
					add_state_core = 403
					add_state_core = 571
					add_state_core = 570
					add_state_core = 40
					add_state_core = 654
					add_state_core = 569
					add_state_core = 578
					add_state_core = 577
					add_state_core = 824
					add_state_core = 516
					add_state_core = 568
					add_state_core = 576
					add_state_core = 567
					add_state_core = 566
					add_state_core = 564
					add_state_core = 575
					add_state_core = 565
					add_state_core = 563
					add_state_core = 878
					add_state_core = 876
					clr_country_flag = siberia_region_raids
					set_country_flag = siberia_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_siberia_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
		}
	}

	SOV_send_recon_team_novgorod_region = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			command_power > 20
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = novgorod_region_claims
			has_completed_focus = SOV_destroy_communist
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 263
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 25

		remove_effect = {
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
						    var = recon_team_novgorod_region_variables
						    value = 75
						    compare = greater_than_or_equals
						}
					}
					SOV = {
						country_event = { id = russia2_russia.206 hours = 2 }
					}
				}
				else = {
					SOV = {
						country_event = { id = russia2_russia.247 hours = 2 }
					}
					add_to_variable = {
						var = recon_team_novgorod_region_variables
						value = 20
					}
					randomize_variable = {
						var = recon_team_novgorod_region_variables
						distribution = uniform
						min = recon_team_novgorod_region_variables
						max = 100
					}
					round_variable = recon_team_novgorod_region_variables
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_send_recon_team_novgorod_region_tt
			hidden_effect = {
				add_command_power = -20
			}
		}
	}

	SOV_raid_communist_hideout_novgorod_region = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			has_equipment = {
				infantry_equipment > 2499
			}
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = novgorod_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = no
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 263
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 210
					add_state_core = 246
					add_state_core = 247
					add_state_core = 209
					add_state_core = 263
					add_state_core = 264
					add_state_core = 244
					add_state_core = 208
					add_state_core = 216
					clr_country_flag = novgorod_region_raids
					set_country_flag = novgorod_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_novgorod_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
			hidden_effect = {
				SOV = {
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = -2500
					}
				}
			}
		}
	}

	SOV_raid_communist_hideout_novgorod_region_ai = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_country_flag = novgorod_region_raids
			has_completed_focus = SOV_destroy_communist
			is_ai = yes
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 263
			}
		}

		ai_will_do = {
			factor = 15
		}

		cost = 0

		days_remove = 10

		remove_effect = {
			hidden_effect = {
				SOV = {
					add_state_core = 210
					add_state_core = 246
					add_state_core = 247
					add_state_core = 209
					add_state_core = 263
					add_state_core = 264
					add_state_core = 244
					add_state_core = 208
					add_state_core = 216
					clr_country_flag = novgorod_region_raids
					set_country_flag = novgorod_region_done
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_raid_communist_hideout_novgorod_region_tt
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
			}
		}
	}

	SOV_finish_communist_partisan = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		available = {
			has_country_flag = central_russia_done
			has_country_flag = kuban_region_done
			has_country_flag = transvolga_region_done
			has_country_flag = urals_region_done
			has_country_flag = artic_region_done
			has_country_flag = siberia_region_done
			has_country_flag = novgorod_region_done
		}

		visible = {
			has_idea = SOV_Communist_resistance3
			has_completed_focus = SOV_destroy_communist
		}

		cost = 0

		ai_will_do = {
			factor = 500
		}

		complete_effect = {
			remove_ideas = SOV_Communist_resistance3
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.05
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.10
				}
			}
		}
	}

	SOV_partisan_attack = {

		icon = GFX_decision_generic_scorched_earth

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_idea = SOV_Communist_resistance3
			}
		}

		activation = {
			has_idea = SOV_Communist_resistance3
		}

		days_mission_timeout = 25

		is_good = no

		timeout_effect = {
			random_owned_controlled_state = {
				limit = {
					non_damaged_building_level = {
						building = industrial_complex level > 0
					}
				}
				damage_building = {
					type = industrial_complex damage = 1
				}
			}
			random_owned_controlled_state = {
				limit = {
					non_damaged_building_level = {
						building = arms_factory level > 0
					}
				}
				damage_building = {
					type = arms_factory damage = 1
				}
			}
			random_owned_controlled_state = {
				limit = {
					non_damaged_building_level = {
						building = infrastructure level > 1
					}
				}
				damage_building = {
					type = infrastructure
					damage = 1
				}
			}
			add_manpower = -4000
		}

		complete_effect = {

		}
	}
}

SOV_buy_guns_foreign_country = {

	SOV_small_shipment = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = shipment_in_progress
			}
			custom_trigger_tooltip = {
				tooltip = bought_7_times_guns
				check_variable = {
					var = small_equipment
					value = 7
					compare = less_than
				}
			}
			OR = {
				custom_trigger_tooltip = {
					tooltip = weapons_limit_number_10
					has_equipment = {
						infantry_equipment < 10000
					}
				}
				NOT = {
					has_idea = SOV_Communist_resistance3
				}
			}
		}

		visible = {
			check_variable = {
				var = small_equipment
				value = 7
				compare = less_than
			}
			has_completed_focus = SOV_buying_equipment
		}

		cost = 10

		ai_will_do = {
			factor = 25
		}

		days_remove = 35

		modifier = {
			civilian_factory_use = 3
		}

		complete_effect = {
			add_to_variable = {
				var = small_equipment
				value = 1
			}
			set_country_flag = shipment_in_progress
		}

		remove_effect = {
			SOV = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_1
					amount = 1000
				}
			}
			clr_country_flag = shipment_in_progress
		}
	}

	SOV_medium_shipment = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = shipment_in_progress
			}
			custom_trigger_tooltip = {
				tooltip = bought_3_times_guns_m
				check_variable = {
					var = medium_equipment
					value = 3
					compare = less_than
				}
			}
			OR = {
				custom_trigger_tooltip = {
					tooltip = weapons_limit_number_10
					has_equipment = {
						infantry_equipment < 10000
					}
				}
				NOT = {
					has_idea = SOV_Communist_resistance3
				}
			}
		}

		visible = {
			check_variable = {
				var = medium_equipment
				value = 3
				compare = less_than
			}
			has_completed_focus = SOV_buying_equipment
		}

		cost = 25

		ai_will_do = {
			factor = 50
		}

		days_remove = 35

		modifier = {
			civilian_factory_use = 6
		}

		complete_effect = {
			add_to_variable = {
				var = medium_equipment
				value = 1
			}
			set_country_flag = shipment_in_progress
		}

		remove_effect = {
			SOV = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_1
					amount = 2500
				}
			}
			clr_country_flag = shipment_in_progress
		}
	}

	SOV_large_shipment = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = shipment_in_progress
			}
			custom_trigger_tooltip = {
				tooltip = bought_2_times_guns_l
				check_variable = {
					var = medium_equipment
					value = 2
					compare = less_than
				}
			}
			OR = {
				custom_trigger_tooltip = {
					tooltip = weapons_limit_number_10
					has_equipment = {
						infantry_equipment < 10000
					}
				}
				NOT = {
					has_idea = SOV_Communist_resistance3
				}
			}
		}

		visible = {
			check_variable = {
				var = medium_equipment
				value = 2
				compare = less_than
			}
			has_completed_focus = SOV_buying_equipment
		}

		cost = 50

		ai_will_do = {
			factor = 75
		}

		days_remove = 35

		modifier = {
			civilian_factory_use = 12
		}

		complete_effect = {
			add_to_variable = {
				var = medium_equipment
				value = 1
			}
			set_country_flag = shipment_in_progress
		}

		remove_effect = {
			SOV = {
				add_equipment_to_stockpile = {
					type = infantry_equipment_1
					amount = 5000
				}
			}
			clr_country_flag = shipment_in_progress
		}
	}
}

SOV_unite_slavic_nation_ultimatum_decision = {

	SOV_ultimatum_poland_slavic = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = sending_ultimatum_slavic_country
				has_war_with = POL
			}
			country_exists = POL
			NOT = {
				POL = {
					is_subject_of = SOV
					is_in_faction_with = SOV
					has_capitulated = yes
				}
			}
		}

		visible = {
			country_exists = POL
			NOT = {
				POL = {
					is_subject_of = SOV
				}
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = sending_ultimatum_slavic_country
		}

		cancel_trigger = {
			OR = {
				NOT = {
					country_exists = POL
				}
				has_war_with = POL
				POL = {
					is_subject_of = SOV
				}
				POL = {
					is_in_faction_with = SOV
				}
				POL = {
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
		}

		remove_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
			POL = {
				country_event = { id = russia2_generic.15 days = 1 }
			}
		}
	}

	SOV_ultimatum_poland_non_slavic = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = sending_ultimatum_slavic_country
				has_war_with = FROM
			}
			FROM = {
				any_state = {
					has_state_flag = SOV_slavic_states
					is_core_of = POL
				}
				NOT = {
					is_subject_of = SOV
				}
			}
		}

		target_trigger = {
			FROM = {
				any_state = {
					has_state_flag = SOV_slavic_states
					is_core_of = POL
					is_owned_by = FROM
				}
				NOT = {
					tag = POL
					tag = CZE
					tag = YUG
					tag = BUL
					tag = SLO
					is_subject_of = SOV
					has_capitulated = yes
				}
			}
		}

		visible = {
			FROM = {
				any_state = {
					has_state_flag = SOV_slavic_states
					is_core_of = POL
					is_owned_by = FROM
				}
				NOT = {
					tag = POL
					tag = CZE
					tag = YUG
					tag = BUL
					tag = SLO
					is_subject_of = SOV
				}
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = sending_ultimatum_slavic_country
		}

		cancel_trigger = {
			NOT = {
				FROM = {
					any_state = {
						has_state_flag = SOV_slavic_states
						is_core_of = POL
						is_owned_by = FROM
					}
				}
			}
			OR = {
				NOT = {
					country_exists = FROM
				}
				has_war_with = POL
				FROM = {
					is_subject_of = SOV
				}
				FROM = {
					is_in_faction_with = SOV
				}
				FROM = {
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
		}

		remove_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
			FROM = {
				country_event = { id = russia2_generic.15 days = 1 }
			}
		}
	}

	SOV_integrate_poland_slavic = {

		icon = GFX_decision_generic_decision

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = is_integrating_SOV_slavic_states_decision
			}
			custom_trigger_tooltip = {
				tooltip = SOV_slavic_empire_pol_states
				controls_state = 89
				controls_state = 91
				controls_state = 93
				controls_state = 94
				controls_state = 95
				controls_state = 96
				controls_state = 97
				controls_state = 92
				controls_state = 88
				controls_state = 90
				controls_state = 10
				controls_state = 98
				controls_state = 87
			}
		}

		visible = {

		}

		fire_only_once = yes

		cost = 150

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		cancel_trigger = {

		}

		complete_effect = {
			set_country_flag = is_integrating_SOV_slavic_states_decision
		}

		remove_effect = {
			custom_effect_tooltip = gains_core_on_polish_state_slavic
			clr_country_flag = is_integrating_SOV_slavic_states_decision
			clr_country_flag = is_focusing_on_area_slavic_state
			hidden_effect = {
				set_country_flag = has_integrated_pol_core_states
				every_state = {
					limit = {
						OR = {
							has_state_flag = SOV_slavic_states			
							has_state_flag = SOV_baltic_states_slav		
							has_state_flag = SOV_german_slavic_state	
						}
						is_core_of = POL
						is_owned_by = ROOT
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}
	}

	SOV_ultimatum_yugoslavia_slavic = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = sending_ultimatum_slavic_country
				has_war_with = YUG
			}
			country_exists = YUG
			NOT = {
				YUG = {
					is_subject_of = SOV
					is_in_faction_with = SOV
					has_completed_focus = YUG_limited_self_government
					has_capitulated = yes
				}
			}
		}

		visible = {
			has_completed_focus = SOV_unite_western_balkan
			country_exists = YUG
			NOT = {
				YUG = {
					is_subject_of = SOV
					has_completed_focus = YUG_limited_self_government
				}
				any_country = {
					OR = {
						tag = SLV
						tag = CRO
						tag = BOS
						tag = HRZ
						tag = MNT
						tag = KOS
						tag = MAC
						tag = TRA
					}
					is_subject_of = YUG
					has_capitulated = no
				}
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = sending_ultimatum_slavic_country
		}

		cancel_trigger = {
			OR = {
				NOT = {
					country_exists = YUG
				}
				has_war_with = YUG
				YUG = {
					is_subject_of = SOV
				}
				YUG = {
					is_in_faction_with = SOV
				}
				YUG = {
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
		}

		remove_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
			YUG = {
				country_event = { id = russia2_generic.15 days = 1 }
			}
		}
	}

	SOV_ultimatum_yugoslavia_disolved_slavic = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = sending_ultimatum_slavic_country
				has_war_with = YUG
			}
			country_exists = YUG
			NOT = {
				YUG = {
					is_subject_of = SOV
					is_in_faction_with = SOV
					has_capitulated = yes
				}
			}
			any_country = {
				OR = {
					tag = SLV
					tag = CRO
					tag = BOS
					tag = HRZ
					tag = MNT
					tag = KOS
					tag = MAC
					tag = TRA
				}
				is_subject_of = YUG
				has_capitulated = no
			}
		}

		visible = {
			has_completed_focus = SOV_unite_western_balkan
			country_exists = YUG
			OR = {
				country_exists = SLV
				country_exists = CRO
				country_exists = BOS
				country_exists = HRZ
				country_exists = MNT
				country_exists = KOS
				country_exists = MAC
				country_exists = TRA
			}
			NOT = {
				YUG = {
					is_subject_of = SOV
				}
			}
			YUG = {
				has_completed_focus = YUG_limited_self_government
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = sending_ultimatum_slavic_country
		}

		cancel_trigger = {
			OR = {
				NOT = {
					country_exists = YUG
				}
				has_war_with = YUG
				YUG = {
					is_subject_of = SOV
				}
				YUG = {
					is_in_faction_with = SOV
				}
				YUG = {
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
		}

		remove_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
			YUG = {
				country_event = { id = russia2_generic.15 days = 1 }
			}
		}
	}

	SOV_ultimatum_yugoslavia_non_slavic = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = sending_ultimatum_slavic_country
				has_war_with = FROM
			}
			FROM = {
				any_state = {
					has_state_flag = SOV_slavic_states
					is_core_of = YUG
				}
				NOT = {
					is_subject_of = SOV
				}
			}
		}

		target_trigger = {
			FROM = {
				any_state = {
					has_state_flag = SOV_slavic_states
					OR = {
						is_core_of = YUG
						is_core_of = SLV
						is_core_of = CRO
						is_core_of = BOS
						is_core_of = HRZ
						is_core_of = MNT
						is_core_of = KOS
						is_core_of = MAC
						is_core_of = TRA
					}
					is_owned_by = FROM
				}
				NOT = {
					tag = POL
					tag = CZE
					tag = YUG
					tag = BUL
					tag = SLO
					is_subject_of = SOV
					has_capitulated = yes
				}
				if = {
					limit = {
						YUG = {
							has_completed_focus = YUG_limited_self_government
							exists = yes
							NOT = {
								is_subject = yes
							}
						}
					}
					NOT = {
						tag = SLV
						tag = CRO
						tag = BOS
						tag = HRZ
						tag = MNT
						tag = KOS
						tag = MAC
						tag = TRA
					}
				}
			}
		}

		visible = {
			has_completed_focus = SOV_unite_western_balkan
			FROM = {
				any_state = {
					has_state_flag = SOV_slavic_states
					is_core_of = YUG
					is_owned_by = FROM
				}
				NOT = {
					tag = POL
					tag = CZE
					tag = YUG
					tag = BUL
					tag = SLO
					is_subject_of = SOV
				}
				if = {
					limit = {
						YUG = {
							has_completed_focus = YUG_limited_self_government
							exists = yes
							NOT = {
								is_subject = yes
							}
						}
					}
					NOT = {
						tag = SLV
						tag = CRO
						tag = BOS
						tag = HRZ
						tag = MNT
						tag = KOS
						tag = MAC
						tag = TRA
					}
				}
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = sending_ultimatum_slavic_country
		}

		cancel_trigger = {
			NOT = {
				FROM = {
					any_state = {
						has_state_flag = SOV_slavic_states
						is_core_of = YUG
						is_owned_by = FROM
					}
				}
			}
			OR = {
				NOT = {
					country_exists = FROM
				}
				has_war_with = FROM
				FROM = {
					is_subject_of = SOV
				}
				FROM = {
					is_in_faction_with = SOV
				}
				FROM = {
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
		}

		remove_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
			FROM = {
				country_event = { id = russia2_generic.15 days = 1 }
			}
		}
	}

	SOV_integrate_yugoslavia_slavic = { #Should be fixed

		icon = GFX_decision_generic_decision

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = is_integrating_SOV_slavic_states_decision
			}
			custom_trigger_tooltip = {
				tooltip = SOV_slavic_empire_yug_states
				controls_state = 106
				controls_state = 107
				controls_state = 108
				controls_state = 764
				controls_state = 45
				controls_state = 109
				controls_state = 104
				controls_state = 103
				controls_state = 105
				controls_state = 102
				controls_state = 802
				controls_state = 803
				controls_state = 804
				controls_state = 853
			}
		}

		visible = {
			has_completed_focus = SOV_unite_western_balkan
		}

		fire_only_once = yes

		cost = 150

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		cancel_trigger = {

		}

		complete_effect = {
			set_country_flag = is_integrating_SOV_slavic_states_decision
		}

		remove_effect = {
			custom_effect_tooltip = gains_core_on_yugoslavian_state_slavic
			clr_country_flag = is_integrating_SOV_slavic_states_decision
			clr_country_flag = is_focusing_on_area_slavic_state
			hidden_effect = {
				set_country_flag = has_integrated_yug_core_states
				add_state_core = 106
				add_state_core = 107
				add_state_core = 108
				add_state_core = 764
				add_state_core = 45
				add_state_core = 109
				add_state_core = 104
				add_state_core = 103
				add_state_core = 105
				add_state_core = 102
				add_state_core = 802
				add_state_core = 803
				add_state_core = 804
				add_state_core = 853
				every_state = {
					limit = {
						has_state_flag = SOV_slavic_states
						OR = {
							is_core_of = YUG
							is_core_of = SLV
							is_core_of = CRO
							is_core_of = BOS
							is_core_of = HRZ
							is_core_of = MNT
							is_core_of = KOS
							is_core_of = MAC
							is_core_of = TRA
						}
						NOT = {
							state = 106
							state = 107
							state = 108
							state = 764
							state = 45
							state = 109
							state = 104
							state = 103
							state = 105
							state = 102
							state = 802
							state = 803
							state = 804
							state = 853
						}
						is_owned_by = ROOT
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}
	}

	SOV_ultimatum_bulgaria_slavic = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = sending_ultimatum_slavic_country
				has_war_with = BUL
			}
			country_exists = BUL
			NOT = {
				BUL = {
					is_subject_of = SOV
					is_in_faction_with = SOV
					has_capitulated = yes
				}
			}
		}

		visible = {
			has_completed_focus = SOV_unite_eastern_balkan
			country_exists = BUL
			NOT = {
				BUL = {
					is_subject_of = SOV
				}
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = sending_ultimatum_slavic_country
		}

		cancel_trigger = {
			OR = {
				NOT = {
					country_exists = BUL
				}
				has_war_with = BUL
				BUL = {
					is_subject_of = SOV
				}
				BUL = {
					is_in_faction_with = SOV
				}
				BUL = {
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
		}

		remove_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
			BUL = {
				country_event = { id = russia2_generic.15 days = 1 }
			}
		}
	}

	SOV_ultimatum_bulgaria_non_slavic = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = sending_ultimatum_slavic_country
				has_war_with = FROM
			}
			FROM = {
				any_state = {
					has_state_flag = SOV_slavic_states
					is_core_of = BUL
				}
				NOT = {
					is_subject_of = SOV
				}
			}
		}

		target_trigger = {
			FROM = {
				any_state = {
					has_state_flag = SOV_slavic_states
					is_core_of = BUL
					is_owned_by = FROM
				}
				NOT = {
					tag = POL
					tag = CZE
					tag = YUG
					tag = BUL
					is_subject_of = SOV
					has_capitulated = yes
				}
			}
		}

		visible = {
			has_completed_focus = SOV_unite_eastern_balkan
			FROM = {
				any_state = {
					has_state_flag = SOV_slavic_states
					is_core_of = BUL
					is_owned_by = FROM
				}
				NOT = {
					tag = POL
					tag = CZE
					tag = YUG
					tag = BUL
					tag = SLO
					is_subject_of = SOV
				}
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = sending_ultimatum_slavic_country
		}

		cancel_trigger = {
			NOT = {
				FROM = {
					any_state = {
						has_state_flag = SOV_slavic_states
						is_core_of = BUL
						is_owned_by = FROM
					}
				}
			}
			OR = {
				NOT = {
					country_exists = BUL
				}
				has_war_with = BUL
				BUL = {
					is_subject_of = SOV
				}
				BUL = {
					is_in_faction_with = SOV
				}
				BUL = {
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
		}

		remove_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
			FROM = {
				country_event = { id = russia2_generic.15 days = 1 }
			}
		}
	}

	SOV_integrate_bulgaria_slavic = {

		icon = GFX_decision_generic_decision

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = is_integrating_SOV_slavic_states_decision
			}
			custom_trigger_tooltip = {
				tooltip = SOV_slavic_empire_bul_states
				controls_state = 211
				controls_state = 212
				controls_state = 48
				controls_state = 801
			}
		}

		visible = {
			has_completed_focus = SOV_unite_eastern_balkan
		}

		fire_only_once = yes

		cost = 150

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = is_integrating_SOV_slavic_states_decision
		}

		cancel_trigger = {

		}

		remove_effect = {
			custom_effect_tooltip = gains_core_on_bulgarian_state_slavic
			clr_country_flag = is_integrating_SOV_slavic_states_decision
			clr_country_flag = is_focusing_on_area_slavic_state
			hidden_effect = {
				set_country_flag = has_integrated_bul_core_states
				every_state = {
					limit = {
						has_state_flag = SOV_slavic_states
						is_core_of = BUL
						is_owned_by = ROOT
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}
	}

	SOV_ultimatum_czechoslovakia_slavic = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = sending_ultimatum_slavic_country
				has_war_with = CZE
			}
			country_exists = CZE
			NOT = {
				CZE = {
					is_subject_of = SOV
					is_in_faction_with = SOV
					has_capitulated = yes
				}
			}
		}

		visible = {
			has_completed_focus = SOV_unite_central_europe
			country_exists = CZE
			NOT = {
				CZE = {
					is_subject_of = SOV
				}
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = sending_ultimatum_slavic_country
		}

		cancel_trigger = {
			OR = {
				NOT = {
					country_exists = CZE
				}
				has_war_with = CZE
				CZE = {
					is_subject_of = SOV
				}
				CZE = {
					is_in_faction_with = SOV
				}
				CZE = {
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
		}

		remove_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
			CZE = {
				country_event = { id = russia2_generic.15 days = 1 }
			}
		}
	}

	SOV_ultimatum_slovakia_slavic = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = sending_ultimatum_slavic_country
				has_war_with = SLO
			}
			country_exists = SLO
			NOT = {
				SLO = {
					is_subject_of = SOV
					is_subject_of = GER
					is_in_faction_with = SOV
					has_capitulated = yes
				}
			}
		}

		visible = {
			has_completed_focus = SOV_unite_central_europe
			country_exists = SLO
			NOT = {
				SLO = {
					is_subject_of = SOV
					is_subject_of = GER
					is_in_faction_with = SOV
				}
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = sending_ultimatum_slavic_country
		}

		cancel_trigger = {
			OR = {
				NOT = {
					country_exists = SLO
				}
				has_war_with = SLO
				SLO = {
					is_subject_of = SOV
				}
				SLO = {
					is_in_faction_with = SOV
				}
				SLO = {
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
		}

		remove_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
			SLO = {
				country_event = { id = russia2_generic.15 days = 1 }
			}
		}
	}

	SOV_ultimatum_czechoslovakia_non_slavic = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = sending_ultimatum_slavic_country
				has_war_with = FROM
			}
			FROM = {
				any_state = {
					has_state_flag = SOV_slavic_states
					OR = {
						is_core_of = CZE
						is_core_of = SLO
					}
				}
				NOT = {
					is_subject_of = SOV
					has_capitulated = yes
				}
			}
		}

		target_trigger = {
			FROM = {
				any_state = {
					OR = {
						has_state_flag = SOV_czech_slavic_states
						has_state_flag = SOV_slavic_states
					}
					OR = {
						is_core_of = CZE
						is_core_of = SLO
					}
					is_owned_by = FROM
				}
				NOT = {
					tag = POL
					tag = CZE
					tag = YUG
					tag = BUL
					tag = SLO
					tag = GER
					is_subject_of = SOV
				}
			}
		}

		visible = {
			has_completed_focus = SOV_unite_central_europe
			FROM = {
				any_state = {
					OR = {
						has_state_flag = SOV_czech_slavic_states
						has_state_flag = SOV_slavic_states
					}
					OR = {
						is_core_of = CZE
						is_core_of = SLO
					}
					is_owned_by = FROM
				}
				NOT = {
					tag = POL
					tag = CZE
					tag = YUG
					tag = BUL
					tag = SLO
					is_subject_of = SOV
				}
			}
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = sending_ultimatum_slavic_country
		}

		cancel_trigger = {
			NOT = {
				FROM = {
					any_state = {
						OR = {
							has_state_flag = SOV_czech_slavic_states
							has_state_flag = SOV_slavic_states
						}
						is_core_of = CZE
						is_owned_by = FROM
					}
				}
			}
			OR = {
				NOT = {
					country_exists = SLO
				}
				has_war_with = SLO
				SLO = {
					is_subject_of = SOV
				}
				SLO = {
					is_in_faction_with = SOV
				}
				SLO = {
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
		}

		remove_effect = {
			clr_country_flag = sending_ultimatum_slavic_country
			FROM = {
				country_event = { id = russia2_generic.15 days = 1 }
			}
		}
	}

	SOV_integrate_czechoslovakia_slavic = {

		icon = GFX_decision_generic_decision

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = is_integrating_SOV_slavic_states_decision
			}
			custom_trigger_tooltip = {
				tooltip = SOV_slavic_empire_slo_states
				OR = {
					AND = {
						controls_state = 70
						controls_state = 71
						controls_state = 73
						controls_state = 664
					}
					AND = {
						controls_state = 72
						controls_state = 74
						controls_state = 75
						controls_state = 69
						controls_state = 9
					}
				}
			}
		}

		visible = {
			has_completed_focus = SOV_unite_central_europe
		}

		fire_only_once = yes

		cost = 150

		ai_will_do = {
			factor = 150
		}

		days_remove = 50

		complete_effect = {
			set_country_flag = is_integrating_SOV_slavic_states_decision
		}

		cancel_trigger = {

		}

		remove_effect = {
			custom_effect_tooltip = gains_core_on_czechoslovakian_state_slavic
			clr_country_flag = is_integrating_SOV_slavic_states_decision
			clr_country_flag = is_focusing_on_area_slavic_state
			hidden_effect = {
				set_country_flag = has_integrated_cze_core_states
				every_state = {
					limit = {
						OR = {
							has_state_flag = SOV_slavic_states
							has_state_flag = SOV_czech_slavic_states
						}
						OR = {
							is_core_of = CZE
							is_core_of = SLO
						}
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}
	}

	SOV_russianize_finland_decision_slavic = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		available = {
			OR = {
				FIN = {
					is_subject_of = SOV
				}
				custom_trigger_tooltip = {
					tooltip = full_control_all_states_finland
					has_full_control_of_state = 146
					has_full_control_of_state = 111
					has_full_control_of_state = 150
					has_full_control_of_state = 149
					has_full_control_of_state = 148
					has_full_control_of_state = 147
					has_full_control_of_state = 722
				}
			}
		}

		visible = {
			has_completed_focus = SOV_russianize_finland
		}

		fire_only_once = yes

		cost = 150

		ai_will_do = {
			factor = 150
		}

		days_remove = 70

		complete_effect = {

		}

		cancel_trigger = {

		}

		remove_effect = {
			if = {
				limit = {
					NOT = {
						country_exists = FIN
					}
				}
				every_state = {
					limit = {
						is_core_of = FIN
						is_owned_by = ROOT
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
			else_if = {
				limit = {
					country_exists = FIN
					FIN = {
						is_subject_of = SOV
					}
				}
				SOV = {
					annex_country = {
						target = FIN
						transfer_troops = yes
					}
				}
				every_state = {
					limit = {
						is_core_of = FIN
						is_owned_by = ROOT
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}
	}

	SOV_influence_romanian_government = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = is_russianizing_a_country
			}
			has_completed_focus = SOV_russianize_the_balkans
			ROM = {
				is_subject_of = SOV
			}
		}

		visible = {
			has_completed_focus = SOV_russianize_the_balkans
			ROM = { exists = yes }
		}

		cost = 50

		ai_will_do = {
			factor = 150
		}

		days_remove = 70

		complete_effect = {
			set_country_flag = is_russianizing_a_country
		}

		cancel_trigger = {
			NOT = {
				ROM = {
					is_subject_of = SOV
				}
			}
		}

		remove_effect = {
			clr_country_flag = is_russianizing_a_country
			custom_effect_tooltip = gain_between_5_and_10_russianization_romania
			set_temp_variable = {
				var = russianization_romania_gain
				value = 5
			}
			randomize_temp_variable = {
				var = russianization_romania_gain
				distribution = uniform
				min = russianization_romania_gain
				max = 10
			}
			round_temp_variable = russianization_romania_gain
			add_to_variable = {
				var = romania_russianization_slavic
				value = russianization_romania_gain
			}
		}
	}

	SOV_force_use_of_language_romania = {

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = is_russianizing_a_country
			}
			has_completed_focus = SOV_russianize_the_balkans
			ROM = {
				is_subject_of = SOV
			}
		}

		visible = {
			has_completed_focus = SOV_russianize_the_balkans
			ROM = { exists = yes }
		}

		cost = 100

		ai_will_do = {
			factor = 150
		}

		days_remove = 105

		modifier = {
			consumer_goods_factor = 0.05
			industrial_capacity_factory = -0.1
			research_speed_factor = -0.05
		}

		complete_effect = {
			set_country_flag = is_russianizing_a_country
			hidden_effect = {
				add_ideas = SOV_Russianization_balkan_medium
			}
		}

		cancel_trigger = {
			NOT = {
				ROM = {
					is_subject_of = SOV
				}
			}
		}

		cancel_effect = {
			clr_country_flag = is_russianizing_a_country
			hidden_effect = {
				remove_ideas = SOV_Russianization_balkan_medium
			}
		}

		remove_effect = {
			hidden_effect = {
				remove_ideas = SOV_Russianization_balkan_medium
			}
			clr_country_flag = is_russianizing_a_country
			custom_effect_tooltip = gain_between_10_and_20_russianization_romania
			set_temp_variable = {
				var = russianization_romania_gain
				value = 10
			}
			randomize_temp_variable = {
				var = russianization_romania_gain
				distribution = uniform
				min = russianization_romania_gain
				max = 20
			}
			round_temp_variable = russianization_romania_gain
			add_to_variable = {
				var = romania_russianization_slavic
				value = russianization_romania_gain
			}
		}
	}

	SOV_force_russian_politician_romania = {

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = is_russianizing_a_country
			}
			has_completed_focus = SOV_russianize_the_balkans
			ROM = {
				is_subject_of = SOV
			}
		}

		visible = {
			has_completed_focus = SOV_russianize_the_balkans
			ROM = { exists = yes }
		}

		cost = 150

		ai_will_do = {
			factor = 150
		}

		days_remove = 140

		modifier = {
			consumer_goods_factor = 0.15
			industrial_capacity_factory = -0.25
			research_speed_factor = -0.15
		}

		complete_effect = {
			set_country_flag = is_russianizing_a_country
			hidden_effect = {
				add_ideas = SOV_Russianization_balkan_large
			}
		}

		cancel_trigger = {
			NOT = {
				ROM = {
					is_subject_of = SOV
				}
			}
		}

		cancel_effect = {
			clr_country_flag = is_russianizing_a_country
			hidden_effect = {
				remove_ideas = SOV_Russianization_balkan_large
			}
		}

		remove_effect = {
			hidden_effect = {
				remove_ideas = SOV_Russianization_balkan_large
			}
			clr_country_flag = is_russianizing_a_country
			custom_effect_tooltip = gain_between_20_and_30_russianization_romania
			set_temp_variable = {
				var = russianization_romania_gain
				value = 20
			}
			randomize_temp_variable = {
				var = russianization_romania_gain
				distribution = uniform
				min = russianization_romania_gain
				max = 30
			}
			round_temp_variable = russianization_romania_gain
			add_to_variable = {
				var = romania_russianization_slavic
				value = russianization_romania_gain
			}
		}
	}

	SOV_russianize_romania_decision_slavic = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		available = {
			has_completed_focus = SOV_russianize_the_balkans
			ROM = {
				is_subject_of = SOV

			}
			custom_trigger_tooltip = {
				tooltip = has_100_or_more_russianization_romania
				check_variable = {
					var = romania_russianization_slavic
					value = 100
					compare = greater_than_or_equals
				}
			}
		}

		visible = {
			has_completed_focus = SOV_russianize_the_balkans
		}

		fire_only_once = yes

		cost = 150

		ai_will_do = {
			factor = 150
		}

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = ROM
				}
				SOV = {
					add_state_core = PREV
				}
			}
			annex_country = {
				target = ROM
				transfer_troops = yes
			}
		}
	}

	SOV_influence_hungarian_government = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = is_russianizing_a_country
			}
			has_completed_focus = SOV_russianize_the_balkans
			HUN = {
				is_subject_of = SOV
			}
		}

		visible = {
			has_completed_focus = SOV_russianize_the_balkans
			HUN = { exists = yes }
		}

		cost = 50

		ai_will_do = {
			factor = 150
		}

		days_remove = 70

		complete_effect = {
			set_country_flag = is_russianizing_a_country
		}

		cancel_trigger = {
			NOT = {
				HUN = {
					is_subject_of = SOV
				}
			}
		}

		remove_effect = {
			clr_country_flag = is_russianizing_a_country
			custom_effect_tooltip = gain_between_5_and_10_russianization_hungary
			set_temp_variable = {
				var = russianization_hungary_gain
				value = 5
			}
			randomize_temp_variable = {
				var = russianization_hungary_gain
				distribution = uniform
				min = russianization_hungary_gain
				max = 10
			}
			round_temp_variable = russianization_hungary_gain
			add_to_variable = {
				var = hungary_russianization_slavic
				value = russianization_hungary_gain
			}
		}
	}

	SOV_force_use_of_language_hungary = {

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = is_russianizing_a_country
			}
			has_completed_focus = SOV_russianize_the_balkans
			HUN = {
				is_subject_of = SOV
			}
		}

		visible = {
			has_completed_focus = SOV_russianize_the_balkans
			HUN = { exists = yes }
		}

		cost = 100

		ai_will_do = {
			factor = 150
		}

		days_remove = 105

		modifier = {
			consumer_goods_factor = 0.05
			industrial_capacity_factory = -0.1
			research_speed_factor = -0.05
		}

		complete_effect = {
			set_country_flag = is_russianizing_a_country
			hidden_effect = {
				add_ideas = SOV_Russianization_balkan_medium
			}
		}

		cancel_trigger = {
			NOT = {
				HUN = {
					is_subject_of = SOV
				}
			}
		}

		cancel_effect = {
			clr_country_flag = is_russianizing_a_country
			hidden_effect = {
				remove_ideas = SOV_Russianization_balkan_medium
			}
		}

		remove_effect = {
			hidden_effect = {
				remove_ideas = SOV_Russianization_balkan_medium
			}
			clr_country_flag = is_russianizing_a_country
			custom_effect_tooltip = gain_between_10_and_20_russianization_hungary
			set_temp_variable = {
				var = russianization_hungary_gain
				value = 10
			}
			randomize_temp_variable = {
				var = russianization_hungary_gain
				distribution = uniform
				min = russianization_hungary_gain
				max = 20
			}
			round_temp_variable = russianization_hungary_gain
			add_to_variable = {
				var = hungary_russianization_slavic
				value = russianization_hungary_gain
			}
		}
	}

	SOV_force_russian_politician_hungary = {

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_country_flag = is_russianizing_a_country
			}
			has_completed_focus = SOV_russianize_the_balkans
			HUN = {
				is_subject_of = SOV
			}
		}

		visible = {
			has_completed_focus = SOV_russianize_the_balkans
			HUN = { exists = yes }
		}

		cost = 150

		ai_will_do = {
			factor = 150
		}

		days_remove = 140

		modifier = {
			consumer_goods_factor = 0.15
			industrial_capacity_factory = -0.25
			research_speed_factor = -0.15
		}

		complete_effect = {
			set_country_flag = is_russianizing_a_country
			hidden_effect = {
				add_ideas = SOV_Russianization_balkan_large
			}
		}

		cancel_trigger = {
			NOT = {
				HUN = {
					is_subject_of = SOV
				}
			}
		}

		cancel_effect = {
			clr_country_flag = is_russianizing_a_country
			hidden_effect = {
				remove_ideas = SOV_Russianization_balkan_large
			}
		}

		remove_effect = {
			hidden_effect = {
				remove_ideas = SOV_Russianization_balkan_large
			}
			clr_country_flag = is_russianizing_a_country
			custom_effect_tooltip = gain_between_20_and_30_russianization_hungary
			set_temp_variable = {
				var = russianization_hungary_gain
				value = 20
			}
			randomize_temp_variable = {
				var = russianization_hungary_gain
				distribution = uniform
				min = russianization_hungary_gain
				max = 30
			}
			round_temp_variable = russianization_hungary_gain
			add_to_variable = {
				var = hungary_russianization_slavic
				value = russianization_hungary_gain
			}
		}
	}

	SOV_russianize_hungary_decision_slavic = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		available = {
			has_completed_focus = SOV_russianize_the_balkans
			HUN = {
				is_subject_of = SOV

			}
			custom_trigger_tooltip = {
				tooltip = has_100_or_more_russianization_hungary
				check_variable = {
					var = hungary_russianization_slavic
					value = 100
					compare = greater_than_or_equals
				}
			}
		}

		visible = {
			has_completed_focus = SOV_russianize_the_balkans
		}

		fire_only_once = yes

		cost = 150

		ai_will_do = {
			factor = 150
		}

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = HUN
				}
				SOV = {
					add_state_core = PREV
				}
			}
			annex_country = {
				target = HUN
				transfer_troops = yes
			}
		}
	}
}

SOV_defend_slavic_borders_category = {

	SOV_fortify_slavic_border_states = {

		icon = GFX_decision_generic_construction

		allowed = {
			original_tag = SOV
		}

		on_map_mode = map_and_decisions_view

		state_target = yes

		target_trigger = {
			FROM = {
				is_core_of = SOV
				any_neighbor_state = {
					NOT = {
						is_core_of = SOV
						is_fully_controlled_by = SOV
					}
				}
				bunker < 7
				anti_air_building < 4
			}
		}

		available = {
			ROOT = {
				has_full_control_of_state = FROM
			}
			FROM = {
				bunker < 7
				anti_air_building < 4
			}
			NOT = {
				has_country_flag = fortification_slavic_country_timeout
			}
		}

		visible = {
			FROM = {
				is_core_of = SOV
				any_neighbor_state = {
					NOT = {
						is_core_of = SOV
						is_fully_controlled_by = SOV
					}
				}
				bunker < 7
				anti_air_building < 4
			}
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 150
		}

		modifier = {
			civilian_factory_use = 10
		}

		days_remove = 70

		complete_effect = {
			set_country_flag = fortification_slavic_country_timeout
		}

		remove_effect = {
			clr_country_flag = fortification_slavic_country_timeout
			FROM = {
				add_building_construction = {
					type = bunker
					level = 2
					instant_build = yes
					province = {
						all_provinces = yes
						limit_to_border = yes
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
		}
	}
}

SOV_appeasement_communist = {

	SOV_return_the_lands = {

		icon = GFX_decision_generic_decision

		allowed = {
			original_tag = SOV
		}

		available = {

		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 25

		ai_will_do = {
			factor = 250
		}

		modifier = {
			civilian_factory_use = 15
		}

		days_remove = 70

		complete_effect = {

		}

		remove_effect = {
			swap_ideas = {
				remove_idea = SOV_Communist_resistance2
				add_idea = SOV_Communist_resistance4
			}
			set_country_flag = returned_lands
		}
	}

	SOV_concession_workers = {

		icon = GFX_decision_generic_industry

		allowed = {
			original_tag = SOV
		}

		available = {
			has_country_flag = returned_lands
			custom_trigger_tooltip = {
				tooltip = concession_workers_tt
				has_country_flag = higher_wages
				has_country_flag = hollidays_workers
				has_country_flag = more_rights_workers
			}
		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 25

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			swap_ideas = {
				remove_idea = SOV_Communist_resistance4
				add_idea = SOV_Communist_resistance5
			}
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.10
				}
			}
			set_country_flag = appease_the_workers
		}
	}

	SOV_concession_peasants = {

		icon = GFX_decision_generic_political_rally

		allowed = {
			original_tag = SOV
		}

		available = {
			has_country_flag = appease_the_workers
			custom_trigger_tooltip = {
				tooltip = concession_peasants_tt
				has_country_flag = give_land_peasants
				has_country_flag = encourage_peasants
				has_country_flag = kulaks_restored
			}
		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 25

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			swap_ideas = {
				remove_idea = SOV_Communist_resistance5
				add_idea = SOV_Communist_resistance6
			}
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.10
				}
			}
			set_country_flag = appease_the_peasants
		}
	}

	SOV_concession_army = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		available = {
			has_country_flag = appease_the_peasants
			custom_trigger_tooltip = {
				tooltip = concession_army_tt
				has_country_flag = arrest_generals
				has_country_flag = compensate_generals
				has_country_flag = reorganise_army
			}
		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 25

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			swap_ideas = {
				remove_idea = SOV_Communist_resistance6
				add_idea = SOV_Communist_resistance7
			}
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.10
				}
			}
			set_country_flag = appease_the_army
		}
	}

	SOV_ask_factories_owner_higher_wage = {

		icon = GFX_decision_hol_attract_foreign_investors

		allowed = {
			original_tag = SOV
		}

		available = {

		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			add_timed_idea = {
				idea = SOV_Higher_wages
				days = 180
			}
			set_country_flag = higher_wages
		}
	}

	SOV_give_more_holidays = {

		icon = GFX_decision_eng_blackshirt_march

		allowed = {
			original_tag = SOV
		}

		available = {

		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			add_timed_idea = {
				idea = SOV_Less_work
				days = 85
			}
			set_country_flag = hollidays_workers
		}
	}

	SOV_give_more_rights_workers = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		available = {

		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			add_stability = 0.05
			set_country_flag = more_rights_workers
		}
	}

	SOV_give_land_peasants = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {

		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			add_timed_idea = {
				idea = SOV_Land_given
				days = 100
			}
			set_country_flag = give_land_peasants
		}
	}

	SOV_encourage_peasants_work_harder = {

		icon = GFX_decision_hol_attract_foreign_investors

		allowed = {
			original_tag = SOV
		}

		available = {

		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			add_timed_idea = {
				idea = SOV_Encourage_peasants
				days = 90
			}
			set_country_flag = encourage_peasants
		}
	}

	SOV_bring_back_kulaks = {

		icon = GFX_decision_generic_independence

		allowed = {
			original_tag = SOV
		}

		available = {

		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			if = {
				limit = {
					AND = {
						has_country_flag = give_land_peasants
						has_country_flag = encourage_peasants
					}
				}
				add_stability = 0.05
			}
			else_if = {
				limit = {
					OR = {
						has_country_flag = give_land_peasants
						has_country_flag = encourage_peasants
					}
				}
				add_stability = -0.05
			}
			else = {
				add_stability = -0.1
			}
			set_country_flag = kulaks_restored
		}
	}

	SOV_reorganise_army = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		available = {

		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 75

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			SOV = {
				add_manpower = -20000
				army_experience = 25
			}
			set_country_flag = reorganise_army
		}
	}

	SOV_arrest_generals_communist = {

		icon = GFX_decision_generic_civil_support

		allowed = {
			original_tag = SOV
		}

		available = {

		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 100

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			set_country_flag = arrest_generals
			custom_effect_tooltip = arres_generals_tt
		}
	}

	SOV_compensate_generals = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {

		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 150

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			custom_effect_tooltip = compensate_generals_tt
			set_temp_variable = { random_generals_1 = 0 }
			randomize_temp_variable = {
				var = random_generals_1
				distribution = uniform
				min = 0
				max = 100
			}
			round_variable = random_generals_1
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
							var = random_generals_1
							value = 20
							compare = less_than_or_equals
						}
					}
					SOV = {
						SOV_Mikhail_tukhachevsky = {
							clr_character_flag = russia_is_in_prison_cw
						}
					}
				}
				else_if = {
					limit = {
						check_variable = {
							var = random_generals_1
							value = 60
							compare = greater_than_or_equals
						}
					}
					SOV = {
						SOV_Vasily_kuznetsov = {
							clr_character_flag = russia_is_in_prison_cw
						}
					}
				}
				else = {
					SOV = {
						SOV_Maks_reyter = {
							clr_character_flag = russia_is_in_prison_cw
						}
					}
				}
				SOV = {
					country_event = { id = russia2_russia.207 }
					country_event = { id = russia2_russia.208 }
					country_event = { id = russia2_russia.209 }
				}
			}
			set_country_flag = compensate_generals
		}
	}

	SOV_finish_appeasement_process = {

		icon = GFX_decision_hol_exchange_intelligence_data

		allowed = {
			original_tag = SOV
		}

		available = {
			has_country_flag = appease_the_workers
			has_country_flag = appease_the_peasants
			has_country_flag = appease_the_army
		}

		visible = {
			has_completed_focus = SOV_appease_communist
		}

		fire_only_once = yes

		cost = 25

		ai_will_do = {
			factor = 250
		}

		complete_effect = {
			remove_ideas = SOV_Communist_resistance7
			if = {
				limit = {
					NOT = {
						has_completed_focus = SOV_restoration_tsar
						has_completed_focus = SOV_firm_hand
					}
				}
				add_ideas = SOV_United_society
			}
			SOV = {
				add_popularity = {
					ideology = communism
					popularity = -0.10
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.10
				}
			}
		}
	}
}

SOV_transfer_of_power = {

	SOV_allow_transfer_power = {

		icon = GFX_decision_hol_radio_oranje

		cost = 50

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
				}
			}
		}

		fire_only_once = yes

		available = {
			has_country_leader = {
				character = SOV_Andrey_vlasov
				ruling_only = yes
			}
		}

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

		complete_effect = {
			custom_effect_tooltip = SOV_allow_transfer_power_tt
			add_to_variable = { transfer_power_pavel_factor = 1 }
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
							var = transfer_power_pavel_factor
							value = 2
							compare = equals
						}
					}
				}
				country_event = { id = russia2_russia.349 days = 50 }
			}
		}
	}

	SOV_convince_pavel_move_moscow = {

		icon = GFX_decision_generic_political_discourse

		cost = 100

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_PAVEL_BERMONDT_AVALOV_NEUTRALITY_BEHAVIOR
				}
			}
		}

		fire_only_once = yes

		available = {
			231 = {
				is_fully_controlled_by = ROOT
			}
			capital_scope = {
				is_fully_controlled_by = ROOT
			}
		}

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

		complete_effect = {
			custom_effect_tooltip = SOV_convince_pavel_tt
			add_to_variable = { transfer_power_pavel_factor = 1 }
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
							var = transfer_power_pavel_factor
							value = 2
							compare = equals
						}
					}
				}
				country_event = { id = russia2_russia.349 days = 50 }
			}
		}
	}
}

SOV_monarchy_congress = {

	#Have to do each house one by one because Paradox doesn't allow the use of a foreach here
	SOV_monarchy_support_house_1 = {
		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = less_than_3_house_1
				check_variable = {
					var = house_russia^1
					value = 3
					compare = less_than
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = house_russia_pp_cost^1

		days_remove = house_russia_pp_cost^1

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_monarchy_support_house_1_tt

			add_to_variable = {
				var = house_russia^1
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = house_russia^1
						value = 2
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^1 = 20 }
				add_to_variable = {
					var = house_russia_neutral
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_opposed
					value = 1
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = house_russia^1
						value = 3
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^1 = 10 }
				add_to_variable = {
					var = house_russia_support
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_neutral
					value = 1
				}
			}
		}
	}

	SOV_monarchy_support_house_2 = {
		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = less_than_3_house_2
				check_variable = {
					var = house_russia^2
					value = 3
					compare = less_than
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = house_russia_pp_cost^2

		days_remove = house_russia_pp_cost^2

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_monarchy_support_house_2_tt

			add_to_variable = {
				var = house_russia^2
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = house_russia^2
						value = 2
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^2 = 20 }
				add_to_variable = {
					var = house_russia_neutral
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_opposed
					value = 1
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = house_russia^2
						value = 3
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^2 = 10 }
				add_to_variable = {
					var = house_russia_support
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_neutral
					value = 1
				}
			}
		}
	}

	SOV_monarchy_support_house_3 = {
		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = less_than_3_house_3
				check_variable = {
					var = house_russia^3
					value = 3
					compare = less_than
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = house_russia_pp_cost^3

		days_remove = house_russia_pp_cost^3

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_monarchy_support_house_3_tt

			add_to_variable = {
				var = house_russia^3
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = house_russia^3
						value = 2
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^3 = 20 }
				add_to_variable = {
					var = house_russia_neutral
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_opposed
					value = 1
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = house_russia^3
						value = 3
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^3 = 10 }
				add_to_variable = {
					var = house_russia_support
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_neutral
					value = 1
				}
			}
		}
	}

	SOV_monarchy_support_house_4 = {
		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = less_than_3_house_4
				check_variable = {
					var = house_russia^4
					value = 3
					compare = less_than
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = house_russia_pp_cost^4

		days_remove = house_russia_pp_cost^4

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_monarchy_support_house_4_tt

			add_to_variable = {
				var = house_russia^4
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = house_russia^4
						value = 2
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^4 = 20 }
				add_to_variable = {
					var = house_russia_neutral
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_opposed
					value = 1
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = house_russia^4
						value = 3
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^4 = 10 }
				add_to_variable = {
					var = house_russia_support
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_neutral
					value = 1
				}
			}
		}
	}

	SOV_monarchy_support_house_5 = {
		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = less_than_3_house_5
				check_variable = {
					var = house_russia^5
					value = 3
					compare = less_than
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = house_russia_pp_cost^5

		days_remove = house_russia_pp_cost^5

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_monarchy_support_house_5_tt

			add_to_variable = {
				var = house_russia^5
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = house_russia^5
						value = 2
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^5 = 20 }
				add_to_variable = {
					var = house_russia_neutral
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_opposed
					value = 1
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = house_russia^5
						value = 3
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^5 = 10 }
				add_to_variable = {
					var = house_russia_support
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_neutral
					value = 1
				}
			}
		}
	}

	SOV_monarchy_support_house_6 = {
		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = less_than_3_house_6
				check_variable = {
					var = house_russia^6
					value = 3
					compare = less_than
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = house_russia_pp_cost^6

		days_remove = house_russia_pp_cost^6

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_monarchy_support_house_6_tt

			add_to_variable = {
				var = house_russia^6
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = house_russia^6
						value = 2
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^6 = 20 }
				add_to_variable = {
					var = house_russia_neutral
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_opposed
					value = 1
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = house_russia^6
						value = 3
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^6 = 10 }
				add_to_variable = {
					var = house_russia_support
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_neutral
					value = 1
				}
			}
		}
	}

	SOV_monarchy_support_house_7 = {
		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = less_than_3_house_7
				check_variable = {
					var = house_russia^7
					value = 3
					compare = less_than
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = house_russia_pp_cost^7

		days_remove = house_russia_pp_cost^7

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_monarchy_support_house_7_tt

			add_to_variable = {
				var = house_russia^7
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = house_russia^7
						value = 2
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^7 = 20 }
				add_to_variable = {
					var = house_russia_neutral
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_opposed
					value = 1
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = house_russia^7
						value = 3
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^7 = 10 }
				add_to_variable = {
					var = house_russia_support
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_neutral
					value = 1
				}
			}
		}
	}

	SOV_monarchy_support_house_8 = {
		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = less_than_3_house_8
				check_variable = {
					var = house_russia^8
					value = 3
					compare = less_than
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = house_russia_pp_cost^8

		days_remove = house_russia_pp_cost^8

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_monarchy_support_house_8_tt

			add_to_variable = {
				var = house_russia^8
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = house_russia^8
						value = 2
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^8 = 20 }
				add_to_variable = {
					var = house_russia_neutral
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_opposed
					value = 1
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = house_russia^8
						value = 3
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^8 = 10 }
				add_to_variable = {
					var = house_russia_support
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_neutral
					value = 1
				}
			}
		}
	}

	SOV_monarchy_support_house_9 = {
		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = less_than_3_house_9
				check_variable = {
					var = house_russia^9
					value = 3
					compare = less_than
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = house_russia_pp_cost^9

		days_remove = house_russia_pp_cost^9

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_monarchy_support_house_9_tt

			add_to_variable = {
				var = house_russia^9
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = house_russia^9
						value = 2
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^9 = 20 }
				add_to_variable = {
					var = house_russia_neutral
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_opposed
					value = 1
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = house_russia^9
						value = 3
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^9 = 10 }
				add_to_variable = {
					var = house_russia_support
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_neutral
					value = 1
				}
			}
		}
	}

	SOV_monarchy_support_house_10 = {
		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = less_than_3_house_10
				check_variable = {
					var = house_russia^10
					value = 3
					compare = less_than
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = house_russia_pp_cost^10

		days_remove = house_russia_pp_cost^10

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_monarchy_support_house_10_tt

			add_to_variable = {
				var = house_russia^10
				value = 1
			}

			if = {
				limit = {
					check_variable = {
						var = house_russia^10
						value = 2
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^10 = 20 }
				add_to_variable = {
					var = house_russia_neutral
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_opposed
					value = 1
				}
			}
			else_if = {
				limit = {
					check_variable = {
						var = house_russia^10
						value = 3
						compare = equals
					}
				}
				set_variable = { house_russia_pp_cost^10 = 10 }
				add_to_variable = {
					var = house_russia_support
					value = 1
				}
				subtract_from_variable = {
					var = house_russia_neutral
					value = 1
				}
			}
		}
	}

	SOV_coalition_party = {

		icon = GFX_decision_hol_exchange_intelligence_data

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_coalition_party_tt
				check_variable = {
					var = house_russia_opposed
					value = 1
					compare = greater_than_or_equals
				}
			}
			NOT = {
				has_country_flag = is_supporting_house
			}
		}

		cost = 60

		days_remove = 30

		complete_effect = {
			set_country_flag = is_supporting_house
		}

		remove_effect = {
			clr_country_flag = is_supporting_house
			custom_effect_tooltip = SOV_1_house_go_support

			set_temp_variable = { success_count = 0 }
			set_temp_variable = { random_house = 0 }
			while_loop_effect = {
				break = end_array
    			limit = {
					check_variable = {
						var = success_count
						value = 1
						compare = less_than
					}
				}

				randomize_temp_variable = {
					var = random_house
					min = 0
					max = monarchy_houses_russia^num
				}
				round_temp_variable = random_house
				if = {
					limit = {
						check_variable = {
							var = random_house
							value = monarchy_houses_russia^num
							compare = greater_than_or_equals
						}
					}
					set_temp_variable = { random_house = 0 }
				}

				if = {
					limit = {
						check_variable = {
							var = house_russia^var:random_house
							value = 1
							compare = equals
						}
					}
					set_variable = { house_russia_pp_cost^var:random_house = 10 }
					add_to_variable = {
						var = house_russia_support
						value = 1
					}
					subtract_from_variable = {
						var = house_russia_opposed
						value = 1
					}
					add_to_variable = {
						var = house_russia^var:random_house
						value = 2
					}
					add_to_temp_variable = { success_count = 1 }
				}
			}
		}
	}

	SOV_war_economy_law_parl = {

		icon = GFX_decision_ger_military_buildup

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			NOT = {
				OR = {
					has_idea = war_economy
					has_idea = tot_economic_mobilisation
				}
			}
			OR = {
				has_war = yes
				AND = {
					has_war_support > 0.5
					threat > 0.5
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_war_economy_law_parl_support_tt
				check_variable = {
					var = house_russia_support
					value = 6
					compare = greater_than_or_equals
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_war_economy_law_parl_opposition_tt
				check_variable = {
					var = house_russia_opposed
					value = 2
					compare = less_than_or_equals
				}
			}
		}

		cost = 50

		complete_effect = {
			add_ideas = war_economy
			custom_effect_tooltip = SOV_2_houses_go_opposition

			set_temp_variable = { success_count = 0 }
			set_temp_variable = { random_house = 0 }
			while_loop_effect = {
				break = end_array
    			limit = {
					check_variable = {
						var = success_count
						value = 2
						compare = less_than
					}
				}

				randomize_temp_variable = {
					var = random_house
					min = 0
					max = monarchy_houses_russia^num
				}
				round_temp_variable = random_house
				if = {
					limit = {
						check_variable = {
							var = random_house
							value = monarchy_houses_russia^num
							compare = greater_than_or_equals
						}
					}
					set_temp_variable = { random_house = 0 }
				}

				if = {
					limit = {
						check_variable = {
							var = house_russia^var:random_house
							value = 3
							compare = equals
						}
					}
					set_variable = { house_russia_pp_cost^var:random_house = 30 }
					add_to_variable = {
						var = house_russia_opposed
						value = 1
					}
					subtract_from_variable = {
						var = house_russia_support
						value = 1
					}
					subtract_from_variable = {
						var = house_russia^var:random_house
						value = 2
					}
					add_to_temp_variable = { success_count = 1 }
				}
			}
		}
	}

	SOV_increase_resources_law_parl = {

		icon = GFX_decision_tungsten

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes

		available = {
			owns_state = 219
			owns_state = 232
			owns_state = 233
			owns_state = 827
			owns_state = 828
			owns_state = 821
			custom_trigger_tooltip = {
				tooltip = SOV_increase_resources_law_parl_support_tt
				check_variable = {
					var = house_russia_support
					value = 4
					compare = greater_than_or_equals
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_increase_resources_law_parl_opposition_tt
				check_variable = {
					var = house_russia_opposed
					value = 3
					compare = less_than_or_equals
				}
			}
		}

		cost = 50

		complete_effect = {
			add_ideas = SOV_Develop_new_resources
			add_timed_idea = {
				idea = SOV_Payment_resources
				days = 180
			}
			219 = {
				add_resource = {
					type = rubber
					amount = 10
				}
			}
			232 = {
				add_resource = {
					type = oil
					amount = 10
				}
			}
			233 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
			827 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
			828 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
			821 = {
				add_resource = {
					type = tungsten
					amount = 4
				}
			}
			custom_effect_tooltip = SOV_2_houses_go_opposition

			set_temp_variable = { success_count = 0 }
			set_temp_variable = { random_house = 0 }
			while_loop_effect = {
				break = end_array
    			limit = {
					check_variable = {
						var = success_count
						value = 2
						compare = less_than
					}
				}

				randomize_temp_variable = {
					var = random_house
					min = 0
					max = monarchy_houses_russia^num
				}
				round_temp_variable = random_house
				if = {
					limit = {
						check_variable = {
							var = random_house
							value = monarchy_houses_russia^num
							compare = greater_than_or_equals
						}
					}
					set_temp_variable = { random_house = 0 }
				}

				if = {
					limit = {
						check_variable = {
							var = house_russia^var:random_house
							value = 3
							compare = equals
						}
					}
					set_variable = { house_russia_pp_cost^var:random_house = 30 }
					add_to_variable = {
						var = house_russia_opposed
						value = 1
					}
					subtract_from_variable = {
						var = house_russia_support
						value = 1
					}
					subtract_from_variable = {
						var = house_russia^var:random_house
						value = 2
					}
					add_to_temp_variable = { success_count = 1 }
				}
			}
		}
	}

	SOV_tsarist_military_training = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_tsarist_military_training_support_tt
				check_variable = {
					var = house_russia_support
					value = 5
					compare = greater_than_or_equals
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_tsarist_military_training_opposition_tt
				check_variable = {
					var = house_russia_opposed
					value = 2
					compare = less_than_or_equals
				}
			}
		}

		cost = 50

		complete_effect = {
			add_ideas = SOV_Tsarist_military
			custom_effect_tooltip = SOV_2_houses_go_opposition

			set_temp_variable = { success_count = 0 }
			set_temp_variable = { random_house = 0 }
			while_loop_effect = {
				break = end_array
    			limit = {
					check_variable = {
						var = success_count
						value = 2
						compare = less_than
					}
				}

				randomize_temp_variable = {
					var = random_house
					min = 0
					max = monarchy_houses_russia^num
				}
				round_temp_variable = random_house
				if = {
					limit = {
						check_variable = {
							var = random_house
							value = monarchy_houses_russia^num
							compare = greater_than_or_equals
						}
					}
					set_temp_variable = { random_house = 0 }
				}

				if = {
					limit = {
						check_variable = {
							var = house_russia^var:random_house
							value = 3
							compare = equals
						}
					}
					set_variable = { house_russia_pp_cost^var:random_house = 30 }
					add_to_variable = {
						var = house_russia_opposed
						value = 1
					}
					subtract_from_variable = {
						var = house_russia_support
						value = 1
					}
					subtract_from_variable = {
						var = house_russia^var:random_house
						value = 2
					}
					add_to_temp_variable = { success_count = 1 }
				}
			}
		}
	}

	SOV_civilian_industry_improvement = {

		icon = GFX_decision_generic_construction

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_civilian_industry_improvement_opposition_tt
				check_variable = {
					var = house_russia_opposed
					value = 9
					compare = less_than_or_equals
				}
			}
		}

		cost = 25

		days_remove = 40

		complete_effect = {
			custom_effect_tooltip = SOV_1_random_house_go_opposition

			set_temp_variable = { success_count = 0 }
			set_temp_variable = { random_house = 0 }
			while_loop_effect = {
				break = end_array
    			limit = {
					check_variable = {
						var = success_count
						value = 1
						compare = less_than
					}
				}

				randomize_temp_variable = {
					var = random_house
					min = 0
					max = monarchy_houses_russia^num
				}
				round_temp_variable = random_house
				if = {
					limit = {
						check_variable = {
							var = random_house
							value = monarchy_houses_russia^num
							compare = greater_than_or_equals
						}
					}
					set_temp_variable = { random_house = 0 }
				}

				if = {
					limit = {
						check_variable = {
							var = house_russia^var:random_house
							value = 3
							compare = equals
						}
					}
					set_variable = { house_russia_pp_cost^var:random_house = 30 }
					add_to_variable = {
						var = house_russia_opposed
						value = 1
					}
					subtract_from_variable = {
						var = house_russia_support
						value = 1
					}
					subtract_from_variable = {
						var = house_russia^var:random_house
						value = 2
					}
					add_to_temp_variable = { success_count = 1 }
				}
			}
		}

		remove_effect = {
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	SOV_military_industry_improvement = {

		icon = GFX_decision_ger_military_buildup

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		fire_only_once = yes

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_military_industry_improvement_opposition_tt
				check_variable = {
					var = house_russia_opposed
					value = 9
					compare = less_than_or_equals
				}
			}
		}

		cost = 25

		days_remove = 40

		complete_effect = {
			custom_effect_tooltip = SOV_1_random_house_go_opposition

			set_temp_variable = { success_count = 0 }
			set_temp_variable = { random_house = 0 }
			while_loop_effect = {
				break = end_array
    			limit = {
					check_variable = {
						var = success_count
						value = 1
						compare = less_than
					}
				}

				randomize_temp_variable = {
					var = random_house
					min = 0
					max = monarchy_houses_russia^num
				}
				round_temp_variable = random_house
				if = {
					limit = {
						check_variable = {
							var = random_house
							value = monarchy_houses_russia^num
							compare = greater_than_or_equals
						}
					}
					set_temp_variable = { random_house = 0 }
				}

				if = {
					limit = {
						check_variable = {
							var = house_russia^var:random_house
							value = 3
							compare = equals
						}
					}
					set_variable = { house_russia_pp_cost^var:random_house = 30 }
					add_to_variable = {
						var = house_russia_opposed
						value = 1
					}
					subtract_from_variable = {
						var = house_russia_support
						value = 1
					}
					subtract_from_variable = {
						var = house_russia^var:random_house
						value = 2
					}
					add_to_temp_variable = { success_count = 1 }
				}
			}
		}

		remove_effect = {
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	SOV_naval_industry_improvement = {

		icon = GFX_decision_generic_naval

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_naval_industry_improvement_opposition_tt
				check_variable = {
					var = house_russia_opposed
					value = 9
					compare = less_than_or_equals
				}
			}
		}

		cost = 25

		days_remove = 40

		complete_effect = {
			custom_effect_tooltip = SOV_1_random_house_go_opposition

			set_temp_variable = { success_count = 0 }
			set_temp_variable = { random_house = 0 }
			while_loop_effect = {
				break = end_array
    			limit = {
					check_variable = {
						var = success_count
						value = 1
						compare = less_than
					}
				}

				randomize_temp_variable = {
					var = random_house
					min = 0
					max = monarchy_houses_russia^num
				}
				round_temp_variable = random_house
				if = {
					limit = {
						check_variable = {
							var = random_house
							value = monarchy_houses_russia^num
							compare = greater_than_or_equals
						}
					}
					set_temp_variable = { random_house = 0 }
				}

				if = {
					limit = {
						check_variable = {
							var = house_russia^var:random_house
							value = 3
							compare = equals
						}
					}
					set_variable = { house_russia_pp_cost^var:random_house = 30 }
					add_to_variable = {
						var = house_russia_opposed
						value = 1
					}
					subtract_from_variable = {
						var = house_russia_support
						value = 1
					}
					subtract_from_variable = {
						var = house_russia^var:random_house
						value = 2
					}
					add_to_temp_variable = { success_count = 1 }
				}
			}
		}

		remove_effect = {
			random_owned_controlled_state = {
				limit = {
					is_coastal = yes
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}

	SOV_raise_taxes = {

		icon = GFX_decision_hol_attract_foreign_investors

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			if = {
				limit = {
					has_country_flag = has_enacted_law
				}
				custom_trigger_tooltip = {
					tooltip = last_law_more_than_one_year
					has_country_flag = {
						flag = has_enacted_law
						days > 365
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_raise_taxes_parl_support_tt
				check_variable = {
					var = house_russia_support
					value = 1
					compare = greater_than_or_equals
				}
			}
		}

		cost = 50

		complete_effect = {
			custom_effect_tooltip = more_support_means_longer
			set_temp_variable = { days_higher_taxes = house_russia_support }
			multiply_temp_variable = { days_higher_taxes = 36 }
			add_timed_idea = {
				idea = SOV_Higher_taxes
				days = days_higher_taxes
			}
			set_country_flag = has_enacted_law
			hidden_effect = {
				country_event = { id = russia2_russia.211 days = 365 }
			}
		}
	}

	SOV_focus_military = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			if = {
				limit = {
					has_country_flag = has_enacted_law
				}
				custom_trigger_tooltip = {
					tooltip = last_law_more_than_one_year
					has_country_flag = {
						flag = has_enacted_law
						days > 365
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_military_focus_law_parl_support_tt
				check_variable = {
					var = house_russia_support
					value = 1
					compare = greater_than_or_equals
				}
			}
		}

		cost = 50

		complete_effect = {
			custom_effect_tooltip = more_support_means_longer
			set_temp_variable = { days_military_focus = house_russia_support }
			multiply_temp_variable = { days_military_focus = 36 }
			add_timed_idea = {
				idea = SOV_Military_focus
				days = days_military_focus
			}
			set_country_flag = has_enacted_law
			hidden_effect = {
				country_event = { id = russia2_russia.211 days = 365 }
			}
		}
	}

	SOV_focus_research = {

		icon = GFX_decision_generic_research

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			if = {
				limit = {
					has_country_flag = has_enacted_law
				}
				custom_trigger_tooltip = {
					tooltip = last_law_more_than_one_year
					has_country_flag = {
						flag = has_enacted_law
						days > 365
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_research_focus_law_parl_support_tt
				check_variable = {
					var = house_russia_support
					value = 1
					compare = greater_than_or_equals
				}
			}
		}

		cost = 50

		complete_effect = {
			custom_effect_tooltip = more_support_means_longer
			set_temp_variable = { days_research_focus = house_russia_support }
			multiply_temp_variable = { days_research_focus = 36 }
			add_timed_idea = {
				idea = SOV_Focus_research
				days = days_research_focus
			}
			set_country_flag = has_enacted_law
			hidden_effect = {
				country_event = { id = russia2_russia.211 days = 365 }
			}
		}
	}

	SOV_focus_industry = {

		icon = GFX_decision_generic_construction

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 1
		}

		available = {
			if = {
				limit = {
					has_country_flag = has_enacted_law
				}
				custom_trigger_tooltip = {
					tooltip = last_law_more_than_one_year
					has_country_flag = {
						flag = has_enacted_law
						days > 365
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = SOV_industry_focus_law_parl_support_tt
				check_variable = {
					var = house_russia_support
					value = 1
					compare = greater_than_or_equals
				}
			}
		}

		cost = 50

		complete_effect = {
			custom_effect_tooltip = more_support_means_longer
			set_temp_variable = { days_industry_focus = house_russia_support }
			multiply_temp_variable = { days_industry_focus = 36 }
			add_timed_idea = {
				idea = SOV_Focus_industry
				days = days_industry_focus
			}
			set_country_flag = has_enacted_law
			hidden_effect = {
				country_event = { id = russia2_russia.211 days = 365 }
			}
		}
	}

	SOV_alaskan_deal = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				strength_ratio = {
					tag = USA
					ratio < 1
				}
			}
		}

		fire_only_once = yes

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_alaskan_deal_tt
				check_variable = {
					var = house_russia_support
					value = 6
					compare = greater_than_or_equals
				}
			}
		}

		visible = {
			any_country = {
				owns_state = 463
				has_civil_war = no
				is_subject = no
				NOT = {
					has_war_with = SOV
					tag = SOV
				}
			}
		}

		complete_effect = {
			add_state_claim = 463
			463 = {
				CONTROLLER = {
					country_event = { id = russia2_america.8 days = 1 }
				}
			}
		}
	}

	SOV_intervention_germany = {

		icon = GFX_decision_generic_tank

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				strength_ratio = {
					tag = GER
					ratio < 1
				}
			}
		}

		fire_only_once = yes

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_intervention_germany_tt
				check_variable = {
					var = house_russia_support
					value = 8
					compare = greater_than_or_equals
				}
			}
			threat > 0.25
		}

		visible = {
			OR = {
				GER = {
					has_war = yes
				}
				date > 1940.01.01
			}
			GER = {
				has_civil_war = no
				is_subject = no
				NOT = {
					is_in_faction_with = ROOT
				}
			}
		}

		complete_effect = {
			GER = {
				country_event = { id = russia2_germany.14 days = 1 }
			}
		}
	}

	SOV_intervention_france = {

		icon = GFX_decision_generic_tank

		allowed = {
			original_tag = SOV
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				strength_ratio = {
					tag = FRA
					ratio < 1
				}
			}
		}

		fire_only_once = yes

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_intervention_france_tt
				check_variable = {
					var = house_russia_support
					value = 8
					compare = greater_than_or_equals
				}
			}
			threat > 0.25
		}

		visible = {
			OR = {
				FRA = {
					has_war = yes
				}
				date > 1940.01.01
			}
			FRA = {
				has_civil_war = no
				is_subject = no
				NOT = {
					is_in_faction_with = ROOT
					has_idea = SOV_French_monarchist_sentiment_idea
					has_idea = SOV_French_monarchist_sentiment_idea_2
				}
			}
		}

		complete_effect = {
			FRA = {
				country_event = { id = russia2_france.18 days = 1 }
			}
		}
	}
}

SOV_reintegrate_lost_states_decisions = {

	#Version if you didn't sympathize with the Ukrainian and if they for some reasons agree
	SOV_integrate_ukraine = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			UKR = {
				is_subject_of = SOV
			}
		}

		visible = {
			NOT = {
				has_country_flag = sympathize_with_ukraine
			}
			UKR = {
				is_subject_of = SOV
			}
			country_exists = UKR
		}

		highlight_states = {
			highlight_states_trigger = {
				state = UKR.CAPITAL
			}
		}

		fire_only_once = yes

		cost = 50

		complete_effect = {
			set_temp_variable = { stability_calculator_ukraine_1 = stability_hit_ukraine }
			multiply_temp_variable = { stability_calculator_ukraine_1 = 0.05 }
			set_temp_variable = { army_transfer_calculator_ukr = army_transfer_ukr_lost }
			multiply_temp_variable = { army_transfer_calculator_ukr = 0.2 }
			set_temp_variable = { army_transfer_calculator_ukr_tt = army_transfer_calculator_ukr }
			multiply_temp_variable = { army_transfer_calculator_ukr_tt = 100 }
			custom_effect_tooltip = transfer_ukr_army_tt
			hidden_effect = {
				UKR = {
					transfer_units_fraction = {
						target = SOV
						size = army_transfer_calculator_ukr
						army_ratio = army_transfer_calculator_ukr
						stockpile_ratio = army_transfer_calculator_ukr
					}
				}
			}
			SOV = {
				annex_country = {
					target = UKR
				}
				if = {
					limit = {
						NOT = {
							check_variable = {
								var = stability_calculator_ukraine_1
								value = 0
								compare = equals
							}
						}
					}
					add_stability = stability_calculator_ukraine_1
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.219 hours = 1 }
				}
			}
		}
	}

	SOV_integrate_ukraine_2 = { #Version if you did sympathize with the Ukrainian

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			UKR = {
				is_subject_of = SOV
			}
		}

		visible = {
			has_country_flag = sympathize_with_ukraine
			UKR = {
				is_subject_of = SOV
			}
			country_exists = UKR
		}

		highlight_states = {
			highlight_states_trigger = {
				state = UKR.CAPITAL
			}
		}

		fire_only_once = yes

		cost = 50

		complete_effect = {
			set_temp_variable = { stability_calculator_ukraine_2 = stability_hit_ukraine }
			multiply_temp_variable = { stability_calculator_ukraine_2 = 0.05 }
			set_temp_variable = { army_transfer_calculator_ukr = army_transfer_ukr_lost }
			multiply_temp_variable = { army_transfer_calculator_ukr = 0.20 }
			set_temp_variable = { army_transfer_calculator_ukr_tt = army_transfer_calculator_ukr }
			multiply_temp_variable = { army_transfer_calculator_ukr_tt = 100 }
			custom_effect_tooltip = transfer_ukr_army_tt
			hidden_effect = {
				UKR = {
					transfer_units_fraction = {
						target = SOV
						size = army_transfer_calculator_ukr
						army_ratio = army_transfer_calculator_ukr
						stockpile_ratio = army_transfer_calculator_ukr
					}
				}
			}
			SOV = {
				annex_country = {
					target = UKR
				}
				if = {
					limit = {
						NOT = {
							check_variable = {
								var = stability_calculator_ukraine_2
								value = 0
								compare = equals
							}
						}
					}
					add_stability = stability_calculator_ukraine_2
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.219 hours = 1 }
				}
				clr_country_flag = ukraine_no_imperial_govern
			}
		}
	}

	SOV_reintegrate_BLR = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			BLR = {
				is_subject_of = SOV
			}
		}

		visible = {
			BLR = {
				is_subject_of = SOV
			}
			has_country_flag = control_belarus
			country_exists = BLR
		}

		highlight_states = {
			highlight_states_trigger = {
				state = BLR.CAPITAL
			}
		}

		fire_only_once = yes

		cost = 50

		complete_effect = {
			set_temp_variable = { stability_calculator_belarus = stability_hit_belarus }
			multiply_temp_variable = { stability_calculator_belarus = 0.03 }
			set_temp_variable = { army_transfer_calculator_belarus = army_transfer_blr_lost }
			multiply_temp_variable = { army_transfer_calculator_belarus = 0.20 }
			set_temp_variable = { army_transfer_calculator_belarus_tt = army_transfer_calculator_belarus }
			multiply_temp_variable = { army_transfer_calculator_belarus_tt = 100 }
			custom_effect_tooltip = transfer_blr_army_tt
			hidden_effect = {
				BLR = {
					transfer_units_fraction = {
						target = SOV
						size = army_transfer_calculator_belarus
						army_ratio = army_transfer_calculator_belarus
						stockpile_ratio = army_transfer_calculator_belarus
					}
				}
			}
			SOV = {
				annex_country = {
					target = BLR
				}
				if = {
					limit = {
						NOT = {
							check_variable = {
								var = stability_calculator_belarus
								value = 0
								compare = equals
							}
						}
					}
					add_stability = stability_calculator_belarus
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.225 hours = 1 }
				}
			}
		}
	}

	SOV_integrate_CRI = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			CRI = {
				is_subject_of = SOV
			}
		}

		visible = {
			CRI = {
				is_subject_of = SOV
			}
			country_exists = CRI
		}

		highlight_states = {
			highlight_states_trigger = {
				state = CRI.CAPITAL
			}
		}

		fire_only_once = yes

		cost = 25

		complete_effect = {
			set_temp_variable = { stability_calculator_crimea = stability_hit_crimea }
			multiply_temp_variable = { stability_calculator_crimea = 0.03 }
			set_temp_variable = { army_transfer_calculator_crimea = army_transfer_crimea_lost }
			multiply_temp_variable = { army_transfer_calculator_crimea = 0.20 }
			set_temp_variable = { army_transfer_calculator_crimea_tt = army_transfer_calculator_crimea }
			multiply_temp_variable = { army_transfer_calculator_crimea_tt = 100 }
			custom_effect_tooltip = transfer_crimea_army_tt
			hidden_effect = {
				CRI = {
					transfer_units_fraction = {
						target = SOV
						size = army_transfer_calculator_crimea
						army_ratio = army_transfer_calculator_crimea
						stockpile_ratio = army_transfer_calculator_crimea
					}
				}
			}
			SOV = {
				annex_country = {
					target = CRI
				}
				if = {
					limit = {
						NOT = {
							check_variable = {
								var = stability_calculator_crimea
								value = 0
								compare = equals
							}
						}
					}
					add_stability = stability_calculator_crimea
				}
			}
		}
	}

	SOV_integrate_GEO = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			GEO = {
				is_subject_of = SOV
			}
		}

		visible = {
			GEO = {
				is_subject_of = SOV
			}
			has_country_flag = control_caucasus
			country_exists = GEO
		}

		highlight_states = {
			highlight_states_trigger = {
				state = GEO.CAPITAL
			}
		}

		fire_only_once = yes

		cost = 25

		complete_effect = {
			set_temp_variable = { stability_calculator_georgia = stability_hit_georgia }
			multiply_temp_variable = { stability_calculator_georgia = 0.03 }
			set_temp_variable = { army_transfer_calculator_georgia = army_transfer_geo_lost }
			multiply_temp_variable = { army_transfer_calculator_georgia = 0.20 }
			set_temp_variable = { army_transfer_calculator_georgia_tt = army_transfer_calculator_georgia }
			multiply_temp_variable = { army_transfer_calculator_georgia_tt = 100 }
			custom_effect_tooltip = transfer_geo_army_tt
			hidden_effect = {
				GEO = {
					transfer_units_fraction = {
						target = SOV
						size = army_transfer_calculator_georgia
						army_ratio = army_transfer_calculator_georgia
						stockpile_ratio = army_transfer_calculator_georgia
					}
				}
			}
			SOV = {
				annex_country = {
					target = GEO
				}
				if = {
					limit = {
						NOT = {
							check_variable = {
								var = stability_calculator_georgia
								value = 0
								compare = equals
							}
						}
					}
					add_stability = stability_calculator_georgia
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.220 hours = 1 }
				}
			}
		}
	}

	SOV_annex_AZR = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			AZR = {
				is_subject_of = SOV
			}
		}

		visible = {
			AZR = {
				is_subject_of = SOV
			}
			has_country_flag = control_caucasus
			country_exists = AZR
		}

		highlight_states = {
			highlight_states_trigger = {
				state = AZR.CAPITAL
			}
		}

		fire_only_once = yes

		cost = 25

		complete_effect = {
			set_temp_variable = { stability_calculator_azr = stability_hit_azr }
			multiply_temp_variable = { stability_calculator_azr = 0.03 }
			set_temp_variable = { army_transfer_calculator_azr = army_transfer_azr_lost }
			multiply_temp_variable = { army_transfer_calculator_azr = 0.20 }
			set_temp_variable = { army_transfer_calculator_azr_tt = army_transfer_calculator_azr }
			multiply_temp_variable = { army_transfer_calculator_azr_tt = 100 }
			custom_effect_tooltip = transfer_azr_army_tt
			hidden_effect = {
				AZR = {
					transfer_units_fraction = {
						target = SOV
						size = army_transfer_calculator_azr
						army_ratio = army_transfer_calculator_azr
						stockpile_ratio = army_transfer_calculator_azr
					}
				}
			}
			SOV = {
				annex_country = {
					target = AZR
				}
				if = {
					limit = {
						NOT = {
							check_variable = {
								var = stability_calculator_azr
								value = 0
								compare = equals
							}
						}
					}
					add_stability = stability_calculator_azr
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.221 hours = 1 }
				}
			}
		}
	}

	SOV_integrate_ARM = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			ARM = {
				is_subject_of = SOV
			}
		}

		visible = {
			ARM = {
				is_subject_of = SOV
			}
			has_country_flag = control_caucasus
			country_exists = ARM
		}

		highlight_states = {
			highlight_states_trigger = {
				state = ARM.CAPITAL
			}
		}

		fire_only_once = yes

		cost = 25

		complete_effect = {
			set_temp_variable = { stability_calculator_armenia = stability_hit_armenia }
			multiply_temp_variable = { stability_calculator_armenia = 0.03 }
			set_temp_variable = { army_transfer_calculator_arm = army_transfer_arm_lost }
			multiply_temp_variable = { army_transfer_calculator_arm = 0.20 }
			set_temp_variable = { army_transfer_calculator_arm_tt = army_transfer_calculator_arm }
			multiply_temp_variable = { army_transfer_calculator_arm_tt = 100 }
			custom_effect_tooltip = transfer_arm_army_tt
			hidden_effect = {
				ARM = {
					transfer_units_fraction = {
						target = SOV
						size = army_transfer_calculator_arm
						army_ratio = army_transfer_calculator_arm
						stockpile_ratio = army_transfer_calculator_arm
					}
				}
			}
			SOV = {
				annex_country = {
					target = ARM
				}
				if = {
					limit = {
						NOT = {
							check_variable = {
								var = stability_calculator_armenia
								value = 0
								compare = equals
							}
						}
					}
					add_stability = stability_calculator_armenia
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.222 hours = 1 }
				}
			}
		}
	}

	SOV_integrate_KAZ = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			KAZ = {
				is_subject_of = SOV
			}
		}

		visible = {
			KAZ = {
				is_subject_of = SOV
			}
			has_country_flag = control_central_asia
			country_exists = KAZ
		}

		highlight_states = {
			highlight_states_trigger = {
				state = KAZ.CAPITAL
			}
		}

		fire_only_once = yes

		cost = 50

		complete_effect = {
			set_temp_variable = { stability_calculator_kaz = stability_hit_kaz }
			multiply_temp_variable = { stability_calculator_kaz = 0.03 }
			set_temp_variable = { army_transfer_calculator_kaz = army_transfer_kaz_lost }
			multiply_temp_variable = { army_transfer_calculator_kaz = 0.20 }
			set_temp_variable = { army_transfer_calculator_kaz_tt = army_transfer_calculator_kaz }
			multiply_temp_variable = { army_transfer_calculator_kaz_tt = 100 }
			custom_effect_tooltip = transfer_kaz_army_tt
			hidden_effect = {
				KAZ = {
					transfer_units_fraction = {
						target = SOV
						size = army_transfer_calculator_kaz
						army_ratio = army_transfer_calculator_kaz
						stockpile_ratio = army_transfer_calculator_kaz
					}
				}
			}
			SOV = {
				annex_country = {
					target = KAZ
				}
				if = {
					limit = {
						NOT = {
							check_variable = {
								var = stability_calculator_kaz
								value = 0
								compare = equals
							}
						}
					}
					add_stability = stability_calculator_kaz
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.223 hours = 1 }
				}
			}
		}
	}

	SOV_integrate_TMS = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			TMS = {
				is_subject_of = SOV
			}
		}

		visible = {
			TMS = {
				is_subject_of = SOV
			}
			has_country_flag = control_central_asia
			country_exists = TMS
		}

		highlight_states = {
			highlight_states_trigger = {
				state = TMS.CAPITAL
			}
		}

		fire_only_once = yes

		cost = 50

		complete_effect = {
			set_temp_variable = { stability_calculator_tms = stability_hit_tms }
			multiply_temp_variable = { stability_calculator_tms = 0.03 }
			set_temp_variable = { army_transfer_calculator_tms = army_transfer_tms_lost }
			multiply_temp_variable = { army_transfer_calculator_tms = 0.20 }
			set_temp_variable = { army_transfer_calculator_tms_tt = army_transfer_calculator_tms }
			multiply_temp_variable = { army_transfer_calculator_tms_tt = 100 }
			custom_effect_tooltip = transfer_tms_army_tt
			hidden_effect = {
				TMS = {
					transfer_units_fraction = {
						target = SOV
						size = army_transfer_calculator_tms
						army_ratio = army_transfer_calculator_tms
						stockpile_ratio = army_transfer_calculator_tms
					}
				}
			}
			SOV = {
				annex_country = {
					target = TMS
				}
				if = {
					limit = {
						NOT = {
							check_variable = {
								var = stability_calculator_tms
								value = 0
								compare = equals
							}
						}
					}
					add_stability = stability_calculator_tms
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.224 hours = 1 }
				}
			}
		}
	}

	SOV_reinforce_imperial_ties_ukraine = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			if = {
				limit = {
					has_country_flag = sympathize_with_ukraine
				}
				custom_trigger_tooltip = {
					tooltip = reinforce_imperial_ties_ukraine_tt
					NOT = {
						check_variable = {
							var = stability_hit_ukraine
							value = 3
							compare = equals
						}
					}
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = reinforce_imperial_ties_ukraine_tt2
					NOT = {
						check_variable = {
							var = stability_hit_ukraine
							value = 3
							compare = equals
						}
					}
				}
			}
		}

		visible = {
			UKR = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = UKR.CAPITAL
			}
		}

		cost = 20

		days_remove = 30

		remove_effect = {
			set_temp_variable = { stability_calculator_ukraine_1 = stability_hit_ukraine }
			multiply_temp_variable = { stability_calculator_ukraine_1 = -5 }
			set_temp_variable = { stability_calculator_ukraine_2 = stability_hit_ukraine }
			multiply_temp_variable = { stability_calculator_ukraine_2 = -5 }
			if = {
				limit = {
					has_country_flag = sympathize_with_ukraine
				}
				custom_effect_tooltip = stability_ukr_upgrade_tt
			}
			else = {
				custom_effect_tooltip = stability_ukr_upgrade_original_tt
			}
			add_to_variable = {
				var = stability_hit_ukraine
				value = 1
			}
		}
	}

	SOV_reinforce_imperial_ties_belarus = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = reinforce_imperial_ties_belarus_tt
				NOT = {
					check_variable = {
						var = stability_hit_belarus
						value = 0
						compare = equals
					}
				}
			}
		}

		visible = {
			BLR = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = BLR.CAPITAL
			}
		}

		cost = 10

		days_remove = 15

		remove_effect = {
			set_temp_variable = { stability_calculator_belarus = stability_hit_belarus }
			multiply_temp_variable = { stability_calculator_belarus = -3 }
			custom_effect_tooltip = stability_blr_upgrade_tt
			add_to_variable = {
				var = stability_hit_belarus
				value = 1
			}
		}
	}

	SOV_reinforce_imperial_ties_crimea = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = reinforce_imperial_ties_crimea_tt
				NOT = {
					check_variable = {
						var = stability_hit_crimea
						value = 0
						compare = equals
					}
				}
			}
		}

		visible = {
			CRI = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = CRI.CAPITAL
			}
		}

		cost = 10

		days_remove = 10

		remove_effect = {
			set_temp_variable = { stability_calculator_crimea = stability_hit_crimea }
			multiply_temp_variable = { stability_calculator_crimea = -3 }
			custom_effect_tooltip = stability_crimea_upgrade_tt
			add_to_variable = {
				var = stability_hit_crimea
				value = 1
			}
		}
	}

	SOV_reinforce_imperial_ties_georgia = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = reinforce_imperial_ties_georgia_tt
				NOT = {
					check_variable = {
						var = stability_hit_georgia
						value = 0
						compare = equals
					}
				}
			}
		}

		visible = {
			GEO = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = GEO.CAPITAL
			}
		}

		cost = 10

		days_remove = 15

		remove_effect = {
			set_temp_variable = { stability_calculator_georgia = stability_hit_georgia }
			multiply_temp_variable = { stability_calculator_georgia = -3 }
			custom_effect_tooltip = stability_geo_upgrade_tt
			add_to_variable = {
				var = stability_hit_georgia
				value = 1
			}
		}
	}

	SOV_reinforce_imperial_ties_azr = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = reinforce_imperial_ties_azr_tt
				NOT = {
					check_variable = {
						var = stability_hit_azr
						value = 0
						compare = equals
					}
				}
			}
		}

		visible = {
			AZR = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = AZR.CAPITAL
			}
		}

		cost = 10

		days_remove = 15

		remove_effect = {
			set_temp_variable = { stability_calculator_azr = stability_hit_azr }
			multiply_temp_variable = { stability_calculator_azr = -3 }
			custom_effect_tooltip = stability_azr_upgrade_tt
			add_to_variable = {
				var = stability_hit_azr
				value = 1
			}
		}
	}

	SOV_reinforce_imperial_ties_arm = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = reinforce_imperial_ties_arm_tt
				NOT = {
					check_variable = {
						var = stability_hit_armenia
						value = 0
						compare = equals
					}
				}
			}
		}

		visible = {
			ARM = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = ARM.CAPITAL
			}
		}

		cost = 10

		days_remove = 15

		remove_effect = {
			set_temp_variable = { stability_calculator_armenia = stability_hit_armenia }
			multiply_temp_variable = { stability_calculator_armenia = -3 }
			custom_effect_tooltip = stability_arm_upgrade_tt
			add_to_variable = {
				var = stability_hit_armenia
				value = 1
			}
		}
	}

	SOV_reinforce_imperial_ties_kaz = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = reinforce_imperial_ties_kaz_tt
				NOT = {
					check_variable = {
						var = stability_hit_kaz
						value = 0
						compare = equals
					}
				}
			}
		}

		visible = {
			KAZ = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = KAZ.CAPITAL
			}
		}

		cost = 15

		days_remove = 20

		remove_effect = {
			set_temp_variable = { stability_calculator_kaz = stability_hit_kaz }
			multiply_temp_variable = { stability_calculator_kaz = -3 }
			custom_effect_tooltip = stability_kaz_upgrade_tt
			add_to_variable = {
				var = stability_hit_kaz
				value = 1
			}
		}
	}

	SOV_reinforce_imperial_ties_tms = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = reinforce_imperial_ties_tms_tt
				NOT = {
					check_variable = {
						var = stability_hit_tms
						value = 0
						compare = equals
					}
				}
			}
		}

		visible = {
			TMS = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = TMS.CAPITAL
			}
		}

		cost = 15

		days_remove = 20

		remove_effect = {
			set_temp_variable = { stability_calculator_tms = stability_hit_tms }
			multiply_temp_variable = { stability_calculator_tms = -3 }
			custom_effect_tooltip = stability_tms_upgrade_tt
			add_to_variable = {
				var = stability_hit_tms
				value = 1
			}
		}
	}

	SOV_army_integration_ukraine = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		available = {
			if = {
				limit = {
					has_country_flag = sympathize_with_ukraine
				}
				custom_trigger_tooltip = {
					tooltip = SOV_army_integration_ukraine1_tt
					check_variable = {
						var = stability_hit_ukraine
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = SOV_army_integration_ukraine2_tt
					check_variable = {
						var = stability_hit_ukraine
						value = 0
						compare = greater_than_or_equals
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = army_transfer_ukr_lost_tt
				NOT = {
					check_variable = {
						var = army_transfer_ukr_lost
						value = 5
						compare = equals
					}
				}
			}
		}

		visible = {
			UKR = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = UKR.CAPITAL
			}
		}

		cost = 20

		days_remove = 25

		remove_effect = {
			set_temp_variable = { army_transfer_calculator_ukr = army_transfer_ukr_lost }
			multiply_temp_variable = { army_transfer_calculator_ukr = 20 }
			if = {
				limit = {
					check_variable = {
						var = army_transfer_calculator_ukr
						value = 100
						compare = less_than
					}
				}
				add_to_temp_variable = { army_transfer_calculator_ukr = 20 }
			}
			custom_effect_tooltip = army_integration_ukr_absorb_tt
			add_to_variable = {
				var = army_transfer_ukr_lost
				value = 1
			}
		}
	}

	SOV_army_integration_belarus = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = army_integration_belarus_tt
				NOT = {
					check_variable = {
						var = army_transfer_blr_lost
						value = 5
						compare = equals
					}
				}
			}
		}

		visible = {
			BLR = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = BLR.CAPITAL
			}
		}

		cost = 10

		days_remove = 15

		remove_effect = {
			set_temp_variable = { army_transfer_calculator_belarus = army_transfer_blr_lost }
			multiply_temp_variable = { army_transfer_calculator_belarus = 20 }
			if = {
				limit = {
					check_variable = {
						var = army_transfer_calculator_belarus
						value = 100
						compare = less_than
					}
				}
				add_to_temp_variable = { army_transfer_calculator_belarus = 20 }
			}
			custom_effect_tooltip = army_integration_blr_absorb_tt
			add_to_variable = {
				var = army_transfer_blr_lost
				value = 1
			}
		}
	}

	SOV_army_integration_crimea = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = army_integration_crimea_tt
				NOT = {
					check_variable = {
						var = army_transfer_crimea_lost
						value = 5
						compare = equals
					}
				}
			}
		}

		visible = {
			CRI = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = CRI.CAPITAL
			}
		}

		cost = 10

		days_remove = 15

		remove_effect = {
			set_temp_variable = { army_transfer_calculator_crimea = army_transfer_crimea_lost }
			multiply_temp_variable = { army_transfer_calculator_crimea = 20 }
			if = {
				limit = {
					check_variable = {
						var = army_transfer_crimea_lost
						value = 100
						compare = less_than
					}
				}
				add_to_temp_variable = { army_transfer_calculator_crimea = 20 }
			}
			custom_effect_tooltip = army_integration_crimea_absorb_tt
			add_to_variable = {
				var = army_transfer_crimea_lost
				value = 1
			}
		}
	}

	SOV_army_integration_georgia = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = army_integration_georgia_tt
				NOT = {
					check_variable = {
						var = army_transfer_geo_lost
						value = 5
						compare = equals
					}
				}
			}
		}

		visible = {
			GEO = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = GEO.CAPITAL
			}
		}

		cost = 15

		days_remove = 20

		remove_effect = {
			set_temp_variable = { army_transfer_calculator_georgia = army_transfer_geo_lost }
			multiply_temp_variable = { army_transfer_calculator_georgia = 20 }
			if = {
				limit = {
					check_variable = {
						var = army_transfer_calculator_georgia
						value = 100
						compare = less_than
					}
				}
				add_to_temp_variable = { army_transfer_calculator_georgia = 20 }
			}
			custom_effect_tooltip = army_integration_geo_absorb_tt
			add_to_variable = {
				var = army_transfer_geo_lost
				value = 1
			}
		}
	}

	SOV_army_integration_azr = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = army_integration_azr_tt
				NOT = {
					check_variable = {
						var = army_transfer_azr_lost
						value = 5
						compare = equals
					}
				}
			}
		}

		visible = {
			AZR = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = AZR.CAPITAL
			}
		}

		cost = 15

		days_remove = 20

		remove_effect = {
			set_temp_variable = { army_transfer_calculator_azr = army_transfer_azr_lost }
			multiply_temp_variable = { army_transfer_calculator_azr = 20 }
			if = {
				limit = {
					check_variable = {
						var = army_transfer_calculator_azr
						value = 100
						compare = less_than
					}
				}
				add_to_temp_variable = { army_transfer_calculator_azr = 20 }
			}
			custom_effect_tooltip = army_integration_azr_absorb_tt
			add_to_variable = {
				var = army_transfer_azr_lost
				value = 1
			}
		}
	}

	SOV_army_integration_arm = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = army_integration_arm_tt
				NOT = {
					check_variable = {
						var = army_transfer_arm_lost
						value = 5
						compare = equals
					}
				}
			}
		}

		visible = {
			ARM = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = ARM.CAPITAL
			}
		}

		cost = 15

		days_remove = 20

		remove_effect = {
			set_temp_variable = { army_transfer_calculator_arm = army_transfer_arm_lost }
			multiply_temp_variable = { army_transfer_calculator_arm = 20 }
			if = {
				limit = {
					check_variable = {
						var = army_transfer_calculator_arm
						value = 100
						compare = less_than
					}
				}
				add_to_temp_variable = { army_transfer_calculator_arm = 20 }
			}
			custom_effect_tooltip = army_integration_arm_absorb_tt
			add_to_variable = {
				var = army_transfer_arm_lost
				value = 1
			}
		}
	}

	SOV_army_integration_kaz = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = army_integration_kaz_tt
				NOT = {
					check_variable = {
						var = army_transfer_kaz_lost
						value = 5
						compare = equals
					}
				}
			}
		}

		visible = {
			KAZ = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = KAZ.CAPITAL
			}
		}

		cost = 15

		days_remove = 20

		remove_effect = {
			set_temp_variable = { army_transfer_calculator_kaz = army_transfer_kaz_lost }
			multiply_temp_variable = { army_transfer_calculator_kaz = 20 }
			if = {
				limit = {
					check_variable = {
						var = army_transfer_calculator_kaz
						value = 100
						compare = less_than
					}
				}
				add_to_temp_variable = { army_transfer_calculator_kaz = 20 }
			}
			custom_effect_tooltip = army_integration_kaz_absorb_tt
			add_to_variable = {
				var = army_transfer_kaz_lost
				value = 1
			}
		}
	}

	SOV_army_integration_tms = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = army_integration_tms_tt
				NOT = {
					check_variable = {
						var = army_transfer_tms_lost
						value = 5
						compare = equals
					}
				}
			}
		}

		visible = {
			TMS = {
				is_subject_of = SOV
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = TMS.CAPITAL
			}
		}

		cost = 15

		days_remove = 20

		remove_effect = {
			set_temp_variable = { army_transfer_calculator_tms = army_transfer_tms_lost }
			multiply_temp_variable = { army_transfer_calculator_tms = 20 }
			if = {
				limit = {
					check_variable = {
						var = army_transfer_calculator_tms
						value = 100
						compare = less_than
					}
				}
				add_to_temp_variable = { army_transfer_calculator_tms = 20 }
			}
			custom_effect_tooltip = army_integration_tms_absorb_tt
			add_to_variable = {
				var = army_transfer_tms_lost
				value = 1
			}
		}
	}
}

SOV_reintegrate_lost_states_decisions_ai = {

	SOV_integrate_ukraine_ai = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			UKR = {
				is_subject_of = SOV
			}
			has_country_flag = preparation_done_russian_civil_war_russia2_ukr
		}

		visible = {
			has_country_flag = sympathize_with_ukraine
			UKR = {
				is_subject_of = SOV
			}
			country_exists = UKR
			is_ai = yes
		}

		fire_only_once = yes

		cost = 75

		complete_effect = {
			SOV = {
				annex_country = {
					target = UKR
					transfer_troops = yes
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.219 hours = 1 }
				}
				clr_country_flag = ukraine_no_imperial_govern
			}
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_reintegrate_BLR_ai = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			BLR = {
				is_subject_of = SOV
			}
			has_country_flag = preparation_done_russian_civil_war_russia2_blr
		}

		visible = {
			BLR = {
				is_subject_of = SOV
			}
			has_country_flag = control_belarus
			country_exists = BLR
			is_ai = yes
		}

		fire_only_once = yes

		cost = 60

		complete_effect = {
			SOV = {
				annex_country = {
					target = BLR
					transfer_troops = yes
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.225 hours = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_reintegrate_CRI_ai = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			CRI = {
				is_subject_of = SOV
			}
			has_country_flag = preparation_done_russian_civil_war_russia2_cri
		}

		visible = {
			CRI = {
				is_subject_of = SOV
			}
			country_exists = CRI
			is_ai = yes
		}

		fire_only_once = yes

		cost = 30

		complete_effect = {
			SOV = {
				annex_country = {
					target = CRI
					transfer_troops = yes
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.225 hours = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_integrate_GEO_ai = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			GEO = {
				is_subject_of = SOV
			}
			has_country_flag = preparation_done_russian_civil_war_russia2_geo
		}

		visible = {
			GEO = {
				is_subject_of = SOV
			}
			has_country_flag = control_caucasus
			country_exists = GEO
			is_ai = yes
		}

		fire_only_once = yes

		cost = 30

		complete_effect = {
			SOV = {
				annex_country = {
					target = GEO
					transfer_troops = yes
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.220 hours = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_annex_AZR_ai = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			AZR = {
				is_subject_of = SOV
			}
			has_country_flag = preparation_done_russian_civil_war_russia2_azr
		}

		visible = {
			AZR = {
				is_subject_of = SOV
			}
			has_country_flag = control_caucasus
			country_exists = AZR
			is_ai = yes
		}

		fire_only_once = yes

		cost = 30

		complete_effect = {
			SOV = {
				annex_country = {
					target = AZR
					transfer_troops = yes
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.221 hours = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_integrate_ARM_ai = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			ARM = {
				is_subject_of = SOV
			}
			has_country_flag = preparation_done_russian_civil_war_russia2_arm
		}

		visible = {
			ARM = {
				is_subject_of = SOV
			}
			has_country_flag = control_caucasus
			country_exists = ARM
			is_ai = yes
		}

		fire_only_once = yes

		cost = 30

		complete_effect = {
			SOV = {
				annex_country = {
					target = ARM
					transfer_troops = yes
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.222 hours = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_integrate_KAZ_ai = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			KAZ = {
				is_subject_of = SOV
			}
			has_country_flag = preparation_done_russian_civil_war_russia2_kaz
		}

		visible = {
			KAZ = {
				is_subject_of = SOV
			}
			has_country_flag = control_central_asia
			country_exists = KAZ
			is_ai = yes
		}

		fire_only_once = yes

		cost = 45

		complete_effect = {
			SOV = {
				annex_country = {
					target = KAZ
					transfer_troops = yes
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.223 hours = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_integrate_TMS_ai = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		available = {
			TMS = {
				is_subject_of = SOV
			}
			has_country_flag = preparation_done_russian_civil_war_russia2_tms
		}

		visible = {
			TMS = {
				is_subject_of = SOV
			}
			has_country_flag = control_central_asia
			country_exists = TMS
			is_ai = yes
		}

		fire_only_once = yes

		cost = 45

		complete_effect = {
			SOV = {
				annex_country = {
					target = TMS
					transfer_troops = yes
				}
			}
			SOV = {
				hidden_effect = {
					country_event = { id = russia2_russia.224 hours = 1 }
				}
			}
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_reinforce_imperial_ties_ukraine_ai = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			UKR = {
				is_subject_of = SOV
			}
		}

		visible = {
			UKR = {
				is_subject_of = SOV
			}
			is_ai = yes
		}

		fire_only_once = yes

		cost = 40

		days_remove = 165

		remove_effect = {
			set_country_flag = preparation_done_russian_civil_war_russia2_ukr
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_reinforce_imperial_ties_belarus_ai = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			BLR = {
				is_subject_of = SOV
			}
		}

		visible = {
			BLR = {
				is_subject_of = SOV
			}
			is_ai = yes
		}

		fire_only_once = yes

		cost = 30

		days_remove = 105

		remove_effect = {
			set_country_flag = preparation_done_russian_civil_war_russia2_blr
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_reinforce_imperial_ties_crimea_ai = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			CRI = {
				is_subject_of = SOV
			}
		}

		visible = {
			CRI = {
				is_subject_of = SOV
			}
			is_ai = yes
		}

		fire_only_once = yes

		cost = 30

		days_remove = 70

		remove_effect = {
			set_country_flag = preparation_done_russian_civil_war_russia2_cri
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_reinforce_imperial_ties_georgia_ai = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			GEO = {
				is_subject_of = SOV
			}
		}

		visible = {
			GEO = {
				is_subject_of = SOV
			}
			is_ai = yes
		}

		fire_only_once = yes

		cost = 15

		days_remove = 70

		remove_effect = {
			set_country_flag = preparation_done_russian_civil_war_russia2_geo
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_reinforce_imperial_ties_azr_ai = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			AZR = {
				is_subject_of = SOV
			}
		}

		visible = {
			AZR = {
				is_subject_of = SOV
			}
			is_ai = yes
		}

		fire_only_once = yes

		cost = 15

		days_remove = 60

		remove_effect = {
			set_country_flag = preparation_done_russian_civil_war_russia2_azr
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_reinforce_imperial_ties_arm_ai = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			ARM = {
				is_subject_of = SOV
			}
		}

		visible = {
			ARM = {
				is_subject_of = SOV
			}
			is_ai = yes
		}

		fire_only_once = yes

		cost = 15

		days_remove = 75

		remove_effect = {
			set_country_flag = preparation_done_russian_civil_war_russia2_arm
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_reinforce_imperial_ties_kaz_ai = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			KAZ = {
				is_subject_of = SOV
			}
		}

		visible = {
			KAZ = {
				is_subject_of = SOV
			}
			is_ai = yes
		}

		fire_only_once = yes

		cost = 30

		days_remove = 85

		remove_effect = {
			set_country_flag = preparation_done_russian_civil_war_russia2_kaz
		}

		ai_will_do = {
			factor = 250
		}
	}

	SOV_reinforce_imperial_ties_tms_ai = {

		icon = GFX_decision_eng_ally_imperialist_coup

		allowed = {
			original_tag = SOV
		}

		available = {
			TMS = {
				is_subject_of = SOV
			}
		}

		visible = {
			TMS = {
				is_subject_of = SOV
			}
			is_ai = yes
		}

		fire_only_once = yes

		cost = 30

		days_remove = 80

		remove_effect = {
			set_country_flag = preparation_done_russian_civil_war_russia2_tms
		}

		ai_will_do = {
			factor = 250
		}
	}
}

SOV_imperial_obligations = {

	SOV_impose_imperial_governorate = {

		icon = GFX_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				is_subject_of = SOV
				NOT = {
					has_autonomy_state = autonomy_imperial_governorates
					has_country_flag = ukraine_no_imperial_govern
					has_country_flag = germany_no_imperial_transform
				}
			}
		}

		target_root_trigger = {
			has_idea = SOV_Tsar_we_trust
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					has_autonomy_state = autonomy_imperial_governorates
					has_country_flag = ukraine_no_imperial_govern
					has_country_flag = germany_no_imperial_transform
				}
			}
		}

		available = {

		}

		complete_effect = {
			custom_effect_tooltip = SOV_impose_imperial_governorate_tt
			hidden_effect = {
				set_autonomy = {
					target = FROM
					autonomy_state = autonomy_imperial_governorates
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_second_civil_war_during_bonus = {

	SOV_ask_country_guns = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = weapons_limit_number_10
				has_equipment = {
					infantry_equipment < 10000
				}
			}
			command_power > 15
		}

		cost = 50

		ai_will_do = {
			factor = 100000
			modifier = {
				factor = 0
				has_manpower < 100000
				NOT = {
					has_idea = SOV_Organize_volunteer_forces
				}
			}
		}

		days_re_enable = 50

		complete_effect = {
			hidden_effect = {
				add_command_power = -15
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment_1
				amount = 4000
			}
		}
	}

	SOV_bonus_against_sou = {

		icon = GFX_decision_generic_civil_support

		allowed = {
			original_tag = SOV
		}

		available = {
			command_power > 25
		}

		cost = 30

		ai_will_do = {
			factor = 10000
			modifier = {
				factor = 0
				has_manpower < 100000
				NOT = {
					has_idea = SOV_Organize_volunteer_forces
				}
			}
		}

		days_re_enable = 150

		complete_effect = {
			hidden_effect = {
				add_command_power = -25
			}
			add_timed_idea = {
				idea = SOV_For_the_motherland_civil_war
				days = 100
			}
		}
	}

	SOV_organize_volunteer_forces = {

		icon = GFX_decision_eng_blackshirt_march

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			command_power > 20
		}

		cost = 25

		ai_will_do = {
			factor = 10000
			modifier = {
				factor = 0
				has_manpower > 500000
			}
		}

		complete_effect = {
			hidden_effect = {
				add_command_power = -20
			}
			add_ideas = SOV_Organize_volunteer_forces
		}
	}
}

SOV_fascist_women_movement_decisions = {

	SOV_upgrade_fascist_movement_level1 = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			fascism > 0.3
		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			add_to_variable = {
				women_movement_influence_level = 1
			}
		}
	}

	SOV_upgrade_fascist_movement_level2 = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			fascism > 0.4
		}

		visible = {
			check_variable = {
				var = women_movement_influence_level
				value = 1
				compare = greater_than_or_equals
			}
		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			add_to_variable = {
				women_movement_influence_level = 1
			}
		}
	}

	SOV_upgrade_fascist_movement_level3 = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			fascism > 0.5
		}

		visible = {
			check_variable = {
				var = women_movement_influence_level
				value = 2
				compare = greater_than_or_equals
			}
		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			add_to_variable = {
				women_movement_influence_level = 1
			}
		}
	}

	SOV_upgrade_fascist_movement_level4 = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			fascism > 0.6
		}

		visible = {
			check_variable = {
				var = women_movement_influence_level
				value = 3
				compare = greater_than_or_equals
			}
		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			add_to_variable = {
				women_movement_influence_level = 1
			}
		}
	}

	SOV_upgrade_fascist_movement_level5 = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			fascism > 0.7
		}

		visible = {
			check_variable = {
				var = women_movement_influence_level
				value = 4
				compare = greater_than_or_equals
			}
		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			add_to_variable = {
				women_movement_influence_level = 1
			}
		}
	}

	SOV_upgrade_fascist_movement_level6 = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			fascism > 0.8
		}

		visible = {
			check_variable = {
				var = women_movement_influence_level
				value = 5
				compare = greater_than_or_equals
			}
		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			add_to_variable = {
				women_movement_influence_level = 1
			}
		}
	}

	SOV_upgrade_fascist_movement_level7 = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			fascism > 0.9
		}

		visible = {
			check_variable = {
				var = women_movement_influence_level
				value = 6
				compare = greater_than_or_equals
			}
		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			add_to_variable = {
				women_movement_influence_level = 1
			}
		}
	}

	SOV_upgrade_fascist_movement_level8 = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			fascism > 0.99
		}

		visible = {
			check_variable = {
				var = women_movement_influence_level
				value = 7
				compare = greater_than_or_equals
			}
		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			add_to_variable = {
				women_movement_influence_level = 1
			}
		}
	}

	SOV_incite_younger_people_fascist = {

		icon = GFX_decision_eng_blackshirt_march

		allowed = {
			original_tag = SOV
		}

		days_re_enable = 240

		days_remove = 90

		available = {
			custom_trigger_tooltip = {
				tooltip = has_correct_level_2
				check_variable = {
					var = women_movement_influence_level
					value = 2
					compare = greater_than_or_equals
				}
			}
			NOT = {
				has_country_flag = is_organizing_a_parade_fascist
			}
		}

		visible = {

		}

		cost = 75

		ai_will_do = {
			factor = 30
		}

		remove_effect = {
			clr_country_flag = is_organizing_a_parade_fascist
		}

		complete_effect = {
			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}
			add_timed_idea = {
				idea = SOV_Young_parade_fascist_idea
				days = 90
			}
			set_country_flag = is_organizing_a_parade_fascist
			army_experience = -10
			add_war_support = -0.05
		}
	}

	SOV_organize_blackshirt_parade = {

		icon = GFX_decision_eng_blackshirt_march

		allowed = {
			original_tag = SOV
		}

		days_re_enable = 180

		days_remove = 90

		available = {
			custom_trigger_tooltip = {
				tooltip = has_correct_level_2
				check_variable = {
					var = women_movement_influence_level
					value = 2
					compare = greater_than_or_equals
				}
			}
			NOT = {
				has_country_flag = is_organizing_a_parade_fascist
			}
		}

		visible = {

		}

		cost = 100

		ai_will_do = {
			factor = 30
		}

		remove_effect = {
			clr_country_flag = is_organizing_a_parade_fascist
		}

		complete_effect = {
			add_popularity = {
				ideology = fascism
				popularity = 0.025
			}
			add_timed_idea = {
				idea = SOV_Blackshirt_parade_fascist_idea
				days = 90
			}
			set_country_flag = is_organizing_a_parade_fascist
			add_stability = 0.02
		}
	}

	SOV_organize_military_parade = {

		icon = GFX_decision_eng_blackshirt_march

		allowed = {
			original_tag = SOV
		}

		days_re_enable = 180

		days_remove = 90

		available = {
			custom_trigger_tooltip = {
				tooltip = has_correct_level_2
				check_variable = {
					var = women_movement_influence_level
					value = 2
					compare = greater_than_or_equals
				}
			}
			NOT = {
				has_country_flag = is_organizing_a_parade_fascist
			}
		}

		visible = {

		}

		cost = 150

		ai_will_do = {
			factor = 30
		}

		remove_effect = {
			clr_country_flag = is_organizing_a_parade_fascist
		}

		complete_effect = {
			add_popularity = {
				ideology = fascism
				popularity = 0.03
			}
			add_timed_idea = {
				idea = SOV_Military_parade_fascist_idea
				days = 120
			}
			army_experience = 15
			add_manpower = 10000
			set_country_flag = is_organizing_a_parade_fascist
		}
	}

	SOV_organize_fascist_movement = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			has_country_flag = SOV_25_percent_fascist_exile
			custom_trigger_tooltip = {
				tooltip = has_correct_level_1
				check_variable = {
					var = women_movement_influence_level
					value = 1
					compare = greater_than_or_equals
				}
			}
		}

		cost = 100

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			custom_effect_tooltip = SOV_organize_fascist_movement_tt
			add_to_variable = { fascism_anastasy_konstantin = 0.025 }
			add_to_variable = { encryption_anastasy_konstantin = 0.025 }
			force_update_dynamic_modifier = yes
		}
	}

	SOV_organize_fascist_movement2 = {

		icon = GFX_decision_oppression

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			has_country_flag = SOV_50_percent_fascist_exile
			custom_trigger_tooltip = {
				tooltip = has_correct_level_3
				check_variable = {
					var = women_movement_influence_level
					value = 3
					compare = greater_than_or_equals
				}
			}
		}

		cost = 100

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			custom_effect_tooltip = SOV_organize_fascist_movement2_tt
			add_to_variable = { fascism_anastasy_konstantin = 0.025 }
			add_to_variable = { encryption_anastasy_konstantin = 0.025 }
			force_update_dynamic_modifier = yes
		}
	}

	SOV_organize_fascist_movement3 = {

		icon = GFX_decision_generic_industry

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			has_country_flag = SOV_75_percent_fascist_exile
			custom_trigger_tooltip = {
				tooltip = has_correct_level_3
				check_variable = {
					var = women_movement_influence_level
					value = 3
					compare = greater_than_or_equals
				}
			}
		}

		cost = 100

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			custom_effect_tooltip = SOV_organize_fascist_movement3_tt
			add_popularity = {
				ideology = fascism
				popularity = 0.025
			}
			add_to_variable = { fascism_anastasy_konstantin = 0.025 }
			add_to_variable = { encryption_anastasy_konstantin = 0.025 }
			force_update_dynamic_modifier = yes
		}
	}

	SOV_organize_fascist_movement4 = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			has_country_flag = SOV_100_percent_fascist_exile
			custom_trigger_tooltip = {
				tooltip = has_correct_level_3
				check_variable = {
					var = women_movement_influence_level
					value = 3
					compare = greater_than_or_equals
				}
			}
		}

		cost = 100

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			custom_effect_tooltip = SOV_organize_fascist_movement4_tt
			add_popularity = {
				ideology = fascism
				popularity = 0.025
			}
			add_to_variable = { fascism_anastasy_konstantin = 0.025 }
			add_to_variable = { encryption_anastasy_konstantin = 0.025 }
			force_update_dynamic_modifier = yes
		}
	}

	SOV_merge_fascist_women_and_blackshirts = {

		icon = GFX_decision_ger_reichskommissariats

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			has_idea = SOV_Women_fascist_movement
			has_idea = SOV_Blackshirts
			custom_trigger_tooltip = {
				tooltip = has_correct_level_4
				check_variable = {
					var = women_movement_influence_level
					value = 4
					compare = greater_than_or_equals
				}
			}
		}

		cost = 200

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			add_stability = -0.05
			custom_effect_tooltip = SOV_merge_fascist_women_and_blackshirts_tt
			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}
			add_to_variable = { fascism_anastasy_konstantin = 0.05 }
			add_to_variable = { encryption_anastasy_konstantin = 0.1 }
			add_to_variable = { operative_anastasy_konstantin = 2 }
			set_country_flag = merged_fascist_women_and_blackshirts
			hidden_effect = {
				remove_dynamic_modifier = { modifier = fascist_women_modifiers }
				add_dynamic_modifier = { modifier = fascist_security_modifiers }
				force_update_dynamic_modifier = yes
				remove_ideas = SOV_Blackshirts
				remove_ideas = SOV_Women_fascist_movement
				add_ideas = SOV_Otdel_bezopasnosti
			}
		}
	}

	SOV_propaganda_state = {

		icon = GFX_decision_hol_radio_oranje

		allowed = {
			original_tag = SOV
		}

		available = {
			has_country_flag = merged_fascist_women_and_blackshirts
			has_idea = SOV_Otdel_bezopasnosti
			custom_trigger_tooltip = {
				tooltip = has_correct_level_3
				check_variable = {
					var = women_movement_influence_level
					value = 3
					compare = greater_than_or_equals
				}
			}
			custom_trigger_tooltip = {
				tooltip = less_than_two_times_propaganda
				check_variable = {
					var = war_weekly_anastasy_konstantin
					value = 0.01
					compare = less_than
				}
			}
		}

		visible = {
			check_variable = {
				var = war_weekly_anastasy_konstantin
				value = 0.01
				compare = less_than
			}
		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			custom_effect_tooltip = SOV_propaganda_state_tt
			add_to_variable = { war_weekly_anastasy_konstantin = 0.005 }
			force_update_dynamic_modifier = yes
		}
	}

	SOV_integrate_special_forces = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		available = {
			has_country_flag = merged_fascist_women_and_blackshirts
			has_idea = SOV_Otdel_bezopasnosti
			custom_trigger_tooltip = {
				tooltip = has_correct_level_3
				check_variable = {
					var = women_movement_influence_level
					value = 3
					compare = greater_than_or_equals
				}
			}
			custom_trigger_tooltip = {
				tooltip = less_than_four_times_special_forces
				check_variable = {
					var = special_attack_anastasy_konstantin
					value = 0.1
					compare = less_than
				}
				check_variable = {
					var = special_defence_anastasy_konstantin
					value = 0.1
					compare = less_than
				}
			}
		}

		visible = {
			check_variable = {
				var = special_attack_anastasy_konstantin
				value = 0.1
				compare = less_than
			}
			check_variable = {
				var = special_defence_anastasy_konstantin
				value = 0.1
				compare = less_than
			}
		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			custom_effect_tooltip = SOV_integrate_special_forces_tt
			add_to_variable = { special_attack_anastasy_konstantin = 0.025 }
			add_to_variable = { special_defence_anastasy_konstantin = 0.025 }
			force_update_dynamic_modifier = yes
		}
	}

	SOV_arrest_communist_supporters = {

		icon = GFX_decision_generic_arrest

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			custom_trigger_tooltip = {
				tooltip = has_correct_level_3
				check_variable = {
					var = women_movement_influence_level
					value = 3
					compare = greater_than_or_equals
				}
			}
			has_idea = SOV_Russian_communist_rebels
		}

		visible = {
			has_idea = SOV_Russian_communist_rebels
		}

		cost = 75

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			swap_ideas = {
				remove_idea = SOV_Russian_communist_rebels
				add_idea = SOV_Russian_communist_rebels2
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.025
			}
		}
	}

	SOV_protect_factories_from_communist = {

		icon = GFX_decision_generic_factory

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			custom_trigger_tooltip = {
				tooltip = has_correct_level_5
				check_variable = {
					var = women_movement_influence_level
					value = 5
					compare = greater_than_or_equals
				}
			}
			has_idea = SOV_Russian_communist_rebels2
		}

		visible = {
			has_idea = SOV_Russian_communist_rebels2
		}

		cost = 75

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			swap_ideas = {
				remove_idea = SOV_Russian_communist_rebels2
				add_idea = SOV_Russian_communist_rebels3
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.025
			}
		}
	}

	SOV_incite_citizens_denounce = {

		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			custom_trigger_tooltip = {
				tooltip = has_correct_level_6
				check_variable = {
					var = women_movement_influence_level
					value = 6
					compare = greater_than_or_equals
				}
			}
			has_idea = SOV_Russian_communist_rebels3
		}

		visible = {
			has_idea = SOV_Russian_communist_rebels3
		}

		cost = 75

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			swap_ideas = {
				remove_idea = SOV_Russian_communist_rebels3
				add_idea = SOV_Russian_communist_rebels4
			}
			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}
		}
	}

	SOV_destroy_communist_rebels_fascism = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			custom_trigger_tooltip = {
				tooltip = has_correct_level_7
				check_variable = {
					var = women_movement_influence_level
					value = 7
					compare = greater_than_or_equals
				}
			}
			has_idea = SOV_Russian_communist_rebels4
		}

		visible = {
			has_idea = SOV_Russian_communist_rebels4
		}

		cost = 75

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			remove_ideas = SOV_Russian_communist_rebels4
			add_popularity = {
				ideology = fascism
				popularity = 0.05
			}
		}
	}

	SOV_form_special_police_force = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			custom_trigger_tooltip = {
				tooltip = has_correct_level_8
				check_variable = {
					var = women_movement_influence_level
					value = 8
					compare = greater_than_or_equals
				}
			}
		}

		visible = {

		}

		cost = 50

		ai_will_do = {
			factor = 60
		}

		complete_effect = {
			add_ideas = SOV_Russian_special_police_force
			division_template = {
				name = "spetsial'naya politsiya"
				priority = 2
				regiments = {
					armored_car = { x = 0 y = 0 }
					armored_car = { x = 0 y = 1 }
					armored_car = { x = 0 y = 2 }
					armored_car = { x = 0 y = 3 }
					armored_car = { x = 0 y = 4 }
					armored_car = { x = 1 y = 0 }
					cavalry = { x = 1 y = 1 }
					cavalry = { x = 1 y = 2 }
					infantry = { x = 2 y = 0 }
					infantry = { x = 2 y = 1 }
				}
				support = {
					armored_car_recon = { x = 0 y = 0 }
					military_police = { x = 0 y = 1 }
				}
			}
			custom_effect_tooltip = unlock_new_fascist_division
		}
	}

	SOV_new_recruits = {

		icon = GFX_decision_hol_war_on_pacifism

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

		available = {
			NOT = {
				has_government = fascism
			}
		}

		days_mission_timeout = 100

		is_good = yes

		timeout_effect = {
			add_manpower = 10000
		}
	}

	#add_to_variable = { fascism_anastasy_konstantin = 0.025 }
	#add_to_variable = { encryption_anastasy_konstantin = 0.025 }
	#add_to_variable = { operative_anastasy_konstantin = 2 }
	#add_to_variable = { war_weekly_anastasy_konstantin = 0 }
	#add_to_variable = { special_attack_anastasy_konstantin = 0 }
	#add_to_variable = { special_defence_anastasy_konstantin = 0 }
}

SOV_custom_formable_nations_endgame = {

	form_north_america_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = north_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}


		fire_only_once = yes

	   ai_will_do = {
		   factor = 100
	   }

		complete_effect = {
			custom_effect_tooltip = form_north_america_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = north_america_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					NAF = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = NAF
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = NAF
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = north_america_fascist_nation_puppet
						is_claimed_by = SOV
					}
					NAF = {
						add_state_core = PREV
					}
				}
				NAF = {
					NAF_corps_commander_generation = yes
					if = {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						create_country_leader = {
							name = SOV_Administrative_departments_leader_north_america
							desc = SOV_Administrative_departments_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						NAF = {
							create_country_leader = {
								name = SOV_Anastasy_vonsyatsky
								desc = SOV_Anastasy_vonsyatsky_desc
								picture = "gfx/leaders/SOV/Portrait_Russia_Anastasy_Vonsyatsky.dds"
								expire = "1965.1.1"
								ideology = fascism_ideology
								traits = {
									russia2_different_kind_of_fascism
                                    dictator
                                    russia2_memories_america
								}
							}
							set_capital = {
								state = 366
							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "North American Order Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
							artillery_brigade = { x = 2 y = 2 }
							artillery_brigade = { x = 2 y = 3 }
							infantry = { x = 3 y = 0 }
							infantry = { x = 3 y = 1 }
							artillery_brigade = { x = 3 y = 2 }
							artillery_brigade = { x = 3 y = 3 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "North America Tank"
						priority = 2
						regiments = {
							medium_armor = { x = 0 y = 0 }
							medium_armor = { x = 0 y = 1 }
							medium_armor = { x = 0 y = 2 }
							medium_armor = { x = 0 y = 3 }
							medium_armor = { x = 0 y = 4 }
							medium_armor = { x = 1 y = 0 }
							medium_armor = { x = 1 y = 1 }
							medium_armor = { x = 1 y = 2 }
							medium_armor = { x = 1 y = 3 }
							medium_armor = { x = 1 y = 4 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
							motorized = { x = 2 y = 3 }
							motorized = { x = 2 y = 4 }
							motorized = { x = 3 y = 0 }
							motorized = { x = 3 y = 1 }
							motorized = { x = 3 y = 2 }
							motorized = { x = 3 y = 3 }
							motorized = { x = 3 y = 4 }
						}
						support = {
							light_tank_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"8th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"9th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"10th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"11th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"11th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"12th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"13th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"14th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"15th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"16th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"17th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"18th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"19th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"20th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"21th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"22th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"23th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"24th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"25th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"26th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"27th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"28th North American Order Division\" division_template = \"North American Order Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st North America Tank\" division_template = \"North America Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd North America Tank\" division_template = \"North America Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd North America Tank\" division_template = \"North America Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th North America Tank\" division_template = \"North America Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th North America Tank\" division_template = \"North America Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th North America Tank\" division_template = \"North America Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th North America Tank\" division_template = \"North America Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NAF
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	form_central_america_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = central_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}


		fire_only_once = yes

	   ai_will_do = {
		   factor = 100
	   }

		complete_effect = {
			custom_effect_tooltip = form_central_america_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = central_america_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					CAF = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = CAF
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = CAF
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = central_america_fascist_nation_puppet
						is_claimed_by = SOV
					}
					CAF = {
						add_state_core = PREV
					}
				}
				CAF = {
					if = {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						create_country_leader = {
							name = SOV_Administrative_departments_leader_central_america
							desc = SOV_Administrative_departments_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						create_country_leader = {
							name = SOV_State_magistrate_leader_central_america
							desc = SOV_State_magistrate_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "Central American Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st Central American Garrison Division\" division_template = \"Central American Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd Central American Garrison Division\" division_template = \"Central American Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd Central American Garrison Division\" division_template = \"Central American Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th Central American Garrison Division\" division_template = \"Central American Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAF
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	form_south_america_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = south_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}


		fire_only_once = yes

	   ai_will_do = {
		   factor = 100
	   }

		complete_effect = {
			custom_effect_tooltip = form_south_america_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = south_america_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					SAR = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = SAR
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = SAR
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = south_america_fascist_nation_puppet
						is_claimed_by = SOV
					}
					SAR = {
						add_state_core = PREV
					}
				}
				SAR = {
					if = {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						create_country_leader = {
							name = SOV_Administrative_departments_leader_south_america
							desc = SOV_Administrative_departments_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						create_country_leader = {
							name = SOV_State_magistrate_leader_south_america
							desc = SOV_State_magistrate_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "South American Jungle Guerrilla Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
							artillery_brigade = { x = 2 y = 2 }
							artillery_brigade = { x = 2 y = 3 }
							infantry = { x = 3 y = 0 }
							infantry = { x = 3 y = 1 }
							artillery_brigade = { x = 3 y = 2 }
							artillery_brigade = { x = 3 y = 3 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st South American Jungle Guerrilla Division\" division_template = \"South American Jungle Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd South American Jungle Guerrilla Division\" division_template = \"South American Jungle Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd South American Jungle Guerrilla Division\" division_template = \"South American Jungle Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th South American Jungle Guerrilla Division\" division_template = \"South American Jungle Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th South American Jungle Guerrilla Division\" division_template = \"South American Jungle Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th South American Jungle Guerrilla Division\" division_template = \"South American Jungle Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th South American Jungle Guerrilla Division\" division_template = \"South American Jungle Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"8th South American Jungle Guerrilla Division\" division_template = \"South American Jungle Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAR
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	form_caraibe_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = caraibe_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}


		fire_only_once = yes

	   ai_will_do = {
		   factor = 100
	   }

		complete_effect = {
			custom_effect_tooltip = form_caraibe_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = caraibe_america_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					CAI = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = CAI
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = CAI
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = caraibe_america_fascist_nation_puppet
						is_claimed_by = SOV
					}
					CAI = {
						add_state_core = PREV
					}
				}
				CAI = {
					if = {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						create_country_leader = {
							name = SOV_Administrative_departments_leader_caribbeans
							desc = SOV_Administrative_departments_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						create_country_leader = {
							name = SOV_State_magistrate_leader_caribbeans
							desc = SOV_State_magistrate_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "Caribbean Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st Caribbean Garrison Division\" division_template = \"Caribbean Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAI
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd Caribbean Garrison Division\" division_template = \"Caribbean Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAI
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd Caribbean Garrison Division\" division_template = \"Caribbean Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAI
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th Caribbean Garrison Division\" division_template = \"Caribbean Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAI
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th Caribbean Garrison Division\" division_template = \"Caribbean Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAI
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th Caribbean Garrison Division\" division_template = \"Caribbean Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAI
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th Caribbean Garrison Division\" division_template = \"Caribbean Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAI
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"8th Caribbean Garrison Division\" division_template = \"Caribbean Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAI
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"9th Caribbean Garrison Division\" division_template = \"Caribbean Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAI
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"10th Caribbean Garrison Division\" division_template = \"Caribbean Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAI
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	form_middle_east_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = middle_east_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}


		fire_only_once = yes

	   ai_will_do = {
		   factor = 100
	   }

		complete_effect = {
			custom_effect_tooltip = form_middle_east_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = middle_east_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					MEF = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = MEF
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = MEF
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = middle_east_fascist_nation_puppet
						is_claimed_by = SOV
					}
					MEF = {
						add_state_core = PREV
					}
				}
				MEF = {
					if = {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						create_country_leader = {
							name = SOV_Administrative_departments_leader_middle_east
							desc = SOV_Administrative_departments_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						create_country_leader = {
							name = SOV_State_magistrate_leader_middle_east
							desc = SOV_State_magistrate_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "Desert Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"8th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"9th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"10th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"11th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"12th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"13th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"14th Desert Division\" division_template = \"Desert Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEF
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	form_africa_russia_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = africa_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}


		fire_only_once = yes

	   ai_will_do = {
		   factor = 100
	   }

		complete_effect = {
			custom_effect_tooltip = form_africa_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = africa_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					AFF = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = AFF
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = AFF
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = africa_fascist_nation_puppet
						is_claimed_by = SOV
					}
					AFF = {
						add_state_core = PREV
					}
				}
				AFF = {
					if = {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						create_country_leader = {
							name = SOV_Administrative_departments_leader_africa
							desc = SOV_Administrative_departments_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						create_country_leader = {
							name = SOV_State_magistrate_leader_africa
							desc = SOV_State_magistrate_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "African's Empire Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"8th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"9th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"10th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"11th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"12th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"13th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"14th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"15th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"16th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"17th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"18th African's Empire Division\" division_template = \"African's Empire Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AFF
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	form_south_asia_russia_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = south_asia_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}


		fire_only_once = yes

	   ai_will_do = {
		   factor = 100
	   }

		complete_effect = {
			custom_effect_tooltip = form_south_asia_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = south_asia_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					SFR = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = SFR
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = SFR
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = south_asia_fascist_nation_puppet
						is_claimed_by = SOV
					}
					SFR = {
						add_state_core = PREV
					}
				}
				SFR = {
					if = {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						create_country_leader = {
							name = SOV_Administrative_departments_leader_south_asia
							desc = SOV_Administrative_departments_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						create_country_leader = {
							name = SOV_State_magistrate_leader_south_asia
							desc = SOV_State_magistrate_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "Hindu's Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"8th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"9th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"10th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"11th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"12th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"13th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"14th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"15th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"16th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"17th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"18th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"19th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"20th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"21th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"22th Hindu's Division\" division_template = \"Hindu's Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SFR
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	form_south_east_asia_russia_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = south_east_asia_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}


		fire_only_once = yes

	   ai_will_do = {
		   factor = 100
	   }

		complete_effect = {
			custom_effect_tooltip = form_south_east_asia_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = south_east_asia_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					SEA = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = SEA
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = SEA
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = south_east_asia_fascist_nation_puppet
						is_claimed_by = SOV
					}
					SEA = {
						add_state_core = PREV
					}
				}
				SEA = {
					if = {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						create_country_leader = {
							name = SOV_Administrative_departments_leader_south_east_asia
							desc = SOV_Administrative_departments_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						create_country_leader = {
							name = SOV_State_magistrate_leader_south_east_asia
							desc = SOV_State_magistrate_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "Guerrilla Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"8th Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"9th Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"10th Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"11th Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"12th Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"13th Guerrilla Division\" division_template = \"Guerrilla Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SEA
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	form_east_asia_russia_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = east_asia_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}


		fire_only_once = yes

	   ai_will_do = {
		   factor = 100
	   }

		complete_effect = {
			custom_effect_tooltip = form_east_asia_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = east_asia_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					EAR = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = EAR
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = EAR
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = east_asia_fascist_nation_puppet
						is_claimed_by = SOV
					}
					EAR = {
						add_state_core = PREV
					}
				}
				EAR = {
					EAR_corps_commander_generation = yes
					if= {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						EAR = {
							create_country_leader = {
								name = SOV_konstantin_rodzayevsky
								desc = SOV_konstantin_rodzayevsky_desc
								picture = "gfx/leaders/SOV/Portrait_Russia_Konstantin_Rodzaevsky.dds"
								expire = "1953.3.1"
								ideology = fascism_ideology
								traits = {
									russia2_lawyer_leader russia2_memories_asia
								}
							}
							set_capital = {
								state = 761
							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						create_country_leader = {
							name = SOV_State_magistrate_leader_east_asia
							desc = SOV_State_magistrate_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "East Asian Imperial Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
							infantry = { x = 2 y = 2 }
							infantry = { x = 2 y = 3 }
							infantry = { x = 2 y = 4 }
							infantry = { x = 3 y = 0 }
							infantry = { x = 3 y = 1 }
							infantry = { x = 3 y = 2 }
							infantry = { x = 3 y = 3 }
							infantry = { x = 3 y = 4 }
							infantry = { x = 4 y = 0 }
							infantry = { x = 4 y = 1 }
							infantry = { x = 4 y = 2 }
							infantry = { x = 4 y = 3 }
							infantry = { x = 4 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2snd East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"8th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"9th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"10th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"11th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"12th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"13th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"14th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"15th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"16th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"17th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"18th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"19th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"20th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"21th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"22th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"23th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"24th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"25th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"26th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"27th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"28th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"29th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"30th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"31th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"32th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"33th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"34th East Asian Imperial Division\" division_template = \"East Asian Imperial Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EAR
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	form_oceania_russia_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = oceania_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}


		fire_only_once = yes

	   ai_will_do = {
		   factor = 100
	   }

		complete_effect = {
			custom_effect_tooltip = form_oceania_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = oceania_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					OCE = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = OCE
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = OCE
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = oceania_fascist_nation_puppet
						is_claimed_by = SOV
					}
					OCE = {
						add_state_core = PREV
					}
				}
				OCE = {
					if = {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						create_country_leader = {
							name = SOV_Administrative_departments_leader_oceania
							desc = SOV_Administrative_departments_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						create_country_leader = {
							name = SOV_State_magistrate_leader_oceania
							desc = SOV_State_magistrate_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "Island Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st Island Garrison Division\" division_template = \"Island Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = OCE
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd Island Garrison Division\" division_template = \"Island Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = OCE
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd Island Garrison Division\" division_template = \"Island Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = OCE
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th Island Garrison Division\" division_template = \"Island Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = OCE
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th Island Garrison Division\" division_template = \"Island Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = OCE
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th Island Garrison Division\" division_template = \"Island Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = OCE
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th Island Garrison Division\" division_template = \"Island Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = OCE
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	form_europe_russia_continent = {

		icon = GFX_decision_eng_trade_unions_support

		available = {
			any_state = {
				has_state_flag = europe_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_claimed_by = ROOT
					is_core_of = ROOT
				}
			}
			is_subject = no
		}

		fire_only_once = yes

	   	ai_will_do = {
		   	factor = 100
	   	}

		complete_effect = {
			custom_effect_tooltip = form_europe_continent_tt
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = europe_fascist_nation_puppet
						NOT = {
							is_claimed_by = SOV
							is_core_of = SOV
						}
					}
					EUR = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						has_idea = SOV_Impose_order
					}
					release_autonomy = {
						target = EUR
						autonomy_state = autonomy_state_magistrate
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
				}
				else = {
					SOV = {
						release_autonomy = {
							target = EUR
							autonomy_state = autonomy_reichsprotectorate
							freedom_level = 0.5
						}
						set_popularities = {
							democratic = 10
							neutrality = 10
							fascism = 70
							communism = 10
						}
					}
				}
				every_state = {
					limit = {
						has_state_flag = europe_fascist_nation_puppet
						is_claimed_by = SOV
					}
					EUR = {
						add_state_core = PREV
					}
				}
				EUR = {
					EUR_corps_commander_generation = yes
					if = {
						limit = {
							SOV = {
								has_country_leader = {
									character = SOV_konstantin_rodzayevsky
									ruling_only = yes
								}
							}
						}
						create_country_leader = {
							name = SOV_Administrative_departments_leader_europe
							desc = SOV_Administrative_departments_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					else_if = {
						limit = {
							SOV = {
								has_idea = SOV_Impose_order
							}
						}
						create_country_leader = {
							name = SOV_State_magistrate_leader_europe
							desc = SOV_State_magistrate_leader_desc
							picture = "Provisional_Government_Fascism.dds"
							expire = "1953.3.1"
							ideology = fascism_ideology
							traits = {

							}
						}
					}
					inherit_technology = SOV
					division_template = {
						name = "European Peacekeeper Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
							artillery_brigade = { x = 2 y = 2 }
							artillery_brigade = { x = 2 y = 3 }
							infantry = { x = 3 y = 0 }
							infantry = { x = 3 y = 1 }
							artillery_brigade = { x = 3 y = 2 }
							artillery_brigade = { x = 3 y = 3 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "European Tank"
						priority = 2
						regiments = {
							medium_armor = { x = 0 y = 0 }
							medium_armor = { x = 0 y = 1 }
							medium_armor = { x = 0 y = 2 }
							medium_armor = { x = 0 y = 3 }
							medium_armor = { x = 0 y = 4 }
							medium_armor = { x = 1 y = 0 }
							medium_armor = { x = 1 y = 1 }
							medium_armor = { x = 1 y = 2 }
							medium_armor = { x = 1 y = 3 }
							medium_armor = { x = 1 y = 4 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
							motorized = { x = 2 y = 3 }
							motorized = { x = 2 y = 4 }
							motorized = { x = 3 y = 0 }
							motorized = { x = 3 y = 1 }
							motorized = { x = 3 y = 2 }
							motorized = { x = 3 y = 3 }
							motorized = { x = 3 y = 4 }
						}
						support = {
							light_tank_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"7th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"8th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"9th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"10th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"11th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"12th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"13th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"14th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"15th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"16th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"17th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"18th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"19th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"20th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"21th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"22th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"23th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"24th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"25th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"26th European Peacekeeper Division\" division_template = \"European Peacekeeper Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st European Tank\" division_template = \"European Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"2nd European Tank\" division_template = \"European Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"3rd European Tank\" division_template = \"European Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"4th European Tank\" division_template = \"European Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"5th European Tank\" division_template = \"European Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"6th European Tank\" division_template = \"European Tank\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EUR
						}
					}
					add_ideas = CON_Unstable_continent
					news_event = { id = newsrussia2.137 hours = 12 }
				}
				if = {
					limit = {
						has_government = fascism
						is_subject = no
						all_of_scopes = {
							array = global.russia_reworked_continents

							is_subject_of = SOV
						}
						NOT = {
							is_in_array = { global.new_world_order_achievement = THIS }
						}
					}
					add_to_array = { global.new_world_order_achievement = THIS }
					set_variable = { global.new_world_order_achievement_date@THIS = global.date }
					set_country_flag = russia_reworked_new_achievement
					if = {
						limit = {
							has_global_flag = russia_reworked_achievements_enabled
						}
						scoped_sound_effect = "russia_reworked_unlock_achievement"
					}
				}
			}
		}
	}

	SOV_integrate_american_puppet_north_america = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			NAF = {
				is_subject_of = SOV
			}
		}

		visible = {
			NAF = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = north_america_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = north_america_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.1 days = 1}
			}
		}
	}

	SOV_integrate_central_american_puppet_central_america = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			CAF = {
				is_subject_of = SOV
			}
		}

		visible = {
			CAF = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = central_america_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = central_america_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.3 days = 1}
			}
		}
	}

	SOV_integrate_south_american_puppet_south_america = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			SAR = {
				is_subject_of = SOV
			}
		}

		visible = {
			SAR = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = south_america_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = south_america_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.4 days = 1}
			}
		}
	}

	SOV_integrate_south_carraibe_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			CAI = {
				is_subject_of = SOV
			}
		}

		visible = {
			CAI = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = caraibe_america_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = caraibe_america_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.5 days = 1}
			}
		}
	}

	SOV_integrate_middle_east_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			MEF = {
				is_subject_of = SOV
			}
		}

		visible = {
			MEF = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = middle_east_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = middle_east_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.6 days = 1}
			}
		}
	}

	SOV_integrate_africa_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			AFF = {
				is_subject_of = SOV
			}
		}

		visible = {
			AFF = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = africa_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = africa_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.7 days = 1}
			}
		}
	}

	SOV_integrate_south_asia_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			SFR = {
				is_subject_of = SOV
			}
		}

		visible = {
			SFR = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = south_asia_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = south_asia_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.8 days = 1}
			}
		}
	}

	SOV_integrate_south_east_asia_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			SEA = {
				is_subject_of = SOV
			}
		}

		visible = {
			SEA = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = south_east_asia_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = south_east_asia_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.9 days = 1}
			}
		}
	}

	SOV_integrate_east_asia_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			EAR = {
				is_subject_of = SOV
			}
		}

		visible = {
			EAR = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = east_asia_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = east_asia_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.10 days = 1}
			}
		}
	}

	SOV_integrate_oceania_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			OCE = {
				is_subject_of = SOV
			}
		}

		visible = {
			OCE = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = oceania_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = oceania_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.11 days = 1}
			}
		}
	}

	SOV_integrate_europe_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			EUR = {
				is_subject_of = SOV
			}
		}

		visible = {
			EUR = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = europe_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_thoughts_of_many
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAF
					tag = CAF
					tag = SAR
					tag = CAI
					tag = MEF
					tag = AFF
					tag = SFR
					tag = SEA
					tag = EAR
					tag = EUR
					tag = OCE
				}
				any_state = {
					has_state_flag = europe_fascist_nation_puppet
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_continent.12 days = 1}
			}
		}
	}

	SOV_give_back_north_america_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			NAF = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = north_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			NAF = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = north_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = north_america_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				NAF = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_give_back_central_america_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			CAF = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = central_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			CAF = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = central_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = central_america_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				CAF = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_give_back_south_america_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			SAR = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = south_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			SAR = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = south_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = south_america_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				SAR = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_give_back_carraibe_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			CAI = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = caraibe_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			CAI = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = caraibe_america_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = caraibe_america_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				CAI = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_give_back_middle_east_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			MEF = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = middle_east_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			MEF = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = middle_east_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = middle_east_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				MEF = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_give_back_african_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			AFF = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = africa_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			AFF = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = africa_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = africa_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				AFF = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_give_back_south_asian_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			SFR = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = south_asia_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			SFR = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = south_asia_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = south_asia_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				SFR = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_give_back_south_east_asian_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			SEA = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = south_east_asia_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			SEA = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = south_east_asia_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = south_east_asia_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				SEA = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_give_back_east_asian_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			EAR = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = east_asia_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			EAR = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = east_asia_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = east_asia_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				EAR = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_give_back_oceanian_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			OCE = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = oceania_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			OCE = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = oceania_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = oceania_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				OCE = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_give_back_european_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			EUR = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = europe_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			EUR = {
				is_subject_of = SOV
			}
			any_state = {
				has_state_flag = europe_fascist_nation_puppet
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = europe_fascist_nation_puppet
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				EUR = {
					transfer_state = PREV
				}
			}
		}
	}
}

SOV_focus_fascist_russia_europe = {

	SOV_bonus_against_from_europe = {

		icon = GFX_decision_hol_war_on_pacifism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		target_root_trigger = {
			has_country_flag = SOV_fascist_focus_on_europe
		}

		highlight_states = {
			highlight_states_trigger = {
				is_controlled_by = FROM
				is_capital = yes
			}
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					OR = {
						has_war_with = ROOT
						is_justifying_wargoal_against = ROOT
						has_wargoal_against = ROOT
						is_neighbor_of = ROOT
					}
					ROOT = {
						OR = {
							is_justifying_wargoal_against = FROM
							has_wargoal_against = FROM
						}
					}
				}
			}
		}

		visible = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					OR = {
						has_war_with = ROOT
						is_justifying_wargoal_against = ROOT
						has_wargoal_against = ROOT
						is_neighbor_of = ROOT
					}
					ROOT = {
						OR = {
							is_justifying_wargoal_against = FROM
							has_wargoal_against = FROM
						}
					}
				}
			}
		}

		available = {
			FROM = {
				has_war_with = ROOT
			}
		}

		cost = 10

		days_remove = 100

		ai_will_do = {
			factor = 100
		}

		targeted_modifier = {
			tag = FROM
			attack_bonus_against = 0.1
			defense_bonus_against = 0.1
		}
	}
}

SOV_focus_fascist_russia_asia = {

	SOV_bonus_against_from_asia = {

		icon = GFX_decision_hol_war_on_pacifism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		target_root_trigger = {
			has_country_flag = SOV_fascist_focus_on_asia
		}

		highlight_states = {
			highlight_states_trigger = {
				is_controlled_by = FROM
				is_capital = yes
			}
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				capital_scope = {
					is_on_continent = asia
				}
				OR = {
					OR = {
						has_war_with = ROOT
						is_justifying_wargoal_against = ROOT
						has_wargoal_against = ROOT
						is_neighbor_of = ROOT
					}
					ROOT = {
						OR = {
							is_justifying_wargoal_against = FROM
							has_wargoal_against = FROM
						}
					}
				}
			}
		}

		visible = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				capital_scope = {
					is_on_continent = asia
				}
				OR = {
					OR = {
						has_war_with = ROOT
						is_justifying_wargoal_against = ROOT
						has_wargoal_against = ROOT
						is_neighbor_of = ROOT
					}
					ROOT = {
						OR = {
							is_justifying_wargoal_against = FROM
							has_wargoal_against = FROM
						}
					}
				}
			}
		}

		available = {
			FROM = {
				has_war_with = ROOT
			}
		}

		cost = 10

		days_remove = 100

		ai_will_do = {
			factor = 100
		}

		targeted_modifier = {
			tag = FROM
			attack_bonus_against = 0.1
			defense_bonus_against = 0.1
		}
	}
}

SOV_focus_fascist_russia_america = {

	SOV_bonus_against_from_america = {

		icon = GFX_decision_hol_war_on_pacifism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		target_root_trigger = {
			has_country_flag = SOV_fascist_focus_on_america
		}

		highlight_states = {
			highlight_states_trigger = {
				is_controlled_by = FROM
				is_capital = yes
			}
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				capital_scope = {
					OR = {
						is_on_continent = north_america
						is_on_continent = south_america
					}
				}
				OR = {
					OR = {
						has_war_with = ROOT
						is_justifying_wargoal_against = ROOT
						has_wargoal_against = ROOT
						is_neighbor_of = ROOT
					}
					ROOT = {
						OR = {
							is_justifying_wargoal_against = FROM
							has_wargoal_against = FROM
						}
					}
				}
			}
		}

		visible = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				capital_scope = {
					OR = {
						is_on_continent = north_america
						is_on_continent = south_america
					}
				}
				OR = {
					OR = {
						has_war_with = ROOT
						is_justifying_wargoal_against = ROOT
						has_wargoal_against = ROOT
						is_neighbor_of = ROOT
					}
					ROOT = {
						OR = {
							is_justifying_wargoal_against = FROM
							has_wargoal_against = FROM
						}
					}
				}
			}
		}

		available = {
			FROM = {
				has_war_with = ROOT
			}
		}

		cost = 10

		days_remove = 100

		ai_will_do = {
			factor = 100
		}

		targeted_modifier = {
			tag = FROM
			attack_bonus_against = 0.1
			defense_bonus_against = 0.1
		}

	}
}

SOV_focus_fascist_defense = {

	SOV_bonus_against_from_offensive = {

		icon = GFX_decision_onmap_recruit_operative

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		target_root_trigger = {
			has_country_flag = SOV_fascist_focus_on_america
		}

		highlight_states = {
			highlight_states_trigger = {
				is_controlled_by = FROM
				is_capital = yes
			}
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				OR = {
					has_war_with = ROOT
					is_justifying_wargoal_against = ROOT
					has_wargoal_against = ROOT
					is_neighbor_of = ROOT
				}
			}
		}

		visible = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
				OR = {
					has_war_with = ROOT
					is_justifying_wargoal_against = ROOT
					has_wargoal_against = ROOT
					is_neighbor_of = ROOT
				}
			}
		}

		available = {
			FROM = {
				has_offensive_war_with = ROOT
			}
		}

		cost = 10

		days_remove = 150

		ai_will_do = {
			factor = 100
		}

		targeted_modifier = {
			tag = FROM
			defense_bonus_against = 0.15
		}
	}
}

SOV_expand_russian_dominance = {

	SOV_demande_border_state = {

		icon = GFX_decision_generic_tank

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		target_trigger = {
			FROM = {
				is_neighbor_of = ROOT
				exists = yes
				NOT = {
					is_subject = yes
					is_in_faction_with = ROOT
					has_capitulated = yes
					has_war_with = ROOT
				}
				any_owned_state = {
					is_controlled_by = FROM
					is_capital = yes
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				is_owned_and_controlled_by = FROM
				is_capital = yes
			}
		}

		available = {
			is_major = yes
			NOT = {
				has_country_flag = is_building_up_border_fascist
			}
			NOT = {
				FROM = {
					has_war_with = ROOT
					if = {
						limit = {
							ROOT = {
								has_idea = SOV_Closed_alliance
							}
						}
						has_country_flag = SOV_is_demanding_alliance
					}
				}
			}
		}

		cost = 50

		ai_will_do = {
			factor = 100
			modifier = {
				add = -90
				has_war = yes
				OR = {
					any_country = {
						is_major = yes
						is_in_faction_with = FROM
					}
					any_country = {
						is_major = yes
						has_guaranteed = FROM
					}
					FROM = {
						is_major = yes
					}
				}
			}
			modifier = {
				factor = 0
				FROM = {
					alliance_strength_ratio > 1
				}
			}
		}

		war_with_target_on_remove = yes

		days_remove = 15

		cancel_effect = {
			hidden_effect = {
				FROM = {
					clr_country_flag = is_target_of_SOV_fascist
				}
				clr_country_flag = is_building_up_border_fascist
			}
		}

		remove_effect = {
			FROM = {
				clr_country_flag = is_target_of_SOV_fascist
			}
			hidden_effect = {
				country_event = russia2_russia.319
			}
			custom_effect_tooltip = SOV_event_tooltip_fate_of
		}

		complete_effect = {
			FROM = {
				country_event = russia2_russia.331
				set_country_flag = is_target_of_SOV_fascist
				activate_mission = SOV_is_building_up_against_from
				save_global_event_target_as = SOV_target_country_fascist
			}
			set_country_flag = is_building_up_border_fascist
		}
	}
}

SOV_build_up_border_from = {

	SOV_is_building_up_against_from = {

		icon = GFX_decision_generic_civil_support

		allowed = {
			tag = NAF
		}

		available = {
			NOT = {
				has_country_flag = is_target_of_SOV_fascist
			}
		}

		visible = {
			has_country_flag = is_target_of_SOV_fascist
		}

		days_mission_timeout = 15

		is_good = no

		timeout_effect = {

		}

		complete_effect = {

		}
	}

	SOV_is_building_up_against_from_democratic = {

		icon = GFX_decision_generic_civil_support

		allowed = {
			tag = NAF
		}

		available = {
			NOT = {
				has_country_flag = is_target_of_SOV_democratic
			}
		}

		visible = {
			has_country_flag = is_target_of_SOV_democratic
		}

		days_mission_timeout = 30

		is_good = no

		timeout_effect = {

		}

		complete_effect = {

		}
	}
}

SOV_third_rome_decision_categories = {

	SOV_form_third_rome = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			custom_trigger_tooltip = {
				tooltip = enough_points_to_form_third_rome
				check_variable = {
					var = reformation_third_rome
					value = 6
					compare = greater_than_or_equals
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			set_cosmetic_tag = THR
			custom_effect_tooltip = byzantine_legacy_tt
			set_country_flag = take_legacy_byzantine
			set_country_flag = has_formed_third_rome
			add_stability = 0.10
			hidden_effect = {
				news_event = { id = newsrussia2.129 hours = 10 }
			}
		}
	}

	SOV_integrate_romania_state_core = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			any_state = {
				has_state_flag = romanian_state_third_rome
				is_controlled_by = ROOT
			}
			custom_trigger_tooltip = {
				tooltip = SOV_integrate_romania_state_core_tt
				count_triggers = {
					amount = 6
					766 = {
						is_controlled_by = ROOT
					}
					78 = {
						is_controlled_by = ROOT
					}
					80 = {
						is_controlled_by = ROOT
					}
					79 = {
						is_controlled_by = ROOT
					}
					46 = {
						is_controlled_by = ROOT
					}
					77 = {
						is_controlled_by = ROOT
					}
					76 = {
						is_controlled_by = ROOT
					}
					84 = {
						is_controlled_by = ROOT
					}
					83 = {
						is_controlled_by = ROOT
					}
					82 = {
						is_controlled_by = ROOT
					}
					81 = {
						is_controlled_by = ROOT
					}
				}
			}
		}

		cost = 100

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			custom_effect_tooltip = gains_core_romania_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = romanian_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
			custom_effect_tooltip = reformation_rome_point_one
			add_to_variable = {
			    var = reformation_third_rome
			    value = 1
			}
		}
	}

	SOV_integrate_bulgarian_state_core = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			any_state = {
				has_state_flag = bulgarian_state_third_rome
				is_owned_and_controlled_by = ROOT
			}
			custom_trigger_tooltip = {
				tooltip = SOV_integrate_bulgarian_state_core_tt
				211 = {
					is_controlled_by = ROOT
				}
				212 = {
					is_controlled_by = ROOT
				}
				48 = {
					is_controlled_by = ROOT
				}
				801 = {
					is_controlled_by = ROOT
				}
			}
		}

		cost = 50

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			custom_effect_tooltip = gains_core_bulgarian_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = bulgarian_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
			custom_effect_tooltip = reformation_rome_point_one
			add_to_variable = {
			    var = reformation_third_rome
			    value = 1
			}
		}
	}

	SOV_integrate_greek_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			any_state = {
				has_state_flag = greek_state_third_rome
				is_controlled_by = ROOT
			}
			custom_trigger_tooltip = {
				tooltip = SOV_integrate_greek_core_state_tt
				count_triggers = {
					amount = 4
					184 = {
						is_controlled_by = ROOT
					}
					731 = {
						is_controlled_by = ROOT
					}
					185 = {
						is_controlled_by = ROOT
					}
					47 = {
						is_controlled_by = ROOT
					}
					186 = {
						is_controlled_by = ROOT
					}
					182 = {
						is_controlled_by = ROOT
					}
					187 = {
						is_controlled_by = ROOT
					}
				}
			}
		}

		cost = 75

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			custom_effect_tooltip = gains_core_greek_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = greek_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
			custom_effect_tooltip = reformation_rome_point_one
			add_to_variable = {
			    var = reformation_third_rome
			    value = 1
			}
		}
	}

	SOV_integrate_serbian_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			any_state = {
				has_state_flag = serbian_state_third_rome
				is_controlled_by = ROOT
			}
			custom_trigger_tooltip = {
				tooltip = SOV_integrate_serbian_core_state_tt
				count_triggers = {
					amount = 4
					45 = {
						is_controlled_by = ROOT
					}
					764 = {
						is_controlled_by = ROOT
					}
					107 = {
						is_controlled_by = ROOT
					}
					108 = {
						is_controlled_by = ROOT
					}
					802 = {
						is_controlled_by = ROOT
					}
					803 = {
						is_controlled_by = ROOT
					}
				}
			}
		}

		cost = 40

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			custom_effect_tooltip = gains_core_serbian_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = serbian_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
			custom_effect_tooltip = reformation_rome_point_one
			add_to_variable = {
			    var = reformation_third_rome
			    value = 1
			}
		}
	}

	SOV_integrate_macedonian_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			106 = {
				is_controlled_by = ROOT
			}
		}

		cost = 10

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 106
			}
			set_country_flag = has_core_macedonia_third_rome
			custom_effect_tooltip = reformation_rome_point_half
			if = {
				limit = {
					SOV = {
						has_country_flag = has_core_montenegro_third_rome
					}
				}
				add_to_variable = {
					var = reformation_third_rome
					value = 1
				}
			}
		}
	}

	SOV_integrate_montenegro_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			105 = {
				is_controlled_by = ROOT
			}
		}

		cost = 10

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 105
			}
			set_country_flag = has_core_montenegro_third_rome
			custom_effect_tooltip = reformation_rome_point_half
			if = {
				limit = {
					SOV = {
						has_country_flag = has_core_macedonia_third_rome
					}
				}
				add_to_variable = {
					var = reformation_third_rome
					value = 1
				}
			}
		}
	}

	SOV_integrate_finnish_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			any_state = {
				has_state_flag = finland_state_third_rome
				is_controlled_by = ROOT
			}
			custom_trigger_tooltip = {
				tooltip = SOV_integrate_finnish_core_state_tt
				count_triggers = {
					amount = 6
					146 = {
						is_owned_and_controlled_by = ROOT
					}
					111 = {
						is_owned_and_controlled_by = ROOT
					}
					150 = {
						is_owned_and_controlled_by = ROOT
					}
					149 = {
						is_owned_and_controlled_by = ROOT
					}
					148 = {
						is_owned_and_controlled_by = ROOT
					}
					147 = {
						is_owned_and_controlled_by = ROOT
					}
					722 = {
						is_owned_and_controlled_by = ROOT
					}
					926 = {
						is_owned_and_controlled_by = ROOT
					}
					927 = {
						is_owned_and_controlled_by = ROOT
					}
					928 = {
						is_owned_and_controlled_by = ROOT
					}
					929 = {
						is_owned_and_controlled_by = ROOT
					}
					930 = {
						is_owned_and_controlled_by = ROOT
					}
				}
			}
		}

		cost = 50

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			custom_effect_tooltip = gains_core_finnish_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = finland_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
			custom_effect_tooltip = reformation_rome_point_one
			add_to_variable = {
			    var = reformation_third_rome
			    value = 1
			}
		}
	}

	SOV_integrate_estonia_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			191 = {
				is_controlled_by = SOV
			}
			13 = {
				is_controlled_by = SOV
			}
			811 = {
				is_controlled_by = SOV
			}
			812 = {
				is_controlled_by = SOV
			}
			813 = {
				is_controlled_by = SOV
			}
		}

		cost = 25

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			custom_effect_tooltip = gains_core_estonia_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = estonia_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}
	}

	SOV_integrate_latvian_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			190 = {
				is_controlled_by = SOV
			}
			12 = {
				is_controlled_by = SOV
			}
			809 = {
				is_controlled_by = SOV
			}
			808 = {
				is_controlled_by = SOV
			}
			810 = {
				is_controlled_by = SOV
			}
		}

		cost = 25

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			custom_effect_tooltip = gains_core_latvia_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = latvia_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}
	}

	SOV_integrate_lithuanian_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			189 = {
				is_controlled_by = SOV
			}
			11 = {
				is_controlled_by = SOV
			}
			814 = {
				is_controlled_by = SOV
			}
			815 = {
				is_controlled_by = SOV
			}
		}

		cost = 25

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			custom_effect_tooltip = gains_core_lithuania_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = lithuania_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}
	}

	SOV_integrate_eastern_poland_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_integrate_eastern_poland_core_state_tt
				96 = {
					is_controlled_by = SOV
				}
				95 = {
					is_controlled_by = SOV
				}
				94 = {
					is_controlled_by = SOV
				}
				93 = {
					is_controlled_by = SOV
				}
				91 = {
					is_controlled_by = SOV
				}
				89 = {
					is_controlled_by = SOV
				}
			}
		}

		cost = 60

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			custom_effect_tooltip = gains_core_eastern_poland_land
			hidden_effect = {
				SOV = {
					add_state_core = 784
					add_state_core = 96
					add_state_core = 95
					add_state_core = 94
					add_state_core = 93
					add_state_core = 91
					add_state_core = 89
				}
			}
		}
	}

	SOV_integrate_turkey_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			any_state = {
				has_state_flag = turkey_state_third_rome
				is_controlled_by = ROOT
			}
			797 = {
				is_controlled_by = ROOT
			}
			custom_trigger_tooltip = {
				tooltip = SOV_integrate_turkish_core_state_tt
				count_triggers = {
					amount = 15
					341 = {
						is_owned_and_controlled_by = ROOT
					}
					347 = {
						is_owned_and_controlled_by = ROOT
					}
					356 = {
						is_owned_and_controlled_by = ROOT
					}
					355 = {
						is_owned_and_controlled_by = ROOT
					}
					354 = {
						is_owned_and_controlled_by = ROOT
					}
					353 = {
						is_owned_and_controlled_by = ROOT
					}
					349 = {
						is_owned_and_controlled_by = ROOT
					}
					348 = {
						is_owned_and_controlled_by = ROOT
					}
					49 = {
						is_owned_and_controlled_by = ROOT
					}
					346 = {
						is_owned_and_controlled_by = ROOT
					}
					343 = {
						is_owned_and_controlled_by = ROOT
					}
					340 = {
						is_owned_and_controlled_by = ROOT
					}
					339 = {
						is_owned_and_controlled_by = ROOT
					}
					342 = {
						is_owned_and_controlled_by = ROOT
					}
					345 = {
						is_owned_and_controlled_by = ROOT
					}
					344 = {
						is_owned_and_controlled_by = ROOT
					}
					350 = {
						is_owned_and_controlled_by = ROOT
					}
					352 = {
						is_owned_and_controlled_by = ROOT
					}
					800 = {
						is_owned_and_controlled_by = ROOT
					}
					797 = {
						is_owned_and_controlled_by = ROOT
					}
					798 = {
						is_owned_and_controlled_by = ROOT
					}
				}
			}
		}

		cost = 65

		ai_will_do = {
			factor = 100
		}

		modifier = {
			consumer_goods_factor = 0.15
		}

		days_remove = 150

		remove_effect = {
			custom_effect_tooltip = gains_core_turkish_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = turkey_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
			custom_effect_tooltip = reformation_rome_point_one
			add_to_variable = {
			    var = reformation_third_rome
			    value = 1
			}
		}
	}

	SOV_integrate_iranian_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			any_state = {
				has_state_flag = iranian_state_third_rome
				is_controlled_by = ROOT
			}
			custom_trigger_tooltip = {
				tooltip = SOV_integrate_iranian_core_state_tt
				count_triggers = {
					amount = 9
					419 = {
						is_owned_and_controlled_by = ROOT
					}
					420 = {
						is_owned_and_controlled_by = ROOT
					}
					421 = {
						is_owned_and_controlled_by = ROOT
					}
					413 = {
						is_owned_and_controlled_by = ROOT
					}
					417 = {
						is_owned_and_controlled_by = ROOT
					}
					411 = {
						is_owned_and_controlled_by = ROOT
					}
					412 = {
						is_owned_and_controlled_by = ROOT
					}
					410 = {
						is_owned_and_controlled_by = ROOT
					}
					266 = {
						is_owned_and_controlled_by = ROOT
					}
					418 = {
						is_owned_and_controlled_by = ROOT
					}
					416 = {
						is_owned_and_controlled_by = ROOT
					}
					414 = {
						is_owned_and_controlled_by = ROOT
					}
				}
			}
		}

		cost = 35

		ai_will_do = {
			factor = 100
		}

		modifier = {
			consumer_goods_factor = 0.1
		}

		days_remove = 70

		remove_effect = {
			custom_effect_tooltip = gains_core_iranian_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = iranian_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
			custom_effect_tooltip = reformation_rome_point_one
			add_to_variable = {
			    var = reformation_third_rome
			    value = 1
			}
		}
	}

	SOV_integrate_afghanistan_core_state = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			267 = {
				is_controlled_by = ROOT
			}
			415 = {
				is_controlled_by = ROOT
			}
		}

		cost = 15

		ai_will_do = {
			factor = 100
		}

		modifier = {
			consumer_goods_factor = 0.05
		}

		days_remove = 50

		remove_effect = {
			custom_effect_tooltip = gains_core_afghanistan_land
			hidden_effect = {
				every_state = {
					limit = {
						has_state_flag = afghanistan_state_third_rome
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
			custom_effect_tooltip = reformation_rome_point_one
			add_to_variable = {
			    var = reformation_third_rome
			    value = 1
			}
		}
	}

	SOV_demand_tannu_tuva_integration = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			country_exists = TAN
			TAN = {
				is_subject = no
			}
		}

		visible = {
			country_exists = TAN
		}

		cost = 25

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				OR = {
					any_country = {
						is_major = yes
						is_in_faction_with = TAN
					}
					any_country = {
						is_major = yes
						has_guaranteed = TAN
					}
				}
			}
		}

		complete_effect = {
			TAN = {
				country_event = { id = russia2_tannu.6 days = 1 }
			}
		}
	}

	SOV_demand_mongolian_integration = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			country_exists = MON
			MON = {
				is_subject = no
			}
		}

		visible = {
			country_exists = MON
		}

		cost = 25

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				OR = {
					any_country = {
						is_major = yes
						is_in_faction_with = MON
					}
					any_country = {
						is_major = yes
						has_guaranteed = MON
					}
				}
			}
		}

		complete_effect = {
			MON = {
				country_event = { id = russia2_mongolia.4 days = 1 }
			}
		}
	}

	SOV_pressure_unification_finland = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			country_exists = FIN
			FIN = {
				is_subject = no
			}
		}

		visible = {
			country_exists = FIN
		}

		cost = 65

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				OR = {
					any_country = {
						is_major = yes
						is_in_faction_with = FIN
					}
					any_country = {
						is_major = yes
						has_guaranteed = FIN
					}
				}
			}
		}

		complete_effect = {
			FIN = {
				country_event = { id = russia2_finland.16 days = 1 }
			}
		}
	}
}

SOV_legacy_of_byzantine = {

	SOV_integrate_italia = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			736 = {
				is_controlled_by = ROOT
			}
			160 = {
				is_controlled_by = ROOT
			}
			39 = {
				is_controlled_by = ROOT
			}
			159 = {
				is_controlled_by = ROOT
			}
			161 = {
				is_controlled_by = ROOT
			}
			158 = {
				is_controlled_by = ROOT
			}
			162 = {
				is_controlled_by = ROOT
			}
			157 = {
				is_controlled_by = ROOT
			}
			2 = {
				is_controlled_by = ROOT
			}
			117 = {
				is_controlled_by = ROOT
			}
			156 = {
				is_controlled_by = ROOT
			}
			115 = {
				is_controlled_by = ROOT
			}
			114 = {
				is_controlled_by = ROOT
			}
			850 = {
				is_controlled_by = ROOT
			}
			849 = {
				is_controlled_by = ROOT
			}
			852 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 736
				add_state_core = 160
				add_state_core = 39
				add_state_core = 159
				add_state_core = 161
				add_state_core = 158
				add_state_core = 162
				add_state_core = 157
				add_state_core = 2
				add_state_core = 117
				add_state_core = 156
				add_state_core = 115
				add_state_core = 114
				add_state_core = 850
				add_state_core = 849
				add_state_core = 852
			}
		}
	}

	SOV_integrate_south_iberian = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			118 = {
				is_controlled_by = ROOT
			}
			169 = {
				is_controlled_by = ROOT
			}
			179 = {
				is_controlled_by = ROOT
			}
			173 = {
				is_controlled_by = ROOT
			}
			789 = {
				is_controlled_by = ROOT
			}
			168 = {
				is_controlled_by = ROOT
			}
			167 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 118
				add_state_core = 169
				add_state_core = 179
				add_state_core = 173
				add_state_core = 789
				add_state_core = 168
				add_state_core = 167
				add_state_core = 177
			}
		}
	}

	SOV_integrate_albania = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			44 = {
				is_controlled_by = ROOT
			}
			805 = {
				is_controlled_by = ROOT
			}
			934 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 44
				add_state_core = 805
				add_state_core = 934
			}
		}
	}

	SOV_integrate_corsica = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			1 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 1
			}
		}
	}

	SOV_integrate_the_balkan = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			104 = {
				is_controlled_by = ROOT
			}
			103 = {
				is_controlled_by = ROOT
			}
			109 = {
				is_controlled_by = ROOT
			}
			102 = {
				is_controlled_by = ROOT
			}
			804 = {
				is_controlled_by = ROOT
			}
			853 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 104
				add_state_core = 103
				add_state_core = 109
				add_state_core = 102
				add_state_core = 163
				add_state_core = 804
				add_state_core = 853
			}
		}
	}

	SOV_integrate_hungary = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			154 = {
				is_controlled_by = ROOT
			}
			43 = {
				is_controlled_by = ROOT
			}
			155 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 154
				add_state_core = 43
				add_state_core = 155
			}
		}
	}

	SOV_integrate_iraq = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			676 = {
				is_controlled_by = ROOT
			}
			291 = {
				is_controlled_by = ROOT
			}
			675 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 676
				add_state_core = 291
				add_state_core = 675
				add_state_core = 656
			}
		}
	}

	SOV_integrate_syria = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			677 = {
				is_controlled_by = ROOT
			}
			680 = {
				is_controlled_by = ROOT
			}
			554 = {
				is_controlled_by = ROOT
			}
			799 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 677
				add_state_core = 680
				add_state_core = 554
				add_state_core = 799
			}
		}
	}

	SOV_integrate_lebanon = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			553 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 553
			}
		}
	}

	SOV_integrate_cyprus = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			183 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 183
			}
		}
	}

	SOV_integrate_jordan = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			455 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 455
			}
		}
	}

	SOV_integrate_israel = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			454 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 454
			}
		}
	}

	SOV_integrate_egypt = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			453 = {
				is_controlled_by = ROOT
			}
			446 = {
				is_controlled_by = ROOT
			}
			447 = {
				is_controlled_by = ROOT
			}
			452 = {
				is_controlled_by = ROOT
			}
			457 = {
				is_controlled_by = ROOT
			}
			456 = {
				is_controlled_by = ROOT
			}
			552 = {
				is_controlled_by = ROOT
			}
			551 = {
				is_controlled_by = ROOT
			}
			767 = {
				is_controlled_by = ROOT
			}
			907 = {
				is_controlled_by = ROOT
			}
			883 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 453
				add_state_core = 446
				add_state_core = 447
				add_state_core = 452
				add_state_core = 457
				add_state_core = 456
				add_state_core = 552
				add_state_core = 551
				add_state_core = 767
				add_state_core = 907
				add_state_core = 883
			}
		}
	}

	SOV_integrate_libya = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			663 = {
				is_controlled_by = ROOT
			}
			451 = {
				is_controlled_by = ROOT
			}
			450 = {
				is_controlled_by = ROOT
			}
			662 = {
				is_controlled_by = ROOT
			}
			449 = {
				is_controlled_by = ROOT
			}
			661 = {
				is_controlled_by = ROOT
			}
			448 = {
				is_controlled_by = ROOT
			}
			273 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 663
				add_state_core = 451
				add_state_core = 450
				add_state_core = 662
				add_state_core = 449
				add_state_core = 661
				add_state_core = 448
				add_state_core = 273
			}
		}
	}

	SOV_integrate_tunisia = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			665 = {
				is_controlled_by = ROOT
			}
			458 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 665
				add_state_core = 458
			}
		}
	}

	SOV_integrate_algeria = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			513 = {
				is_controlled_by = ROOT
			}
			460 = {
				is_controlled_by = ROOT
			}
			459 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 513
				add_state_core = 460
				add_state_core = 459
			}
		}
	}

	SOV_integrate_morocco = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			461 = {
				is_controlled_by = ROOT
			}
			462 = {
				is_controlled_by = ROOT
			}
			290 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 461
				add_state_core = 462
				add_state_core = 290
				add_state_core = 783
			}
		}
	}
}

SOV_seek_greater_ambition = {

	SOV_form_greater_russia = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			10 = {
				is_core_of = ROOT
			}
			808 = {
				is_core_of = ROOT
			}
			11 = {
				is_core_of = ROOT
			}
			812 = {
				is_core_of = ROOT
			}
			OR = {
				111 = {
					is_core_of = ROOT
				}
				141 = {
					is_core_of = ROOT
				}
				110 = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			set_cosmetic_tag = GTR
			set_country_flag = has_formed_greater_russia
			add_ideas = SOV_Greater_russian_national
			hidden_effect = {
				news_event = {id = newsrussia2.136 hours = 12 }
			}
			custom_effect_tooltip = unlock_decision_spread_to_america
		}
	}

	SOV_reintegrate_poland_back = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			10 = {
				is_controlled_by = ROOT
			}
			89 = {
				is_controlled_by = ROOT
			}
			91 = {
				is_controlled_by = ROOT
			}
			93 = {
				is_controlled_by = ROOT
			}
			94 = {
				is_controlled_by = ROOT
			}
			95 = {
				is_controlled_by = ROOT
			}
			96 = {
				is_controlled_by = ROOT
			}
			784 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = polish_state_greater_russia
				}
				SOV = {
					add_state_core = PREV
					add_state_core = 5
					add_state_core = 763
				}
			}
		}
	}

	SOV_reintegrate_lithuania_back = {
		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			189 = {
				is_controlled_by = SOV
			}
			11 = {
				is_controlled_by = SOV
			}
			814 = {
				is_controlled_by = SOV
			}
			815 = {
				is_controlled_by = SOV
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = lithuania_state_greater_russia
				}
				SOV = {
					add_state_core = PREV
				}
			}
		}
	}

	SOV_reintegrate_latvia_back = {
		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			190 = {
				is_controlled_by = SOV
			}
			12 = {
				is_controlled_by = SOV
			}
			809 = {
				is_controlled_by = SOV
			}
			808 = {
				is_controlled_by = SOV
			}
			810 = {
				is_controlled_by = SOV
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = latvia_state_greater_russia
				}
				SOV = {
					add_state_core = PREV
				}
			}
		}
	}

	SOV_reintegrate_estonia_back = {
		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			191 = {
				is_controlled_by = SOV
			}
			13 = {
				is_controlled_by = SOV
			}
			811 = {
				is_controlled_by = SOV
			}
			812 = {
				is_controlled_by = SOV
			}
			813 = {
				is_controlled_by = SOV
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = estonia_state_greater_russia
				}
				SOV = {
					add_state_core = PREV
				}
			}
		}
	}

	SOV_reintegrate_finland_back = {
		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			111 = {
				is_controlled_by = ROOT
			}
			146 = {
				is_controlled_by = ROOT
			}
			150 = {
				is_controlled_by = ROOT
			}
			149 = {
				is_controlled_by = ROOT
			}
			148 = {
				is_controlled_by = ROOT
			}
			147 = {
				is_controlled_by = ROOT
			}
			722 = {
				is_controlled_by = ROOT
			}
			926 = {
				is_controlled_by = ROOT
			}
			927 = {
				is_controlled_by = ROOT
			}
			928 = {
				is_controlled_by = ROOT
			}
			929 = {
				is_controlled_by = ROOT
			}
			930 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = finland_state_greater_russia
				}
				SOV = {
					add_state_core = PREV
				}
			}
		}
	}

	SOV_integrate_sweden = {
		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			666 = {
				is_controlled_by = ROOT
			}
			38 = {
				is_controlled_by = ROOT
			}
			141 = {
				is_controlled_by = ROOT
			}
			140 = {
				is_controlled_by = ROOT
			}
			139 = {
				is_controlled_by = ROOT
			}
			138 = {
				is_controlled_by = ROOT
			}
			124 = {
				is_controlled_by = ROOT
			}
			913 = {
				is_controlled_by = ROOT
			}
			915 = {
				is_controlled_by = ROOT
			}
			916 = {
				is_controlled_by = ROOT
			}
			917 = {
				is_controlled_by = ROOT
			}
			918 = {
				is_controlled_by = ROOT
			}
			919 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = sweden_state_greater_russia
				}
				SOV = {
					add_state_core = PREV
				}
			}
		}
	}

	SOV_integrate_norway = {
		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			144 = {
				is_controlled_by = ROOT
			}
			143 = {
				is_controlled_by = ROOT
			}
			142 = {
				is_controlled_by = ROOT
			}
			110 = {
				is_controlled_by = ROOT
			}
			920 = {
				is_controlled_by = ROOT
			}
			921 = {
				is_controlled_by = ROOT
			}
			922 = {
				is_controlled_by = ROOT
			}
			923 = {
				is_controlled_by = ROOT
			}
			924 = {
				is_controlled_by = ROOT
			}
			925 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = norway_state_greater_russia
				}
				SOV = {
					add_state_core = PREV
				}
			}
		}
	}

	SOV_integrate_bessarabia = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			80 = {
				is_controlled_by = ROOT
			}
			78 = {
				is_controlled_by = ROOT
			}
			766 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 80
				add_state_core = 78
				add_state_core = 766
			}
		}
	}
}

SOV_spread_america_anasta = {

	SOV_integrate_canadian_corridor = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			463 = {
				is_controlled_by = ROOT
			}
			471 = {
				is_controlled_by = ROOT
			}
			473 = {
				is_controlled_by = ROOT
			}
			864 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 463
				add_state_core = 471
				add_state_core = 473
				add_state_core = 739
				add_state_core = 740
				add_state_core = 864
			}
		}
	}

	SOV_integrate_west_coast = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			386 = {
				is_controlled_by = ROOT
			}
			385 = {
				is_controlled_by = ROOT
			}
			378 = {
				is_controlled_by = ROOT
			}
			379 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 386
				add_state_core = 385
				add_state_core = 378
				add_state_core = 379
			}
		}
	}

	SOV_integrate_south_east_coast = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			366 = {
				is_controlled_by = ROOT
			}
			365 = {
				is_controlled_by = ROOT
			}
			364 = {
				is_controlled_by = ROOT
			}
			367 = {
				is_controlled_by = ROOT
			}
			370 = {
				is_controlled_by = ROOT
			}
			371 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 366
				add_state_core = 365
				add_state_core = 364
				add_state_core = 367
				add_state_core = 370
				add_state_core = 371
				add_victory_points = {
					province = 7388
					value = 5
				}
			}
		}
	}

	SOV_integrate_baja_california = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			484 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 484
			}
		}
	}

	SOV_integrate_caraibe = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			315 = {
				is_controlled_by = ROOT
			}
			318 = {
				is_controlled_by = ROOT
			}
			319 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 315
				add_state_core = 318
				add_state_core = 319
				add_state_core = 689
				add_state_core = 690
				add_state_core = 693
				add_state_core = 686
				add_state_core = 694
				add_state_core = 308
				add_state_core = 692
			}
		}
	}

	SOV_integrate_panama = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			304 = {
				is_controlled_by = ROOT
			}
			685 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 304
				add_state_core = 685
			}
		}
	}

	SOV_integrate_south_america = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			512 = {
				is_controlled_by = ROOT
			}
			507 = {
				is_controlled_by = ROOT
			}
			279 = {
				is_controlled_by = ROOT
			}
			278 = {
				is_controlled_by = ROOT
			}
			511 = {
				is_controlled_by = ROOT
			}
			510 = {
				is_controlled_by = ROOT
			}
			300 = {
				is_controlled_by = ROOT
			}
			502 = {
				is_controlled_by = ROOT
			}
			503 = {
				is_controlled_by = ROOT
			}
			501 = {
				is_controlled_by = ROOT
			}
			496 = {
				is_controlled_by = ROOT
			}
			500 = {
				is_controlled_by = ROOT
			}
			499 = {
				is_controlled_by = ROOT
			}
			498 = {
				is_controlled_by = ROOT
			}
			497 = {
				is_controlled_by = ROOT
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SOV = {
				add_state_core = 512
				add_state_core = 507
				add_state_core = 279
				add_state_core = 278
				add_state_core = 511
				add_state_core = 510
				add_state_core = 300
				add_state_core = 502
				add_state_core = 503
				add_state_core = 501
				add_state_core = 496
				add_state_core = 500
				add_state_core = 499
				add_state_core = 498
				add_state_core = 497
			}
		}
	}
}

SOV_balkanize_germany = {

	SOV_release_bavaria = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				52 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 52
					is_subject_of = SOV
				}
			}
			OR = {
				53 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 53
					is_subject_of = SOV
				}
			}
			OR = {
				54 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 54
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			BAY = {
				add_state_core = 52
				add_state_core = 53
				add_state_core = 54
			}
			every_state = {
				limit = {
					is_core_of = BAY
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				BAY = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = BAY
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				BAY = {
					inherit_technology = SOV
					division_template = {
						name = "Bavarian Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Bavarian Garrison Division\" division_template = \"Bavarian Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BAY
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Bavarian Garrison Division\" division_template = \"Bavarian Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BAY
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Bavarian Garrison Division\" division_template = \"Bavarian Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BAY
						}
					}
				}
			}
		}
	}

	SOV_release_wurtemberg = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				50 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 50
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			WUR = {
				add_state_core = 50
			}
			every_state = {
				limit = {
					is_core_of = WUR
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				WUR = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = WUR
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				WUR = {
					inherit_technology = SOV
					division_template = {
						name = "Wurtemberg Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Wurtemberg Garrison Division\" division_template = \"Wurtemberg Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = WUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Wurtemberg Garrison Division\" division_template = \"Wurtemberg Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = WUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Wurtemberg Garrison Division\" division_template = \"Wurtemberg Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = WUR
						}
					}
				}
			}
		}
	}

	SOV_release_hanover = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				57 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 57
					is_subject_of = SOV
				}
			}
			OR = {
				59 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 59
					is_subject_of = SOV
				}
			}
			OR = {
				56 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 56
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			HAN = {
				add_state_core = 57
				add_state_core = 59
				add_state_core = 56
			}
			every_state = {
				limit = {
					is_core_of = HAN
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				HAN = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = HAN
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				HAN = {
					inherit_technology = SOV
					division_template = {
						name = "Hannover Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Hannover Garrison Division\" division_template = \"Hannover Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HAN
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Hannover Garrison Division\" division_template = \"Hannover Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HAN
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Hannover Garrison Division\" division_template = \"Hannover Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HAN
						}
					}
				}
			}
		}
	}

	SOV_release_schleswig = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				58 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 58
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SHL = {
				add_state_core = 58
			}
			every_state = {
				limit = {
					is_core_of = SHL
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				SHL = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = SHL
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				SHL = {
					inherit_technology = SOV
					division_template = {
						name = "Schleswig-Holstein Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Schleswig-Holstein Garrison Division\" division_template = \"Schleswig-Holstein Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SHL
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Schleswig-Holstein Garrison Division\" division_template = \"Schleswig-Holstein Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SHL
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Schleswig-Holstein Garrison Division\" division_template = \"Schleswig-Holstein Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SHL
						}
					}
				}
			}
		}
	}

	SOV_release_mecklenburg = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				61 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 61
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			MEK = {
				add_state_core = 61
			}
			every_state = {
				limit = {
					is_core_of = MEK
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				MEK = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = MEK
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				MEK = {
					inherit_technology = SOV
					division_template = {
						name = "Mecklenburg Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Mecklenburg Garrison Division\" division_template = \"Mecklenburg Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEK
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Mecklenburg Garrison Division\" division_template = \"Mecklenburg Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEK
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Mecklenburg Garrison Division\" division_template = \"Mecklenburg Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MEK
						}
					}
				}
			}
		}
	}

	SOV_release_saxony = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				65 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 65
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SAX = {
				add_state_core = 65
			}
			every_state = {
				limit = {
					is_core_of = SAX
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				SAX = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = SAX
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				SAX = {
					inherit_technology = SOV
					division_template = {
						name = "Saxony Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Saxony Garrison Division\" division_template = \"Saxony Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAX
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Saxony Garrison Division\" division_template = \"Saxony Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAX
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Saxony Garrison Division\" division_template = \"Saxony Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SAX
						}
					}
				}
			}
		}
	}

	SOV_release_brandenburg = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				64 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 64
					is_subject_of = SOV
				}
			}
			OR = {
				68 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 68
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			BRN = {
				add_state_core = 64
				add_state_core = 68
			}
			every_state = {
				limit = {
					is_core_of = BRN
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				BRN = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = BRN
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				BRN = {
					inherit_technology = SOV
					division_template = {
						name = "Brandenburg Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Brandenburg Garrison Division\" division_template = \"Brandenburg Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BRN
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Brandenburg Garrison Division\" division_template = \"Brandenburg Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BRN
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Brandenburg Garrison Division\" division_template = \"Brandenburg Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BRN
						}
					}
				}
			}
		}
	}

	SOV_release_pomerania = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				62 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 62
					is_subject_of = SOV
				}
			}
			OR = {
				63 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 63
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			POM = {
				add_state_core = 62
				add_state_core = 63
			}
			every_state = {
				limit = {
					is_core_of = POM
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				POM = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = POM
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				POM = {
					inherit_technology = SOV
					division_template = {
						name = "Pomerania Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Pomerania Garrison Division\" division_template = \"Pomerania Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = POM
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Pomerania Garrison Division\" division_template = \"Pomerania Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = POM
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Pomerania Garrison Division\" division_template = \"Pomerania Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = POM
						}
					}
				}
			}
		}
	}

	SOV_release_teutonic = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				5 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 5
					is_subject_of = SOV
				}
			}
			OR = {
				763 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 763
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			TEU = {
				add_state_core = 5
				add_state_core = 763
			}
			every_state = {
				limit = {
					is_core_of = TEU
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				TEU = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = TEU
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				TEU = {
					inherit_technology = SOV
					division_template = {
						name = "Teutonic Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Teutonic Garrison Division\" division_template = \"Teutonic Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = TEU
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Teutonic Garrison Division\" division_template = \"Teutonic Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = TEU
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Teutonic Garrison Division\" division_template = \"Teutonic Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = TEU
						}
					}
				}
			}
		}
	}

	SOV_release_silesian = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				66 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 66
					is_subject_of = SOV
				}
			}
			OR = {
				67 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 67
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SIL = {
				add_state_core = 66
				add_state_core = 67
			}
			every_state = {
				limit = {
					is_core_of = SIL
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				SIL = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = SIL
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				SIL = {
					inherit_technology = SOV
					division_template = {
						name = "Silesia Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Silesia Garrison Division\" division_template = \"Silesia Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SIL
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Silesia Garrison Division\" division_template = \"Silesia Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SIL
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Silesia Garrison Division\" division_template = \"Silesia Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SIL
						}
					}
				}
			}
		}
	}

	SOV_release_thunringa = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				60 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 60
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			THU = {
				add_state_core = 60
			}
			every_state = {
				limit = {
					is_core_of = THU
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				THU = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = THU
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				THU = {
					inherit_technology = SOV
					division_template = {
						name = "Thuringa Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Thuringa Garrison Division\" division_template = \"Thuringa Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = THU
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Thuringa Garrison Division\" division_template = \"Thuringa Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = THU
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Thuringa Garrison Division\" division_template = \"Thuringa Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = THU
						}
					}
				}
			}
		}
	}

	SOV_release_hessen = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				55 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 55
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			HES = {
				add_state_core = 55
			}
			every_state = {
				limit = {
					is_core_of = HES
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				HES = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = HES
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				HES = {
					inherit_technology = SOV
					division_template = {
						name = "Hessen Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Hessen Garrison Division\" division_template = \"Hessen Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Hessen Garrison Division\" division_template = \"Hessen Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Hessen Garrison Division\" division_template = \"Hessen Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HES
						}
					}
				}
			}
		}
	}

	SOV_release_trier = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				42 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 42
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			TRE = {
				add_state_core = 42
			}
			every_state = {
				limit = {
					is_core_of = TRE
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				TRE = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = TRE
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				TRE = {
					inherit_technology = SOV
					division_template = {
						name = "Trier Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Trier Garrison Division\" division_template = \"Trier Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = TRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Trier Garrison Division\" division_template = \"Trier Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = TRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Trier Garrison Division\" division_template = \"Trier Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = TRE
						}
					}
				}
			}
		}
	}

	SOV_release_cologne = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				51 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 51
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			CLG = {
				add_state_core = 51
			}
			every_state = {
				limit = {
					is_core_of = CLG
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				CLG = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = CLG
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				CLG = {
					inherit_technology = SOV
					division_template = {
						name = "Cologne Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Cologne Garrison Division\" division_template = \"Cologne Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CLG
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Cologne Garrison Division\" division_template = \"Cologne Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CLG
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Cologne Garrison Division\" division_template = \"Cologne Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CLG
						}
					}
				}
			}
		}
	}
}

SOV_invite_neighbours = {

	SOV_demande_alliance = {

		icon = GFX_decision_hol_exchange_intelligence_data

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		target_root_trigger = {
			has_idea = SOV_Closed_alliance
		}

		visible = {
			is_subject = no
			has_government = fascism
			is_faction_leader = yes
			has_idea = SOV_Closed_alliance
			FROM = {
				NOT = {
					is_major = yes
					is_subject = yes
				}
			}
			FROM = {
				is_neighbor_of = ROOT
				exists = yes
				NOT = {
					is_major = yes
					is_in_faction_with = ROOT
					has_capitulated = yes
					is_subject = yes
				}
				any_owned_state = {
					is_controlled_by = FROM
					is_capital = yes
				}
				capital_scope = {
					is_in_home_area = yes
				}
			}
		}

		target_trigger = {
			FROM = {
				is_neighbor_of = ROOT
				exists = yes
				NOT = {
					is_major = yes
					is_in_faction_with = ROOT
					has_capitulated = yes
					is_subject = yes
				}
				any_owned_state = {
					is_controlled_by = FROM
					is_capital = yes
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				is_owned_and_controlled_by = FROM
				is_capital = yes
			}
		}

		available = {
			is_major = yes
			NOT = {
				FROM = {
					has_war_with = ROOT
					if = {
						limit = {
							ROOT = {
								has_completed_focus = SOV_new_russian_era
							}
						}
						has_country_flag = is_target_of_SOV_fascist
					}
				}
			}
			FROM = {
				NOT = {
					has_government = communism
				}
			}
		}

		cost = 50

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = russia2_russia.353
				set_country_flag = SOV_is_demanding_alliance
			}
		}
	}
}

SOV_balkanize_japan = {

	SOV_release_shimazu = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				528 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 528
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SHI = {
				add_state_core = 528
			}
			every_state = {
				limit = {
					is_core_of = SHI
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				SHI = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = SHI
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				SHI = {
					inherit_technology = SOV
					division_template = {
						name = "Shimazu Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Shimazu Garrison Division\" division_template = \"Shimazu Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SHI
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Shimazu Garrison Division\" division_template = \"Shimazu Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SHI
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Shimazu Garrison Division\" division_template = \"Shimazu Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SHI
						}
					}
				}
			}
		}
	}

	SOV_release_hosokawa = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				530 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 530
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			HOS = {
				add_state_core = 530
			}
			every_state = {
				limit = {
					is_core_of = HOS
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				HOS = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = HOS
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				HOS = {
					inherit_technology = SOV
					division_template = {
						name = "Hosokawa Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Hosokawa Garrison Division\" division_template = \"Hosokawa Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HOS
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Hosokawa Garrison Division\" division_template = \"Hosokawa Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HOS
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Hosokawa Garrison Division\" division_template = \"Hosokawa Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HOS
						}
					}
				}
			}
		}
	}

	SOV_release_mori = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				529 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 529
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			MOI = {
				add_state_core = 529
			}
			every_state = {
				limit = {
					is_core_of = MOI
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				MOI = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = MOI
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				MOI = {
					inherit_technology = SOV
					division_template = {
						name = "Mori Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Mori Garrison Division\" division_template = \"Mori Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MOI
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Mori Garrison Division\" division_template = \"Mori Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MOI
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Mori Garrison Division\" division_template = \"Mori Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MOI
						}
					}
				}
			}
		}
	}

	SOV_release_oda = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				531 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 531
					is_subject_of = SOV
				}
			}
			OR = {
				532 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 532
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			ODA = {
				add_state_core = 531
				add_state_core = 532
			}
			every_state = {
				limit = {
					is_core_of = ODA
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				ODA = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = ODA
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				ODA = {
					inherit_technology = SOV
					division_template = {
						name = "Oda Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Oda Garrison Division\" division_template = \"Oda Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ODA
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Oda Garrison Division\" division_template = \"Oda Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ODA
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Oda Garrison Division\" division_template = \"Oda Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ODA
						}
					}
				}
			}
		}
	}

	SOV_release_tokugawa = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				282 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 282
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			TOK = {
				add_state_core = 282
			}
			every_state = {
				limit = {
					is_core_of = TOK
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				TOK = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = TOK
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				TOK = {
					inherit_technology = SOV
					division_template = {
						name = "Tokugawa Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Tokugawa Garrison Division\" division_template = \"Tokugawa Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = TOK
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Tokugawa Garrison Division\" division_template = \"Tokugawa Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = TOK
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Tokugawa Garrison Division\" division_template = \"Tokugawa Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = TOK
						}
					}
				}
			}
		}
	}

	SOV_release_maeda = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				535 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 535
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			MDE = {
				add_state_core = 535
			}
			every_state = {
				limit = {
					is_core_of = MDE
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				MDE = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = MDE
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				MDE = {
					inherit_technology = SOV
					division_template = {
						name = "Maeda Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Maeda Garrison Division\" division_template = \"Maeda Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MDE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Maeda Garrison Division\" division_template = \"Maeda Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MDE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Maeda Garrison Division\" division_template = \"Maeda Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MDE
						}
					}
				}
			}
		}
	}

	SOV_release_uesugi = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				534 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 534
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			UES = {
				add_state_core = 534
			}
			every_state = {
				limit = {
					is_core_of = UES
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				UES = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = UES
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				UES = {
					inherit_technology = SOV
					division_template = {
						name = "Uesugi Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Uesugi Garrison Division\" division_template = \"Uesugi Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = UES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Uesugi Garrison Division\" division_template = \"Uesugi Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = UES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Uesugi Garrison Division\" division_template = \"Uesugi Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = UES
						}
					}
				}
			}
		}
	}

	SOV_release_shiba = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				533 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 533
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			SHB = {
				add_state_core = 533
			}
			every_state = {
				limit = {
					is_core_of = SHB
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				SHB = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = SHB
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				SHB = {
					inherit_technology = SOV
					division_template = {
						name = "Shiba Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Shiba Garrison Division\" division_template = \"Shiba Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SHB
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Shiba Garrison Division\" division_template = \"Shiba Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SHB
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Shiba Garrison Division\" division_template = \"Shiba Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = SHB
						}
					}
				}
			}
		}
	}

	SOV_release_ainu = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				536 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 536
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			AIN = {
				add_state_core = 536
				add_state_core = 555
			}
			every_state = {
				limit = {
					is_core_of = AIN
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				AIN = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = AIN
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				AIN = {
					inherit_technology = SOV
					division_template = {
						name = "Ainu Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Ainu Garrison Division\" division_template = \"Ainu Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AIN
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Ainu Garrison Division\" division_template = \"Ainu Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AIN
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Ainu Garrison Division\" division_template = \"Ainu Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = AIN
						}
					}
				}
			}
		}
	}

	SOV_release_ryukyu = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes


		available = {
			OR = {
				526 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 526
					is_subject_of = SOV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}

		complete_effect = {
			RYU = {
				add_state_core = 526
				add_state_core = 645
			}
			every_state = {
				limit = {
					is_core_of = RYU
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				RYU = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = RYU
					autonomy_state = autonomy_reichsprotectorate
				}
			}
			hidden_effect = {
				RYU = {
					inherit_technology = SOV
					division_template = {
						name = "Ryukyu Garrison Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Ryukyu Garrison Division\" division_template = \"Ryukyu Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = RYU
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Ryukyu Garrison Division\" division_template = \"Ryukyu Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = RYU
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Ryukyu Garrison Division\" division_template = \"Ryukyu Garrison Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = RYU
						}
					}
				}
			}
		}
	}
}

SOV_impose_order_subjects = {

	SOV_impose_order_subjects_decisions = {

		icon = GFX_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				is_subject_of = SOV
				NOT = {
					has_autonomy_state = autonomy_state_magistrate
				}
			}
		}

		target_root_trigger = {
			has_idea = SOV_Impose_order
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					has_autonomy_state = autonomy_state_magistrate
				}
			}
		}

		available = {

		}

		complete_effect = {
			custom_effect_tooltip = SOV_impose_imperial_governorate_tt
			hidden_effect = {
				set_autonomy = {
					target = FROM
					autonomy_state = autonomy_state_magistrate
				}
				FROM = {
					create_country_leader = {
						name = SOV_State_magistrate_leader
						desc = SOV_State_magistrate_leader_desc
						picture = "Provisional_Government_Fascism.dds"
						expire = "1953.3.1"
						ideology = fascism_ideology
						traits = {

						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_end_second_civil_war = {

	SOV_end_the_second_civil_war_decision = {

		icon = GFX_decision_generic_civil_support

		allowed = {
			original_tag = SOV
		}

		visible = {
		}

		available = {
			is_subject = no
			NOT = {
				has_war_with = UKR
				has_war_with = SOJ
				ukr_in_scw = yes
				soj_in_scw = yes
				UKR = {
					AND = {
						exists = yes
						check_variable = {
							var = ukr.scw_claimed_states^num
							value = 5
							compare = greater_than_or_equals
						}
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			SOV = {
				country_event = { id = russia2_russia.260 }
			}
			if = {
				limit = {
					OR = {
						has_country_flag = japan_accept_to_help_give_russian_far_east
						has_country_flag = has_negotiated_with_germany_ressource_rights
						has_country_flag = accept_american_occupation_siberia_after_cw
						has_country_flag = accept_french_factories_after_cw
						has_country_flag = accept_diplomatic_relation_with_italy
						has_country_flag = accept_english_help_for_shipment
					}
				}
				SOV = {
					country_event = { id = russia2_generic.34 days = 7 }
				}
			}
			every_country = {
				limit = {
					has_country_flag = has_helped_whiteguard_by_volunteers
				}
				country_event = { id = russia2_generic.35 days = 1 }
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
}

SOV_help_manchuria = {

	SOV_help_manchuria_for_their_independence = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		available = {
			has_government = fascism
			country_exists = MAN
			NOT = {
				has_war_with = MAN
				is_in_faction_with = MAN
				is_in_faction_with = JAP
				is_in_faction_with = CHI
			}
			MAN = {
				has_war_with = JAP
				is_subject = no
			}
			is_subject = no
		}

		fire_only_once = yes

		complete_effect = {
			MAN = {
				country_event = { id = russia2_manchukuo.5 }
			}
			custom_effect_tooltip = join_war_with_manchu
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_invite_manchuria_faction = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		available = {
			has_government = fascism
			country_exists = MAN
			NOT = {
				has_war_with = MAN
				is_in_faction_with = MAN
				MAN = {
					has_war_with = JAP
				}
				is_in_faction_with = JAP
				is_in_faction_with = CHI
			}
			MAN = {
				is_subject = no
			}
			is_subject = no
		}

		fire_only_once = yes

		complete_effect = {
			MAN = {
				country_event = { id = russia2_manchukuo.8 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_fourth_international_council = {

	SOV_puppet_communist_influenced = {

		icon = GFX_decision_hol_exchange_intelligence_data

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_fourth_int_council
			has_government = communism
			is_subject = no
			FROM = {
				exists = yes
				has_government = communism
				has_country_flag = is_communist_triggered_revolution
				NOT = {
					has_war_with = ROOT
					is_subject_of = ROOT
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_fourth_int_council
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_government = communism
				has_country_flag = is_communist_triggered_revolution
				NOT = {
					has_war_with = ROOT
					is_subject_of = ROOT
				}
			}
		}

		available = {
			NOT = {
				has_war_with = FROM
			}
		}

		complete_effect = {
			hidden_effect = {
				every_country = {
					limit = {
						has_civil_war = yes
						has_war_with = FROM
						original_tag = FROM
						has_country_flag = communist_ultimatum_triggered
					}
					SOV = {
						add_to_war = {
							targeted_alliance = FROM
							enemy = PREV
							hostility_reason = asked_to_join
						}
					}
				}
			}
			puppet = FROM
			if = {
				limit = {
					FROM = {
						has_civil_war = yes
					}
				}
				custom_effect_tooltip = join_civil_war_from
			}
			hidden_effect = {
				set_autonomy = {
					target = FROM
					autonomy_state = autonomy_puppet
				}
			}
		}

		ai_will_do = {
			factor = 10000
		}
	}

	SOV_invite_communist_influenced = {

		icon = GFX_decision_generic_form_nation

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_fourth_int_council
			has_government = communism
			is_subject = no
			FROM = {
				exists = yes
				has_government = communism
				has_country_flag = submit_communism_international
				NOT = {
					is_in_faction_with = ROOT
					has_war_with = ROOT
					is_subject_of = ROOT
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_fourth_int_council
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_government = communism
				has_country_flag = submit_communism_international
				NOT = {
					is_in_faction_with = ROOT
					has_war_with = ROOT
					is_subject_of = ROOT
				}
			}
		}

		available = {
			NOT = {
				has_war_with = FROM
			}
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_russia.372 days = 1 }
			}
		}

		ai_will_do = {
			factor = 10000
		}
	}

	SOV_influence_country_communism3 = {

		icon = GFX_decision_generic_prepare_civil_war

		fire_only_once = yes

		days_remove = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_fourth_int_council
			has_government = communism
			is_subject = no
			FROM = {
				exists = yes
				has_idea = SOV_Communist_influence_international_2
				has_country_flag = communist_influence_3_ready
				NOT = {
					has_civil_war = yes
					is_in_faction_with = ROOT
					has_war_with = ROOT
					has_government = communism
					is_subject_of = ROOT
					has_idea = SOV_Communist_influence_international_1
					has_idea = SOV_Communist_influence_international_3
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_fourth_int_council
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_idea = SOV_Communist_influence_international_2
				has_country_flag = communist_influence_3_ready
				NOT = {
					has_civil_war = yes
					is_in_faction_with = ROOT
					has_war_with = ROOT
					has_government = communism
					is_subject_of = ROOT
					has_idea = SOV_Communist_influence_international_1
					has_idea = SOV_Communist_influence_international_3
				}
			}
		}

		available = {
			NOT = {
				has_war_with = FROM
			}
			set_temp_variable = { from_army_size = FROM.num_battalions }
			set_temp_variable = { from_owned_controlled_states = FROM.owned_controlled_states }
			multiply_temp_variable = { from_owned_controlled_states = 1.5}
			round_temp_variable = from_owned_controlled_states
			multiply_temp_variable = { from_army_size = from_owned_controlled_states }
			clamp_temp_variable = {
				var = from_army_size
				min = 0
				max = 30000
			}
			has_equipment = {
				infantry_equipment > from_army_size
			}
		}

		cancel_trigger = {
			has_war_with = FROM
		}

		modifier = {
			political_power_gain = -0.20
		}

		complete_effect = {
			set_temp_variable = { from_army_size = FROM.num_battalions }
			set_temp_variable = { from_owned_controlled_states = FROM.owned_controlled_states }
			multiply_temp_variable = { from_owned_controlled_states = 1.5}
			round_temp_variable = from_owned_controlled_states
			multiply_temp_variable = { from_army_size = from_owned_controlled_states }
			multiply_temp_variable = { from_army_size = -1 }
			clamp_temp_variable = {
				var = from_army_size
				min = -30000
				max = 0
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = from_army_size
			}
		}

		remove_effect = {
			FROM = {
				country_event = russia2_russia.366
			}
		}

		ai_will_do = {
			factor = 10000
			modifier = {
				factor = 0
				FROM = {
					communism < 0.25
				}
			}
		}
	}

	SOV_influence_country_communism2 = {

		icon = GFX_decision_generic_speech

		fire_only_once = yes

		days_remove = 20

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_fourth_int_council
			has_government = communism
			is_subject = no
			FROM = {
				exists = yes
				has_idea = SOV_Communist_influence_international_1
				has_country_flag = communist_influence_2_ready
				NOT = {
					has_civil_war = yes
					is_in_faction_with = ROOT
					has_war_with = ROOT
					has_government = communism
					is_subject_of = ROOT
					has_idea = SOV_Communist_influence_international_2
					has_idea = SOV_Communist_influence_international_3
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_fourth_int_council
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_idea = SOV_Communist_influence_international_1
				has_country_flag = communist_influence_2_ready
				NOT = {
					has_civil_war = yes
					is_in_faction_with = ROOT
					has_war_with = ROOT
					has_government = communism
					is_subject_of = ROOT
					has_idea = SOV_Communist_influence_international_2
					has_idea = SOV_Communist_influence_international_3
				}
			}
		}

		available = {
			NOT = {
				has_war_with = FROM
			}
			set_temp_variable = { from_popularity_non_communism = 1 }
			subtract_from_temp_variable = { from_popularity_non_communism = FROM.party_popularity@communism }
			add_to_temp_variable = { from_popularity_non_communism = 4 }
			set_temp_variable = { from_stability = FROM.stability }
			add_to_temp_variable = { from_stability = 1 }
			set_temp_variable = { pp_spend = 25 }
			multiply_temp_variable = { pp_spend = from_stability }
			multiply_temp_variable = { pp_spend = from_popularity_non_communism }
			clamp_temp_variable = {
				var = pp_spend
				min = 0
				max = 500
			}
			has_political_power > pp_spend
		}

		cancel_trigger = {
			has_war_with = FROM
		}

		modifier = {
			political_power_gain = -0.15
		}

		complete_effect = {
			set_temp_variable = { from_popularity_non_communism = 1 }
			subtract_from_temp_variable = { from_popularity_non_communism = FROM.party_popularity@communism }
			add_to_temp_variable = { from_popularity_non_communism = 4 }
			set_temp_variable = { from_stability = FROM.stability }
			add_to_temp_variable = { from_stability = 1 }
			set_temp_variable = { pp_spend = 25 }
			multiply_temp_variable = { pp_spend = from_stability }
			multiply_temp_variable = { pp_spend = from_popularity_non_communism }
			multiply_temp_variable = { pp_spend = -1 }
			clamp_temp_variable = {
				var = pp_spend
				min = -500
				max = 0
			}
			add_political_power = pp_spend
		}

		remove_effect = {
			FROM = {
				country_event = russia2_russia.364
			}
		}

		ai_will_do = {
			factor = 1000
			modifier = {
				factor = 0
				FROM = {
					communism < 0.15
				}
			}
		}
	}

	SOV_influence_country_communism1 = {

		icon = GFX_decision_eng_propaganda_campaigns

		fire_only_once = yes

		days_remove = 30

		allowed = {
			original_tag = SOV
		}

		#Makes the game WAY too laggy when decisions are opened (~10fps)
		#highlight_states = {
		#	is_owned_and_controlled_by = FROM
		#	is_capital = yes
		#}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_fourth_int_council
			has_government = communism
			is_subject = no
			FROM = {
				exists = yes
				NOT = {
					has_civil_war = yes
					is_in_faction_with = ROOT
					has_war_with = ROOT
					has_government = communism
					is_subject_of = ROOT
					has_idea = SOV_Communist_influence_international_1
					has_idea = SOV_Communist_influence_international_2
					has_idea = SOV_Communist_influence_international_3
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_fourth_int_council
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = {
					has_civil_war = yes
					is_in_faction_with = ROOT
					has_war_with = ROOT
					has_government = communism
					is_subject_of = ROOT
					has_idea = SOV_Communist_influence_international_1
					has_idea = SOV_Communist_influence_international_2
					has_idea = SOV_Communist_influence_international_3
				}
			}
		}

		available = {
			NOT = {
				has_war_with = FROM
			}
			set_temp_variable = { number_core_states_from = FROM.core_states }
			multiply_temp_variable = { number_core_states_from = 5 }
			clamp_temp_variable = {
				var = number_core_states_from
				min = 0
				max = 300
			}
			has_political_power > number_core_states_from
		}

		cancel_trigger = {
			has_war_with = FROM
		}

		modifier = {
			political_power_gain = -0.1
		}

		complete_effect = {
			set_temp_variable = { number_core_states_from = FROM.core_states }
			multiply_temp_variable = { number_core_states_from = -5 }
			clamp_temp_variable = {
				var = number_core_states_from
				min = -300
				max = 0
			}
			add_political_power = number_core_states_from
		}

		remove_effect = {
			FROM = {
				country_event = russia2_russia.362
				set_country_flag = SOV_AI_is_target_international
			}
			set_country_flag = SOV_AI_is_influencing_international
		}

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				has_country_flag = SOV_AI_is_target_international
			}
		}
	}
}

SOV_communist_influence_international = {

	SOV_end_communist_threat = {

		icon = GFX_decision_generic_independence

		fire_only_once = yes

		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
			}
        }

        available = {
			custom_trigger_tooltip = {
				tooltip = communist_party_threat_big_enough
				OR = {
					has_country_flag = {
						flag = communist_influence_2_ready
						days > 100
					}
					communism > 0.2
				}
			}
			if = {
				limit = {
					has_idea = SOV_Communist_influence_international_1
				}
				communism < 0.05
			}
			else_if = {
				limit = {
					has_idea = SOV_Communist_influence_international_2
				}
				communism < 0.15
			}
			else_if = {
				limit = {
					has_idea = SOV_Communist_influence_international_3
				}
				communism < 0.25
			}
        }

        complete_effect = {
			if = {
				limit = {
					has_idea = SOV_Communist_influence_international_1
				}
				remove_ideas = SOV_Communist_influence_international_1
			}
			else_if = {
				limit = {
					has_idea = SOV_Communist_influence_international_2
				}
				remove_ideas = SOV_Communist_influence_international_2
			}
			else_if = {
				limit = {
					has_idea = SOV_Communist_influence_international_3
				}
				remove_ideas = SOV_Communist_influence_international_3
			}
            country_event = russia2_russia.368
        }

		ai_will_do = {
			factor = 1000000
		}
	}

	SOV_ask_overlord_help_communism = {

		icon = GFX_decision_generic_political_discourse

		fire_only_once = yes

		visible = {
            is_subject = yes
			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
			}
			if = {
				limit = {
					is_subject = yes
				}
				OVERLORD = {
					NOT = {
						has_government = communism
					}
				}
			}
        }

        cost = 50

		target_root_trigger = {
			is_subject = yes
			OR = {
				has_idea = SOV_Communist_influence_international_1
				has_idea = SOV_Communist_influence_international_2
				has_idea = SOV_Communist_influence_international_3
			}
		}

		target_trigger = {
			ROOT = {
				is_subject_of = FROM
			}
			FROM = {
				exists = yes
			}
		}

        available = {

        }

        complete_effect = {
            OVERLORD = {
				country_event = russia2_russia.377
			}
        }

		ai_will_do = {
			factor = 1000000
		}
	}

	SOV_communism_enemy_of_world = {

		icon = GFX_decision_generic_speech

		fire_only_once = yes

		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
			}
        }

        available = {

        }

		cost = 100

		complete_effect = {
			add_popularity = {
				ideology = communism
				popularity = -0.05
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_bully_neutrality_party = {

		icon = GFX_decision_generic_political_rally

		fire_only_once = yes

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

		days_remove = 60

        available = {
            NOT = {
				has_government = neutrality
				has_country_flag = bullying_other_party
			}
        }

		modifier = {
			neutrality_drift = -0.10
		}

		complete_effect = {
			set_temp_variable = { root_neutrality_pop = party_popularity@neutrality }
			divide_temp_variable = { root_neutrality_pop = -2 }
			clamp_temp_variable = {
				var = root_neutrality_pop
				min = -1
				max = -0.05
			}
			add_stability = root_neutrality_pop
			set_country_flag = bullying_other_party
		}

        remove_effect = {
            add_popularity = {
				ideology = communism
				popularity = -0.10
			}
			clr_country_flag = bullying_other_party
        }

		ai_will_do = {
			factor = 100
		}
	}

	SOV_bully_democratic_party = {

		icon = GFX_decision_generic_political_rally

		fire_only_once = yes

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

		days_remove = 60

        available = {
            NOT = {
				has_government = democratic
				has_country_flag = bullying_other_party
			}
        }

		modifier = {
			democratic_drift = -0.10
		}

		complete_effect = {
			set_temp_variable = { root_democratic_pop = party_popularity@democratic }
			divide_temp_variable = { root_democratic_pop = -2 }
			clamp_temp_variable = {
				var = root_democratic_pop
				min = -1
				max = -0.05
			}
			add_stability = root_democratic_pop
			set_country_flag = bullying_other_party
		}

        remove_effect = {
            add_popularity = {
				ideology = communism
				popularity = -0.10
			}
			clr_country_flag = bullying_other_party
        }

		ai_will_do = {
			factor = 100
		}
	}

	SOV_bully_fascism_party = {

		icon = GFX_decision_generic_political_rally

		fire_only_once = yes

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

		days_remove = 60

        available = {
            NOT = {
				has_government = fascism
				has_country_flag = bullying_other_party
			}
        }

		modifier = {
			fascism_drift = -0.10
		}

		complete_effect = {
			set_temp_variable = { root_fascism_pop = party_popularity@fascism }
			divide_temp_variable = { root_fascism_pop = -2 }
			clamp_temp_variable = {
				var = root_fascism_pop
				min = -1
				max = -0.05
			}
			add_stability = root_fascism_pop
			set_country_flag = bullying_other_party
		}

        remove_effect = {
            add_popularity = {
				ideology = communism
				popularity = -0.10
			}
			clr_country_flag = bullying_other_party
        }

		ai_will_do = {
			factor = 100
		}
	}

	SOV_use_news_against_communism = {

		icon = GFX_decision_eng_propaganda_campaigns

		fire_only_once = yes

		visible = {
			NOT = {
				has_government = communism
			}
			has_idea = SOV_Communist_influence_international_1
        }

		days_remove = 40

        available = {
            NOT = {
				has_government = communism
			}
        }

		cost = 25

		modifier = {
			communism_drift = -0.05
			political_power_gain = -0.25
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_denounce_communism = {

		icon = GFX_decision_generic_civil_support

		fire_only_once = yes

		visible = {
			NOT = {
				has_government = communism
			}
			has_idea = SOV_Communist_influence_international_2
        }

		days_remove = 60

        available = {
            NOT = {
				has_government = communism
			}
        }

		modifier = {
			communism_drift = -0.1
		}

		complete_effect = {
			set_temp_variable = { root_communism_pop = party_popularity@communism }
			divide_temp_variable = { root_communism_pop = -2 }
			add_stability = root_communism_pop
			add_war_support = root_communism_pop
		}

        remove_effect = {
            add_popularity = {
				ideology = communism
				popularity = -0.05
			}
        }

		ai_will_do = {
			factor = 100
		}
	}

	SOV_declare_martial_law = {

		icon = GFX_decision_gre_faction_management_category

		fire_only_once = yes

		visible = {
			NOT = {
				has_government = communism
			}
			has_idea = SOV_Communist_influence_international_3
        }

		days_remove = 50

        available = {
            NOT = {
				has_government = communism
			}
        }

		modifier = {
			communism_drift = -0.30
			weekly_manpower = -5000
			stability_weekly = -0.02
		}

        remove_effect = {
            add_popularity = {
				ideology = communism
				popularity = -0.05
			}
        }

		ai_will_do = {
			factor = 0
			modifier = {
				add = 50
				is_major = yes
			}
			modifier = {
				add = 10
				is_major = no
				num_of_factories > 75
			}
		}
	}

	SOV_delay_communist_appeal = {

		icon = GFX_decision_generic_operation

		fire_only_once = yes

		visible = {
			NOT = {
				has_government = communism
				has_country_flag = communist_influence_2_ready
			}
			has_idea = SOV_Communist_influence_international_1
        }

        available = {
            NOT = {
				has_government = communism
			}
        }

		cost = 10

        complete_effect = {
            add_stability = -0.05
			add_war_support = -0.05
			add_days_mission_timeout = {
				mission = SOV_appeal_communist_supporters
				days = 25
			}
        }

		ai_will_do = {
			factor = 100
		}
	}

	SOV_delay_international_recognition = {

		icon = GFX_decision_generic_operation

		fire_only_once = yes

		visible = {
			NOT = {
				has_government = communism
				has_country_flag = communist_influence_3_ready
			}
			has_idea = SOV_Communist_influence_international_2
        }

        available = {
            NOT = {
				has_government = communism
			}
        }

		cost = 10

        complete_effect = {
            add_stability = -0.05
			add_war_support = -0.05
			add_days_mission_timeout = {
				mission = SOV_international_recognition
				days = 20
			}
        }

		ai_will_do = {
			factor = 100
		}
	}

	SOV_delay_armed_communist_forces = {

		icon = GFX_decision_generic_operation

		fire_only_once = yes

		visible = {
			NOT = {
				has_government = communism
				has_country_flag = can_be_target_international
			}
			has_idea = SOV_Communist_influence_international_3
        }

        available = {
            NOT = {
				has_government = communism
			}
        }

		cost = 10

        complete_effect = {
            add_stability = -0.05
			add_war_support = -0.05
			add_days_mission_timeout = {
				mission = SOV_armed_communist_forces
				days = 15
			}
        }

		ai_will_do = {
			factor = 100
		}
	}

	SOV_appeal_communist_supporters = {

		icon = GFX_decision_eng_propaganda_campaigns

		fire_only_once = yes

		activation = {
			has_idea = SOV_Communist_influence_international_1
		}

		available = {
			NOT = {
				has_idea = SOV_Communist_influence_international_1
			}
		}

		visible = {
			has_idea = SOV_Communist_influence_international_1
		}

		days_mission_timeout = 30

		is_good = no

		timeout_effect = {
			custom_effect_tooltip = SOV_appeal_communist_supporters_tt
			set_country_flag = communist_influence_2_ready
			hidden_effect = {
				add_popularity = {
					ideology = communism
					popularity = 0.05
				}
				SOV = {
					country_event = russia2_russia.363
				}
			}
		}
	}

	SOV_international_recognition = {

		icon = GFX_decision_generic_speech

		fire_only_once = yes

		activation = {
			has_idea = SOV_Communist_influence_international_2
		}

		available = {
			NOT = {
				has_idea = SOV_Communist_influence_international_2
			}
		}

		visible = {
			has_idea = SOV_Communist_influence_international_2
		}

		days_mission_timeout = 60

		is_good = no

		timeout_effect = {
			custom_effect_tooltip = SOV_international_recognition_tt
			set_country_flag = communist_influence_3_ready
			hidden_effect = {
				add_popularity = {
					ideology = communism
					popularity = 0.1
				}
				SOV = {
					country_event = russia2_russia.365
				}
			}
		}
	}

	SOV_armed_communist_forces = {

		icon = GFX_decision_generic_prepare_civil_war

		fire_only_once = yes

		activation = {
			has_idea = SOV_Communist_influence_international_3
		}

		available = {
			NOT = {
				has_idea = SOV_Communist_influence_international_3
			}
		}

		visible = {
			has_idea = SOV_Communist_influence_international_3
		}

		days_mission_timeout = 90

		is_good = no

		timeout_effect = {
			add_popularity = {
				ideology = ROOT
				popularity = -0.1
			}
			custom_effect_tooltip = SOV_armed_communist_forces_tt
			set_country_flag = can_be_target_international
			hidden_effect = {
				add_popularity = {
					ideology = communism
					popularity = 0.1
				}
				SOV = {
					country_event = russia2_russia.376
				}
			}
		}
	}
}

SOV_iron_curtain = {

	SOV_influence_country_iron_curtain = {

		icon = GFX_decision_generic_political_discourse

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_iron_curtain_focus
			has_government = communism
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					has_government = communism
				}
				is_major = no
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					is_neighbor_of = ROOT
					any_country = {
						is_neighbor_of = FROM
						is_in_faction_with = ROOT
					}
				}
				communism < 0.3
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_iron_curtain_focus
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					has_government = communism
				}
				is_major = no
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					is_neighbor_of = ROOT
					any_country = {
						is_neighbor_of = FROM
						is_in_faction_with = ROOT
					}
				}
				communism < 0.3
			}
		}

		available = {
			has_war = no
		}

		cost = 150

		complete_effect = {
			FROM = {
				country_event = {
					id = russia2_russia.381
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_civil_war_country_iron_curtain = {

		icon = GFX_decision_generic_prepare_civil_war

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_iron_curtain_focus
			has_government = communism
			FROM = {
				exists = yes
				num_of_controlled_states > 1
				NOT = {
					is_in_faction_with = ROOT
					has_government = communism
				}
				is_major = no
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					is_neighbor_of = ROOT
					any_country = {
						is_neighbor_of = FROM
						is_in_faction_with = ROOT
					}
				}
				communism > 0.3
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_iron_curtain_focus
		}

		target_trigger = {
			FROM = {
				exists = yes
				num_of_controlled_states > 1
				NOT = {
					is_in_faction_with = ROOT
					has_government = communism
				}
				is_major = no
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					is_neighbor_of = ROOT
					any_country = {
						is_neighbor_of = FROM
						is_in_faction_with = ROOT
					}
				}
				communism > 0.3
			}
		}

		available = {
			has_war = no
			FROM = {
				NOT = {
					has_civil_war = yes
				}
			}
		}

		cost = 300

		complete_effect = {
			FROM = {
				country_event = {
					id = russia2_russia.382
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_invite_country_iron_curtain = {

		icon = GFX_decision_generic_nationalism

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_iron_curtain_focus
			has_government = communism
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
				}
				has_government = communism
				is_major = no
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					is_neighbor_of = ROOT
					any_country = {
						is_neighbor_of = FROM
						is_in_faction_with = ROOT
					}
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_iron_curtain_focus
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
				}
				has_government = communism
				is_major = no
				capital_scope = {
					is_on_continent = europe
				}
				OR = {
					is_neighbor_of = ROOT
					any_country = {
						is_neighbor_of = FROM
						is_in_faction_with = ROOT
					}
				}
			}
		}

		available = {
			NOT = {
				has_war_with = FROM
			}
			FROM = {
				NOT = {
					has_civil_war = yes
				}
			}
		}

		cost = 50

		complete_effect = {
			FROM = {
				country_event = {
					id = russia2_russia.385
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_puppet_country_iron_curtain = {

		icon = GFX_decision_eng_trade_unions_demand

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_iron_curtain_focus
			has_government = communism
			FROM = {
				exists = yes
				has_government = communism
				has_country_flag = is_communist_civil_war_iron_curtain
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_iron_curtain_focus
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_government = communism
				has_country_flag = is_communist_civil_war_iron_curtain
			}
		}

		available = {
			NOT = {
				has_war_with = FROM
				is_subject_of = SOV
			}
			FROM = {
				NOT = {
					has_idea = SOV_Cold_civil_war
				}
			}
		}

		cost = 50

		complete_effect = {
			hidden_effect = {
				every_country = {
					limit = {
						has_civil_war = yes
						has_war_with = FROM
						original_tag = FROM
						has_country_flag = civil_war_iron_curtain
					}
					SOV = {
						add_to_war = {
							targeted_alliance = FROM
							enemy = PREV
							hostility_reason = asked_to_join
						}
					}
				}
			}
			hidden_effect = {
				SOV = {
					set_autonomy = {
						target = FROM
						autonomy_state = autonomy_soviet_republic
					}
				}
				FROM = {
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 10
						communism = 70
					}
				}
			}
			if = {
				limit = {
					FROM = {
						has_civil_war = yes
					}
				}
				custom_effect_tooltip = join_civil_war_from
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_create_warsaw_pact = {

		icon = GFX_decision_generic_form_nation

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_iron_curtain_focus
			has_government = communism
		}

		available = {
			NOT = {
				has_country_leader = {
					character = SOV_Joseph_stalin
					ruling_only = yes
				}
			}
			OR = {
				10 = {
					is_controlled_by = SOV
				}
				any_allied_country = {
					has_government = communism
					controls_state = 10
				}
			}
		}

		cost = 50

		complete_effect = {
			add_stability = 0.05
			set_faction_name = warsaw_pact
			hidden_effect = {
				news_event = { id = newsrussia2.37 days = 1 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_target_iron_curtain = {

	SOV_civil_war_iron_curtain_timeout = {

		icon = GFX_decision_generic_prepare_civil_war

		fire_only_once = yes

		activation = {
			has_country_flag = target_civil_war_iron_curtain
		}

		available = {
			OR = {
				has_government = communism
				communism < 0.3
			}
		}

		visible = {
			has_country_flag = target_civil_war_iron_curtain
		}

		days_mission_timeout = 60

		is_good = no

		complete_effect = {
			country_event = russia2_russia.389
		}

		timeout_effect = {
			custom_effect_tooltip = SOV_civil_war_iron_curtain_timeout_tt
			country_event = russia2_russia.383
			set_country_flag = civil_war_iron_curtain
			hidden_effect = {
				add_popularity = {
					ideology = communism
					popularity = 0.05
				}
			}
		}
	}
}

SOV_the_black_revolution = {

	SOV_careful_next_infiltration = {

		icon = GFX_decision_generic_speech

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = be_careful_black_revolution
			}
		}

		available = {

		}

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_careful_next_infiltration_tt
			set_country_flag = be_careful_black_revolution
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 24
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_initiate_raid_capital = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_initiate_raid_capital_available_tt
				check_variable = {
					var = population_support_black_revolution
					value = 100
					compare = greater_than_or_equals
				}
			}
		}

		complete_effect = {
			SOV = {
				country_event = { id = russia2_russia.413 }
				set_politics = {
					ruling_party = anarchy
				}
				hidden_effect = {
					division_template = {
						name = "Patrul'nyy Ttryad Militsii"
						is_locked = yes
						division_names_group = SOV_CAV_01

						regiments = {
							cavalry = { x = 0 y = 0 }
							cavalry = { x = 0 y = 1 }
							cavalry = { x = 1 y = 0 }
							cavalry = { x = 1 y = 1 }
						}
						support = 	{
							military_police = { x = 0 y = 0 }
						}
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 10
						communism = 50
						anarchy = 20
					}
					set_cosmetic_tag = ANAC
					clr_country_flag = civil_war_black_revolution
					remove_ideas = SOV_Anarchist_terrorist
					remove_ideas = SOV_army_disorganisation
					remove_ideas = SOV_Home_of_revolution_russia2
					dismantle_faction = yes
					delete_unit_template_and_units = {
						division_template = "Strelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Gornostrelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Motostrelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Kavaleriyskaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "NKVD Pogranichnaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Mekhanizirovaniy Korpus"
					}
					delete_unit_template_and_units = {
						division_template = "Mekhanizirovaniy Korpus"
					}
					delete_unit_template_and_units = {
						division_template = "Vozdushno-Desantnaya Brigada"
					}
					every_character = {
						limit = {
							OR = {
								is_character = SOV_Georgy_zhukov
								is_character = SOV_Aleksandr_vasilevsky
								is_character = SOV_Boris_shaposhnikov
								is_character = SOV_Nikolai_vatutin
								is_character = SOV_Ivan_konev
								is_character = SOV_Semyon_timoshenko
								is_character = SOV_Kliment_voroshilov_military
								is_character = SOV_Kliment_voroshilov_advisor
								is_character = SOV_Mikhail_tukhachevsky
								is_character = SOV_Semyon_budyonny
								is_character = SOV_Ivan_chernyakhovsky
								is_character = SOV_Issa_pliyev
								is_character = SOV_Leonid_govorov
								is_character = SOV_Grigory_kulik
								is_character = SOV_Kirill_meretskov
								is_character = SOV_Filipp_golikov
								is_character = SOV_Andrey_yeryomenko
								is_character = SOV_Georgiy_zakharov
								is_character = SOV_Yakov_cherevichenko
								is_character = SOV_Nikandr_chibisov
								is_character = SOV_Vasily_kuznetsov
								is_character = SOV_Ivan_fedyuninsky
								is_character = SOV_Maksim_purkayev
								is_character = SOV_Kuzma_galitsky
								is_character = SOV_Markian_popov
								is_character = SOV_Nikolai_berzarin
								is_character = SOV_Kirill_moskalenko
								is_character = SOV_Dmitry_lelyushenko
								is_character = SOV_Andrei_grechko
								is_character = SOV_Rodion_malinovsky
								is_character = SOV_Vasily_chuikov
								is_character = SOV_Konstantin_rokossovsky
								is_character = SOV_Andrey_vlasov
								is_character = SOV_Ivan_kononov
								is_character = SOV_Alexander_gorbatov
								is_character = SOV_Vasily_blyukher
								is_character = SOV_Alexander_yegorov
								is_character = SOV_Maks_reyter
							}
						}
						set_character_flag = SOV_character_agains_anarchist_government
					}
					load_oob = "SOV_black_revolution_peaceful_oob"
				}
			}
		}

		ai_will_do = {
			base = 100
			modifier = {
				add = -100
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_control_state_decision_black_revolution = {

		icon = GFX_decision_eng_trade_unions_support

		on_map_mode = map_only

		state_target = yes

		target_array = SOV.sov_get_black_revolution_states

		allowed = {
			original_tag = SOV
		}

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

		available = {
			FROM = {
				NOT = {
					has_state_flag = anarchist_state_black_revolution
				}
			}
			has_full_control_of_state = FROM
			check_variable = {
				var = army_vigiliance_black_revolution
				value = 100
				compare = less_than
			}
		}

		days_remove = 5

		cost = 10

		fire_only_once = yes

		cancel_if_not_visible = yes

		fixed_random_seed = no

		complete_effect = {
			FROM = {
				set_state_flag = anarchist_state_black_revolution
			}
			custom_effect_tooltip = control_state_futur_revolution
			if = {
				limit = {
					FROM = {
						has_state_flag = high_risk_state_black_revolution
					}
				}
				if = {
					limit = {
						has_country_flag = be_careful_black_revolution
					}
					add_to_variable = {
						var = population_support_black_revolution
						value = 5
					}
					custom_effect_tooltip = population_support_5_tt
					random_list = {
						15 = {
							custom_effect_tooltip = SOV_army_vigilance_0
						}
						25 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 2
							}
							custom_effect_tooltip = SOV_army_vigilance_2
						}
						55 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 5
							}
							custom_effect_tooltip = SOV_army_vigilance_5
						}
						5 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 8
							}
							custom_effect_tooltip = SOV_army_vigilance_8
						}
					}
					clr_country_flag = be_careful_black_revolution
				}
				else = {
					add_to_variable = {
						var = population_support_black_revolution
						value = 4
					}
					custom_effect_tooltip = population_support_4_tt
					random_list = {
						5 = {
							custom_effect_tooltip = SOV_army_vigilance_0
						}
						15 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 2
							}
							custom_effect_tooltip = SOV_army_vigilance_2
						}
						50 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 5
							}
							custom_effect_tooltip = SOV_army_vigilance_5
						}
						30 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 8
							}
							custom_effect_tooltip = SOV_army_vigilance_8
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_state_flag = medium_risk_state_black_revolution_west
					}
				}
				add_to_variable = {
					var = population_support_black_revolution
					value = 3
				}
				custom_effect_tooltip = population_support_3_tt
				if = {
					limit = {
						has_country_flag = be_careful_black_revolution
					}
					random_list = {
						25 = {
							custom_effect_tooltip = SOV_army_vigilance_0
						}
						25 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 2
							}
							custom_effect_tooltip = SOV_army_vigilance_2
						}
						45 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 4
							}
							custom_effect_tooltip = SOV_army_vigilance_4
						}
						5 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 6
							}
							custom_effect_tooltip = SOV_army_vigilance_6
						}
					}
					clr_country_flag = be_careful_black_revolution
				}
				else = {
					random_list = {
						5 = {
							custom_effect_tooltip = SOV_army_vigilance_0
						}
						15 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 2
							}
							custom_effect_tooltip = SOV_army_vigilance_2
						}
						50 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 4
							}
							custom_effect_tooltip = SOV_army_vigilance_4
						}
						30 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 6
							}
							custom_effect_tooltip = SOV_army_vigilance_6
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_state_flag = medium_risk_state_black_revolution_east
					}
				}
				add_to_variable = {
					var = population_support_black_revolution
					value = 3
				}
				custom_effect_tooltip = population_support_3_tt
				if = {
					limit = {
						has_country_flag = be_careful_black_revolution
					}
					random_list = {
						15 = {
							custom_effect_tooltip = SOV_army_vigilance_0
						}
						35 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 1
							}
							custom_effect_tooltip = SOV_army_vigilance_1
						}
						40 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 4
							}
							custom_effect_tooltip = SOV_army_vigilance_4
						}
						10 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 6
							}
							custom_effect_tooltip = SOV_army_vigilance_6
						}
					}
					clr_country_flag = be_careful_black_revolution
				}
				else = {
					random_list = {
						20 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 1
							}
							custom_effect_tooltip = SOV_army_vigilance_1
						}
						50 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 4
							}
							custom_effect_tooltip = SOV_army_vigilance_4
						}
						30 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 6
							}
							custom_effect_tooltip = SOV_army_vigilance_6
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_state_flag = low_risk_state_black_revolution
					}
				}
				add_to_variable = {
					var = population_support_black_revolution
					value = 2
				}
				custom_effect_tooltip = population_support_2_tt
				if = {
					limit = {
						has_country_flag = be_careful_black_revolution
					}
					random_list = {
						25 = {
							custom_effect_tooltip = SOV_army_vigilance_0
						}
						35 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 1
							}
							custom_effect_tooltip = SOV_army_vigilance_1
						}
						35 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 2
							}
							custom_effect_tooltip = SOV_army_vigilance_2
						}
						5 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 4
							}
							custom_effect_tooltip = SOV_army_vigilance_4
						}
					}
					clr_country_flag = be_careful_black_revolution
				}
				else = {
					random_list = {
						5 = {
							custom_effect_tooltip = SOV_army_vigilance_0
						}
						25 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 1
							}
							custom_effect_tooltip = SOV_army_vigilance_1
						}
						45 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 2
							}
							custom_effect_tooltip = SOV_army_vigilance_2
						}
						25 = {
							add_to_variable = {
								var = army_vigiliance_black_revolution
								value = 4
							}
							custom_effect_tooltip = SOV_army_vigilance_4
						}
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_state_flag = no_risk_state_black_revolution
					}
				}
				add_to_variable = {
					var = population_support_black_revolution
					value = 1
				}
				custom_effect_tooltip = population_support_1_tt
			}
			remove_from_array = { SOV.sov_get_black_revolution_states = FROM }
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 99
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_delay_the_revolution = {

		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_active_mission = SOV_the_black_civil_war_timeout
			check_variable = {
				var = army_vigiliance_black_revolution
				value = 100
				compare = less_than
			}
		}

		days_re_enable = 65

		cost = 10

		complete_effect = {
			custom_effect_tooltip = SOV_delay_the_revolution_tt
			set_country_flag = revolution_has_been_delayed
			add_days_mission_timeout = {
				mission = SOV_the_black_civil_war_timeout
				days = 70
			}
			custom_effect_tooltip = SOV_army_vigilance_4
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 4
			}
		}

		ai_will_do = {
			base = 25
			modifier = {
				add = 75
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_hold_leningrad_black_guard = {

		icon = GFX_decision_generic_political_rally

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		highlight_states = {
			highlight_states_trigger = {
				state = 195
			}
		}

		available = {
			check_variable = {
				var = army_vigiliance_black_revolution
				value = 100
				compare = less_than
			}
		}

		fire_only_once = yes

		cost = 30

		complete_effect = {
			custom_effect_tooltip = SOV_hold_leningrad_black_guard_tt
			195 = {
				set_state_flag = anarchist_state_black_revolution
			}
			set_country_flag = anarchist_hold_leningrad
			custom_effect_tooltip = SOV_army_vigilance_10
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 10
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 149
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_hold_more_central_asia = {

		icon = GFX_decision_generic_political_rally

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			check_variable = {
				var = army_vigiliance_black_revolution
				value = 100
				compare = less_than
			}
		}

		fire_only_once = yes

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_hold_more_central_asia_tt
			407 = {
				set_state_flag = anarchist_state_black_revolution
			}
			406 = {
				set_state_flag = anarchist_state_black_revolution
			}
			402 = {
				set_state_flag = anarchist_state_black_revolution
			}
			587 = {
				set_state_flag = anarchist_state_black_revolution
			}
			232 = {
				set_state_flag = anarchist_state_black_revolution
			}
			821 = {
				set_state_flag = anarchist_state_black_revolution
			}
			set_country_flag = anarchist_ready_enlist_more_central_asia
			custom_effect_tooltip = SOV_army_vigilance_10
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 10
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 149
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_enlist_more_division_central_asia = {

		icon = GFX_decision_generic_military

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = anarchist_ready_enlist_more_central_asia
		}

		available = {

		}

		fire_only_once = yes

		cost = 15

		complete_effect = {
			custom_effect_tooltip = SOV_enlist_more_division_central_asia_tt
			set_country_flag = anarchist_hold_more_central_asia
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 149
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_hold_more_Siberia = {

		icon = GFX_decision_generic_political_rally

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			check_variable = {
				var = army_vigiliance_black_revolution
				value = 100
				compare = less_than
			}
		}

		fire_only_once = yes

		cost = 20

		complete_effect = {
			custom_effect_tooltip = SOV_hold_more_Siberia_tt
			560 = {
				set_state_flag = anarchist_state_black_revolution
			}
			566 = {
				set_state_flag = anarchist_state_black_revolution
			}
			574 = {
				set_state_flag = anarchist_state_black_revolution
			}
			562 = {
				set_state_flag = anarchist_state_black_revolution
			}
			644 = {
				set_state_flag = anarchist_state_black_revolution
			}
			822 = {
				set_state_flag = anarchist_state_black_revolution
			}
			876 = {
				set_state_flag = anarchist_state_black_revolution
			}
			877 = {
				set_state_flag = anarchist_state_black_revolution
			}
			874 = {
				set_state_flag = anarchist_state_black_revolution
			}
			set_country_flag = anarchist_ready_enlist_more_siberia
			custom_effect_tooltip = SOV_army_vigilance_10
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 10
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 149
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_enlist_more_division_siberia = {

		icon = GFX_decision_generic_military

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = anarchist_ready_enlist_more_siberia
		}

		available = {

		}

		fire_only_once = yes

		cost = 15

		complete_effect = {
			custom_effect_tooltip = SOV_enlist_more_division_siberia_tt
			set_country_flag = anarchist_hold_more_siberia
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 149
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_incite_soldiers_desert = {

		icon = GFX_decision_eng_blackshirt_march

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			check_variable = {
				var = army_vigiliance_black_revolution
				value = 100
				compare = less_than
			}
		}

		fire_only_once = yes

		cost = 30

		complete_effect = {
			custom_effect_tooltip = SOV_incite_soldiers_desert_tt
			set_country_flag = anarchist_soldiers_desert
			custom_effect_tooltip = SOV_army_vigilance_20
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 20
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 74
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_stock_supply_black_guard = {

		icon = GFX_decision_generic_decision

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_stock_supply_black_guard_tt
				check_variable = {
					var = no_supply_grace_black_guard
					value = 240
					compare = less_than
				}
			}
		}

		cost = 25

		complete_effect = {
			custom_effect_tooltip = SOV_stock_supply_black_guard_variable_tt
			add_to_variable = { no_supply_grace_black_guard = 48 }
			custom_effect_tooltip = SOV_army_vigilance_2_5
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 2.5
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 64
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_manage_supply_efficiency_black_guard = {

		icon = GFX_decision_gre_paying_ifc_debt

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_manage_supply_efficiency_black_guard_tt
				check_variable = {
					var = out_of_supply_factor_black_guard
					value = -0.6
					compare = greater_than
				}
			}
		}

		cost = 25

		complete_effect = {
			custom_effect_tooltip = SOV_manage_supply_efficiency_black_guard_variable_tt
			add_to_variable = { out_of_supply_factor_black_guard = -0.1 }
			custom_effect_tooltip = SOV_army_vigilance_2_5
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 2.5
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 64
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_train_black_guard = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_train_black_guard_tt
				check_variable = {
					var = army_attack_black_guard
					value = 0.15
					compare = less_than
				}
			}
		}

		cost = 25

		complete_effect = {
			custom_effect_tooltip = SOV_train_black_guard_variable_tt
			add_to_variable = { army_attack_black_guard = 0.025 }
			custom_effect_tooltip = SOV_army_vigilance_2_5
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 2.5
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 64
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_survivalist_black_guard = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_survivalist_black_guard_tt
				check_variable = {
					var = pocket_penalty_black_guard
					value = -0.8
					compare = greater_than
				}
			}
		}

		cost = 25

		complete_effect = {
			custom_effect_tooltip = SOV_survivalist_black_guard_variable_tt
			add_to_variable = { pocket_penalty_black_guard = -0.10 }
			custom_effect_tooltip = SOV_army_vigilance_2_5
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 2.5
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 64
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_enchance_discipline_black_guard = {

		icon = GFX_decision_generic_military

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_enchance_discipline_black_guard_tt
				check_variable = {
					var = army_org_factor_black_guard
					value = 0.15
					compare = less_than
				}
			}
		}

		cost = 25

		complete_effect = {
			custom_effect_tooltip = SOV_enchance_discipline_black_guard_variable_tt
			add_to_variable = { army_org_factor_black_guard = 0.03 }
			custom_effect_tooltip = SOV_army_vigilance_2_5
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 2.5
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 64
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_boost_morale_black_guard = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_boost_morale_black_guard_tt
				check_variable = {
					var = army_org_regain_black_guard
					value = 0.10
					compare = less_than
				}
			}
		}

		cost = 25

		complete_effect = {
			custom_effect_tooltip = SOV_boost_morale_black_guard_variable_tt
			add_to_variable = { army_org_regain_black_guard = 0.02 }
			custom_effect_tooltip = SOV_army_vigilance_2_5
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 2.5
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 64
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_breakthrough_bonus_black_guard = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_breakthrough_bonus_black_guard_tt
				check_variable = {
					var = army_breakthrough_black_guard
					value = 0.10
					compare = less_than
				}
			}
		}

		cost = 25

		complete_effect = {
			custom_effect_tooltip = SOV_breakthrough_bonus_black_guard_variable_tt
			add_to_variable = { army_breakthrough_black_guard = 0.02 }
			custom_effect_tooltip = SOV_army_vigilance_2_5
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 2.5
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				add = 64
				OR = {
					has_country_flag = RUS_AI_CHAOS_REUNIFY_RUSSIA_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_FULL_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
					has_country_flag = RUS_AI_CHAOS_SHARED_RUSSIAN_LEAGUE_ANARCHIST_BEHAVIOR
				}
			}
		}
	}

	SOV_start_civil_war_black_guard = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = army_vigiliance_black_revolution_start_sooner_tt
				check_variable = {
					var = army_vigiliance_black_revolution
					value = 70
					compare = greater_than_or_equals
				}
				check_variable = {
					var = army_vigiliance_black_revolution
					value = 80
					compare = less_than_or_equals
				}
			}
		}

		visible = {

		}

		fire_only_once = yes

		complete_effect = {
			set_country_flag = has_choose_to_start_earlier
			custom_effect_tooltip = SOV_start_civil_war_black_guard_tt
			hidden_effect = {
				division_template = {
					name = "Patrul'nyy Ttryad Militsii"
					is_locked = no
					division_names_group = SOV_CAV_01

					regiments = {
						cavalry = { x = 0 y = 0 }
						cavalry = { x = 0 y = 1 }
						cavalry = { x = 1 y = 0 }
						cavalry = { x = 1 y = 1 }
					}
					support = 	{
						military_police = { x = 0 y = 0 }
					}
				}
				every_state = {
					limit = {
						is_core_of = SOV
						NOT = {
							has_state_flag = anarchist_state_black_revolution
						}
					}
					SOJ = {
						add_state_core = PREV
						set_cosmetic_tag = SOJC
					}
				}
				SOV = {
					every_character = {
						limit = {
							OR = {
								is_character = SOV_Georgy_zhukov
								is_character = SOV_Aleksandr_vasilevsky
								is_character = SOV_Boris_shaposhnikov
								is_character = SOV_Nikolai_vatutin
								is_character = SOV_Ivan_konev
								is_character = SOV_Semyon_timoshenko
								is_character = SOV_Kliment_voroshilov_military
								is_character = SOV_Kliment_voroshilov_advisor
								is_character = SOV_Mikhail_tukhachevsky
								is_character = SOV_Semyon_budyonny
								is_character = SOV_Ivan_chernyakhovsky
								is_character = SOV_Issa_pliyev
								is_character = SOV_Leonid_govorov
								is_character = SOV_Grigory_kulik
								is_character = SOV_Kirill_meretskov
								is_character = SOV_Filipp_golikov
								is_character = SOV_Andrey_yeryomenko
								is_character = SOV_Georgiy_zakharov
								is_character = SOV_Yakov_cherevichenko
								is_character = SOV_Nikandr_chibisov
								is_character = SOV_Vasily_kuznetsov
								is_character = SOV_Ivan_fedyuninsky
								is_character = SOV_Maksim_purkayev
								is_character = SOV_Kuzma_galitsky
								is_character = SOV_Markian_popov
								is_character = SOV_Nikolai_berzarin
								is_character = SOV_Kirill_moskalenko
								is_character = SOV_Dmitry_lelyushenko
								is_character = SOV_Andrei_grechko
								is_character = SOV_Rodion_malinovsky
								is_character = SOV_Vasily_chuikov
								is_character = SOV_Konstantin_rokossovsky
								is_character = SOV_Andrey_vlasov
								is_character = SOV_Ivan_kononov
								is_character = SOV_Alexander_gorbatov
							}
						}
						set_character_flag = sov_character_switched_to_sou
						set_nationality = SOJ
					}
					set_politics = {
						ruling_party = anarchy
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 10
						communism = 50
						anarchy = 20
					}
					add_country_leader_role = {
						character = SOV_Peoples_council_commune
						promote_leader = yes
						country_leader = {
							desc = SOV_Peoples_council_commune_desc
							ideology = anarchist
							expire = "1965.1.1.1"
							traits = {

							}
						}
					}
					release = SOJ
					set_country_flag = black_revolution_turned_civil_war
					set_country_flag = black_revolution_civil_war_in_progress
					set_cosmetic_tag = ANAC
					clr_country_flag = civil_war_black_revolution
					remove_ideas = SOV_Anarchist_terrorist
					remove_ideas = SOV_army_disorganisation
					remove_ideas = SOV_Home_of_revolution_russia2
					add_ideas = extensive_conscription
					add_ideas = SOV_Determination
					add_ideas = SOV_Surprise_attack_black_revolution
					country_event = { id = russia2_russia.404 hours = 1 }
					country_event = { id = russia2_russia.405 hours = 1 }
					country_event = { id = russia2_russia.406 hours = 2 }
					country_event = { id = russia2_russia.407 hours = 2 }
					country_event = { id = russia2_russia.408 hours = 1 }
					country_event = { id = russia2_russia.411 hours = 2 }
					delete_unit_template_and_units = {
						division_template = "Strelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Gornostrelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Motostrelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Kavaleriyskaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "NKVD Pogranichnaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Mekhanizirovaniy Korpus"
					}
					delete_unit_template_and_units = {
						division_template = "Vozdushno-Desantnaya Brigada"
					}
					dismantle_faction = yes
					retire_ideology_leader = communism
					destroy_ships = {
						type = destroyer
						count = all
					}
					destroy_ships = {
						type = ship_hull_submarine
						count = all
					}
					destroy_ships = {
						type = ship_hull_heavy_1
						count = all
					}
					destroy_ships = {
						type = light_cruiser
						count = all
					}
					destroy_ships = {
						type = destroyer_1
						count = all
					}
					destroy_ships = {
						type = submarine_1
						count = all
					}
					destroy_ships = {
						type = battleship_1
						count = all
					}
					destroy_ships = {
						type = light_cruiser_1
						count = all
					}
					every_army_leader = {
						retire = yes
					}
				}
				SOJ = {
					declare_war_on = {
						target = SOV
						type = annex_everything
					}
					add_ideas = SOV_Slow_industry
					add_ideas = SOV_Damaged_railway
					add_ideas = SOV_Low_support_black_revolution
					inherit_technology = SOV
					unlock_national_focus = SOV_great_purge2
				}
				every_state = {
					limit = {
						is_core_of = SOV
					}
					SOJ = {
						add_state_core = PREV
					}
				}
				every_state = {
					limit = {
						is_core_of = SOJ
						NOT = {
							has_state_flag = anarchist_state_black_revolution
						}
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	SOV_the_black_civil_war_timeout = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			tag = SOV
		}

		activation = {
			has_completed_focus = SOV_black_guard
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = army_vigiliance_black_revolution_timeout_tt
				check_variable = {
					var = army_vigiliance_black_revolution
					value = 100
					compare = greater_than_or_equals
				}
			}
		}

		cancel_trigger = {
			OR = {
				has_country_flag = has_choose_to_start_earlier
				has_government = anarchy
			}
		}

		fire_only_once = yes

		days_mission_timeout = 70

		is_good = no

		complete_effect = {
			custom_effect_tooltip = SOV_the_black_revolution_timeout_tt
			hidden_effect = {
				division_template = {
					name = "Patrul'nyy Ttryad Militsii"
					is_locked = no
					division_names_group = SOV_CAV_01

					regiments = {
						cavalry = { x = 0 y = 0 }
						cavalry = { x = 0 y = 1 }
						cavalry = { x = 1 y = 0 }
						cavalry = { x = 1 y = 1 }
					}
					support = 	{
						military_police = { x = 0 y = 0 }
					}
				}
				every_state = {
					limit = {
						is_core_of = SOV
						NOT = {
							has_state_flag = anarchist_state_black_revolution
						}
					}
					SOJ = {
						add_state_core = PREV
						set_cosmetic_tag = SOJC
					}
				}
				SOV = {
					every_character = {
						limit = {
							OR = {
								is_character = SOV_Georgy_zhukov
								is_character = SOV_Aleksandr_vasilevsky
								is_character = SOV_Boris_shaposhnikov
								is_character = SOV_Nikolai_vatutin
								is_character = SOV_Ivan_konev
								is_character = SOV_Semyon_timoshenko
								is_character = SOV_Kliment_voroshilov_military
								is_character = SOV_Kliment_voroshilov_advisor
								is_character = SOV_Mikhail_tukhachevsky
								is_character = SOV_Semyon_budyonny
								is_character = SOV_Ivan_chernyakhovsky
								is_character = SOV_Issa_pliyev
								is_character = SOV_Leonid_govorov
								is_character = SOV_Grigory_kulik
								is_character = SOV_Kirill_meretskov
								is_character = SOV_Filipp_golikov
								is_character = SOV_Andrey_yeryomenko
								is_character = SOV_Georgiy_zakharov
								is_character = SOV_Yakov_cherevichenko
								is_character = SOV_Nikandr_chibisov
								is_character = SOV_Vasily_kuznetsov
								is_character = SOV_Ivan_fedyuninsky
								is_character = SOV_Maksim_purkayev
								is_character = SOV_Kuzma_galitsky
								is_character = SOV_Markian_popov
								is_character = SOV_Nikolai_berzarin
								is_character = SOV_Kirill_moskalenko
								is_character = SOV_Dmitry_lelyushenko
								is_character = SOV_Andrei_grechko
								is_character = SOV_Rodion_malinovsky
								is_character = SOV_Vasily_chuikov
								is_character = SOV_Konstantin_rokossovsky
								is_character = SOV_Andrey_vlasov
								is_character = SOV_Ivan_kononov
								is_character = SOV_Alexander_gorbatov
								is_character = SOV_Vasily_blyukher
								is_character = SOV_Alexander_yegorov
								is_character = SOV_Maks_reyter
							}
						}
						set_character_flag = sov_character_switched_to_sou
						set_nationality = SOJ
					}
					set_politics = {
						ruling_party = anarchy
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 10
						communism = 50
						anarchy = 20
					}
					add_country_leader_role = {
						character = SOV_Supreme_military_council
						promote_leader = yes
						country_leader = {
							desc = SOV_Supreme_military_council_desc
							ideology = anarchist
							expire = "1965.1.1.1"
							traits = {

							}
						}
					}
					release = SOJ
					set_cosmetic_tag = ANAC
					set_country_flag = black_revolution_turned_civil_war
					set_country_flag = black_revolution_civil_war_in_progress
					clr_country_flag = civil_war_black_revolution
					remove_ideas = SOV_Anarchist_terrorist
					remove_ideas = SOV_army_disorganisation
					remove_ideas = SOV_Home_of_revolution_russia2
					add_ideas = extensive_conscription
					add_ideas = SOV_Determination
					country_event = { id = russia2_russia.404 hours = 1 }
					country_event = { id = russia2_russia.405 hours = 1 }
					country_event = { id = russia2_russia.406 hours = 2 }
					country_event = { id = russia2_russia.407 hours = 2 }
					country_event = { id = russia2_russia.408 hours = 1 }
					country_event = { id = russia2_russia.411 hours = 2 }
					delete_unit_template_and_units = {
						division_template = "Strelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Gornostrelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Motostrelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Kavaleriyskaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "NKVD Pogranichnaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Mekhanizirovaniy Korpus"
					}
					delete_unit_template_and_units = {
						division_template = "Vozdushno-Desantnaya Brigada"
					}
					dismantle_faction = yes
					retire_ideology_leader = communism
					destroy_ships = {
						type = destroyer
						count = all
					}
					destroy_ships = {
						type = ship_hull_submarine_1
						count = all
					}
					destroy_ships = {
						type = ship_hull_submarine_2
						count = all
					}
					destroy_ships = {
						type = ship_hull_heavy_1
						count = all
					}
					destroy_ships = {
						type = light_cruiser
						count = all
					}
					destroy_ships = {
						type = destroyer_1
						count = all
					}
					destroy_ships = {
						type = submarine_1
						count = all
					}
					destroy_ships = {
						type = battleship_1
						count = all
					}
					destroy_ships = {
						type = light_cruiser_1
						count = all
					}
					every_army_leader = {
						retire = yes
					}
				}
				SOJ = {
					declare_war_on = {
						target = SOV
						type = annex_everything
					}
					add_ideas = SOV_Slow_industry
					add_ideas = SOV_Damaged_railway
					add_ideas = SOV_Low_support_black_revolution
					inherit_technology = SOV
					unlock_national_focus = SOV_great_purge2
				}
				every_state = {
					limit = {
						is_core_of = SOV
					}
					SOJ = {
						add_state_core = PREV
					}
				}
				every_state = {
					limit = {
						is_core_of = SOJ
						NOT = {
							has_state_flag = anarchist_state_black_revolution
						}
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}

		timeout_effect = {
			custom_effect_tooltip = SOV_army_vigilance_100
			add_to_variable = {
				var = army_vigiliance_black_revolution
				value = 100
			}
			hidden_effect = {
				division_template = {
					name = "Patrul'nyy Ttryad Militsii"
					is_locked = no
					division_names_group = SOV_CAV_01

					regiments = {
						cavalry = { x = 0 y = 0 }
						cavalry = { x = 0 y = 1 }
						cavalry = { x = 1 y = 0 }
						cavalry = { x = 1 y = 1 }
					}
					support = 	{
						military_police = { x = 0 y = 0 }
					}
				}
				every_state = {
					limit = {
						is_core_of = SOV
						NOT = {
							has_state_flag = anarchist_state_black_revolution
						}
					}
					SOJ = {
						add_state_core = PREV
						set_cosmetic_tag = SOJC
					}
				}
				SOV = {
					every_character = {
						limit = {
							OR = {
								is_character = SOV_Georgy_zhukov
								is_character = SOV_Aleksandr_vasilevsky
								is_character = SOV_Boris_shaposhnikov
								is_character = SOV_Nikolai_vatutin
								is_character = SOV_Ivan_konev
								is_character = SOV_Semyon_timoshenko
								is_character = SOV_Kliment_voroshilov_military
								is_character = SOV_Kliment_voroshilov_advisor
								is_character = SOV_Mikhail_tukhachevsky
								is_character = SOV_Semyon_budyonny
								is_character = SOV_Ivan_chernyakhovsky
								is_character = SOV_Issa_pliyev
								is_character = SOV_Leonid_govorov
								is_character = SOV_Grigory_kulik
								is_character = SOV_Kirill_meretskov
								is_character = SOV_Filipp_golikov
								is_character = SOV_Andrey_yeryomenko
								is_character = SOV_Georgiy_zakharov
								is_character = SOV_Yakov_cherevichenko
								is_character = SOV_Nikandr_chibisov
								is_character = SOV_Vasily_kuznetsov
								is_character = SOV_Ivan_fedyuninsky
								is_character = SOV_Maksim_purkayev
								is_character = SOV_Kuzma_galitsky
								is_character = SOV_Markian_popov
								is_character = SOV_Nikolai_berzarin
								is_character = SOV_Kirill_moskalenko
								is_character = SOV_Dmitry_lelyushenko
								is_character = SOV_Andrei_grechko
								is_character = SOV_Rodion_malinovsky
								is_character = SOV_Vasily_chuikov
								is_character = SOV_Konstantin_rokossovsky
								is_character = SOV_Andrey_vlasov
								is_character = SOV_Ivan_kononov
								is_character = SOV_Alexander_gorbatov
								is_character = SOV_Vasily_blyukher
								is_character = SOV_Alexander_yegorov
								is_character = SOV_Maks_reyter
							}
						}
						set_character_flag = sov_character_switched_to_sou
						set_nationality = SOJ
					}
					set_politics = {
						ruling_party = anarchy
					}
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 10
						communism = 50
						anarchy = 20
					}
					add_country_leader_role = {
						character = SOV_Supreme_military_council
						promote_leader = yes
						country_leader = {
							desc = SOV_Supreme_military_council_desc
							ideology = anarchist
							expire = "1965.1.1.1"
							traits = {

							}
						}
					}
					release = SOJ
					set_cosmetic_tag = ANAC
					set_country_flag = black_revolution_turned_civil_war
					set_country_flag = black_revolution_civil_war_in_progress
					clr_country_flag = civil_war_black_revolution
					remove_ideas = SOV_Anarchist_terrorist
					remove_ideas = SOV_army_disorganisation
					remove_ideas = SOV_Home_of_revolution_russia2
					add_ideas = extensive_conscription
					add_ideas = SOV_Determination
					country_event = { id = russia2_russia.404 hours = 1 }
					country_event = { id = russia2_russia.405 hours = 1 }
					country_event = { id = russia2_russia.406 hours = 2 }
					country_event = { id = russia2_russia.407 hours = 2 }
					country_event = { id = russia2_russia.408 hours = 1 }
					country_event = { id = russia2_russia.411 hours = 2 }
					delete_unit_template_and_units = {
						division_template = "Strelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Gornostrelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Motostrelkovaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Kavaleriyskaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "NKVD Pogranichnaya Diviziya"
					}
					delete_unit_template_and_units = {
						division_template = "Mekhanizirovaniy Korpus"
					}
					delete_unit_template_and_units = {
						division_template = "Vozdushno-Desantnaya Brigada"
					}
					dismantle_faction = yes
					retire_ideology_leader = communism
					destroy_ships = {
						type = destroyer
						count = all
					}
					destroy_ships = {
						type = ship_hull_submarine_1
						count = all
					}
					destroy_ships = {
						type = ship_hull_submarine_2
						count = all
					}
					destroy_ships = {
						type = ship_hull_heavy_1
						count = all
					}
					destroy_ships = {
						type = light_cruiser
						count = all
					}
					destroy_ships = {
						type = destroyer_1
						count = all
					}
					destroy_ships = {
						type = submarine_1
						count = all
					}
					destroy_ships = {
						type = battleship_1
						count = all
					}
					destroy_ships = {
						type = light_cruiser_1
						count = all
					}
					every_army_leader = {
						retire = yes
					}
				}
				SOJ = {
					declare_war_on = {
						target = SOV
						type = annex_everything
					}
					add_ideas = SOV_Slow_industry
					add_ideas = SOV_Damaged_railway
					add_ideas = SOV_Low_support_black_revolution
					inherit_technology = SOV
					unlock_national_focus = SOV_great_purge2
				}
				every_state = {
					limit = {
						is_core_of = SOV
					}
					SOJ = {
						add_state_core = PREV
					}
				}
				every_state = {
					limit = {
						is_core_of = SOJ
						NOT = {
							has_state_flag = anarchist_state_black_revolution
						}
					}
					SOV = {
						add_state_core = PREV
					}
				}
			}
		}
	}
}

SOV_crush_the_anti_revolutionary = {

	SOV_recon_the_area = {

		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		on_map_mode = map_only

		state_target = yes

		target_array = SOV.sov_recon_rebel_anarchy_states

		visible = {
			FROM = {
				NOT = {
					has_state_flag = recon_units_scout_place
				}
			}
			PREV = {
				NOT = {
					AND = {
						has_country_flag = found_small_base_1
						has_country_flag = found_small_base_2
						has_country_flag = found_small_base_3
						has_country_flag = found_medium_base_1
						has_country_flag = found_medium_base_2
						has_country_flag = found_large_base
					}
				}
			}

		}

		days_remove = 7

		fire_only_once = yes

		cost = 7

		available = {
			NOT = {
				PREV = {
					has_country_flag = doing_recon_area
				}
			}
		}

		complete_effect = {
			FROM = {
				set_state_flag = recon_units_scout_place
			}
			PREV = {
				set_country_flag = doing_recon_area
			}
		}

		remove_effect = {
			custom_effect_tooltip = SOV_recon_the_area_tt
			if = {
				limit = {
					FROM = {
						has_state_flag = small_counter_revolution_resistance_1
					}
				}
				FROM = {
					save_event_target_as = SOV_successful_recon_small
					set_state_flag = found_small_counter_revolution_base_1
				}
				hidden_effect = {
					PREV = {
						country_event = { id = russia2_russia.416 }
						set_country_flag = found_small_base_1
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_state_flag = small_counter_revolution_resistance_2
					}
				}
				FROM = {
					save_event_target_as = SOV_successful_recon_small
					set_state_flag = found_small_counter_revolution_base_2
				}
				hidden_effect = {
					PREV = {
						country_event = { id = russia2_russia.416 }
						set_country_flag = found_small_base_2
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_state_flag = small_counter_revolution_resistance_3
					}
				}
				FROM = {
					save_event_target_as = SOV_successful_recon_small
					set_state_flag = found_small_counter_revolution_base_3
				}
				hidden_effect = {
					PREV = {
						country_event = { id = russia2_russia.416 }
						set_country_flag = found_small_base_3
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_state_flag = medium_counter_revolution_resistance_1
					}
				}
				FROM = {
					save_event_target_as = SOV_successful_recon_medium
					set_state_flag = found_medium_counter_revolution_base_1
				}
				hidden_effect = {
					PREV = {
						country_event = { id = russia2_russia.417 }
						set_country_flag = found_medium_base_1
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_state_flag = medium_counter_revolution_resistance_2
					}
				}
				FROM = {
					save_event_target_as = SOV_successful_recon_medium
					set_state_flag = found_medium_counter_revolution_base_2
				}
				hidden_effect = {
					PREV = {
						country_event = { id = russia2_russia.417 }
						set_country_flag = found_medium_base_2
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						has_state_flag = large_counter_revolution_resistance_1
					}
				}
				FROM = {
					save_event_target_as = SOV_successful_recon_large
					set_state_flag = found_large_counter_revolution_base
				}
				hidden_effect = {
					PREV = {
						country_event = { id = russia2_russia.418 }
						set_country_flag = found_large_base
					}
				}
			}
			else_if = {
				limit = {
					FROM = {
						NOT = {
							has_state_flag = small_counter_revolution_resistance_1
							has_state_flag = small_counter_revolution_resistance_2
							has_state_flag = small_counter_revolution_resistance_3
							has_state_flag = medium_counter_revolution_resistance_1
							has_state_flag = medium_counter_revolution_resistance_2
							has_state_flag = large_counter_revolution_resistance_1
						}
					}
				}
				FROM = {
					save_event_target_as = SOV_unsuccessful_recon_anti_rev
				}
				hidden_effect = {
					PREV = {
						country_event = { id = russia2_russia.415 }
					}
				}
			}
			PREV = {
				clr_country_flag = doing_recon_area
			}
			remove_from_array = { SOV.sov_recon_rebel_anarchy_states = FROM }
        }

		ai_will_do = {
			factor = 10
		}
	}

	SOV_raid_small_base_1 = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		on_map_mode = map_and_decisions_view

		state_target = yes

		target_array = SOV.sov_small_base_resistance_states_1

		visible = {
			FROM = {
				has_state_flag = found_small_counter_revolution_base_1
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = less_division_small
				divisions_in_state = {
					size < 25
					state = FROM
				}
			}
		}

		days_remove = 7

		available = {
			divisions_in_state = {
				size > 24
				state = FROM
			}
			has_completed_focus = SOV_crush_antirevolutionary
		}

		complete_effect = {

		}

		remove_effect = {
			custom_effect_tooltip = destroyed_base_tt
			FROM = {
				save_event_target_as = SOV_raid_is_done
				clr_state_flag = small_counter_revolution_resistance_1
				clr_state_flag = found_small_counter_revolution_base_1
			}
			SOV = {
				set_country_flag = cleared_small_base_1
				add_popularity = {
					ideology = anarchy
					popularity = 0.05
				}
				hidden_effect = {
					country_event = { id = russia2_russia.431 }
				}
			}
			remove_from_array = { SOV.sov_small_base_resistance_states_1 = FROM }
        }

		ai_will_do = {
			factor = 10
		}
	}

	SOV_raid_small_base_2 = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		on_map_mode = map_and_decisions_view

		state_target = yes

		target_array = SOV.sov_small_base_resistance_states_2

		visible = {
			FROM = {
				has_state_flag = found_small_counter_revolution_base_2
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = less_division_small
				divisions_in_state = {
					size < 25
					state = FROM
				}
			}
		}

		days_remove = 7

		available = {
			divisions_in_state = {
				size > 24
				state = FROM
			}
			has_completed_focus = SOV_crush_antirevolutionary
		}

		complete_effect = {

		}

		remove_effect = {
			custom_effect_tooltip = destroyed_base_tt
			FROM = {
				save_event_target_as = SOV_raid_is_done
				clr_state_flag = small_counter_revolution_resistance_2
				clr_state_flag = found_small_counter_revolution_base_2
			}
			SOV = {
				set_country_flag = cleared_small_base_2
				add_popularity = {
					ideology = anarchy
					popularity = 0.05
				}
				hidden_effect = {
					country_event = { id = russia2_russia.431 }
				}
			}
			remove_from_array = { SOV.sov_small_base_resistance_states_2 = FROM }
        }

		ai_will_do = {
			factor = 10
		}
	}

	SOV_raid_small_base_3 = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		on_map_mode = map_and_decisions_view

		state_target = yes

		target_array = SOV.sov_small_base_resistance_states_3

		visible = {
			FROM = {
				has_state_flag = found_small_counter_revolution_base_3
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = less_division_small
				divisions_in_state = {
					size < 25
					state = FROM
				}
			}
		}

		days_remove = 7

		available = {
			divisions_in_state = {
				size > 24
				state = FROM
			}
			has_completed_focus = SOV_crush_antirevolutionary
		}

		complete_effect = {

		}

		remove_effect = {
			custom_effect_tooltip = destroyed_base_tt
			FROM = {
				save_event_target_as = SOV_raid_is_done
				clr_state_flag = small_counter_revolution_resistance_3
				clr_state_flag = found_small_counter_revolution_base_3
			}
			SOV = {
				set_country_flag = cleared_small_base_3
				add_popularity = {
					ideology = anarchy
					popularity = 0.05
				}
				hidden_effect = {
					country_event = { id = russia2_russia.431 }
				}
			}
			remove_from_array = { SOV.sov_small_base_resistance_states_2 = FROM }
        }

		ai_will_do = {
			factor = 10
		}
	}

	SOV_raid_medium_base_1 = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		on_map_mode = map_and_decisions_view

		state_target = yes

		target_array = SOV.sov_medium_base_resistance_states_1

		visible = {
			FROM = {
				has_state_flag = found_medium_counter_revolution_base_1
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = less_division_medium
				divisions_in_state = {
					size < 40
					state = FROM
				}
			}
		}

		days_remove = 14

		available = {
			divisions_in_state = {
				size > 39
				state = FROM
			}
			has_completed_focus = SOV_crush_antirevolutionary
		}

		complete_effect = {

		}

		remove_effect = {
			custom_effect_tooltip = destroyed_base_tt
			FROM = {
				save_event_target_as = SOV_raid_is_done
				clr_state_flag = medium_counter_revolution_resistance_1
				clr_state_flag = found_medium_counter_revolution_base_1
			}
			SOV = {
				set_country_flag = cleared_medium_base_1
				add_popularity = {
					ideology = anarchy
					popularity = 0.05
				}
				hidden_effect = {
					country_event = { id = russia2_russia.431 }
				}
			}
			remove_from_array = { SOV.sov_medium_base_resistance_states_1 = FROM }
        }

		ai_will_do = {
			factor = 10
		}
	}

	SOV_raid_medium_base_2 = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		on_map_mode = map_and_decisions_view

		state_target = yes

		target_array = SOV.sov_medium_base_resistance_states_2

		visible = {
			FROM = {
				has_state_flag = found_medium_counter_revolution_base_2
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = less_division_medium
				divisions_in_state = {
					size < 40
					state = FROM
				}
			}
		}

		days_remove = 14

		available = {
			divisions_in_state = {
				size > 39
				state = FROM
			}
			has_completed_focus = SOV_crush_antirevolutionary
		}

		complete_effect = {

		}

		remove_effect = {
			custom_effect_tooltip = destroyed_base_tt
			FROM = {
				save_event_target_as = SOV_raid_is_done
				clr_state_flag = medium_counter_revolution_resistance_2
				clr_state_flag = found_medium_counter_revolution_base_2
			}
			SOV = {
				set_country_flag = cleared_medium_base_2
				add_popularity = {
					ideology = anarchy
					popularity = 0.05
				}
				hidden_effect = {
					country_event = { id = russia2_russia.431 }
				}
			}
			remove_from_array = { SOV.sov_medium_base_resistance_states_2 = FROM }
        }

		ai_will_do = {
			factor = 10
		}
	}

	SOV_raid_large_base = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		on_map_mode = map_and_decisions_view

		state_target = yes

		target_array = SOV.sov_large_base_resistance_states_1

		visible = {
			FROM = {
				has_state_flag = found_large_counter_revolution_base
			}
		}

		cancel_trigger = {
			custom_trigger_tooltip = {
				tooltip = less_division_large
				divisions_in_state = {
					size < 65
					state = FROM
				}
			}
		}

		days_remove = 21

		available = {
			divisions_in_state = {
				size > 64
				state = FROM
			}
			has_completed_focus = SOV_crush_antirevolutionary
		}

		complete_effect = {

		}

		remove_effect = {
			custom_effect_tooltip = destroyed_base_tt
			FROM = {
				save_event_target_as = SOV_raid_is_done
				clr_state_flag = large_counter_revolution_resistance_1
				clr_state_flag = found_large_counter_revolution_base
			}
			SOV = {
				set_country_flag = cleared_large_base
				add_popularity = {
					ideology = anarchy
					popularity = 0.05
				}
				hidden_effect = {
					country_event = { id = russia2_russia.431 }
				}
			}
			remove_from_array = { SOV.sov_large_base_resistance_states_1 = FROM }
        }

		ai_will_do = {
			factor = 10
		}
	}

	SOV_raid_headquarters = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		days_remove = 15

		fire_only_once = yes

		cost = 10

		available = {
			custom_trigger_tooltip = {
				tooltip = cleared_all_small_base
				has_country_flag = cleared_small_base_1
				has_country_flag = cleared_small_base_2
				has_country_flag = cleared_small_base_3
			}
			custom_trigger_tooltip = {
				tooltip = cleared_all_medium_base
				has_country_flag = cleared_medium_base_1
				has_country_flag = cleared_medium_base_2
			}
			custom_trigger_tooltip = {
				tooltip = cleared_all_large_base
				has_country_flag = cleared_large_base
			}
		}

		complete_effect = {

		}

		remove_effect = {
			remove_ideas = SOV_Anti_revolutionary
			add_popularity = {
				ideology = anarchy
				popularity = 0.05
			}
			custom_effect_tooltip = SOV_raid_headquarters_tt
			hidden_effect = {
				SOV = {
					country_event = { id = russia2_russia.419 }
				}
			}
			clear_array = SOV.sov_recon_rebel_anarchy_states
        }

		ai_will_do = {
			factor = 10
		}
	}

	SOV_counter_revolutionary_raid = {

		icon = GFX_decision_generic_scorched_earth

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_idea = SOV_Anti_revolutionary
			}
		}

		activation = {
			has_idea = SOV_Anti_revolutionary
		}

		days_mission_timeout = 60

		is_good = no

		timeout_effect = {
			SOV = {
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -750
				}
				add_equipment_to_stockpile = {
					type = support_equipment
					amount = -25
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment
					amount = -25
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment
					amount = -50
				}
				random_owned_controlled_state = {
					limit = {
						non_damaged_building_level = {
							building = industrial_complex level > 0
						}
					}
					damage_building = {
						type = industrial_complex damage = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						non_damaged_building_level = {
							building = arms_factory level > 0
						}
					}
					damage_building = {
						type = arms_factory damage = 1
					}
				}
				random_owned_controlled_state = {
					limit = {
						non_damaged_building_level = {
							building = infrastructure level > 1
						}
					}
					damage_building = {
						type = infrastructure
						damage = 1
					}
				}
			}
		}

		complete_effect = {

		}
	}
}

SOV_banditry_decision = {

	SOV_deal_bandits_steppe = { #Steppe

		icon = GFX_decision_oppression

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_steppe_bandits
			}
		}

		available = {
			divisions_in_state = { #10
				size > 9
				state = 586
			}
			divisions_in_state = { #15
				size > 4
				state = 405
			}
			divisions_in_state = { #20
				size > 4
				state = 584
			}
			divisions_in_state = { #25
				size > 4
				state = 742
			}
			divisions_in_state = { #30
				size > 4
				state = 732
			}
			divisions_in_state = { #36
				size > 4
				state = 831
			}
			divisions_in_state = { #40
				size > 4
				state = 402
			}
			divisions_in_state = { #45
				size > 4
				state = 407
			}
			divisions_in_state = { #50
				size > 4
				state = 590
			}
			NOT = {
				has_country_flag = put_bounty_bandits_steppe
				has_country_flag = dealt_with_steppe_bandits
			}
		}

		cancel_trigger = {
			OR = {
				divisions_in_state = { #10
					size < 10
					state = 586
				}
				divisions_in_state = { #15
					size < 5
					state = 405
				}
				divisions_in_state = { #20
					size < 5
					state = 584
				}
				divisions_in_state = { #25
					size < 5
					state = 742
				}
				divisions_in_state = { #30
					size < 5
					state = 732
				}
				divisions_in_state = { #36
					size < 5
					state = 831
				}
				divisions_in_state = { #40
					size < 5
					state = 402
				}
				divisions_in_state = { #45
					size < 5
					state = 407
				}
				divisions_in_state = { #50
					size < 5
					state = 590
				}
				has_country_flag = put_bounty_bandits_steppe
				has_country_flag = dealt_with_steppe_bandits
			}
		}

		days_remove = 50

		complete_effect = {

		}

		remove_effect = {
			set_country_flag = dealt_with_steppe_bandits
			custom_effect_tooltip = deal_bandits_steppe_tt
			add_popularity = {
				ideology = anarchy
				popularity = 0.03
			}
			hidden_effect = {
				270 = {
					set_state_name = "the Great Steppe"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_deal_bandits_arctic = { #Arctic

		icon = GFX_decision_oppression

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_arctic_bandits
			}
		}

		available = {
			divisions_in_state = { #5
				size > 4
				state = 213
			}
			divisions_in_state = { #10
				size > 4
				state = 214
			}
			divisions_in_state = { #15
				size > 4
				state = 825
			}
			divisions_in_state = { #20
				size > 4
				state = 216
			}
			divisions_in_state = { #25
				size > 4
				state = 397
			}
			NOT = {
				has_country_flag = put_bounty_bandits_arctic
				has_country_flag = dealt_with_arctic_bandits
			}
		}

		cancel_trigger = {
			OR = {
				divisions_in_state = { #5
					size < 5
					state = 213
				}
				divisions_in_state = { #10
					size < 5
					state = 214
				}
				divisions_in_state = { #15
					size < 5
					state = 825
				}
				divisions_in_state = { #20
					size < 5
					state = 216
				}
				divisions_in_state = { #25
					size < 5
					state = 397
				}
				has_country_flag = put_bounty_bandits_arctic
				has_country_flag = dealt_with_arctic_bandits
			}
		}

		days_remove = 35

		complete_effect = {

		}

		remove_effect = {
			set_country_flag = dealt_with_arctic_bandits
			custom_effect_tooltip = deal_bandits_arctic_tt
			add_popularity = {
				ideology = anarchy
				popularity = 0.03
			}
			hidden_effect = {
				641 = {
					set_state_name = "the Arctic"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_deal_bandits_far_east = { #Far East

		icon = GFX_decision_oppression

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_far_east_bandits
			}
		}

		available = {
			divisions_in_state = { #5
				size > 4
				state = 408
			}
			divisions_in_state = { #10
				size > 4
				state = 657
			}
			divisions_in_state = { #15
				size > 4
				state = 563
			}
			divisions_in_state = { #20
				size > 4
				state = 562
			}
			NOT = {
				has_country_flag = put_bounty_bandits_far_east
				has_country_flag = dealt_with_far_east_bandits
			}
		}

		cancel_trigger = {
			OR = {
				divisions_in_state = { #5
					size < 5
					state = 408
				}
				divisions_in_state = { #10
					size < 5
					state = 657
				}
				divisions_in_state = { #15
					size < 5
					state = 563
				}
				divisions_in_state = { #20
					size < 5
					state = 562
				}
				has_country_flag = put_bounty_bandits_far_east
				has_country_flag = dealt_with_far_east_bandits
			}
		}

		days_remove = 30

		complete_effect = {

		}

		remove_effect = {
			set_country_flag = dealt_with_far_east_bandits
			custom_effect_tooltip = deal_bandits_far_east_tt
			add_popularity = {
				ideology = anarchy
				popularity = 0.03
			}
			hidden_effect = {
				711 = {
					set_state_name = "the Far East"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_deal_bandits_western_siberia = { #Western Siberia

		icon = GFX_decision_oppression

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_western_siberia_bandits
			}
		}

		available = {
			divisions_in_state = { #5
				size > 4
				state = 570
			}
			divisions_in_state = { #10
				size > 4
				state = 577
			}
			divisions_in_state = { #15
				size > 4
				state = 516
			}
			divisions_in_state = { #20
				size > 4
				state = 568
			}
			divisions_in_state = { #25
				size > 4
				state = 576
			}
			divisions_in_state = { #30
				size > 4
				state = 580
			}
			divisions_in_state = { #35
				size > 4
				state = 653
			}
			divisions_in_state = { #40
				size > 4
				state = 572
			}
			NOT = {
				has_country_flag = put_bounty_bandits_western_siberia
				has_country_flag = dealt_with_western_siberia_bandits
			}
		}

		cancel_trigger = {
			OR = {
				divisions_in_state = { #5
					size < 5
					state = 570
				}
				divisions_in_state = { #10
					size < 5
					state = 577
				}
				divisions_in_state = { #15
					size < 5
					state = 516
				}
				divisions_in_state = { #20
					size < 5
					state = 568
				}
				divisions_in_state = { #25
					size < 5
					state = 576
				}
				divisions_in_state = { #30
					size < 5
					state = 580
				}
				divisions_in_state = { #35
					size < 5
					state = 653
				}
				divisions_in_state = { #40
					size < 5
					state = 572
				}
				has_country_flag = put_bounty_bandits_western_siberia
				has_country_flag = dealt_with_western_siberia_bandits
			}
		}

		days_remove = 40

		complete_effect = {

		}

		remove_effect = {
			set_country_flag = dealt_with_western_siberia_bandits
			custom_effect_tooltip = deal_bandits_western_siberia_tt
			add_popularity = {
				ideology = anarchy
				popularity = 0.03
			}
			hidden_effect = {
				299 = {
					set_state_name = "Western Siberia"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_deal_bandits_kuban_caucasus = { #Kuban and Caucasus

		icon = GFX_decision_oppression

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_kuban_caucasus_bandits
			}
		}

		available = {
			divisions_in_state = { #10
				size > 9
				state = 217
			}
			divisions_in_state = { #20
				size > 9
				state = 234
			}
			divisions_in_state = { #25
				size > 4
				state = 237
			}
			divisions_in_state = { #30
				size > 4
				state = 231
			}
			divisions_in_state = { #35
				size > 4
				state = 229
			}
			divisions_in_state = { #40
				size > 4
				state = 230
			}
			divisions_in_state = { #45
				size > 4
				state = 232
			}
			divisions_in_state = { #50
				size > 4
				state = 829
			}
			NOT = {
				has_country_flag = put_bounty_bandits_kuban_caucasus
				has_country_flag = dealt_with_kuban_caucasus_bandits
			}
		}

		cancel_trigger = {
			OR = {
				divisions_in_state = { #10
					size < 10
					state = 217
				}
				divisions_in_state = { #20
					size < 10
					state = 234
				}
				divisions_in_state = { #25
					size < 5
					state = 237
				}
				divisions_in_state = { #30
					size < 5
					state = 231
				}
				divisions_in_state = { #35
					size < 5
					state = 229
				}
				divisions_in_state = { #40
					size < 5
					state = 230
				}
				divisions_in_state = { #45
					size < 5
					state = 232
				}
				divisions_in_state = { #50
					size < 5
					state = 829
				}
				has_country_flag = put_bounty_bandits_kuban_caucasus
				has_country_flag = dealt_with_kuban_caucasus_bandits
			}
		}

		days_remove = 50

		complete_effect = {

		}

		remove_effect = {
			set_country_flag = dealt_with_kuban_caucasus_bandits
			custom_effect_tooltip = deal_bandits_kuban_caucasus_tt
			add_popularity = {
				ideology = anarchy
				popularity = 0.03
			}
			hidden_effect = {
				704 = {
					set_state_name = "Kuban and the Caucasus"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_deal_bandits_transvolga = { #Transvolga

		icon = GFX_decision_oppression

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_transvolga_region_bandits
			}
		}

		available = {
			divisions_in_state = { #10
				size > 9
				state = 251
			}
			divisions_in_state = { #15
				size > 4
				state = 398
			}
			divisions_in_state = { #20
				size > 4
				state = 400
			}
			divisions_in_state = { #25
				size > 4
				state = 399
			}
			divisions_in_state = { #30
				size > 4
				state = 256
			}
			divisions_in_state = { #35
				size > 4
				state = 582
			}
			divisions_in_state = { #40
				size > 4
				state = 651
			}
			NOT = {
				has_country_flag = put_bounty_bandits_transvolga_region
				has_country_flag = dealt_with_transvolga_region_bandits
			}
		}

		cancel_trigger = {
			OR = {
				divisions_in_state = { #10
					size < 10
					state = 251
				}
				divisions_in_state = { #15
					size < 5
					state = 398
				}
				divisions_in_state = { #20
					size < 5
					state = 400
				}
				divisions_in_state = { #25
					size < 5
					state = 399
				}
				divisions_in_state = { #30
					size < 5
					state = 256
				}
				divisions_in_state = { #35
					size < 5
					state = 582
				}
				divisions_in_state = { #40
					size < 5
					state = 651
				}
				has_country_flag = put_bounty_bandits_transvolga_region
				has_country_flag = dealt_with_transvolga_region_bandits
			}
		}

		days_remove = 40

		complete_effect = {

		}

		remove_effect = {
			set_country_flag = dealt_with_transvolga_region_bandits
			custom_effect_tooltip = deal_bandits_transvolga_region_tt
			add_popularity = {
				ideology = anarchy
				popularity = 0.03
			}
			hidden_effect = {
				646 = {
					set_state_name = "Transvolga"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_deal_bandits_western_russia = { #Western Russia

		icon = GFX_decision_oppression

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_western_russia_bandits
			}
		}

		available = {
			divisions_in_state = { #10
				size > 9
				state = 202
			}
			divisions_in_state = { #20
				size > 9
				state = 195
			}
			divisions_in_state = { #25
				size > 4
				state = 206
			}
			divisions_in_state = { #30
				size > 4
				state = 200
			}
			divisions_in_state = { #35
				size > 4
				state = 137
			}
			divisions_in_state = { #40
				size > 4
				state = 242
			}
			divisions_in_state = { #45
				size > 4
				state = 227
			}
			divisions_in_state = { #50
				size > 4
				state = 241
			}
			NOT = {
				has_country_flag = put_bounty_bandits_western_russia
				has_country_flag = dealt_with_western_russia_bandits
			}
		}

		cancel_trigger = {
			OR = {
				divisions_in_state = { #10
					size < 10
					state = 202
				}
				divisions_in_state = { #20
					size < 10
					state = 195
				}
				divisions_in_state = { #25
					size < 5
					state = 206
				}
				divisions_in_state = { #30
					size < 5
					state = 200
				}
				divisions_in_state = { #35
					size < 5
					state = 137
				}
				divisions_in_state = { #40
					size < 5
					state = 242
				}
				divisions_in_state = { #45
					size < 5
					state = 227
				}
				divisions_in_state = { #50
					size < 5
					state = 241
				}
				has_country_flag = put_bounty_bandits_western_russia
				has_country_flag = dealt_with_western_russia_bandits
			}
		}

		days_remove = 50

		complete_effect = {

		}

		remove_effect = {
			set_country_flag = dealt_with_western_russia_bandits
			custom_effect_tooltip = deal_bandits_western_russia_tt
			add_popularity = {
				ideology = anarchy
				popularity = 0.03
			}
			hidden_effect = {
				709 = {
					set_state_name = "Western Russia"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_put_bounty_steppe = { #Steppe Bounty

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_steppe_bandits
			}
			has_completed_focus = SOV_helping_hand
		}

		available = {
			has_completed_focus = SOV_helping_hand
			NOT = {
				has_country_flag = dealt_with_steppe_bandits
			}
		}

		on_map_mode = map_and_decisions_view

		cancel_trigger = {
			has_country_flag = dealt_with_steppe_bandits
		}

		cost = 40

		days_remove = 40

		complete_effect = {
			set_country_flag = put_bounty_bandits_steppe
		}

		remove_effect = {
			add_to_variable = {
				var = bounty_lead_to_chaos
				value = 1
			}
			set_country_flag = dealt_with_steppe_bandits
			custom_effect_tooltip = deal_bandits_steppe_tt
			add_manpower = -30000
			hidden_effect = {
				270 = {
					set_state_name = "the Great Steppe"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_put_bounty_arctic = { #Arctic Bounty

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_arctic_bandits
			}
			has_completed_focus = SOV_helping_hand
		}

		available = {
			has_completed_focus = SOV_helping_hand
			NOT = {
				has_country_flag = dealt_with_arctic_bandits
			}
		}

		on_map_mode = map_and_decisions_view

		cancel_trigger = {
			has_country_flag = dealt_with_arctic_bandits
		}

		cost = 25

		days_remove = 25

		complete_effect = {
			set_country_flag = put_bounty_bandits_arctic
		}

		remove_effect = {
			add_to_variable = {
				var = bounty_lead_to_chaos
				value = 1
			}
			set_country_flag = dealt_with_arctic_bandits
			custom_effect_tooltip = deal_bandits_arctic_tt
			add_manpower = -10000
			hidden_effect = {
				641 = {
					set_state_name = "the Arctic"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_put_bounty_far_east = { #Far East Bounty

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_far_east_bandits
			}
			has_completed_focus = SOV_helping_hand
		}

		available = {
			has_completed_focus = SOV_helping_hand
			NOT = {
				has_country_flag = dealt_with_far_east_bandits
			}
		}

		on_map_mode = map_and_decisions_view

		cancel_trigger = {
			has_country_flag = dealt_with_far_east_bandits
		}

		cost = 25

		days_remove = 25

		complete_effect = {
			set_country_flag = put_bounty_bandits_far_east
		}

		remove_effect = {
			add_to_variable = {
				var = bounty_lead_to_chaos
				value = 1
			}
			set_country_flag = dealt_with_far_east_bandits
			custom_effect_tooltip = deal_bandits_far_east_tt
			add_manpower = -10000
			hidden_effect = {
				711 = {
					set_state_name = "the Far East"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_put_bounty_western_siberia = { #Western Siberia Bounty

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_western_siberia_bandits
			}
			has_completed_focus = SOV_helping_hand
		}

		available = {
			has_completed_focus = SOV_helping_hand
			NOT = {
				has_country_flag = dealt_with_western_siberia_bandits
			}
		}

		on_map_mode = map_and_decisions_view

		cancel_trigger = {
			has_country_flag = dealt_with_western_siberia_bandits
		}

		cost = 30

		days_remove = 30

		complete_effect = {
			set_country_flag = put_bounty_bandits_western_siberia
		}

		remove_effect = {
			add_to_variable = {
				var = bounty_lead_to_chaos
				value = 1
			}
			set_country_flag = dealt_with_western_siberia_bandits
			custom_effect_tooltip = deal_bandits_western_siberia_tt
			add_manpower = -20000
			hidden_effect = {
				299 = {
					set_state_name = "Western Siberia"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_put_bounty_kuban_caucasus = { #Kuban and Caucasus Bounty

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_kuban_caucasus_bandits
			}
			has_completed_focus = SOV_helping_hand
		}

		available = {
			has_completed_focus = SOV_helping_hand
			NOT = {
				has_country_flag = dealt_with_kuban_caucasus_bandits
			}
		}

		on_map_mode = map_and_decisions_view

		cancel_trigger = {
			has_country_flag = dealt_with_kuban_caucasus_bandits
		}

		cost = 40

		days_remove = 40

		complete_effect = {
			set_country_flag = put_bounty_bandits_kuban_caucasus
		}

		remove_effect = {
			add_to_variable = {
				var = bounty_lead_to_chaos
				value = 1
			}
			set_country_flag = dealt_with_kuban_caucasus_bandits
			custom_effect_tooltip = deal_bandits_kuban_caucasus_tt
			add_manpower = -30000
			hidden_effect = {
				704 = {
					set_state_name = "Kuban and the Caucasus"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_put_bounty_transvolga = { #Transvolga Bounty

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_transvolga_region_bandits
			}
			has_completed_focus = SOV_helping_hand
		}

		available = {
			has_completed_focus = SOV_helping_hand
			NOT = {
				has_country_flag = dealt_with_transvolga_region_bandits
			}
		}

		on_map_mode = map_and_decisions_view

		cancel_trigger = {
			has_country_flag = dealt_with_transvolga_region_bandits
		}

		cost = 30

		days_remove = 30

		complete_effect = {
			set_country_flag = put_bounty_bandits_transvolga_region
		}

		remove_effect = {
			add_to_variable = {
				var = bounty_lead_to_chaos
				value = 1
			}
			set_country_flag = dealt_with_transvolga_region_bandits
			custom_effect_tooltip = deal_bandits_transvolga_region_tt
			add_manpower = -20000
			hidden_effect = {
				646 = {
					set_state_name = "Transvolga"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_put_bounty_western_russia = { #Western Russia Bounty

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = dealt_with_western_russia_bandits
			}
			has_completed_focus = SOV_helping_hand
		}

		available = {
			has_completed_focus = SOV_helping_hand
			NOT = {
				has_country_flag = dealt_with_western_russia_bandits
			}
		}

		on_map_mode = map_and_decisions_view

		cancel_trigger = {
			has_country_flag = dealt_with_western_russia_bandits
		}

		cost = 40

		days_remove = 40

		complete_effect = {
			set_country_flag = put_bounty_bandits_western_russia
		}

		remove_effect = {
			add_to_variable = {
				var = bounty_lead_to_chaos
				value = 1
			}
			set_country_flag = dealt_with_western_russia_bandits
			custom_effect_tooltip = deal_bandits_western_russia_tt
			add_manpower = -30000
			hidden_effect = {
				709 = {
					set_state_name = "Western Russia"
					save_event_target_as = bandit_region_state_name
				}
				country_event = { id = russia2_russia.441 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_end_bandits_situation = {

		icon = GFX_decision_generic_arrest

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_idea = SOV_Bandits_problem
			has_completed_focus = SOV_deal_with_banditry
		}

		available = {
			has_country_flag = dealt_with_steppe_bandits
			has_country_flag = dealt_with_arctic_bandits
			has_country_flag = dealt_with_far_east_bandits
			has_country_flag = dealt_with_western_siberia_bandits
			has_country_flag = dealt_with_kuban_caucasus_bandits
			has_country_flag = dealt_with_transvolga_region_bandits
			has_country_flag = dealt_with_western_russia_bandits
		}

		complete_effect = {
			remove_ideas = SOV_Bandits_problem
			if = {
				limit = {
					check_variable = {
						var = bounty_lead_to_chaos
						value = 4
						compare = greater_than_or_equals
					}
				}
				add_to_variable = {
					var = chaos_triumphed_over_order
					value = 1
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_chaos_all_over_russia = {

	SOV_restore_order = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			NOT = {
				has_idea = SOV_Bandits_problem
				has_idea = SOV_Anti_revolutionary
			}
			custom_trigger_tooltip = {
				tooltip = not_has_sov_no_work
				NOT = {
					has_idea = SOV_No_work
					has_idea = SOV_No_work_2
				}
			}
		}

		complete_effect = {
			#if = { #TODO Change back to normal when the second path is finished
			#	limit = {
			#		check_variable = {
			#			var = chaos_triumphed_over_order
			#			value = 2
			#			compare = greater_than_or_equals
			#		}
			#		has_country_flag = black_revolution_turned_civil_war
			#	}
			#	country_event = { id = russia2_russia.443 }
			#}
			#else ={
			#	country_event = { id = russia2_russia.442 }
			#}
			country_event = { id = russia2_russia.442 }
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_the_end_of_anarchism_mission = {

		icon = generic_civil_support

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
				has_idea = SOV_Useless_money
			}
		}

		activation = {
			has_idea = SOV_Useless_money
		}

		visible = {

		}

		is_good = no

		fire_only_once = yes

		days_mission_timeout = 1095

		cancel_trigger = {
			NOT = {
				OR = {
					exists = yes
					has_government = anarchy
				}
			}
		}

		timeout_effect = {
			custom_effect_tooltip = the_end_of_anarchy_mission_tt
            hidden_effect = {
				release = KHI
				release = VLA
				release = YAK
				release = CKK
				release = TAY
				release = YAM
				release = OVO
				release = BYA
				release = ALT
				release = NEN
				release = BSK
				release = UDM
				release = MEL
				release = CHU
				release = VGE
				release = KKP
				release = BUK
				release = ABK
				release = KBK
				release = NOA
				release = CIN
				BSK = {
					transfer_state = 652
				}
				VGE = {
					transfer_state = 401
				}
				release = PRM
				release = TAT
				release = KAR
				release = KMI
				release = VYA
				release = STP
				release = NOV
				release = EFR
				release = URA
				release = SIB
				release = CRI
				release = CIR
				release = DAG
				release = VLG
				release = ROS
				release = KAL
				release = UKR
				release = BLR
				release = KAZ
				release = TMS
				release = UZB
				release = TAJ
				release = KYR
				release = GEO
				release = ARM
				release = AZR
				GPM = {
					add_state_core = 219
					add_state_core = 223
					add_state_core = 254
					add_state_core = 253
					add_state_core = 248
					add_state_core = 247
					add_state_core = 246
					add_state_core = 242
					add_state_core = 205
					add_state_core = 243
					add_state_core = 224
					add_state_core = 220
					add_state_core = 252
					add_state_core = 255
					add_state_core = 239
					add_state_core = 260
					add_state_core = 240
					add_state_core = 222
					add_state_core = 250
					add_state_core = 257
					add_state_core = 258
					every_state = {
						limit = {
							is_core_of = GPM
						}
						GPM = {
							transfer_state = PREV
						}
					}
					every_state = {
						limit = {
							is_core_of = SOV
						}
						remove_core_of = SOV
					}
				}
				for_each_scope_loop = {
					array = global.russia_reworked_russian_states

					if = {
						limit = {
							exists = yes
						}
						meta_effect = {
							text = {
								division_template = {
									name = "[TEMPLATE_NAME]"
									is_locked = no

									regiments = {
										infantry = { x = 0 y = 0 }
										infantry = { x = 0 y = 1 }
										infantry = { x = 0 y = 2 }
										infantry = { x = 1 y = 0 }
										infantry = { x = 1 y = 1 }
										infantry = { x = 1 y = 2 }
										infantry = { x = 2 y = 0 }
										infantry = { x = 2 y = 1 }
										infantry = { x = 2 y = 2 }
									}
									support = {
										artillery = { x = 0 y = 0 }
									}
								}
							}
							TEMPLATE_NAME = "[THIS.GetAdjective] Military Police"
						}
						meta_effect = {
							text = {
								division_template = {
									name = "[TEMPLATE_NAME]"
									is_locked = no

									regiments = {
										light_armor = { x = 0 y = 0 }
										light_armor = { x = 0 y = 1 }
										light_armor = { x = 1 y = 0 }
										light_armor = { x = 1 y = 1 }
										light_armor = { x = 1 y = 2 }
										motorized = { x = 2 y = 0 }
										motorized = { x = 2 y = 1 }
										motorized = { x = 2 y = 2 }
										motorized = { x = 2 y = 3 }
									}
								}
							}
							TEMPLATE_NAME = "[THIS.Capital.GetName] Tank Brigade"
						}

						set_temp_variable = { num_divisions_russian_state = THIS.owned_controlled_states }
						set_temp_variable = { tank_division_russian_state = 0 }
						clamp_temp_variable = {
							var = num_divisions_russian_state
							min = 3
							max = 50
						}

						while_loop_effect = {
							break = break
							limit = {
								check_variable = {
									var = num_divisions_russian_state
									value = 1
									compare = greater_than_or_equals
								}
							}

							random_owned_controlled_state = {
								meta_effect = {
									text = {
										create_unit = {
											division = "name = \"[UNIT_NAME]\" division_template = \"[TEMPLATE_NAME]\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
											owner = PREV
											allow_spawning_on_enemy_provs = yes
										}
									}
									UNIT_NAME = "[PREV.GetAdjective] Military Police [?num_divisions_russian_state]"
									TEMPLATE_NAME = "[PREV.GetAdjective] Military Police"
								}
							}
							add_to_temp_variable = { tank_division_russian_state = 1 }
							if = {
								limit = {
									check_variable = {
										var = tank_division_russian_state
										value = 10
										compare = greater_than_or_equals
									}
								}
								capital_scope = {
									meta_effect = {
										text = {
											create_unit = {
												division = "name = \"[UNIT_NAME]\" division_template = \"[TEMPLATE_NAME]\" start_experience_factor = 0.6 start_equipment_factor = 1.0"
												owner = PREV
												allow_spawning_on_enemy_provs = yes
											}
										}
										UNIT_NAME = "[THIS.GetName] Tank Brigade"
										TEMPLATE_NAME = "[THIS.GetName] Tank Brigade"
									}
								}
								set_temp_variable = { tank_division_russian_state = 0 }
							}
							subtract_from_temp_variable = { num_divisions_russian_state = 1 }
						}
						delete_unit_template_and_units = {
							division_template = "Strelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Gornostrelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Motostrelkovaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Kavaleriyskaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "NKVD Pogranichnaya Diviziya"
						}
						delete_unit_template_and_units = {
							division_template = "Mekhanizirovaniy Korpus"
						}
					}
				}
			}
        }

		complete_effect = {
			add_popularity = {
			    ideology = anarchy
			    popularity = 0.02
			}
		}
	}
}

SOV_supreme_court_decisions = {

	SOV_improve_from_conditions = {

		icon = generic_police_action

		on_map_mode = map_and_decisions_view

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_war_with = FROM
			any_state = {
				is_owned_by = FROM
				is_controlled_by = ROOT
				has_resistance = yes
				NOT = {
					is_core_of = ROOT
				}
			}
			has_completed_focus = SOV_the_supreme_court
			has_government = democratic
		}

		target_root_trigger = {
			has_completed_focus = SOV_the_supreme_court
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_war_with = ROOT
			}
		}

		available = {
			has_war_with = FROM
		}

		highlight_states = {
			highlight_states_trigger = {
				is_owned_by = FROM
				is_controlled_by = ROOT
				has_resistance = yes
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		cost = var:sov_improve_from_conditions_cost

		complete_effect = {
			every_state = {
				limit = {
					is_owned_by = FROM
					is_controlled_by = ROOT
					has_resistance = yes
					NOT = {
						is_core_of = ROOT
					}
				}
				add_compliance = 10
				add_resistance = -10
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_track_stalin_decision = {

	SOV_search_for_stalin = {

		icon = GFX_decision_infiltrate_state

		allowed = {
			original_tag = SOV
		}

		on_map_mode = map_only

		state_target = yes

		target_array = global.sov_track_available_states

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

		days_remove = 10

		fire_only_once = yes

		cost = 10

		available = {
			NOT = {
				has_country_flag = is_searching_for_stalin
			}
		}

		complete_effect = {
			set_country_flag = is_searching_for_stalin
			add_to_variable = { sov_stalin_track_tries = 1 }
		}

		remove_effect = {
			hidden_effect = {
				clr_country_flag = is_searching_for_stalin
				if = {
					limit = {
						FROM = {
							has_state_flag = sov_stalin_hidding_state
						}
					}
					set_country_flag = sov_stalin_track_found
					if = {
						limit = {
							FROM = {
								CONTROLLER = {
									tag = ROOT
								}
							}
						}
						ROOT = {
							country_event = { id = russia2_russia.434 }
						}
					}
					else = {
						FROM = {
							clr_state_flag = sov_stalin_hidding_state
							set_state_flag = sov_stalin_found_state
							state_event = { id = russia2_russia.432 trigger_for = ROOT }
						}
					}
					FROM = {
						save_event_target_as = stalin_hiding_state_target
					}
					remove_from_array = { global.sov_track_available_states = FROM }
				}
				else = {
					FROM = {
						state_event = { id = russia2_russia.444 trigger_for = ROOT }
					}
					remove_from_array = { global.sov_track_available_states = FROM }
				}
			}
        }

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_anarchism_election = {

	SOV_increase_popularity_intelect_party = {

		icon = GFX_decision_SOV_place_hq

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^0
				value = 100
				compare = less_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_increase_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^0
					value = 100
					compare = less_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_increase_5
			add_to_variable = {
				var = sov_anarchist_election_parties^0
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_increase_popularity_civilian_industry_party = {

		icon = GFX_decision_generic_factory

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^1
				value = 100
				compare = less_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_increase_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^1
					value = 100
					compare = less_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_increase_5
			add_to_variable = {
				var = sov_anarchist_election_parties^1
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_increase_popularity_military_industry_party = {

		icon = GFX_decision_generic_industry

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^2
				value = 100
				compare = less_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_increase_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^2
					value = 100
					compare = less_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_increase_5
			add_to_variable = {
				var = sov_anarchist_election_parties^2
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_increase_popularity_militarist_party = {

		icon = GFX_decision_generic_army_support

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^3
				value = 100
				compare = less_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_increase_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^3
					value = 100
					compare = less_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_increase_5
			add_to_variable = {
				var = sov_anarchist_election_parties^3
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_increase_popularity_aviation_party = {

		icon = GFX_decision_generic_air

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^4
				value = 100
				compare = less_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_increase_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^4
					value = 100
					compare = less_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_increase_5
			add_to_variable = {
				var = sov_anarchist_election_parties^4
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_increase_popularity_naval_party = {

		icon = GFX_decision_generic_naval

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^5
				value = 100
				compare = less_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_increase_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^5
					value = 100
					compare = less_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_increase_5
			add_to_variable = {
				var = sov_anarchist_election_parties^5
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_increase_popularity_logistic_party = {

		icon = GFX_decision_generic_decision

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^6
				value = 100
				compare = less_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_increase_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^6
					value = 100
					compare = less_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_increase_5
			add_to_variable = {
				var = sov_anarchist_election_parties^6
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_increase_popularity_internal_sec_party = {

		icon = GFX_decision_onmap_recruit_operative

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^7
				value = 100
				compare = less_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_increase_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^7
					value = 100
					compare = less_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_increase_5
			add_to_variable = {
				var = sov_anarchist_election_parties^7
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_increase_popularity_countryside_party = {

		icon = GFX_decision_generic_construction

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^8
				value = 100
				compare = less_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_increase_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^8
					value = 100
					compare = less_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_increase_5
			add_to_variable = {
				var = sov_anarchist_election_parties^8
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_increase_popularity_theorist_party = {

		icon = GFX_decision_generic_research

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^9
				value = 100
				compare = less_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_increase_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^9
					value = 100
					compare = less_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_increase_5
			add_to_variable = {
				var = sov_anarchist_election_parties^9
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_decrease_popularity_intelect_party = {

		icon = GFX_decision_SOV_place_hq

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^0
				value = 4.99
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_decrease_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^0
					value = 4.99
					compare = greater_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_decrease_5
			subtract_from_variable = {
				var = sov_anarchist_election_parties^0
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_decrease_popularity_civilian_industry_party = {

		icon = GFX_decision_generic_factory

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^1
				value = 4.99
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_decrease_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^1
					value = 4.99
					compare = greater_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_decrease_5
			subtract_from_variable = {
				var = sov_anarchist_election_parties^1
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_decrease_popularity_military_industry_party = {

		icon = GFX_decision_generic_industry

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^2
				value = 4.99
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_decrease_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^2
					value = 4.99
					compare = greater_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_decrease_5
			subtract_from_variable = {
				var = sov_anarchist_election_parties^2
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_decrease_popularity_militarist_party = {

		icon = GFX_decision_generic_army_support

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^3
				value = 4.99
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_decrease_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^3
					value = 4.99
					compare = greater_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_decrease_5
			subtract_from_variable = {
				var = sov_anarchist_election_parties^3
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_decrease_popularity_aviation_party = {

		icon = GFX_decision_generic_air

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^4
				value = 4.99
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_decrease_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^4
					value = 4.99
					compare = greater_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_decrease_5
			subtract_from_variable = {
				var = sov_anarchist_election_parties^4
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_decrease_popularity_naval_party = {

		icon = GFX_decision_generic_naval

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^5
				value = 4.99
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_decrease_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^5
					value = 4.99
					compare = greater_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_decrease_5
			subtract_from_variable = {
				var = sov_anarchist_election_parties^5
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_decrease_popularity_logistic_party = {

		icon = GFX_decision_generic_decision

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^6
				value = 4.99
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_decrease_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^6
					value = 4.99
					compare = greater_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_decrease_5
			subtract_from_variable = {
				var = sov_anarchist_election_parties^6
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_decrease_popularity_internal_sec_party = {

		icon = GFX_decision_onmap_recruit_operative

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^7
				value = 4.99
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_decrease_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^7
					value = 4.99
					compare = greater_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_decrease_5
			subtract_from_variable = {
				var = sov_anarchist_election_parties^7
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_decrease_popularity_countryside_party = {

		icon = GFX_decision_generic_construction

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^8
				value = 4.99
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_decrease_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^8
					value = 4.99
					compare = greater_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_decrease_5
			subtract_from_variable = {
				var = sov_anarchist_election_parties^8
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_decrease_popularity_theorist_party = {

		icon = GFX_decision_generic_research

		days_re_enable = 7

		allowed = {
			original_tag = SOV
		}

		visible = {
			check_variable = {
				var = sov_anarchist_election_parties^9
				value = 4.99
				compare = greater_than_or_equals
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = SOV_decrease_popularity_available_tt
				check_variable = {
					var = sov_anarchist_election_parties^9
					value = 4.99
					compare = greater_than_or_equals
				}
			}
		}

		cost = 15

		complete_effect = {
			custom_effect_tooltip = popularity_of_party_will_decrease_5
			subtract_from_variable = {
				var = sov_anarchist_election_parties^9
				value = 5
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_return_ukraine_territory = {

	SOV_return_ukraine_claims_state_decision = {

		icon = GFX_decision_generic_political_rally

		allowed = {
			original_tag = SOV
		}

		visible = {
			any_state = {
				has_state_flag = claim_by_ukr_dem_rus
				is_owned_by = SOV
			}
		}

		available = {

		}

		complete_effect = {
			every_state = {
				limit = {
					has_state_flag = claim_by_ukr_dem_rus
					is_owned_by = SOV
				}
				UKR = {
					transfer_state = PREV
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_diplomatic_plays_decisions_democratic = {

	SOV_support_pro_russian_belarus = {

		icon = GFX_decision_generic_military

		allowed = {
			original_tag = SOV
		}

		visible = {
			country_exists = BLR
			NOT = {
				BLR = {
					is_subject_of = SOV
				}
			}
		}

		available = {
			country_exists = BLR
			NOT = {
				BLR = {
					is_subject_of = SOV
				}
				has_country_flag = is_doing_diplomatic_play
			}
		}

		fire_only_once = yes

		cost = 25

		days_remove = 30

		fixed_random_seed = no

		complete_effect = {
			set_country_flag = is_doing_diplomatic_play
		}

		remove_effect = {
			custom_effect_tooltip = result_of_the_coups_belarus
			hidden_effect = {
				random_list = {
					40 = { #Coup was Successful
						country_event = { id = russia2_russia.460 days = 10 }
						every_state = {
							limit = {
								is_core_of = BLR
								is_owned_and_controlled_by = BLR
							}
							SOV = {
								add_state_core = PREV
							}
						}
					}
					60 = { #Failure
						country_event = { id = russia2_russia.461 days = 10 }
					}
				}
			}
			clr_country_flag = is_doing_diplomatic_play
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_reintegrate_belarus_united_russia = {

		icon = GFX_decision_generic_military

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = blr_coup_failure_dem
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = blr_is_puppet_or_occupied
				OR = {
					AND = {
						241 = {
							is_owned_by = SOV
						}
						194 = {
							is_owned_by = SOV
						}
						204 = {
							is_owned_by = SOV
						}
						206 = {
							is_owned_by = SOV
						}
						207 = {
							is_owned_by = SOV
						}
					}
					BLR = {
						is_subject_of = SOV
					}
				}
			}
		}

		fire_only_once = yes

		days_remove = 50

		cost = 25

		complete_effect = {

		}

		remove_effect = {
			custom_effect_tooltip = core_blr_state_core_owned_sov
			hidden_effect = {
				every_state = {
					limit = {
						is_core_of = BLR
						is_owned_and_controlled_by = SOV
					}
					SOV = {
						add_state_core = PREV
					}
				}
				if = {
					limit = {
						country_exists = BLR
						BLR = {
							is_subject_of = SOV
						}
					}
					every_state = {
						limit = {
							is_core_of = BLR
							is_owned_and_controlled_by = BLR
						}
						SOV = {
							add_state_core = PREV
						}
					}
					SOV = {
						annex_country = {
							target = BLR
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_incite_tension_central_asia = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			OR = {
				country_exists = KAZ
				country_exists = UZB
				country_exists = TMS
				country_exists = TAJ
				country_exists = KYR
			}
		}

		available = {
			NOT = {
				has_country_flag = is_doing_diplomatic_play
			}
		}

		fire_only_once = yes

		days_remove = 30

		cost = 25

		fixed_random_seed = no

		complete_effect = {
			set_country_flag = is_doing_diplomatic_play
			hidden_effect = {
				every_state = {
					limit = {
						OR = {
							is_core_of = KAZ
							is_core_of = KYR
							is_core_of = TAJ
							is_core_of = TMS
							is_core_of = UZB
						}
					}
					SOV = {
						add_state_core = PREV
					}
				}
				KAZ = {
					random_owned_state = {
						create_unit = {
							division = "name = \"6st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = KAZ
						}
						create_unit = {
							division = "name = \"7nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = KAZ
						}
					}
				}
				KYR = {
					random_owned_state = {
						create_unit = {
							division = "name = \"6st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = KYR
						}
						create_unit = {
							division = "name = \"7nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = KYR
						}
						create_unit = {
							division = "name = \"8rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = KYR
						}
					}
				}
				TAJ = {
					random_owned_state = {
						create_unit = {
							division = "name = \"6st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = TAJ
						}
						create_unit = {
							division = "name = \"7nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = TAJ
						}
						create_unit = {
							division = "name = \"8rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = TAJ
						}
					}
				}
				TMS = {
					random_owned_state = {
						create_unit = {
							division = "name = \"6st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = TMS
						}
						create_unit = {
							division = "name = \"7nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = TMS
						}
					}
				}
				UZB = {
					random_owned_state = {
						create_unit = {
							division = "name = \"6st Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = UZB
						}
						create_unit = {
							division = "name = \"7nd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = UZB
						}
						create_unit = {
							division = "name = \"8rd Free Infantry\" division_template = \"Free Infantry\" start_experience_factor = 0.4 start_equipment_factor = 1.0"
							owner = UZB
						}
					}
				}
			}
		}

		remove_effect = {
			clr_country_flag = is_doing_diplomatic_play
			custom_effect_tooltip = create_tension_in_central_asia_war
			hidden_effect = {
				random_list = {
					85 = { #Tension was successful
						country_event = { id = russia2_russia.462 days = 3 }
					}
					15 = { #A Failure, coalition created
						country_event = { id = russia2_russia.463 days = 3 }
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_intervene_in_central_asia_democratic = { #TODO National spirit so they won't join foreign faction

		icon = GFX_decision_generic_tank

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = can_intervene_central_asia
		}

		available = {
			has_country_flag = successfully_created_tension_central_asia
			NOT = {
				has_country_flag = is_doing_diplomatic_play
			}
		}

		fire_only_once = yes

		days_remove = 14

		cost = 25

		fixed_random_seed = no

		complete_effect = {
			set_country_flag = is_doing_diplomatic_play
		}

		remove_effect = {
			clr_country_flag = is_doing_diplomatic_play
			custom_effect_tooltip = declare_war_remaining_country_central_asia
			custom_effect_tooltip = remaining_central_asia_country_form_coal
			hidden_effect = {
				every_country = {
					limit = {
						exists = yes
						OR = {
							tag = KAZ
							tag = KYR
							tag = TMS
							tag = UZB
							tag = TAJ
						}
					}
					KAZ = {
						white_peace = PREV
					}
					KYR = {
						white_peace = PREV
					}
					TMS = {
						white_peace = PREV
					}
					UZB = {
						white_peace = PREV
					}
					TAJ = {
						white_peace = PREV
					}
				}
				random_country = {
					limit = {
						exists = yes
						is_subject = no
						OR = {
							tag = KAZ
							tag = KY
							tag = TAJ
							tag = TMS
							tag = UZB
						}
					}
					create_faction = anti_russian_coalition
					add_to_faction = KAZ
					add_to_faction = KYR
					add_to_faction = TAJ
					add_to_faction = TMS
					add_to_faction = UZB
				}
				SOV = {
					declare_war_on = {
						target = TMS
						type = annex_everything
					}
					declare_war_on = {
						target = KAZ
						type = annex_everything
					}
					declare_war_on = {
						target = UZB
						type = annex_everything
					}
					declare_war_on = {
						target = TAJ
						type = annex_everything
					}
					declare_war_on = {
						target = KYR
						type = annex_everything
					}
				}
				every_country = {
					limit = {
						exists = yes
						OR = {
							tag = KAZ
							tag = KYR
							tag = TMS
							tag = UZB
							tag = TAJ
							tag = KKP
							tag = KHI
							tag = BUK
						}
					}
					SOV = {
						create_wargoal = {
							type = annex_everything
							target = PREV
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_march_through_caucasian_countries = {

		icon = GFX_decision_generic_nationalism

		target_array = global.sov_caucasian_democratic_country

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				is_neighbor_of = SOV
				exists = yes
			}
		}

		available = {
			NOT = {
				FROM = {
					is_subject_of = SOV
				}
				has_country_flag = is_doing_diplomatic_play
			}
		}

		days_remove = 15

		cost = 20

		fire_only_once = yes

		fixed_random_seed = no

		complete_effect = {
			set_country_flag = is_doing_diplomatic_play
			remove_from_array = { global.sov_caucasian_democratic_country = FROM }
		}

		remove_effect = {
			clr_country_flag = is_doing_diplomatic_play
			hidden_effect = {
				random_list = {
					60 = {
						FROM = {
							country_event = { id = russia2_russia.467 days = 2 }
						}
					}
					40 = {
						FROM = {
							country_event = { id = russia2_russia.468 days = 2 }
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	SOV_core_caucasian_countries_if_fail = {

		icon = GFX_decision_generic_decision

		state_target = yes

		target_array = global.sov_caucasian_state_core

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				NOT = {
					is_core_of = SOV
				}
				is_owned_and_controlled_by = SOV
			}
		}

		available = {
			FROM = {
				NOT = {
					is_core_of = SOV
				}
				is_owned_and_controlled_by = SOV
			}
			NOT = {
				has_country_flag = is_doing_diplomatic_play
			}
		}

		days_remove = 30

		cost = 25

		fire_only_once = yes

		complete_effect = {
			set_country_flag = is_doing_diplomatic_play
			remove_from_array = { global.sov_caucasian_state_core = FROM }
			FROM = {
				clr_state_flag = caucasian_core_state_democratic
			}
		}

		remove_effect = {
			clr_country_flag = is_doing_diplomatic_play
			SOV = {
				add_state_core = FROM
			}
		}

		ai_will_do = {
			factor = 10
		}
	}
}

SOV_reconstruction_economy_democratic = {

	SOV_invest_in_military_industry = {

		icon = GFX_decision_generic_industry

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			NOT = {
				has_country_flag = is_investing_broken_market
			}
		}

		fire_only_once = yes

		cost = 50

		days_remove = 70

		complete_effect = {
			set_country_flag = is_investing_broken_market
		}

		remove_effect = {
			clr_country_flag = is_investing_broken_market
			add_to_variable = {
			    var = investment_broken_market_var
			    value = 1
			}
			219 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			217 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			195 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_invest_in_civilian_industry = {

		icon = GFX_decision_generic_factory

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			NOT = {
				has_country_flag = is_investing_broken_market
			}
		}

		fire_only_once = yes

		cost = 50

		days_remove = 70

		complete_effect = {
			set_country_flag = is_investing_broken_market
		}

		remove_effect = {
			clr_country_flag = is_investing_broken_market
			add_to_variable = {
			    var = investment_broken_market_var
			    value = 1
			}
			219 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			252 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			220 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_invest_in_aviation = {

		icon = GFX_decision_generic_air

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			NOT = {
				has_country_flag = is_investing_broken_market
			}
		}

		fire_only_once = yes

		cost = 25

		days_remove = 49

		complete_effect = {
			set_country_flag = is_investing_broken_market
		}

		remove_effect = {
			clr_country_flag = is_investing_broken_market
			add_to_variable = {
			    var = investment_broken_market_var
			    value = 1
			}
			220 = {
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			209 = {
				add_building_construction = {
					type = air_base
					level = 1
					instant_build = yes
				}
			}
			219 = {
				add_building_construction = {
					type = radar_station
					level = 1
					instant_build = yes
				}
			}
			408 = {
				add_building_construction = {
					type = radar_station
					level = 1
					instant_build = yes
				}
			}
			574 = {
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			248 = {
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
			224 = {
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = radar_station
					level = 1
					instant_build = yes
				}
			}
			217 = {
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = radar_station
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_invest_in_naval_industry = {

		icon = GFX_decision_generic_naval

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			NOT = {
				has_country_flag = is_investing_broken_market
			}
		}

		fire_only_once = yes

		cost = 30

		days_remove = 70

		complete_effect = {
			set_country_flag = is_investing_broken_market
		}

		remove_effect = {
			clr_country_flag = is_investing_broken_market
			add_to_variable = {
			    var = investment_broken_market_var
			    value = 1
			}
			195 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			218 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			408 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			214 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_invest_in_wasteland = {

		icon = GFX_decision_generic_construction

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			NOT = {
				has_country_flag = is_investing_broken_market
			}
		}

		fire_only_once = yes

		cost = 25

		days_remove = 42

		complete_effect = {
			set_country_flag = is_investing_broken_market
		}

		remove_effect = {
			clr_country_flag = is_investing_broken_market
			add_to_variable = {
			    var = investment_broken_market_var
			    value = 1
			}
			562 = {
				add_extra_state_shared_building_slots = 5
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			574 = {
				add_extra_state_shared_building_slots = 5
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			575 = {
				add_extra_state_shared_building_slots = 5
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			397 = {
				add_extra_state_shared_building_slots = 5
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			580 = {
				add_extra_state_shared_building_slots = 5
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_invest_in_far_east = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			NOT = {
				has_country_flag = is_investing_broken_market
			}
		}

		fire_only_once = yes

		cost = 25

		days_remove = 35

		complete_effect = {
			set_country_flag = is_investing_broken_market
		}

		remove_effect = {
			clr_country_flag = is_investing_broken_market
			add_to_variable = {
			    var = investment_broken_market_var
			    value = 1
			}
			408 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			409 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_invest_in_urals = {

		icon = GFX_decision_aluminium

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			NOT = {
				has_country_flag = is_investing_broken_market
			}
		}

		fire_only_once = yes

		cost = 50

		days_remove = 70

		complete_effect = {
			set_country_flag = is_investing_broken_market
		}

		remove_effect = {
			clr_country_flag = is_investing_broken_market
			add_to_variable = {
			    var = investment_broken_market_var
			    value = 1
			}
			add_resource = {
				type = aluminium
				amount = 20
				state = 581
			}
			add_resource = {
				type = chromium
				amount = 20
				state = 581
			}
			add_resource = {
				type = oil
				amount = 25
				state = 582
			}
			add_resource = {
				type = steel
				amount = 30
				state = 582
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_end_the_reconstruction = {

		icon = GFX_decision_eng_trade_unions_demand

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			NOT = {
				has_country_flag = is_investing_broken_market
			}
		}

		days_remove = 10

		fire_only_once = yes

		complete_effect = {
			set_country_flag = is_investing_broken_market
			custom_effect_tooltip = investment_will_stop_forever
		}

		remove_effect = {
			clr_country_flag = is_investing_broken_market
			custom_effect_tooltip = more_invsetment_equal_more_bonus
			remove_ideas = SOV_Broken_market_2
			if = {
				limit = {
					check_variable = {
						var = investment_broken_market_var
						value = 1
						compare = greater_than_or_equals
					}
					NOT = {
						check_variable = {
							var = investment_broken_market_var
							value = 4
							compare = greater_than_or_equals
						}
					}
				}
				add_ideas = SOV_Reconstructed_economy
			}
			else_if = {
				limit = {
					check_variable = {
						var = investment_broken_market_var
						value = 4
						compare = greater_than_or_equals
					}
					NOT = {
						check_variable = {
							var = investment_broken_market_var
							value = 7
							compare = greater_than_or_equals
						}
					}
				}
				add_ideas = SOV_Reconstructed_economy_2
			}
			else_if = {
				limit = {
					check_variable = {
						var = investment_broken_market_var
						value = 7
						compare = equals
					}
					NOT = {
						check_variable = {
							var = investment_broken_market_var
							value = 6
							compare = less_than_or_equals
						}
					}
				}
				add_ideas = SOV_Reconstructed_economy_3
			}
		}

		ai_will_do = {
			factor = 60
		}
	}
}

SOV_middle_east_conquest = {

	SOV_ultimatum_country_middle_east_dem = {

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				NOT = {
					is_subject = yes
				}
			}
			NOT = {
				any_country = {
					has_country_flag = leader_faction_coalition_middle_east
					is_in_faction_with = FROM
				}
			}
		}

		available = {
			FROM = {
				is_neighbor_of = SOV
			}
			NOT = {
				FROM = {
					is_subject_of = SOV
				}
				has_country_flag = is_sending_ultimatum_middle_east
			}
		}

		target_trigger = {
			FROM = {
				exists = yes
				OR = {
					tag = TUR
					tag = PER
					tag = IRQ
					tag = SAU
					tag = YEM
					tag = OMA
					tag = AFG
					tag = SYR
					tag = LEB
					tag = JOR
					tag = PAL
					tag = ISR
					tag = EGY
					tag = SUD
					tag = UAE
					tag = QAT
					tag = KUW
				}
			}
		}

		days_remove = 35

		cost = 50

		fixed_random_seed = no

		fire_only_once = yes

		complete_effect = {
			set_country_flag = is_sending_ultimatum_middle_east
			randomize_variable = {
				var = middle_east_coalition
				distribution = uniform
				min = middle_east_coalition
				max = 100
			}
			round_variable = middle_east_coalition
		}

		remove_effect = {
			clr_country_flag = is_sending_ultimatum_middle_east
			FROM = {
				country_event = { id = russia2_russia.469 days = 3 }
			}
			hidden_effect = {
				if = {
					limit = {
						check_variable = {
							var = middle_east_coalition
							value = 85
							compare = greater_than_or_equals
						}
						NOT = {
							has_global_flag = coalition_was_formed_middle_east
						}
					}
					set_global_flag = coalition_was_formed_middle_east
					SOV = {
						country_event = { id = russia2_russia.472 days = 2 }
					}
					random_scope_in_array = {
						save_event_target_as = leader_of_middle_east_coalition
						array = global.sov_middle_east_democratic_country
						limit = {
							exists = yes
							is_subject = no
							NOT = {
								has_capitulated = yes
								is_in_faction = yes
							}
						}

						set_country_flag = leader_faction_coalition_middle_east
						create_faction = middle_east_faction_dem
					}
					every_country = {
						limit = {
							exists = yes
							NOT = {
								has_capitulated = yes
								is_in_faction = yes
								is_subject = yes
							}
							OR = {
								tag = TUR
								tag = PER
								tag = IRQ
								tag = SAU
								tag = YEM
								tag = OMA
								tag = AFG
								tag = SYR
								tag = LEB
								tag = JOR
								tag = PAL
								tag = ISR
								tag = EGY
								tag = SUD
								tag = UAE
								tag = QAT
								tag = KUW
							}
						}
						event_target:leader_of_middle_east_coalition = {
							add_to_faction = PREV
						}
						add_ai_strategy = {
							type = alliance
							id = event_target:leader_of_middle_east_coalition
							value = 500
						}
					}
				}
				else = {
					add_to_variable = {
						var = middle_east_coalition
						value = 10
					}
				}
			}
		}

		cancel_trigger = {
			FROM = {
				OR = {
					exists = no
					has_war_with = SOV
					has_capitulated = yes
				}
			}
		}

		cancel_effect = {
			clr_country_flag = is_sending_ultimatum_middle_east
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_ultimatum_country_middle_east_dem_overlord_edition = {

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				NOT = {
					is_subject_of = SOV
				}
				is_subject = yes
			}
		}

		available = {
			FROM = {
				is_neighbor_of = SOV
			}
			NOT = {
				FROM = {
					is_subject_of = SOV
				}
				has_country_flag = is_sending_ultimatum_middle_east
			}
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = {
					is_subject_of = SOV
				}
				is_subject = yes
				OR = {
					tag = TUR
					tag = PER
					tag = IRQ
					tag = SAU
					tag = YEM
					tag = OMA
					tag = AFG
					tag = SYR
					tag = LEB
					tag = JOR
					tag = PAL
					tag = ISR
					tag = EGY
					tag = SUD
					tag = UAE
					tag = QAT
					tag = KUW
				}
			}
		}

		days_remove = 30

		cost = 50

		fire_only_once = yes

		complete_effect = {
			set_country_flag = is_sending_ultimatum_middle_east
		}

		remove_effect = {
			clr_country_flag = is_sending_ultimatum_middle_east
			if = {
				limit = {
					FROM = {
						is_subject = yes
					}
				}
				FROM = {
					OVERLORD = {
						country_event = { id = russia2_russia.473 days = 6 }
					}
				}
			}
		}

		cancel_trigger = {
			has_war_with = FROM
			FROM = {
				exists = no
			}
		}

		cancel_effect = {
			clr_country_flag = is_sending_ultimatum_middle_east
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_attack_the_coalition_middle_east = {

		icon = GFX_decision_generic_ignite_civil_war

		target_trigger = {
			FROM = {
				has_country_flag = leader_faction_coalition_middle_east
			}
		}

		allowed = {
			original_tag = SOV
		}

		visible = {
			any_country = {
				has_country_flag = leader_faction_coalition_middle_east
				exists = yes
				NOT = {
					is_subject = yes
				}
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = middle_east_leader_is_alive
				any_country = {
					has_country_flag = leader_faction_coalition_middle_east
					exists = yes
					NOT = {
						is_subject = yes
					}
				}
			}
			NOT = {
				has_war_with = FROM
			}
			NOT = {
				has_country_flag = is_sending_ultimatum_middle_east
			}
		}

		fire_only_once = yes

		cost = 25

		days_remove = 35

		complete_effect = {
			set_country_flag = is_sending_ultimatum_middle_east
		}

		remove_effect = {
			clr_country_flag = is_sending_ultimatum_middle_east
			create_wargoal = {
				type = annex_everything
				target = FROM
			}
			hidden_effect = {
				every_country = {
					limit = {
						is_in_faction_with = FROM
					}
					SOV = {
						create_wargoal = {
							type = annex_everything
							target = PREV
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_ask_foreign_country_to_cede_territory = {

		icon = GFX_decision_generic_operation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				SOV = {
					AND = {
						owns_state = 453
						owns_state = 446
						owns_state = 447
						owns_state = 452
						owns_state = 457
						owns_state = 456
						owns_state = 552
						owns_state = 415
						owns_state = 267
						owns_state = 341
						owns_state = 797
						owns_state = 293
						owns_state = 659
						owns_state = 294
						owns_state = 658
						owns_state = 765
						owns_state = 678
						owns_state = 679
						owns_state = 292
						owns_state = 455
						owns_state = 454
						owns_state = 675
						owns_state = 291
						owns_state = 656
						owns_state = 676
						owns_state = 680
						owns_state = 677
						owns_state = 554
						owns_state = 553
						owns_state = 419
						owns_state = 421
						owns_state = 413
						owns_state = 412
						owns_state = 411
						owns_state = 420
						owns_state = 417
						owns_state = 266
						owns_state = 418
						owns_state = 416
						owns_state = 414
						owns_state = 410
						owns_state = 418
						owns_state = 352
						owns_state = 353
						owns_state = 354
						owns_state = 350
						owns_state = 349
						owns_state = 355
						owns_state = 344
						owns_state = 348
						owns_state = 356
						owns_state = 345
						owns_state = 346
						owns_state = 49
						owns_state = 347
						owns_state = 340
						owns_state = 343
						owns_state = 342
						owns_state = 339
						owns_state = 800
						owns_state = 798
						owns_state = 799
						owns_state = 907
						owns_state = 855
						owns_state = 854
						owns_state = 857
						owns_state = 859
						owns_state = 856
						owns_state = 858
					}
				}
			}
			FROM = {
				OR = {
					owns_state = 453
					owns_state = 446
					owns_state = 447
					owns_state = 452
					owns_state = 457
					owns_state = 456
					owns_state = 552
					owns_state = 415
					owns_state = 267
					owns_state = 341
					owns_state = 797
					owns_state = 293
					owns_state = 659
					owns_state = 294
					owns_state = 658
					owns_state = 765
					owns_state = 678
					owns_state = 679
					owns_state = 292
					owns_state = 455
					owns_state = 454
					owns_state = 675
					owns_state = 291
					owns_state = 656
					owns_state = 676
					owns_state = 680
					owns_state = 677
					owns_state = 554
					owns_state = 553
					owns_state = 419
					owns_state = 421
					owns_state = 413
					owns_state = 412
					owns_state = 411
					owns_state = 420
					owns_state = 417
					owns_state = 266
					owns_state = 418
					owns_state = 416
					owns_state = 414
					owns_state = 410
					owns_state = 418
					owns_state = 352
					owns_state = 353
					owns_state = 354
					owns_state = 350
					owns_state = 349
					owns_state = 355
					owns_state = 344
					owns_state = 348
					owns_state = 356
					owns_state = 345
					owns_state = 346
					owns_state = 49
					owns_state = 347
					owns_state = 340
					owns_state = 343
					owns_state = 342
					owns_state = 339
					owns_state = 800
					owns_state = 798
					owns_state = 799
					owns_state = 907
					owns_state = 855
					owns_state = 854
					owns_state = 857
					owns_state = 859
					owns_state = 856
					owns_state = 858
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_middle_eastern_nuisance
		}

		target_trigger = {
			FROM = {
				NOT = {
					is_subject_of = SOV
					tag = TUR
					tag = PER
					tag = IRQ
					tag = SAU
					tag = YEM
					tag = OMA
					tag = AFG
					tag = SYR
					tag = LEB
					tag = JOR
					tag = PAL
					tag = ISR
					tag = EGY
					tag = SUD
					tag = UAE
					tag = QAT
					tag = KUW
					tag = BRP
					tag = MED
					tag = BAB
					tag = ASY
					tag = HIT
					tag = CAA
					tag = MES
					tag = ANT
					tag = KUR
					tag = FSZ
					tag = FAT
					tag = HEJ
					tag = NEJ
					tag = ASR
				}
				OR = {
					owns_state = 453
					owns_state = 446
					owns_state = 447
					owns_state = 452
					owns_state = 457
					owns_state = 456
					owns_state = 552
					owns_state = 415
					owns_state = 267
					owns_state = 341
					owns_state = 797
					owns_state = 293
					owns_state = 659
					owns_state = 294
					owns_state = 658
					owns_state = 765
					owns_state = 678
					owns_state = 679
					owns_state = 292
					owns_state = 455
					owns_state = 454
					owns_state = 675
					owns_state = 291
					owns_state = 656
					owns_state = 676
					owns_state = 680
					owns_state = 677
					owns_state = 554
					owns_state = 553
					owns_state = 419
					owns_state = 421
					owns_state = 413
					owns_state = 412
					owns_state = 411
					owns_state = 420
					owns_state = 417
					owns_state = 266
					owns_state = 418
					owns_state = 416
					owns_state = 414
					owns_state = 410
					owns_state = 418
					owns_state = 352
					owns_state = 353
					owns_state = 354
					owns_state = 350
					owns_state = 349
					owns_state = 355
					owns_state = 344
					owns_state = 348
					owns_state = 356
					owns_state = 345
					owns_state = 346
					owns_state = 49
					owns_state = 347
					owns_state = 340
					owns_state = 343
					owns_state = 342
					owns_state = 339
					owns_state = 800
					owns_state = 798
					owns_state = 799
					owns_state = 907
					owns_state = 855
					owns_state = 854
					owns_state = 857
					owns_state = 859
					owns_state = 856
					owns_state = 858
				}
			}
		}

		available = {
			NOT = {
				has_war_with = FROM
				has_country_flag = is_sending_ultimatum_middle_east
			}
		}

		fire_only_once = yes

		cost = 25

		days_remove = 35

		complete_effect = {
			set_country_flag = is_sending_ultimatum_middle_east
		}

		remove_effect = {
			if = {
				limit = {
					FROM = {
						is_subject = yes
					}
				}
				custom_effect_tooltip = overlord_will_choose_fate_of_ultimatum
			}
			else = {
				custom_effect_tooltip = will_accept_more_chance_if_faction_sov
			}
			clr_country_flag = is_sending_ultimatum_middle_east
			FROM = {
				country_event = { id = russia2_russia.476 days = 3 }
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_improve_arctic_russia = {

	SOV_improve_arctic_state = {

		icon = GFX_decision_generic_operation

		state_target = yes

		target_array = global.alaska_upgradeable_states

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			FROM = {
				is_owned_and_controlled_by = RUA
			}
			NOT = {
				has_country_flag = is_excavating_arctic_russia
			}
		}

		days_remove = 50

		cost = 30

		fire_only_once = yes

		complete_effect = {
			set_country_flag = is_excavating_arctic_russia
		}

		remove_effect = {
			clr_country_flag = is_excavating_arctic_russia
			if = {
				limit = {
					FROM = {
						state = 471
					}
				}
				add_resource = {
					type = oil
					amount = 16
					state = 471
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 472
					}
				}
				add_resource = {
					type = oil
					amount = 25
					state = 472
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 683
					}
				}
				add_resource = {
					type = oil
					amount = 15
					state = 683
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 473
					}
				}
				add_resource = {
					type = oil
					amount = 8
					state = 473
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 470
					}
				}
				add_resource = {
					type = steel
					amount = 30
					state = 470
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 469
					}
				}
				add_resource = {
					type = tungsten
					amount = 20
					state = 469
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 467
					}
				}
				add_resource = {
					type = steel
					amount = 25
					state = 467
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 682
					}
				}
				add_resource = {
					type = aluminium
					amount = 18
					state = 682
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 466
					}
				}
				add_resource = {
					type = aluminium
					amount = 16
					state = 466
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 332
					}
				}
				add_resource = {
					type = chromium
					amount = 30
					state = 332
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 101
					}
				}
				add_resource = {
					type = oil
					amount = 27
					state = 101
				}
			}
			else_if = {
				limit = {
					FROM = {
						state = 100
					}
				}
				add_resource = {
					type = tungsten
					amount = 19
					state = 100
				}
			}
			FROM = {
				add_extra_state_shared_building_slots = 4
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			custom_effect_tooltip = add_excavation_progress_arctic
			add_to_variable = { local_ressource_ice_puppet = 0.02 }
		}
	}

	SOV_encourage_immigration = {
		
		icon = GFX_decision_eng_blackshirt_march

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			RUA = {
				is_subject_of = SOV
			}
			NOT = {
				custom_trigger_tooltip = {
					tooltip = not_reached_max_immigration
					check_variable = {
						var = alaska_emigration_calculation_demo
						value = -10000
						compare = less_than_or_equals
					}
				}
			}
		}

		days_remove = 35

		cost = 30

		remove_effect = {
			if = {
				limit = {
					AND = {
						SOV = {
							NOT = {
								has_idea = SOV_Emigration_in_alaska_idea
							}
						}
						RUA = {
							NOT = {
								has_idea = SOV_Immigration_in_alaska_idea
							}
						}
					}
				}
				SOV = {
					custom_effect_tooltip = idea_emigration_alaska_tooltip
					hidden_effect = {
						add_ideas = SOV_Emigration_in_alaska_idea
						add_dynamic_modifier = { modifier = democratic_alaska_emigration }
					}
				}
				RUA = {
					custom_effect_tooltip = idea_immigration_alaska_tooltip
					hidden_effect = {
						add_ideas = SOV_Immigration_in_alaska_idea
						add_dynamic_modifier = { modifier = democratic_alaska_immigration }
					}
				}
			}
			else = {
				SOV = {
					custom_effect_tooltip = SOV_emigration_malus_alaska
					add_to_variable = { alaska_emigration_calculation_demo = -2000 }
				}
				RUA = {
					custom_effect_tooltip = SOV_immigration_bonus_alaska
					add_to_variable = { alaska_immigration_calculation_demo = 2000 }
				}
			}
		}
	}

	SOV_stop_immigration_alaska = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			RUA = {
				is_subject_of = SOV
				has_idea = SOV_Immigration_in_alaska_idea
			}
			has_idea = SOV_Emigration_in_alaska_idea
		}

		cost = 10

		complete_effect = {
			SOV = {
				remove_ideas = SOV_Emigration_in_alaska_idea
				hidden_effect = {
					remove_dynamic_modifier = { modifier = democratic_alaska_emigration }
				}
			}
			RUA = {
				remove_ideas = SOV_Immigration_in_alaska_idea
				hidden_effect = {
					remove_dynamic_modifier = { modifier = democratic_alaska_immigration }
				}
			}
			set_variable = { alaska_emigration_calculation_demo = -2000 }
			set_variable = { alaska_immigration_calculation_demo = 2000 }
		}
	}

	SOV_proclaim_greater_alaska = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		fire_only_once = yes

		available = {
			RUA = {
				owns_state = 471
				owns_state = 472
				owns_state = 473
				owns_state = 470
				owns_state = 469
				owns_state = 467
				owns_state = 683
				owns_state = 682
				owns_state = 466
				owns_state = 332
				owns_state = 101
				owns_state = 100
				owns_state = 739
				owns_state = 740
				owns_state = 276
				owns_state = 468
				owns_state = 465
				owns_state = 464
				owns_state = 331
				owns_state = 864
				owns_state = 865
				owns_state = 867
				owns_state = 866
				owns_state = 862
				owns_state = 863
				owns_state = 861
				owns_state = 860
			}
		}

		complete_effect = {
			RUA = {
				set_cosmetic_tag = GRAR
				add_state_core = 739
				add_state_core = 740
				add_state_core = 276
				add_state_core = 468
				add_state_core = 465
				add_state_core = 464
				add_state_core = 331
				add_state_claim = 386
				add_state_claim = 387
				add_state_claim = 388
				add_state_claim = 389
				add_state_claim = 391
				add_state_claim = 394
				add_state_claim = 393
				add_state_claim = 358
				add_state_claim = 357
				add_state_claim = 385
				add_state_claim = 381
				add_state_claim = 390
			}
		}
	}
}

SOV_reshape_middle_east_democratic = {

	SOV_release_eastern_persia = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = eastern_persia_states_own_by_sov_or_pups
				OR = {
					267 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 267
						controls_state = 267
					}
				}
				OR = {
					415 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 415
						controls_state = 415
					}
				}
				OR = {
					410 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 410
						controls_state = 410
					}
				}
				OR = {
					414 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 414
						controls_state = 414
					}
				}
				OR = {
					416 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 416
						controls_state = 416
					}
				}
				OR = {
					418 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 418
						controls_state = 418
					}
				}
				OR = {
					266 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 266
						controls_state = 266
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			BRP = {
				add_state_core = 267
				add_state_core = 415
				add_state_core = 410
				add_state_core = 414
				add_state_core = 416
				add_state_core = 418
				add_state_core = 266
			}
			every_state = {
				limit = {
					is_core_of = BRP
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				BRP = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = BRP
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			BRP = {
				give_resource_rights = { receiver = SOV state = 267 }
			}
			add_resource = {
				type = tungsten
				amount = 21
				state = 267
			}
			hidden_effect = {
				BRP = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 65
						neutrality = 17
						fascism = 11
						communism = 7
						anarchy = 0
					}
					division_template = {
						name = "Eastern Persian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Eastern Persian Division\" division_template = \"Eastern Persian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BRP
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Eastern Persian Division\" division_template = \"Eastern Persian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BRP
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Eastern Persian Division\" division_template = \"Eastern Persian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BRP
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"4th Eastern Persian Division\" division_template = \"Eastern Persian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BRP
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"5th Eastern Persian Division\" division_template = \"Eastern Persian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BRP
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"6th Eastern Persian Division\" division_template = \"Eastern Persian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BRP
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_release_medes = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = medes_states_own_by_sov_or_pups
				OR = {
					412 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 412
						controls_state = 412
					}
				}
				OR = {
					411 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 411
						controls_state = 411
					}
				}
				OR = {
					413 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 413
						controls_state = 413
					}
				}
				OR = {
					421 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 421
						controls_state = 421
					}
				}
				OR = {
					417 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 417
						controls_state = 417
					}
				}
				OR = {
					419 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 419
						controls_state = 419
					}
				}
				OR = {
					420 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 420
						controls_state = 420
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			MED = {
				add_state_core = 412
				add_state_core = 411
				add_state_core = 413
				add_state_core = 421
				add_state_core = 417
				add_state_core = 419
				add_state_core = 420
			}
			every_state = {
				limit = {
					is_core_of = MED
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				MED = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = MED
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			MED = {
				give_resource_rights = { receiver = SOV state = 411 }
				give_resource_rights = { receiver = SOV state = 412 }
				give_resource_rights = { receiver = SOV state = 413 }
			}
			add_resource = {
				type = oil
				amount = 16
				state = 411
			}
			add_resource = {
				type = oil
				amount = 18
				state = 412
			}
			add_resource = {
				type = oil
				amount = 8
				state = 413
			}
			hidden_effect = {
				MED = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 65
						neutrality = 17
						fascism = 11
						communism = 7
						anarchy = 0
					}
					division_template = {
						name = "Medes Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1stMedes Division\" division_template = \"Medes Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MED
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Medes Division\" division_template = \"Medes Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MED
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Medes Division\" division_template = \"Medes Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MED
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"4th Medes Division\" division_template = \"Medes Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MED
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"5th Medes Division\" division_template = \"Medes Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MED
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"6th Medes Division\" division_template = \"Medes Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MED
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_create_babylonia = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = MES
			}
		}

		available = {
			NOT = {
				country_exists = MES
			}
			custom_trigger_tooltip = {
				tooltip = babylonia_states_own_by_sov_or_pups
				OR = {
					656 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 656
						controls_state = 656
					}
				}
				OR = {
					291 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 291
						controls_state = 291
					}
				}
				OR = {
					675 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 675
						controls_state = 675
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			custom_effect_tooltip = not_able_to_create_mesopotamia_middle_east
			BAB = {
				add_state_core = 656
				add_state_core = 291
				add_state_core = 675
			}
			every_state = {
				limit = {
					is_core_of = BAB
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				BAB = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = BAB
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			BAB = {
				give_resource_rights = { receiver = SOV state = 291 }
			}
			add_resource = {
				type = oil
				amount = 10
				state = 291
			}
			hidden_effect = {
				BAB = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = industrial_complex
							level = 4
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 67
						neutrality = 21
						fascism = 6
						communism = 6
						anarchy = 0
					}
					division_template = {
						name = "Babylonian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Babylonian Division\" division_template = \"Babylonian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BAB
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Babylonian Division\" division_template = \"Babylonian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BAB
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Babylonian Division\" division_template = \"Babylonian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BAB
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_create_assyria = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = MES
				has_country_flag = released_kurdistan_dem
			}
		}

		available = {
			NOT = {
				country_exists = MES
				has_country_flag = released_kurdistan_dem
			}
			custom_trigger_tooltip = {
				tooltip = assyria_states_own_by_sov_or_pups
				OR = {
					680 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 680
						controls_state = 680
					}
				}
				OR = {
					676 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 676
						controls_state = 676
					}
				}
				OR = {
					352 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 352
						controls_state = 352
					}
				}
				OR = {
					350 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 350
						controls_state = 350
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			custom_effect_tooltip = not_able_to_create_mesopotamia_and_kur_middle_east
			ASY = {
				add_state_core = 680
				add_state_core = 676
				add_state_core = 352
				add_state_core = 350
			}
			every_state = {
				limit = {
					is_core_of = ASY
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				ASY = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = ASY
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			ASY = {
				give_resource_rights = { receiver = SOV state = 676 }
				give_resource_rights = { receiver = SOV state = 350 }
			}
			add_resource = {
				type = chromium
				amount = 32
				state = 350
			}
			add_resource = {
				type = steel
				amount = 46
				state = 350
			}
			hidden_effect = {
				ASY = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = industrial_complex
							level = 4
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 60
						neutrality = 22
						fascism = 11
						communism = 7
						anarchy = 0
					}
					division_template = {
						name = "Assyrian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Assyrian Division\" division_template = \"Assyrian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ASY
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Assyrian Division\" division_template = \"Assyrian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ASY
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Assyrian Division\" division_template = \"Assyrian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ASY
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_create_hittite = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = MES
			}
		}

		available = {
			NOT = {
				country_exists = MES
			}
			custom_trigger_tooltip = {
				tooltip = hittite_states_own_by_sov_or_pups
				OR = {
					677 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 677
						controls_state = 677
					}
				}
				OR = {
					799 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 799
						controls_state = 799
					}
				}
				OR = {
					344 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 344
						controls_state = 344
					}
				}
				OR = {
					345 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 345
						controls_state = 345
					}
				}
				OR = {
					346 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 346
						controls_state = 346
					}
				}
				OR = {
					348 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 348
						controls_state = 348
					}
				}
				OR = {
					798 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 798
						controls_state = 798
					}
				}
				OR = {
					349 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 349
						controls_state = 349
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			custom_effect_tooltip = not_able_to_create_mesopotamia_middle_east
			custom_effect_tooltip = release_hittite_before_anatolia
			HIT = {
				add_state_core = 677
				add_state_core = 799
				add_state_core = 344
			}
			if = {
				limit = {
					NOT = {
						country_exists = ANT
					}
				}
				HIT = {
					add_state_core = 345
					add_state_core = 346
					add_state_core = 348
					add_state_core = 798
					add_state_core = 349
				}
			}
			every_state = {
				limit = {
					is_core_of = HIT
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				HIT = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = HIT
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			if = {
				limit = {
					NOT = {
						country_exists = ANT
					}
				}
				HIT = {
					give_resource_rights = { receiver = SOV state = 348 }
				}
			}
			HIT = {
				give_resource_rights = { receiver = SOV state = 799 }
			}
			add_resource = {
				type = tungsten
				amount = 31
				state = 799
			}
			hidden_effect = {
				HIT = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = industrial_complex
							level = 4
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 70
						neutrality = 17
						fascism = 6
						communism = 7
						anarchy = 0
					}
					division_template = {
						name = "Hittites Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Hittites Division\" division_template = \"Hittites Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HIT
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Hittites Division\" division_template = \"Hittites Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HIT
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Hittites Division\" division_template = \"Hittites Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HIT
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_create_canaan = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = MES
				country_exists = FAT
			}
		}

		available = {
			NOT = {
				country_exists = MES
				country_exists = FAT
			}
			custom_trigger_tooltip = {
				tooltip = canaan_states_own_by_sov_or_pups
				OR = {
					553 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 553
						controls_state = 553
					}
				}
				OR = {
					554 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 554
						controls_state = 554
					}
				}
				OR = {
					455 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 455
						controls_state = 455
					}
				}
				OR = {
					454 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 454
						controls_state = 454
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			custom_effect_tooltip = not_able_to_create_mesopotamia_middle_east
			CAA = {
				add_state_core = 553
				add_state_core = 554
				add_state_core = 455
				add_state_core = 454
			}
			every_state = {
				limit = {
					is_core_of = CAA
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				CAA = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = CAA
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			CAA = {
				give_resource_rights = { receiver = SOV state = 454 }
				give_resource_rights = { receiver = SOV state = 455 }
			}
			add_resource = {
				type = steel
				amount = 26
				state = 454
			}
			add_resource = {
				type = oil
				amount = 17
				state = 455
			}
			hidden_effect = {
				CAA = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 48
						neutrality = 23
						fascism = 22
						communism = 7
						anarchy = 0
					}
					division_template = {
						name = "Canaanite Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Canaanite Division\" division_template = \"Canaanite Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAA
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Canaanite Division\" division_template = \"Canaanite Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAA
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Canaanite Division\" division_template = \"Canaanite Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CAA
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_create_mesopotamia = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = FAT
				country_exists = BAB
				country_exists = ASY
				country_exists = HIT
				country_exists = CAA
				has_country_flag = released_kurdistan_dem
			}
		}

		available = {
			NOT = {
				country_exists = FAT
				country_exists = BAB
				country_exists = ASY
				country_exists = HIT
				country_exists = CAA
				has_country_flag = released_kurdistan_dem
			}
			custom_trigger_tooltip = {
				tooltip = mesopotamian_states_own_by_sov_or_pups
				OR = {
					656 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 656
						controls_state = 656
					}
				}
				OR = {
					291 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 291
						controls_state = 291
					}
				}
				OR = {
					675 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 675
						controls_state = 675
					}
				}
				OR = {
					680 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 680
						controls_state = 680
					}
				}
				OR = {
					676 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 676
						controls_state = 676
					}
				}
				OR = {
					352 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 352
						controls_state = 352
					}
				}
				OR = {
					350 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 350
						controls_state = 350
					}
				}
				OR = {
					677 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 677
						controls_state = 677
					}
				}
				OR = {
					799 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 799
						controls_state = 799
					}
				}
				OR = {
					344 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 344
						controls_state = 344
					}
				}
				OR = {
					553 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 553
						controls_state = 553
					}
				}
				OR = {
					554 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 554
						controls_state = 554
					}
				}
				OR = {
					455 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 455
						controls_state = 455
					}
				}
				OR = {
					454 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 454
						controls_state = 454
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			custom_effect_tooltip = not_able_to_create_other_four_pups_middle_east
			MES = {
				add_state_core = 656
				add_state_core = 291
				add_state_core = 675
				add_state_core = 680
				add_state_core = 676
				add_state_core = 352
				add_state_core = 350
				add_state_core = 677
				add_state_core = 799
				add_state_core = 344
				add_state_core = 553
				add_state_core = 554
				add_state_core = 455
				add_state_core = 454
			}
			every_state = {
				limit = {
					is_core_of = MES
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				MES = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = MES
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			MES = {
				give_resource_rights = { receiver = SOV state = 291 }
				give_resource_rights = { receiver = SOV state = 676 }
				give_resource_rights = { receiver = SOV state = 350 }
				give_resource_rights = { receiver = SOV state = 799 }
				give_resource_rights = { receiver = SOV state = 454 }
				give_resource_rights = { receiver = SOV state = 455 }
			}
			add_resource = {
				type = oil
				amount = 10
				state = 291
			}
			add_resource = {
				type = chromium
				amount = 32
				state = 350
			}
			add_resource = {
				type = steel
				amount = 46
				state = 350
			}
			add_resource = {
				type = tungsten
				amount = 31
				state = 799
			}
			add_resource = {
				type = steel
				amount = 26
				state = 454
			}
			add_resource = {
				type = oil
				amount = 17
				state = 455
			}
			hidden_effect = {
				MES = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 72
						neutrality = 22
						fascism = 3
						communism = 3
						anarchy = 0
					}
					division_template = {
						name = "Mesopotamian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Mesopotamian Division\" division_template = \"Mesopotamian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Mesopotamian Division\" division_template = \"Mesopotamian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Mesopotamian Division\" division_template = \"Mesopotamian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"4th Mesopotamian Division\" division_template = \"Mesopotamian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"5th Mesopotamian Division\" division_template = \"Mesopotamian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"6th Mesopotamian Division\" division_template = \"Mesopotamian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"7th Mesopotamian Division\" division_template = \"Mesopotamian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"8th Mesopotamian Division\" division_template = \"Mesopotamian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"9th Mesopotamian Division\" division_template = \"Mesopotamian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MES
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"10th Mesopotamian Division\" division_template = \"Mesopotamian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = MES
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_create_anatolia = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = anatolia_states_own_by_sov_or_pups
				OR = {
					341 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 341
						controls_state = 341
					}
				}
				OR = {
					797 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 797
						controls_state = 797
					}
				}
				OR = {
					340 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 340
						controls_state = 340
					}
				}
				OR = {
					339 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 339
						controls_state = 339
					}
				}
				OR = {
					342 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 342
						controls_state = 342
					}
				}
				OR = {
					343 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 343
						controls_state = 343
					}
				}
				OR = {
					49 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 49
						controls_state = 49
					}
				}
				OR = {
					347 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 347
						controls_state = 347
					}
				}
				OR = {
					356 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 356
						controls_state = 356
					}
				}
				OR = {
					355 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 355
						controls_state = 355
					}
				}
				OR = {
					345 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 345
						controls_state = 345
					}
				}
				OR = {
					346 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 346
						controls_state = 346
					}
				}
				OR = {
					348 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 348
						controls_state = 348
					}
				}
				OR = {
					798 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 798
						controls_state = 798
					}
				}
				OR = {
					349 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 349
						controls_state = 349
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			custom_effect_tooltip = release_anatolia_before_hittite
			transfer_state = 797
			ANT = {
				add_state_core = 341
				add_state_core = 340
				add_state_core = 339
				add_state_core = 342
				add_state_core = 343
				add_state_core = 49
				add_state_core = 347
				add_state_core = 356
				add_state_core = 355
				add_state_core = 187
				add_state_core = 164
			}
			if = {
				limit = {
					NOT = {
						country_exists = HIT
					}
				}
				ANT = {
					add_state_core = 345
					add_state_core = 346
					add_state_core = 348
					add_state_core = 798
					add_state_core = 349
				}
			}
			if = {
				limit = {
					NOT = {
						country_exists = KUR
					}
				}
				ANT = {
					add_state_core = 354
				}
			}
			every_state = {
				limit = {
					is_core_of = ANT
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				ANT = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = ANT
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			ANT = {
				give_resource_rights = { receiver = SOV state = 49 }
				give_resource_rights = { receiver = SOV state = 343 }
				give_resource_rights = { receiver = SOV state = 339 }
				give_resource_rights = { receiver = SOV state = 342 }
			}
			if = {
				limit = {
					NOT = {
						country_exists = HIT
					}
				}
				ANT = {
					give_resource_rights = { receiver = SOV state = 348 }
				}
			}
			hidden_effect = {
				ANT = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = industrial_complex
							level = 4
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 58
						neutrality = 22
						fascism = 13
						communism = 7
						anarchy = 0
					}
					division_template = {
						name = "Anatolian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Anatolian Division\" division_template = \"Anatolian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ANT
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Anatolian Division\" division_template = \"Anatolian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ANT
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Anatolian Division\" division_template = \"Anatolian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ANT
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"4th Anatolian Division\" division_template = \"Anatolian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ANT
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"5th Anatolian Division\" division_template = \"Anatolian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ANT
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"6th Anatolian Division\" division_template = \"Anatolian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ANT
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_release_kurdistan = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = KUR
				country_exists = ASY
				country_exists = MES
			}
		}

		available = {
			NOT = {
				country_exists = KUR
				country_exists = ASY
				country_exists = MES
				KUR = {
					is_subject_of = SOV
				}
			}
			custom_trigger_tooltip = {
				tooltip = release_kurdistan_states_own_by_sov_or_pups
				800 = {
					is_owned_and_controlled_by = SOV
				}
				353 = {
					is_owned_and_controlled_by = SOV
				}
				350 = {
					is_owned_and_controlled_by = SOV
				}
				352 = {
					is_owned_and_controlled_by = SOV
				}
				680 = {
					is_owned_and_controlled_by = SOV
				}
				676 = {
					is_owned_and_controlled_by = SOV
				}
				354 = {
					is_owned_and_controlled_by = SOV
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			custom_effect_tooltip = not_able_to_create_mesopotamia_and_assyria_middle_east
			set_country_flag = released_kurdistan_dem
			hidden_effect = {
				KUR = {
					add_state_core = 354
				}
			}
			every_state = {
				limit = {
					is_core_of = KUR
					NOT = {
						state = 421
						state = 419
					}
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				KUR = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = KUR
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			KUR = {
				give_resource_rights = { receiver = SOV state = 676 }
				give_resource_rights = { receiver = SOV state = 350 }
			}
			add_resource = {
				type = chromium
				amount = 32
				state = 350
			}
			add_resource = {
				type = steel
				amount = 46
				state = 350
			}
			hidden_effect = {
				KUR = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 70
						neutrality = 17
						fascism = 9
						communism = 4
						anarchy = 0
					}
					division_template = {
						name = "Kurdistani Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"4th Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"5th Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"6th Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"7th Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"8th Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"9th Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"10th Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_migrate_kurdistan = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = KUR
			}
		}

		available = {
			NOT = {
				country_exists = KUR
				KUR = {
					is_subject_of = SOV
				}
			}
			custom_trigger_tooltip = {
				tooltip = kurdistan_states_own_by_sov_or_pups
				OR = {
					353 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 353
						controls_state = 353
					}
				}
				OR = {
					800 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 800
						controls_state = 800
					}
				}
				OR = {
					354 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 354
						controls_state = 354
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			KUR = {
				add_state_core = 354
			}
			every_state = {
				limit = {
					is_core_of = KUR
					NOT = {
						state = 350
						state = 352
						state = 344
						state = 680
						state = 676
						state = 291
						state = 419
						state = 421
					}
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				KUR = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = KUR
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			hidden_effect = {
				KUR = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 70
						neutrality = 17
						fascism = 9
						communism = 4
						anarchy = 0
					}
					division_template = {
						name = "Kurdistani Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Kurdistani Division\" division_template = \"Kurdistani Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = KUR
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_create_free_suez_zone = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = FAT
			}
		}

		available = {
			NOT = {
				country_exists = FAT
			}
			custom_trigger_tooltip = {
				tooltip = free_suez_states_own_by_sov_or_pups
				OR = {
					453 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 453
						controls_state = 453
					}
				}
				OR = {
					446 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 446
						controls_state = 446
					}
				}
				OR = {
					447 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 447
						controls_state = 447
					}
				}
				OR = {
					907 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 907
						controls_state = 907
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			set_country_flag = canal_suez_is_free_dem
			FSZ = {
				add_state_core = 453
				add_state_core = 446
				add_state_core = 447
				add_state_core = 907
			}
			every_state = {
				limit = {
					is_core_of = FSZ
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				FSZ = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = FSZ
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			custom_effect_tooltip = unlock_management_canal_decision
			hidden_effect = {
				FSZ = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 80
						neutrality = 9
						fascism = 5
						communism = 6
						anarchy = 0
					}
					division_template = {
						name = "Suezian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Suezian Division\" division_template = \"Suezian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FSZ
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Suezian Division\" division_template = \"Suezian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FSZ
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Suezian Division\" division_template = \"Suezian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FSZ
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_release_egypt_dem = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = FAT
			}
		}

		available = {
			NOT = {
				country_exists = FAT
			}
			custom_trigger_tooltip = {
				tooltip = egyptian_states_own_by_sov_or_pups
				OR = {
					452 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 452
						controls_state = 452
					}
				}
				OR = {
					552 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 552
						controls_state = 552
					}
				}
				OR = {
					456 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 456
						controls_state = 456
					}
				}
				OR = {
					457 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 457
						controls_state = 457
					}
				}
				OR = {
					907 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 907
						controls_state = 907
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = EGY
					NOT = {
						state = 453
						state = 446
						state = 447
					}
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				EGY = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = EGY
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			hidden_effect = {
				EGY = {
					set_capital = {
						state = 457
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 72
						neutrality = 17
						fascism = 11
						communism = 0
						anarchy = 0
					}
					division_template = {
						name = "Egyptians Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"1st Egyptians Division\" division_template = \"Egyptians Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EGY
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"2nd Egyptians Division\" division_template = \"Egyptians Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EGY
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"3rd Egyptians Division\" division_template = \"Egyptians Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = EGY
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_release_fatimid = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = EGY
				country_exists = FSZ
			}
		}

		available = {
			NOT = {
				country_exists = FSZ
				country_exists = EGY
			}
			custom_trigger_tooltip = {
				tooltip = fatimid_states_own_by_sov_or_pups
				OR = {
					553 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 553
						controls_state = 553
					}
				}
				OR = {
					554 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 554
						controls_state = 554
					}
				}
				OR = {
					454 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 454
						controls_state = 454
					}
				}
				OR = {
					455 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 455
						controls_state = 455
					}
				}
				OR = {
					679 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 679
						controls_state = 679
					}
				}
				OR = {
					453 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 453
						controls_state = 453
					}
				}
				OR = {
					446 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 446
						controls_state = 446
					}
				}
				OR = {
					447 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 447
						controls_state = 447
					}
				}
				OR = {
					452 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 452
						controls_state = 452
					}
				}
				OR = {
					457 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 457
						controls_state = 457
					}
				}
				OR = {
					456 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 456
						controls_state = 456
					}
				}
				OR = {
					552 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 552
						controls_state = 552
					}
				}
				OR = {
					907 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 907
						controls_state = 907
					}
				}
				OR = {
					855 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 855
						controls_state = 855
					}
				}
				OR = {
					856 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 856
						controls_state = 856
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			custom_effect_tooltip = not_create_meso_hejaz_and_canaan
			FAT = {
				add_state_core = 553
				add_state_core = 554
				add_state_core = 454
				add_state_core = 455
				add_state_core = 679
				add_state_core = 453
				add_state_core = 446
				add_state_core = 447
				add_state_core = 452
				add_state_core = 552
				add_state_core = 456
				add_state_core = 457
				add_state_core = 907
				add_state_core = 855
				add_state_core = 856
			}
			every_state = {
				limit = {
					is_core_of = FAT
					NOT = {
						state = 553
						state = 554
						state = 454
						state = 455
						state = 679
					}
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				FAT = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = FAT
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			FAT = {
				give_resource_rights = { receiver = SOV state = 447 }
				give_resource_rights = { receiver = SOV state = 679 }
			}
			add_resource = {
				type = tungsten
				amount = 25
				state = 679
			}
			hidden_effect = {
				if = {
					limit = {
						NOT = {
							country_exists = CAA
						}
					}
					FAT = {
						transfer_state = 553
						transfer_state = 554
						transfer_state = 454
						transfer_state = 455
					}
				}
				if = {
					limit = {
						NOT = {
							country_exists = HEJ
						}
					}
					FAT = {
						transfer_state = 679
					}
				}
				FAT = {
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 59
						neutrality = 21
						fascism = 13
						communism = 7
						anarchy = 0
					}
					division_template = {
						name = "Fatimidian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"1st Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"2nd Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"3rd Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"4th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"5th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"6th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"7th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"8th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"9th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							NOT = {
								state = 552
							}
						}
						create_unit = {
							division = "name = \"10th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_extend_to_sudan = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {
			FAT = {
				is_subject_of = SOV
			}
		}

		available = {
			FAT = {
				is_subject_of = SOV
			}
			OR = {
				551 = {
					is_owned_and_controlled_by = SOV
				}
				551 = {
					is_owned_and_controlled_by = FAT
				}
			}
			OR = {
				767 = {
					is_owned_and_controlled_by = SOV
				}
				767 = {
					is_owned_and_controlled_by = FAT
				}
			}
			OR = {
				883 = {
					is_owned_and_controlled_by = SOV
				}
				883 = {
					is_owned_and_controlled_by = FAT
				}
			}
			OR = {
				886 = {
					is_owned_and_controlled_by = SOV
				}
				886 = {
					is_owned_and_controlled_by = FAT
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			FAT = {
				add_state_core = 551
				add_state_core = 767
				add_state_core = 883
				add_state_core = 886
				transfer_state = 551
				transfer_state = 767
				transfer_state = 883
				transfer_state = 886
			}
			FAT = {
				give_resource_rights = { receiver = SOV state = 551 }
			}
			add_resource = {
				type = oil
				amount = 17
				state = 551
			}
			add_resource = {
				type = chromium
				amount = 22
				state = 551
			}
			hidden_effect = {
				FAT = {
					551 = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					551 = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					551 = {
						create_unit = {
							division = "name = \"11th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					551 = {
						create_unit = {
							division = "name = \"12th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					551 = {
						create_unit = {
							division = "name = \"13th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_extend_to_lybia = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {
			FAT = {
				is_subject_of = SOV
			}
		}

		available = {
			FAT = {
				is_subject_of = SOV
			}
			custom_trigger_tooltip = {
				tooltip = libya_state_owned_by_sov_or_pups
				OR = {
					451 = {
						is_owned_and_controlled_by = SOV
					}
					451 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					663 = {
						is_owned_and_controlled_by = SOV
					}
					663 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					450 = {
						is_owned_and_controlled_by = SOV
					}
					450 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					662 = {
						is_owned_and_controlled_by = SOV
					}
					662 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					449 = {
						is_owned_and_controlled_by = SOV
					}
					449 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					661 = {
						is_owned_and_controlled_by = SOV
					}
					661 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					448 = {
						is_owned_and_controlled_by = SOV
					}
					448 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					273 = {
						is_owned_and_controlled_by = SOV
					}
					273 = {
						is_owned_and_controlled_by = FAT
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			FAT = {
				add_state_core = 663
				add_state_core = 451
				add_state_core = 450
				add_state_core = 662
				add_state_core = 449
				add_state_core = 661
				add_state_core = 448
				add_state_core = 273
			}
			every_state = {
				limit = {
					OR = {
						state = 663
						state = 451
						state = 450
						state = 662
						state = 449
						state = 661
						state = 448
						state = 273
					}
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				FAT = {
					transfer_state = PREV
				}
			}
			FAT = {
				give_resource_rights = { receiver = SOV state = 662 }
				give_resource_rights = { receiver = SOV state = 450 }
			}
			add_resource = {
				type = oil
				amount = 28
				state = 662
			}
			add_resource = {
				type = aluminium
				amount = 27
				state = 450
			}
			hidden_effect = {
				FAT = {
					450 = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					451 = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					450 = {
						create_unit = {
							division = "name = \"14th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					450 = {
						create_unit = {
							division = "name = \"15th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					451 = {
						create_unit = {
							division = "name = \"16th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_extend_to_french_maghreb = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {
			FAT = {
				is_subject_of = SOV
			}
		}

		available = {
			FAT = {
				is_subject_of = SOV
			}
			custom_trigger_tooltip = {
				tooltip = french_maghreb_state_owned_by_sov_or_pups
				OR = {
					665 = {
						is_owned_and_controlled_by = SOV
					}
					665 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					458 = {
						is_owned_and_controlled_by = SOV
					}
					458 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					460 = {
						is_owned_and_controlled_by = SOV
					}
					460 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					459 = {
						is_owned_and_controlled_by = SOV
					}
					459 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					513 = {
						is_owned_and_controlled_by = SOV
					}
					513 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					461 = {
						is_owned_and_controlled_by = SOV
					}
					461 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					462 = {
						is_owned_and_controlled_by = SOV
					}
					462 = {
						is_owned_and_controlled_by = FAT
					}
				}
				OR = {
					514 = {
						is_owned_and_controlled_by = SOV
					}
					514 = {
						is_owned_and_controlled_by = FAT
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			FAT = {
				add_state_core = 665
				add_state_core = 458
				add_state_core = 460
				add_state_core = 459
				add_state_core = 513
				add_state_core = 461
				add_state_core = 462
				add_state_core = 514
				add_state_core = 557
				add_state_core = 786
				add_state_core = 782
			}
			every_state = {
				limit = {
					is_core_of = FAT
					NOT = {
						state = 553
						state = 554
						state = 454
						state = 455
						state = 679
					}
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				FAT = {
					transfer_state = PREV
				}
			}
			FAT = {
				give_resource_rights = { receiver = SOV state = 458 }
				give_resource_rights = { receiver = SOV state = 459 }
				give_resource_rights = { receiver = SOV state = 461 }
			}
			hidden_effect = {
				FAT = {
					random_owned_controlled_state = {
						limit = {
							OR = {
								state = 665
								state = 458
								state = 460
								state = 459
								state = 513
								state = 461
								state = 462
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						limit = {
							OR = {
								state = 665
								state = 458
								state = 460
								state = 459
								state = 513
								state = 461
								state = 462
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						limit = {
							OR = {
								state = 665
								state = 458
								state = 460
								state = 459
								state = 513
								state = 461
								state = 462
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						limit = {
							OR = {
								state = 665
								state = 458
								state = 460
								state = 459
								state = 513
								state = 461
								state = 462
							}
						}
						create_unit = {
							division = "name = \"17th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							OR = {
								state = 665
								state = 458
								state = 460
								state = 459
								state = 513
								state = 461
								state = 462
							}
						}
						create_unit = {
							division = "name = \"18th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							OR = {
								state = 665
								state = 458
								state = 460
								state = 459
								state = 513
								state = 461
								state = 462
							}
						}
						create_unit = {
							division = "name = \"19th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							OR = {
								state = 665
								state = 458
								state = 460
								state = 459
								state = 513
								state = 461
								state = 462
							}
						}
						create_unit = {
							division = "name = \"20th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					random_owned_controlled_state = {
						limit = {
							OR = {
								state = 665
								state = 458
								state = 460
								state = 459
								state = 513
								state = 461
								state = 462
							}
						}
						create_unit = {
							division = "name = \"21th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_extend_to_spanish_maghreb = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {
			FAT = {
				is_subject_of = SOV
			}
		}

		available = {
			FAT = {
				is_subject_of = SOV
			}
			OR = {
				699 = {
					is_owned_and_controlled_by = SOV
				}
				699 = {
					is_owned_and_controlled_by = FAT
				}
			}
			OR = {
				783 = {
					is_owned_and_controlled_by = SOV
				}
				783 = {
					is_owned_and_controlled_by = FAT
				}
			}
			OR = {
				290 = {
					is_owned_and_controlled_by = SOV
				}
				290 = {
					is_owned_and_controlled_by = FAT
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			FAT = {
				add_state_core = 699
				add_state_core = 783
				add_state_core = 290
			}
			every_state = {
				limit = {
					OR = {
						state = 699
						state = 783
						state = 290
					}
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				FAT = {
					transfer_state = PREV
				}
			}
			FAT = {
				give_resource_rights = { receiver = SOV state = 290 }
			}
			hidden_effect = {
				FAT = {
					random_owned_controlled_state = {
						limit = {
							OR = {
								state = 699
								state = 783
								state = 290
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						limit = {
							OR = {
								state = 699
								state = 783
								state = 290
							}
						}
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					699 = {
						create_unit = {
							division = "name = \"22th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					783 = {
						create_unit = {
							division = "name = \"23th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
					290 = {
						create_unit = {
							division = "name = \"23th Fatimidian Division\" division_template = \"Fatimidian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = FAT
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_release_hejaz = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				country_exists = FAT
			}
		}

		available = {
			NOT = {
				country_exists = FAT
			}
			OR = {
				679 = {
					is_owned_and_controlled_by = SOV
				}
				any_country = {
					is_subject_of = SOV
					owns_state = 679
					controls_state = 679
				}
			}
			OR = {
				855 = {
					is_owned_and_controlled_by = SOV
				}
				any_country = {
					is_subject_of = SOV
					owns_state = 855
					controls_state = 855
				}
			}
			OR = {
				856 = {
					is_owned_and_controlled_by = SOV
				}
				any_country = {
					is_subject_of = SOV
					owns_state = 856
					controls_state = 856
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			HEJ = {
				add_state_core = 679
				add_state_core = 855
				add_state_core = 856
			}
			every_state = {
				limit = {
					is_core_of = HEJ
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				HEJ = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = HEJ
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			HEJ = {
				give_resource_rights = { receiver = SOV state = 679 }
			}
			add_resource = {
				type = tungsten
				amount = 25
				state = 679
			}
			hidden_effect = {
				HEJ = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 8
						add_building_construction = {
							type = arms_factory
							level = 4
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 4
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 58
						neutrality = 23
						fascism = 14
						communism = 5
						anarchy = 0
					}
					division_template = {
						name = "Hejazi Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Hejazi Division\" division_template = \"Hejazi Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HEJ
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Hejazi Division\" division_template = \"Hejazi Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HEJ
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Hejazi Division\" division_template = \"Hejazi Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HEJ
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_release_nejd = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = saudis_states_own_by_sov_or_pups
				OR = {
					292 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 292
						controls_state = 292
					}
				}
				OR = {
					678 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 678
						controls_state = 678
					}
				}
				OR = {
					858 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 858
						controls_state = 858
					}
				}
				OR = {
					859 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 859
						controls_state = 859
					}
				}
				OR = {
					857 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 857
						controls_state = 857
					}
				}
				OR = {
					854 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 854
						controls_state = 854
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			NEJ = {
				add_state_core = 292
				add_state_core = 765
				add_state_core = 678
				add_state_core = 858
				add_state_core = 859
				add_state_core = 857
				add_state_core = 854
			}
			every_state = {
				limit = {
					is_core_of = NEJ
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				NEJ = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = NEJ
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			NEJ = {
				give_resource_rights = { receiver = SOV state = 292 }
			}
			add_resource = {
				type = oil
				amount = 28
				state = 292
			}
			hidden_effect = {
				NEJ = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 49
						neutrality = 31
						fascism = 16
						communism = 4
						anarchy = 0
					}
					division_template = {
						name = "Saudi Arabian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Saudi Arabian Division\" division_template = \"Saudi Arabian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NEJ
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Saudi Arabian Division\" division_template = \"Saudi Arabian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NEJ
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Saudi Arabian Division\" division_template = \"Saudi Arabian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = NEJ
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_release_south_arabian = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			custom_trigger_tooltip = {
				tooltip = south_arabian_states_own_by_sov_or_pups
				OR = {
					293 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 293
						controls_state = 293
					}
				}
				OR = {
					659 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 659
						controls_state = 659
					}
				}
				OR = {
					294 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 294
						controls_state = 294
					}
				}
				OR = {
					658 = {
						is_owned_and_controlled_by = SOV
					}
					any_country = {
						is_subject_of = SOV
						owns_state = 658
						controls_state = 658
					}
				}
			}
		}

		fire_only_once = yes

		complete_effect = {
			ASR = {
				add_state_core = 293
				add_state_core = 659
				add_state_core = 294
				add_state_core = 658
			}
			every_state = {
				limit = {
					is_core_of = ASR
					any_country = {
						OR = {
							tag = SOV
							is_subject_of = SOV
						}
						owns_state = PREV
					}
				}
				ASR = {
					transfer_state = PREV
				}
			}
			SOV = {
				set_autonomy = {
					target = ASR
					autonomy_state = autonomy_middle_east_protectorate
				}
			}
			ASR = {
				give_resource_rights = { receiver = SOV state = 658 }
				give_resource_rights = { receiver = SOV state = 294 }
				give_resource_rights = { receiver = SOV state = 293 }
			}
			add_resource = {
				type = oil
				amount = 17
				state = 293
			}
			add_resource = {
				type = oil
				amount = 22
				state = 294
			}
			add_resource = {
				type = oil
				amount = 19
				state = 658
			}
			hidden_effect = {
				ASR = {
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						add_extra_state_shared_building_slots = 4
						add_building_construction = {
							type = arms_factory
							level = 2
							instant_build = yes
						}
						add_building_construction = {
							type = industrial_complex
							level = 2
							instant_build = yes
						}
					}
					set_popularities = {
						democratic = 72
						neutrality = 17
						fascism = 5
						communism = 6
						anarchy = 0
					}
					division_template = {
						name = "South Arabian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st South Arabian Division\" division_template = \"South Arabian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ASR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd South Arabian Division\" division_template = \"South Arabian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ASR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd South Arabian Division\" division_template = \"South Arabian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = ASR
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_management_suez_canal = {

	SOV_close_suez_canal = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		visible = {
			FSZ = {
				is_subject_of = SOV
			}
		}

		available = {
			FSZ = {
				is_subject_of = SOV
			}
			NOT = {
				has_country_flag = has_close_suez_canal
				has_country_flag = is_doing_paper_works_blockade
			}
		}

		days_remove = 35

		complete_effect = {
			hidden_effect = {
				set_country_flag = is_doing_paper_works_blockade
			}
		}

		remove_effect = {
			clr_country_flag = is_doing_paper_works_blockade
			add_ideas = SOV_Canal_suez_closed
			FSZ = {
				add_ideas = SOV_Canal_suez_closed_2
			}
			set_country_flag = has_close_suez_canal
			clr_country_flag = has_re_open_suez_canal
			custom_effect_tooltip = canal_will_be_closed_except_allies
			hidden_effect = {
				every_country = {
					limit = {
						NOT = {
							tag = SOV
							is_subject_of = SOV
							is_in_faction_with = SOV
						}
					}
					set_country_flag = SUEZ_CANAL_BLOCKED_FOR_COUNTRY
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	SOV_open_suez_canal = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		visible = {
			FSZ = {
				is_subject_of = SOV
			}
			has_country_flag = has_close_suez_canal
		}

		available = {
			FSZ = {
				is_subject_of = SOV
			}
			NOT = {
				has_country_flag = is_doing_paper_works_blockade
			}
		}

		days_remove = 35

		complete_effect = {
			hidden_effect = {
				set_country_flag = is_doing_paper_works_blockade
			}
		}

		remove_effect = {
			clr_country_flag = is_doing_paper_works_blockade
			remove_ideas = SOV_Canal_suez_closed
			FSZ = {
				remove_ideas = SOV_Canal_suez_closed_2
			}
			set_country_flag = has_re_open_suez_canal
			clr_country_flag = has_close_suez_canal
			custom_effect_tooltip = canal_will_be_open_everyone
			hidden_effect = {
				every_country = {
					limit = {
						NOT = {
							tag = SOV
							is_subject_of = SOV
							is_in_faction_with = SOV
						}
					}
					clr_country_flag = SUEZ_CANAL_BLOCKED_FOR_COUNTRY
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	SOV_close_access_suez_countries = {

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		visible = {
			FSZ = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					has_civil_war = yes
					has_country_flag = is_victim_of_russian_blockade
				}
				is_major = yes
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_domination_middle_east
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = {
					is_in_faction_with = ROOT
					has_civil_war = yes
					has_country_flag = is_victim_of_russian_blockade
				}
				is_major = yes
			}
		}

		available = {
			NOT = {
				has_country_flag = has_close_suez_canal
				has_country_flag = is_doing_paper_works_blockade
			}
			custom_trigger_tooltip = {
				tooltip = can_not_blockade_more_than_two_countries
				check_variable = {
					var = blockade_suez_count
					value = 2
					compare = less_than
				}
			}
			FROM = {
				is_subject = no
				NOT = {
					has_war_with = SOV
					is_in_faction_with = SOV
				}
			}
		}

		days_remove = 14

		complete_effect = {
			hidden_effect = {
				set_country_flag = is_doing_paper_works_blockade
			}
		}

		remove_effect = {
			custom_effect_tooltip = from_will_not_be_able_use_suez
			hidden_effect = {
				clr_country_flag = is_doing_paper_works_blockade
				FROM = {
					set_country_flag = SUEZ_CANAL_BLOCKED_FOR_COUNTRY
					set_country_flag = is_victim_of_russian_blockade
					country_event = { id = russia2_russia.484 days = 1 }
				}
				add_to_variable = {
					var = blockade_suez_count
					value = 1
				}
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 100
				has_opinion = {
					target = FROM
					value < 1
				}
			}
		}
	}

	SOV_open_access_suez_countries = {

		icon = GFX_decision_hol_exchange_intelligence_data

		allowed = {
			original_tag = SOV
		}

		visible = {
			FSZ = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				has_country_flag = SUEZ_CANAL_BLOCKED_FOR_COUNTRY
				has_country_flag = is_victim_of_russian_blockade
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_domination_middle_east
		}

		target_trigger = {
			FROM = {
				exists = yes
				has_country_flag = SUEZ_CANAL_BLOCKED_FOR_COUNTRY
				has_country_flag = is_victim_of_russian_blockade
			}
		}

		available = {
			NOT = {
				has_country_flag = has_close_suez_canal
				has_country_flag = is_doing_paper_works_blockade
			}
			FROM = {
				is_subject = no
				NOT = {
					has_war_with = SOV
					is_in_faction_with = SOV
				}
				has_country_flag = is_victim_of_russian_blockade
			}
		}

		days_remove = 14

		complete_effect = {
			set_country_flag = is_doing_paper_works_blockade
		}

		remove_effect = {
			clr_country_flag = is_doing_paper_works_blockade
			custom_effect_tooltip = from_will_be_able_use_suez
			hidden_effect = {
				FROM = {
					clr_country_flag = SUEZ_CANAL_BLOCKED_FOR_COUNTRY
					clr_country_flag = is_victim_of_russian_blockade
					country_event = { id = russia2_russia.485 days = 1 }
				}
				subtract_from_variable = {
					var = blockade_suez_count
					value = 1
				}
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 100
				has_opinion = {
					target = FROM
					value > 1
				}
			}
		}
	}
}

SOV_develop_france_united_russia = {

	SOV_develop_military_industries_france = {

		icon = GFX_decision_generic_factory

		allowed = {
			original_tag = SOV
		}

		visible = {
			FRA = {
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				is_subject_of = SOV
			}
			NOT = {
				has_country_flag = is_improving_france_united_russia
			}
		}

		modifier = {
			civilian_factory_use = 10
		}

		cost = 25

		days_remove = 70

		complete_effect = {
			set_country_flag = is_improving_france_united_russia
		}

		remove_effect = {
			custom_effect_tooltip = france_gains_15_united_russia
			clr_country_flag = is_improving_france_united_russia
			FRA = {
				random_owned_controlled_state = {
					limit = {
						is_core_of = FRA
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_core_of = FRA
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
			add_to_variable = {
				var = france_puppetization_united_russia
				value = 15
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_develop_civilian_industries_france = {

		icon = GFX_decision_generic_factory

		allowed = {
			original_tag = SOV
		}

		visible = {
			FRA = {
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				is_subject_of = SOV
			}
			NOT = {
				has_country_flag = is_improving_france_united_russia
			}
		}

		modifier = {
			civilian_factory_use = 10
		}

		cost = 25

		days_remove = 70

		complete_effect = {
			set_country_flag = is_improving_france_united_russia
		}

		remove_effect = {
			custom_effect_tooltip = france_gains_15_united_russia
			clr_country_flag = is_improving_france_united_russia
			FRA = {
				random_owned_controlled_state = {
					limit = {
						is_core_of = FRA
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_core_of = FRA
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_core_of = FRA
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
			add_to_variable = {
				var = france_puppetization_united_russia
				value = 15
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_send_guns_to_united_france = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			FRA = {
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				is_subject_of = SOV
			}
			NOT = {
				has_country_flag = is_improving_france_united_russia
			}
			has_equipment = {
				infantry_equipment > 3999
			}
		}

		modifier = {
			civilian_factory_use = 3
		}

		cost = 25

		days_remove = 35

		complete_effect = {
			set_country_flag = is_improving_france_united_russia
		}

		remove_effect = {
			custom_effect_tooltip = france_gains_10_united_russia
			clr_country_flag = is_improving_france_united_russia
			send_equipment = {
				equipment = infantry_equipment
				amount = 4000
				target = FRA
			}
			add_to_variable = {
				var = france_puppetization_united_russia
				value = 10
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_send_volunteers_to_united_france = {

		icon = GFX_decision_generic_military

		allowed = {
			original_tag = SOV
		}

		visible = {
			FRA = {
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				is_subject_of = SOV
			}
			has_manpower > 30000
			NOT = {
				has_country_flag = is_improving_france_united_russia
			}
		}

		modifier = {
			civilian_factory_use = 3
		}

		cost = 25

		days_remove = 35

		complete_effect = {
			set_country_flag = is_improving_france_united_russia
		}

		remove_effect = {
			custom_effect_tooltip = france_gains_10_united_russia
			clr_country_flag = is_improving_france_united_russia
			add_manpower = -30000
			FRA = {
				add_manpower = 30000
			}
			add_to_variable = {
				var = france_puppetization_united_russia
				value = 10
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_send_scientists_to_united_france = {

		icon = GFX_decision_generic_research

		allowed = {
			original_tag = SOV
		}

		visible = {
			FRA = {
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				is_subject_of = SOV
			}
			NOT = {
				has_country_flag = is_improving_france_united_russia
			}
		}

		modifier = {
			civilian_factory_use = 3
		}

		cost = 25

		days_remove = 180

		complete_effect = {
			FRA = {
				add_ideas = SOV_Russian_scientist
			}
			set_country_flag = is_improving_france_united_russia
		}

		remove_effect = {
			custom_effect_tooltip = france_gains_25_united_russia
			clr_country_flag = is_improving_france_united_russia
			FRA = {
				remove_ideas = SOV_Russian_scientist
			}
			add_to_variable = {
				var = france_puppetization_united_russia
				value = 25
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_send_industrial_advisors_to_united_france = {

		icon = GFX_decision_generic_construction

		allowed = {
			original_tag = SOV
		}

		visible = {
			FRA = {
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				is_subject_of = SOV
			}
			NOT = {
				has_country_flag = is_improving_france_united_russia
			}
		}

		modifier = {
			civilian_factory_use = 3
		}

		cost = 25

		days_remove = 180

		complete_effect = {
			FRA = {
				add_ideas = SOV_Russian_industrial_advisor
			}
			set_country_flag = is_improving_france_united_russia
		}

		remove_effect = {
			custom_effect_tooltip = france_gains_25_united_russia
			clr_country_flag = is_improving_france_united_russia
			FRA = {
				remove_ideas = SOV_Russian_industrial_advisor
			}
			add_to_variable = {
				var = france_puppetization_united_russia
				value = 25
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_send_military_advisors_to_united_france = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		visible = {
			FRA = {
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				is_subject_of = SOV
			}
			NOT = {
				has_country_flag = is_improving_france_united_russia
			}
		}

		modifier = {
			civilian_factory_use = 3
		}

		cost = 25

		days_remove = 180

		complete_effect = {
			FRA = {
				add_ideas = SOV_Russian_military_advisor
			}
			set_country_flag = is_improving_france_united_russia
		}

		remove_effect = {
			custom_effect_tooltip = france_gains_25_united_russia
			clr_country_flag = is_improving_france_united_russia
			FRA = {
				remove_ideas = SOV_Russian_military_advisor
			}
			add_to_variable = {
				var = france_puppetization_united_russia
				value = 25
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_decrease_autonomy_to_united_france = {

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		visible = {
			FRA = {
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				is_subject_of = SOV
			}
			NOT = {
				has_country_flag = is_improving_france_united_russia
				FRA = {
					has_autonomy_state = autonomy_russian_satellite
				}
			}
			custom_trigger_tooltip = {
				tooltip = 100_or_more_puppet_united_france
				check_variable = {
					var = france_puppetization_united_russia
					value = 100
					compare = greater_than_or_equals
				}
			}
		}

		cost = 100

		complete_effect = {
			if = {
				limit = {
					FRA = {
						has_autonomy_state = autonomy_russian_influence
						is_subject_of = SOV
					}
				}
				hidden_effect = {
					SOV = {
						set_autonomy = {
							target = FRA
							autonomy_state = autonomy_russian_puppet
						}
					}
				}
				custom_effect_tooltip = france_becomes_russian_puppet_united
			}
			else_if = {
				limit = {
					FRA = {
						has_autonomy_state = autonomy_russian_puppet
						is_subject_of = SOV
					}
				}
				hidden_effect = {
					SOV = {
						set_autonomy = {
							target = FRA
							autonomy_state = autonomy_russian_satellite
						}
					}
				}
				custom_effect_tooltip = france_becomes_russian_satellite_united
			}
			else = {
				custom_effect_tooltip = can_not_decrease_autonomy_anymore_united_france
			}
			set_variable = {
				var = france_puppetization_united_russia
				value = 0
			}
		}

		ai_will_do = {
			factor = 50
		}
	}
}

SOV_cancel_resource_rights = {

	cancel_resource_rights = {
		icon = GFX_decision_eng_trade_unions_support

		visible = {
			has_country_flag = giving_46_rights_to_sov
			has_full_control_of_state = 46
			SOV = {
				exists = yes
				has_country_flag = sov_receiving_46_rights
			}
		}

		available = {
			has_country_flag = giving_46_rights_to_sov
			has_full_control_of_state = 46
		}

		days_remove = 10

		cost = 10

		remove_effect = {
			SOV = {
				country_event = { id = russia2_romania.12 days = 1 }
				remove_resource_rights = 46
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
}

SOV_switch_country_soviet_fragmented = {

	SOV_switch_to_country = {

		icon = generic_form_nation

		target_array = global.russia_reworked_russian_states

		visible = {
			FROM = {
				exists = yes
				is_ai = yes
				NOT = {
					tag = ROOT
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = FROM.capital
			}
		}

		available = {
			FROM = {
				OR = {
					is_subject_of = ROOT
					has_war = no
				}
			}
		}

		complete_effect = {
			FROM = {
				change_tag_from = ROOT
			}
		}
	}
}

SOV_rename_soviet_cities = {

	SOV_rename_stalingrad = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 217
				controls_state = 217
			}
			if = {
				limit = {
					has_government = communism
				}
				OR = {
					if = {
						limit = {
							has_country_leader = {
								character = SOV_Leon_trotsky
								ruling_only = yes
							}
						}
						NOT = {
							has_global_flag = SOV_stalingrad_renamed_trotsky
						}
					}
					else_if = {
						limit = {
							has_country_leader = {
								character = SOV_Vasily_stalin
								ruling_only = yes
							}
						}
						NOT = {
							has_global_flag = SOV_stalingrad_renamed_vasily
						}
					}
					else = {
						has_global_flag = SOV_stalingrad_renamed_trotsky
						has_global_flag = SOV_stalingrad_renamed_vasily
						has_global_flag = SOV_stalingrad_renamed
						has_global_flag = SOV_stalingrad_renamed_tsar
					}
				}
			}
			else = {
				if = {
					limit = {
						OR = {
							has_country_leader = {
								character = SOV_Kirill_vladimirovich
								ruling_only = yes
							}
							has_country_leader = {
								character = SOV_Vladimir_kirillovich
								ruling_only = yes
							}
							has_country_leader = {
								character = SOV_Anastasia_nikolaevna
								ruling_only = yes
							}
						}
					}
					NOT = {
						has_global_flag = SOV_stalingrad_renamed_tsar
					}
				}
				else = {
					NOT = {
						has_global_flag = SOV_stalingrad_renamed
					}
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 217
			}
		}

		available = {
			has_full_control_of_state = 217
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
					OR = {
						has_country_leader = {
							character = SOV_Kirill_vladimirovich
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Vladimir_kirillovich
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Anastasia_nikolaevna
							ruling_only = yes
						}
					}
				}
				set_province_name = { id = 3529 name = "Tsaritsyn"}
				hidden_effect = {
					set_global_flag = SOV_stalingrad_renamed_tsar
					217 = {
						set_state_name = "Tsaritsyn"
					}
				}
			}
			else_if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 3529 name = "Volgograd"}
				hidden_effect = {
					set_global_flag = SOV_stalingrad_renamed
					217 = {
						set_state_name = "Volgograd"
					}
				}
			}
			else_if = {
				limit = {
					has_country_leader = {
						character = SOV_Leon_trotsky
						ruling_only = yes
					}
				}
				set_province_name = { id = 3529 name = "Trotskygrad"}
				hidden_effect = {
					set_global_flag = SOV_stalingrad_renamed_trotsky
					217 = {
						set_state_name = "Trotskygrad"
					}
				}
			}
			else_if = {
				limit = {
					has_country_leader = {
						character = SOV_Vasily_stalin
						ruling_only = yes
					}
				}
				set_province_name = { id = 3529 name = "Vasilygrad"}
				hidden_effect = {
					set_global_flag = SOV_stalingrad_renamed_vasily
					217 = {
						set_state_name = "Vasilygrad"
					}
				}
			}
			else = {
				reset_province_name = 3529
				hidden_effect = {
					clr_global_flag = SOV_stalingrad_renamed
					clr_global_flag = SOV_stalingrad_renamed_trotsky
					clr_global_flag = SOV_stalingrad_renamed_vasily
					clr_global_flag = SOV_stalingrad_renamed_tsar
					217 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_leningrad = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 195
				controls_state = 195
			}
			if = {
				limit = {
					has_government = communism
				}
				OR = {
					has_global_flag = SOV_leningrad_renamed
					has_global_flag = SOV_leningrad_renamed_petrograd
				}
			}
			else = {
				if = {
					limit = {
						OR = {
							has_country_leader = {
								character = SOV_Alexander_kerensky
								ruling_only = yes
							}
							has_country_leader = {
								character = SOV_Ivan_nikolaevich
								ruling_only = yes
							}
							has_country_leader = {
								character = SOV_Vsevolod_mikhailovich_eikhenbaum
								ruling_only = yes
							}
							has_country_leader = {
								character = SOV_Peter_arshinov
								ruling_only = yes
							}
							has_country_leader = {
								character = SOV_Alexei_borovoi
								ruling_only = yes
							}
						}
					}
					NOT = {
						has_global_flag = SOV_leningrad_renamed_petrograd
					}
				}
				else = {
					NOT = {
						has_global_flag = SOV_leningrad_renamed
					}
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 195
			}
		}

		available = {
			has_full_control_of_state = 195
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
					OR = {
						has_country_leader = {
							character = SOV_Alexander_kerensky
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Ivan_nikolaevich
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Vsevolod_mikhailovich_eikhenbaum
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Peter_arshinov
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Alexei_borovoi
							ruling_only = yes
						}
					}
				}
				set_province_name = { id = 3151 name = "Petrograd"}
				hidden_effect = {
					set_global_flag = SOV_leningrad_renamed_petrograd
					195 = {
						set_state_name = "Petrograd"
					}
				}
			}
			else_if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 3151 name = "Saint Petersburg"}
				hidden_effect = {
					set_global_flag = SOV_leningrad_renamed
					195 = {
						set_state_name = "Saint Petersburg"
					}
				}
			}
			else = {
				reset_province_name = 3151
				hidden_effect = {
					clr_global_flag = SOV_leningrad_renamed
					clr_global_flag = SOV_leningrad_renamed_petrograd
					195 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 500
		}
	}

	SOV_rename_khmelnytskyi = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 199
				controls_state = 199
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_khmelnytskyi_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_khmelnytskyi_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 199
			}
		}

		available = {
			has_full_control_of_state = 199
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 3457 name = "Proskuriv" }
				hidden_effect = {
					set_global_flag = SOV_khmelnytskyi_renamed
					199 = {
						set_state_name = "Proskuriv"
					}
				}
			}
			else = {
				reset_province_name = 3457
				hidden_effect = {
					clr_global_flag = SOV_khmelnytskyi_renamed
					199 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_kirov = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 400
				controls_state = 400
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_kirov_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_kirov_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 400
			}
		}

		available = {
			has_full_control_of_state = 400
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_global_flag = SOV_kirov_renamed
				set_province_name = { id = 6124 name = "Vyatka" }
				hidden_effect = {
					400 = {
						set_state_name = "Vyatka"
					}
				}
			}
			else = {
				clr_global_flag = SOV_kirov_renamed
				hidden_effect = {
					400 = {
						reset_state_name = yes
					}
				}
				reset_province_name = 6124
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_voroshilovgrad = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 228
				controls_state = 228
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_voroshilovgrad_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_voroshilovgrad_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 228
			}
		}

		available = {
			has_full_control_of_state = 228
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 9461 name = "Lugansk" }
				hidden_effect = {
					set_global_flag = SOV_voroshilovgrad_renamed
					228 = {
						set_state_name = "Lugansk"
					}
				}
			}
			else = {
				reset_province_name = 9461
				hidden_effect = {
					clr_global_flag = SOV_voroshilovgrad_renamed
					228 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_stalino = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 227
				controls_state = 227
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_stalino_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_stalino_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 227
			}
		}

		available = {
			has_full_control_of_state = 227
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 6474 name = "Donetsk" }
				hidden_effect = {
					set_global_flag = SOV_stalino_renamed
					227 = {
						set_state_name = "Donetsk"
					}
				}
			}
			else = {
				reset_province_name = 6474
				hidden_effect = {
					clr_global_flag = SOV_stalino_renamed
					227 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_gorki = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 252
				controls_state = 252
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_gorki_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_gorki_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 252
			}
		}

		available = {
			has_full_control_of_state = 252
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 11375 name = "Nizhniy Novgorod" }
				hidden_effect = {
					set_global_flag = SOV_gorki_renamed
					252 = {
						set_state_name = "Nizhniy Novgorod"
					}
				}
			}
			else = {
				reset_province_name = 11375
				hidden_effect = {
					clr_global_flag = SOV_gorki_renamed
					252 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_kuibyshev = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 251
				controls_state = 251
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_kuibyshev_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_kuibyshev_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 251
			}
		}

		available = {
			has_full_control_of_state = 251
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 11225 name = "Samara" }
				hidden_effect = {
					set_global_flag = SOV_kuibyshev_renamed
					251 = {
						set_state_name = "Samara"
					}
				}
			}
			else = {
				reset_province_name = 11225
				hidden_effect = {
					clr_global_flag = SOV_kuibyshev_renamed
					251 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_kalinin = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 247
				controls_state = 247
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_kalinin_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_kalinin_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 247
			}
		}

		available = {
			has_full_control_of_state = 247
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 6245 name = "Tver" }
				hidden_effect = {
					set_global_flag = SOV_kalinin_renamed
					247 = {
						set_state_name = "Tver"
					}
				}
			}
			else = {
				reset_province_name = 6245
				hidden_effect = {
					clr_global_flag = SOV_kalinin_renamed
					247 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_ordzhonikidze = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 828
				controls_state = 828
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_ordzhonikidze_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_ordzhonikidze_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 828
			}
		}

		available = {
			has_full_control_of_state = 828
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 9628 name = "Vladikavkaz" }
				hidden_effect = {
					233 = {
						set_state_name = "Vladikavkaz"
					}
					set_global_flag = SOV_ordzhonikidze_renamed
				}
			}
			else = {
				reset_province_name = 9628
				hidden_effect = {
					clr_global_flag = SOV_ordzhonikidze_renamed
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_sverdlovsk = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 653
				controls_state = 653
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_sverdlovsk_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_sverdlovsk_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 653
			}
		}

		available = {
			has_full_control_of_state = 653
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 1821 name = "Ekaterinburg" }
				hidden_effect = {
					set_global_flag = SOV_sverdlovsk_renamed
					653 = {
						set_state_name = "Ekaterinburg"
					}
				}
			}
			else = {
				reset_province_name = 1821
				hidden_effect = {
					clr_global_flag = SOV_sverdlovsk_renamed
					653 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_alma_ata = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 586
				controls_state = 586
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_alma_ata_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_alma_ata_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 586
			}
		}

		available = {
			has_full_control_of_state = 586
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_province_name = { id = 1591 name = "Verniy" }
				hidden_effect = {
					set_global_flag = SOV_alma_ata_renamed
					586 = {
						set_state_name = "Verniy"
					}
				}
			}
			else = {
				reset_province_name = 1591
				hidden_effect = {
					clr_global_flag = SOV_alma_ata_renamed
					586 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_stalinabad = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 742
				controls_state = 742
			}
			if = {
				limit = {
					has_government = communism
				}
				has_global_flag = SOV_stalinabad_renamed
			}
			else = {
				NOT = {
					has_global_flag = SOV_stalinabad_renamed
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 742
			}
		}

		available = {
			has_full_control_of_state = 742
		}

		complete_effect = {
			if = {
				limit = {
					NOT = {
						has_government = communism
					}
				}
				set_global_flag = SOV_stalinabad_renamed
				set_province_name = { id = 1384 name = "Dushanbe" }
				hidden_effect = {
					742 = {
						set_state_name = "Dushanbe"
					}
				}
			}
			else = {
				clr_global_flag = SOV_stalinabad_renamed
				reset_province_name = 1384
				hidden_effect = {
					742 = {
						reset_state_name = yes
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_russianize_state = {

	SOV_rename_kaunas = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 11
				controls_state = 11
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 11
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 11
		}

		complete_effect = {
			set_province_name = { id = 6296 name = "Kovno" }
			hidden_effect = {
				set_global_flag = SOV_kaunas_renamed
				11 = {
					set_state_name = "Kovno"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_memel = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 188
				controls_state = 188
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 188
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 188
		}

		complete_effect = {
			set_province_name = { id = 3288 name = "Klaipeda" }
			hidden_effect = {
				set_global_flag = SOV_memel_renamed
				188 = {
					set_state_name = "Klaipeda"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_liepaja = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 190
				controls_state = 190
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 190
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 190
		}

		complete_effect = {
			set_province_name = { id = 9262 name = "Libava" }
			hidden_effect = {
				set_global_flag = SOV_liepaja_renamed
				190 = {
					set_state_name = "Libava"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_daugavpalis = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 810
				controls_state = 810
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 810
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 810
		}

		complete_effect = {
			set_province_name = { id = 310 name = "Dvinsk" }
			hidden_effect = {
				set_global_flag = SOV_daugavpalis_renamed
				810 = {
					set_state_name = "Dvinsk"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_tartu = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 191
				controls_state = 191
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 191
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 191
		}

		complete_effect = {
			set_province_name = { id = 9221 name = "Yuryev" }
			hidden_effect = {
				set_global_flag = SOV_tartu_renamed
				191 = {
					set_state_name = "Yuryev"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_wilno = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 784
				controls_state = 784
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 784
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 784
		}

		complete_effect = {
			set_province_name = { id = 3320 name = "Vilna" }
			hidden_effect = {
				set_global_flag = SOV_wilno_renamed
				784 = {
					set_state_name = "Vilna"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_molodeczno = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 96
				controls_state = 96
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 96
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 96
		}

		complete_effect = {
			set_province_name = { id = 406 name = "Molodechno" }
			hidden_effect = {
				set_global_flag = SOV_molodeczno_renamed
				96 = {
					set_state_name = "Molodechno"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_bialstok = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 97
				controls_state = 97
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 97
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 97
		}

		complete_effect = {
			set_province_name = { id = 11301 name = "Byelostok" }
			hidden_effect = {
				set_global_flag = SOV_bialstok_renamed
				97 = {
					set_state_name = "Byelostok"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_suwalki = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 97
				controls_state = 97
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 97
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 97
		}

		complete_effect = {
			set_global_flag = SOV_suwalki_renamed
			set_province_name = { id = 3254 name = "Suvalkija" }
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_baranowicze = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 95
				controls_state = 95
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 95
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 95
		}

		complete_effect = {
			set_province_name = { id = 9304 name = "Baranovichi" }
			hidden_effect = {
				set_global_flag = SOV_baranowicze_renamed
				95 = {
					set_state_name = "Baranovichi"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_brzesc_litewski = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 94
				controls_state = 94
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 94
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 94
		}

		complete_effect = {
			set_province_name = { id = 3392 name = "Brest" }
			hidden_effect = {
				set_global_flag = SOV_brzesc_litewski_renamed
				94 = {
					set_state_name = "Brest"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_rowne = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 93
				controls_state = 93
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 93
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 93
		}

		complete_effect = {
			set_province_name = { id = 6557 name = "Rivne" }
			hidden_effect = {
				set_global_flag = SOV_rowne_renamed
				93 = {
					set_state_name = "Rivne"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_lwow = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 91
				controls_state = 91
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 91
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 91
		}

		complete_effect = {
			set_province_name = { id = 11479 name = "Lvov" }
			hidden_effect = {
				set_global_flag = SOV_lwow_renamed
				91 = {
					set_state_name = "Lvov"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_stanislawow = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 89
				controls_state = 89
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 89
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 89
		}

		complete_effect = {
			set_province_name = { id = 11411 name = "Ivano-Frankiwsk" }
			hidden_effect = {
				set_global_flag = SOV_stanislawow_renamed
				89 = {
					set_state_name = "Ivano-Frankiwsk"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_chernivtsi = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 80
				controls_state = 80
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 80
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 80
		}

		complete_effect = {
			set_province_name = { id = 577 name = "Chernovtsi" }
			hidden_effect = {
				set_global_flag = SOV_chernivtsi_renamed
				80 = {
					set_state_name = "Chernovtsi"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_chisinau = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 78
				controls_state = 78
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 78
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 78
		}

		complete_effect = {
			set_province_name = { id = 3707 name = "Kishinjóv" }
			hidden_effect = {
				set_global_flag = SOV_chisinau_renamed
				78 = {
					set_state_name = "Kishinjóv"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_cetatea_alba = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 766
				controls_state = 766
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 766
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 766
		}

		complete_effect = {
			set_province_name = { id = 6727 name = "Bélgorod-Dnestróvskiy" }
			hidden_effect = {
				set_global_flag = SOV_cetatea_alba_renamed
				766 = {
					set_state_name = "Bélgorod-Dnestróvskiy"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_rename_istanbul = {
		icon = GFX_decision_generic_decision

		visible = {
			OR = {
				owns_state = 797
				controls_state = 797
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 797
			}
		}

		fire_only_once = yes

		available = {
			has_full_control_of_state = 797
		}

		complete_effect = {
			if = {
				limit = {
					has_government = neutrality
					OR = {
						has_country_leader = {
							character = SOV_Kirill_vladimirovich
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Vladimir_kirillovich
							ruling_only = yes
						}
						has_country_leader = {
							character = SOV_Anastasia_nikolaevna
							ruling_only = yes
						}
					}
				}
				set_province_name = { id = 9833 name = "Tsarigrad" }
				hidden_effect = {
					set_global_flag = SOV_istanbul_renamed_tsarigrad
					797 = {
						set_state_name = "Tsarigrad"
					}
					SOV = {
						if = {
							limit = {
								is_subject = no
								has_government = neutrality
								has_cosmetic_tag = RUS
								has_full_control_of_state = 219
								has_full_control_of_state = 2
								has_full_control_of_state = 797
								has_global_flag = SOV_istanbul_renamed_tsarigrad
								NOT = {
									is_in_array = { global.rome_tsarigrad_moscow_achievement = THIS }
								}
							}
							add_to_array = { global.rome_tsarigrad_moscow_achievement = THIS }
							set_variable = { global.rome_tsarigrad_moscow_achievement_date@THIS = global.date }
							set_country_flag = russia_reworked_new_achievement
							if = {
								limit = {
									has_global_flag = russia_reworked_achievements_enabled
								}
								scoped_sound_effect = "russia_reworked_unlock_achievement"
							}
						}
					}
				}
			}
			else = {
				set_province_name = { id = 9833 name = "Konstantinopol" }
				hidden_effect = {
					set_global_flag = SOV_istanbul_renamed
					797 = {
						set_state_name = "Konstantinopol"
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_renegotiate_deals_civil_war = {

	SOV_negotiate_german_rights_ressource = {

		icon = GFX_decision_ger_mefo_bills

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = has_negotiated_with_germany_ressource_rights
		}

		cost = 25

		fire_only_once = yes

		available = {
			NOT = {
				has_war_with = GER
				has_country_flag = is_negotiating_with_german_for_resources_redeal
			}
		}

		ai_will_do = {
			factor = 100
		}

		days_remove = 20

		cancel_trigger = {
			has_war_with = GER
		}

		remove_effect = {
			clr_country_flag = is_negotiating_with_german_for_resources_redeal
		}

		complete_effect = {
			custom_effect_tooltip = chance_german_accept_tt
			set_country_flag = is_negotiating_with_german_for_resources_redeal
			GER = {
				country_event = { id = russia2_germany.27 days = 10 }
			}
		}
	}

	SOV_cancel_german_rights_ressource = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = has_negotiated_with_germany_ressource_rights
		}

		cost = 150

		fire_only_once = yes

		available = {
			NOT = {
				has_war_with = GER
				has_country_flag = is_negotiating_with_german_for_resources_redeal
			}
		}

		ai_will_do = {
			factor = 10
		}

		days_remove = 7

		cancel_trigger = {
			has_war_with = GER
			is_in_faction_with = GER
		}

		remove_effect = {
			clr_country_flag = is_negotiating_with_german_for_resources_redeal
			clr_country_flag = has_negotiated_with_germany_ressource_rights
			clr_country_flag = receive_payment_from_ger
			remove_ideas = SOV_Payment_russian_ressource_rus
			GER = {
				clr_country_flag = is_paying_ressource_for_russia
				remove_ideas = SOV_Payment_russian_ressource_ger
				country_event = { id = russia2_germany.30 days = 4 }
				remove_resource_rights = 582
				remove_resource_rights = 573
				remove_resource_rights = 581
				remove_resource_rights = 564
				remove_resource_rights = 232
				remove_resource_rights = 234
				remove_resource_rights = 821
				remove_resource_rights = 828
				remove_resource_rights = 827
				remove_resource_rights = 233
				remove_resource_rights = 398
			}
		}

		complete_effect = {
			custom_effect_tooltip = war_over_germany_overlord
			custom_effect_tooltip = chance_german_accept_not_war_tt
			set_country_flag = is_negotiating_with_german_for_resources_redeal
		}
	}

	SOV_negotiate_with_japan_far_east = {

		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = japan_receive_far_east_generic
		}

		cost = 50

		fire_only_once = yes

		available = {
			NOT = {
				has_war_with = JAP
				JAP = {
					has_civil_war = yes
				}
			}
			MAN = {
				is_subject_of = JAP
				has_full_control_of_state = 408
				has_full_control_of_state = 409
				has_full_control_of_state = 560
				has_full_control_of_state = 657
				has_full_control_of_state = 561
			}
		}

		ai_will_do = {
			factor = 100
		}

		days_remove = 15

		cancel_trigger = {
			has_war_with = JAP
		}

		remove_effect = {
			JAP = {
				country_event = { id = russia2_japan.30 days = 1 }
			}
		}

		complete_effect = {
			custom_effect_tooltip = chance_japan_accept_return_tt
		}
	}

	SOV_ultimatum_to_manchuria_far_east = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = japan_receive_far_east_generic
			MAN = {
				NOT = {
					is_subject_of = JAP
				}
				owns_state = 408
				owns_state = 409
				owns_state = 560
				owns_state = 657
				owns_state = 561
			}
		}

		cost = 50

		fire_only_once = yes

		available = {
			NOT = {
				is_in_faction_with = MAN
				has_war_with = MAN
				MAN = {
					has_civil_war = yes
				}
			}
			MAN = {
				is_subject = no
				has_full_control_of_state = 408
				has_full_control_of_state = 409
				has_full_control_of_state = 560
				has_full_control_of_state = 657
				has_full_control_of_state = 561
			}
		}

		ai_will_do = {
			factor = 10
		}

		complete_effect = {
			MAN = {
				country_event = { id = russia2_manchukuo.11 days = 1 }
			}
		}
	}

	SOV_ultimatum_to_japan_far_east = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = japan_receive_far_east_generic
			JAP = {
				is_subject = no
				owns_state = 408
				owns_state = 409
				owns_state = 560
				owns_state = 657
				owns_state = 561
			}
		}

		cost = 50

		fire_only_once = yes

		available = {
			NOT = {
				is_in_faction_with = JAP
				has_war_with = JAP
				JAP = {
					has_civil_war = yes
				}
			}
			JAP = {
				has_full_control_of_state = 408
				has_full_control_of_state = 409
				has_full_control_of_state = 560
				has_full_control_of_state = 657
				has_full_control_of_state = 561
			}
		}

		ai_will_do = {
			factor = 10
		}

		complete_effect = {
			JAP = {
				country_event = { id = russia2_japan.33 days = 1 }
			}
		}
	}

	SOV_reintegrate_if_reconquer_far_east = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = japan_receive_far_east_generic
		}

		cost = 100

		fire_only_once = yes

		available = {
			has_full_control_of_state = 408
			has_full_control_of_state = 409
			has_full_control_of_state = 560
			has_full_control_of_state = 657
			has_full_control_of_state = 561
		}

		ai_will_do = {
			factor = 100
		}

		days_remove = 50

		remove_effect = {
			clr_country_flag = japan_receive_far_east_generic
			add_state_core = 408
			add_state_core = 409
			add_state_core = 560
			add_state_core = 657
			add_state_core = 561
			hidden_effect = {
				if = {
					limit = {
						SOV = {
							NOT = {
								has_country_flag = america_receive_siberia_generic
							}
						}
					}
					563 = {
						set_demilitarized_zone = no
					}
					574 = {
						set_demilitarized_zone = no
					}
					562 = {
						set_demilitarized_zone = no
					}
				}
				else_if = {
					limit = {
						SOV = {
							has_country_flag = america_receive_siberia_generic
						}
					}
					563 = {
						set_demilitarized_zone = no
					}
				}
			}
		}
	}

	SOV_negotiate_with_america_siberia = { #TODO that Later

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = america_receive_siberia_generic
		}

		cost = 50

		fire_only_once = yes

		available = {
			NOT = {
				has_war_with = USA
				USA = {
					has_civil_war = yes
				}
			}
			USA = {
				has_full_control_of_state = 562
				has_full_control_of_state = 637
				has_full_control_of_state = 644
				has_full_control_of_state = 574
				has_full_control_of_state = 822
				has_full_control_of_state = 876
				has_full_control_of_state = 877
				has_full_control_of_state = 874
			}
		}

		ai_will_do = {
			factor = 30
		}

		days_remove = 15

		cancel_trigger = {
			has_war_with = USA
		}

		remove_effect = {
			USA = {
				country_event = { id = russia2_america.16 days = 1 }
			}
		}

		complete_effect = {
			custom_effect_tooltip = chance_america_accept_return_tt
		}
	}

	SOV_force_america_siberia_get_out = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = america_receive_siberia_generic
		}

		cost = 50

		fire_only_once = yes

		available = {
			NOT = {
				is_in_faction_with = USA
				has_war_with = USA
				USA = {
					has_civil_war = yes
				}
			}
			USA = {
				has_full_control_of_state = 562
				has_full_control_of_state = 637
				has_full_control_of_state = 644
				has_full_control_of_state = 574
				has_full_control_of_state = 822
				has_full_control_of_state = 876
				has_full_control_of_state = 877
				has_full_control_of_state = 874
			}
			divisions_in_state = {
				type = infantry
				size > 6
				state = 565
			}
		}

		ai_will_do = {
			factor = 10
		}

		war_with_on_remove = USA

		cancel_trigger = {
			NOT = {
				divisions_in_state = {
					type = infantry
					size > 6
					state = 565
				}
			}
			has_war_with = USA
			is_in_faction_with = USA
		}

		days_remove = 30

		complete_effect = {
			hidden_effect = {
				USA = {
					country_event = { id = russia2_america.23 days = 1 }
				}
			}
		}

		remove_effect = {
			SOV = {
				start_border_war = {
					change_state_after_war = no
					attacker = {
						state = 565
						num_provinces = 3
						on_win = russia2_america.19
						on_lose = russia2_america.20
					}

					defender = {
						state = 574
						num_provinces = 3
						on_win = russia2_america.21
						on_lose = russia2_america.22
					}
				}
			}
		}
	}

	SOV_renegotiate_english_treaty = {

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = deliver_english_resources
		}

		cost = 75

		fire_only_once = yes

		available = {
			NOT = {
				has_war_with = ENG
				ENG = {
					has_civil_war = yes
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		complete_effect = {
			custom_effect_tooltip = more_chance_if_condition_english
			ENG = {
				country_event = { id = russia2_england.9 days = 1 }
			}
		}
	}

	SOV_cancel_shipment_english = {

		icon = GFX_decision_generic_naval

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = deliver_english_resources
		}

		cost = 150

		fire_only_once = yes

		available = {
			NOT = {
				is_in_faction_with = ENG
				has_war_with = ENG
				ENG = {
					has_civil_war = yes
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		days_remove = 70

		cancel_trigger = {
			has_war_with = ENG
			is_in_faction_with = ENG
		}

		complete_effect = {

		}

		remove_effect = {
			if = {
				limit = {
					NOT = {
						has_country_flag = english_refused_our_first_demand
					}
				}
				add_stability = -0.1
				custom_effect_tooltip = no_real_reason_to_cancel_that_way
			}
			remove_ideas = SOV_Russian_concession_britain_civil_war
			clr_country_flag = deliver_english_resources
			ENG = {
				country_event = { id = russia2_england.12 days = 1 }
			}
		}
	}

	SOV_sabotage_diplomatic_relation_italy = {

		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = enter_diplomatic_relation_with_italy_possible
		}

		days_re_enable = 70

		cost = 75

		available = {
			NOT = {
				has_country_flag = is_doing_diplo_with_italy
				has_war_with = ITA
				ITA = {
					has_civil_war = yes
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		days_remove = 50

		cancel_trigger = {
			has_war_with = ITA
		}

		remove_effect = {
			clr_country_flag = is_doing_diplo_with_italy
			custom_effect_tooltip = remove_15_points_diplo_relation_ita
			add_to_variable = {
				var = russian_italian_diplomacy_relation_var
				value = -15
			}
		}

		complete_effect = {
			set_country_flag = is_doing_diplo_with_italy
		}
	}

	SOV_improve_diplomatic_relation_italy = {

		icon = GFX_decision_eng_trade_unions_support

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = enter_diplomatic_relation_with_italy_possible
			NOT = {
				has_completed_focus = SOV_the_tables_have_turned
			}
		}

		days_re_enable = 50

		cost = 75

		available = {
			NOT = {
				has_country_flag = is_doing_diplo_with_italy
				has_war_with = ITA
				ITA = {
					has_civil_war = yes
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		days_remove = 50

		cancel_trigger = {
			has_war_with = ITA
		}

		remove_effect = {
			clr_country_flag = is_doing_diplo_with_italy
			custom_effect_tooltip = add_15_points_diplo_relation_ita
			add_to_variable = {
				var = russian_italian_diplomacy_relation_var
				value = 15
			}
		}

		complete_effect = {
			set_country_flag = is_doing_diplo_with_italy
		}
	}

	SOV_condemn_italy_ethiopian_invasion = {

		icon = GFX_decision_generic_prepare_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = enter_diplomatic_relation_with_italy_possible
		}

		cost = 50

		fire_only_once = yes

		available = {
			ITA = {
				owns_state = 271
			}
			NOT = {
				country_exists = ETH
				has_country_flag = is_doing_diplo_with_italy
				has_war_with = ITA
				ITA = {
					has_civil_war = yes
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		days_remove = 30

		cancel_trigger = {
			has_war_with = ITA
		}

		remove_effect = {
			clr_country_flag = is_doing_diplo_with_italy
			custom_effect_tooltip = remove_20_points_diplo_relation_ita
			add_to_variable = {
				var = russian_italian_diplomacy_relation_var
				value = -20
			}
			ITA = {
				country_event = { id = russia2_italy.17 days = 1 }
			}
		}

		complete_effect = {
			set_country_flag = is_doing_diplo_with_italy
		}
	}

	SOV_condemn_italy_for_war = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = enter_diplomatic_relation_with_italy_possible
		}

		cost = 50

		fire_only_once = yes

		available = {
			ITA = {
				has_offensive_war = yes
			}
			NOT = {
				has_country_flag = is_doing_diplo_with_italy
				has_war_with = ITA
				ITA = {
					has_civil_war = yes
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		cancel_trigger = {
			ITA = {
				has_offensive_war = no
			}
		}

		days_remove = 7

		cancel_trigger = {
			has_war_with = ITA
		}

		remove_effect = {
			clr_country_flag = is_doing_diplo_with_italy
			custom_effect_tooltip = remove_25_points_diplo_relation_ita
			add_to_variable = {
				var = russian_italian_diplomacy_relation_var
				value = -25
			}
			ITA = {
				country_event = { id = russia2_italy.18 days = 1 }
			}
		}

		complete_effect = {
			set_country_flag = is_doing_diplo_with_italy
		}
	}

	SOV_close_all_diplomatic_relation_italy = {

		icon = GFX_decision_generic_break_treaty

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = enter_diplomatic_relation_with_italy_possible
		}

		cost = 100

		fire_only_once = yes

		available = {
			NOT = {
				has_war_with = ITA
				ITA = {
					has_civil_war = yes
				}
			}
			custom_trigger_tooltip = {
				tooltip = russian_italian_diplomacy_bad_shape
				check_variable = {
					var = russian_italian_diplomacy_relation_var
					value = -80
					compare = less_than_or_equals
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		complete_effect = {
			ITA = {
				country_event = { id = russia2_italy.16 days = 1 }
			}
			clr_country_flag = enter_diplomatic_relation_with_italy_possible
			clr_country_flag = accept_diplomatic_relation_with_italy
			remove_ideas = SOV_Russian_italian_diplomacy_neutral
			hidden_effect = {
				ITA = {
					remove_ideas = SOV_Russian_italian_diplomacy_neutral
				}
			}
			if = {
				limit = {
					has_non_aggression_pact_with = ITA
				}
				SOV = {
					diplomatic_relation = {
						country = ITA
						relation = non_aggression_pact
						active = no
					}
				}
			}
		}
	}

	SOV_declare_friendship_with_italy = {

		icon = GFX_decision_hol_exchange_intelligence_data

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = enter_diplomatic_relation_with_italy_possible
		}

		cost = 100

		fire_only_once = yes

		available = {
			NOT = {
				has_war_with = ITA
				ITA = {
					has_civil_war = yes
				}
			}
			custom_trigger_tooltip = {
				tooltip = russian_italian_diplomacy_good_shape
				check_variable = {
					var = russian_italian_diplomacy_relation_var
					value = 70
					compare = greater_than_or_equals
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		complete_effect = {
			ITA = {
				country_event = { id = russia2_italy.19 days = 1 }
			}
			clr_country_flag = enter_diplomatic_relation_with_italy_possible
			clr_country_flag = accept_diplomatic_relation_with_italy
		}
	}

	SOV_form_military_alliance_with_italy = {

		icon = GFX_decision_generic_decision

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = can_create_faction_with_ita
			NOT = {
				has_completed_focus = SOV_convince_italy
			}
		}

		cost = 75

		fire_only_once = yes

		available = {
			NOT = {
				has_war_with = ITA
				ITA = {
					has_civil_war = yes
					has_government = communism
					is_in_faction_with = SOV
				}
				has_completed_focus = SOV_the_tables_have_turned
			}
			OR = {
				is_faction_leader = yes
				is_in_faction = no
			}
			if = {
				limit = {
					has_government = fascism
				}
				NOT = {
					has_country_flag = SOV_fascist_focus_on_europe
				}
			}
			if = {
				limit = {
					has_completed_focus = SOV_restoration_tsar
				}
				NOT = {
					has_completed_focus = SOV_convince_italy
				}
			}
		}

		ai_will_do = {
			factor = 10
		}

		complete_effect = {
			ITA = {
				country_event = { id = russia2_italy.22 days = 1 }
			}
		}
	}
}

SOV_alternative_flag = {

	SOV_alternative_flag_third_rome = {
		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_cosmetic_tag = THR
		}

		available = {
			has_full_control_of_state = 2
		}

		complete_effect = {
			set_cosmetic_tag = RSPQ
		}
	}

	SOV_alternative_flag_greater_russia = {
		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_cosmetic_tag = GTR
		}

		available = {

		}

		complete_effect = {
			set_cosmetic_tag = AGTR
		}
	}

	SOV_alternative_flag_third_rome_return = {
		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_cosmetic_tag = RSPQ
		}

		available = {

		}

		complete_effect = {
			set_cosmetic_tag = THR
		}
	}

	SOV_alternative_flag_greater_russia_return = {
		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_cosmetic_tag = AGTR
		}

		available = {

		}

		complete_effect = {
			set_cosmetic_tag = GTR
		}
	}
}

#Decisions from the base game
SOV_industry_relocation_russia2 = {

	SOV_relocate_industry_from_moscow_russia2 = {

		icon = generic_construction

		highlight_states = {
			highlight_states_trigger = {
				state = 219
			}
		}

		available = {
			219 = { #Moscow
				is_owned_and_controlled_by = SOV
				arms_factory > 5
				industrial_complex > 1
			}
			573 = { is_owned_and_controlled_by = SOV } #Zlatoust
			582 = { is_owned_and_controlled_by = SOV } #Magnitogorsk
		}

		fire_only_once = yes

		cost = 25

		days_remove = 15

		modifier = {

		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 200 # oh shit they are getting close!
				OR = {
					AND = {
						owns_state = 246
						NOT = { controls_state = 246 }
					}
					AND = {
						owns_state = 242
						NOT = { controls_state = 242 }
					}
					AND = {
						owns_state = 205
						NOT = { controls_state = 205 }
					}
					AND = {
						owns_state = 223
						NOT = { controls_state = 223 }
					}
					AND = {
						owns_state = 243
						NOT = { controls_state = 243 }
					}
					AND = {
						owns_state = 224
						NOT = { controls_state = 224 }
					}
					AND = {
						owns_state = 222
						NOT = { controls_state = 222 }
					}
				}
			}

			modifier = {
				factor = 0
				SOV_save_pp_for_manpower_trouble = yes
			}
		}

		remove_effect = {
			if = {
				limit = {
					controls_state = 219
				}
				219 = { #Moscow
					remove_building = {
						type = arms_factory
						level = 6
					}
					remove_building = {
						type = industrial_complex
						level = 2
					}
				}
				573 = { #Zlatoust
					add_extra_state_shared_building_slots = 4
					add_building_construction = {
						type = arms_factory
						level = 3
						instant_build = yes
					}
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}

					hidden_effect = {
						damage_building = { type = arms_factory damage = 0.3 }
						damage_building = { type = industrial_complex damage = 0.1 }
					}
				}
				582 = { #Magnitogorsk
					add_extra_state_shared_building_slots = 4
					add_building_construction = {
						type = arms_factory
						level = 3
						instant_build = yes
					}
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}

					hidden_effect = {
						damage_building = { type = arms_factory damage = 0.3 }
						damage_building = { type = industrial_complex damage = 0.1 }
					}
				}
				custom_effect_tooltip = relocate_industry_repair_russia2
			}
			custom_effect_tooltip = SOV_relocate_industry_from_moscow_tt_russia2
		}
	}

	SOV_relocate_industry_from_leningrad_russia2 = {

		icon = generic_construction

		highlight_states = {
			highlight_states_trigger = {
				state = 195
			}
		}

		available = {
			195 = { #Leningrad
				is_owned_and_controlled_by = SOV
				arms_factory > 4
				industrial_complex > 0
			}
			573 = { is_owned_and_controlled_by = SOV } #Zlatoust
			582 = { is_owned_and_controlled_by = SOV } #Magnitogorsk
		}

		fire_only_once = yes

		cost = 25

		days_remove = 15

		modifier = {

		}

		ai_will_do = {
			factor = 1
			modifier = {
				add = 200 # oh shit they are getting close!
				OR = {
					AND = {
						owns_state = 208
						NOT = { controls_state = 208 }
					}
					AND = {
						owns_state = 209
						NOT = { controls_state = 209 }
					}
					AND = {
						owns_state = 244
						NOT = { controls_state = 244 }
					}
					AND = {
						owns_state = 263
						NOT = { controls_state = 263 }
					}
					AND = {
						owns_state = 191
						NOT = { controls_state = 191 }
					}
					AND = {
						owns_state = 146
						NOT = { controls_state = 146 }
					}
				}
			}
			modifier = {
				factor = 0
				SOV_save_pp_for_manpower_trouble = yes
			}
		}

		remove_effect = {
			if = {
				limit = {
					controls_state = 195
				}
				195 = { #Leningrad
					remove_building = {
						type = arms_factory
						level = 5
					}
					remove_building = {
						type = industrial_complex
						level = 1
					}
				}

				573 = { #Zlatoust
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = arms_factory
						level = 3
						instant_build = yes
					}

					hidden_effect = {
						damage_building = { type = arms_factory damage = 0.3 }
					}
				}
				582 = { #Magnitogorsk
					add_extra_state_shared_building_slots = 3
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}

					hidden_effect = {
						damage_building = { type = arms_factory damage = 0.2 }
						damage_building = { type = industrial_complex damage = 0.1 }
					}
				}
				custom_effect_tooltip = relocate_industry_repair_russia2
			}
			custom_effect_tooltip = SOV_relocate_industry_from_leningrad_tt_russia2
		}
	}

	SOV_relocate_industry_from_smolensk_russia2 = {

		icon = generic_construction

		highlight_states = {
			highlight_states_trigger = {
				state = 242
			}
		}

		available = {
			242 = { #Smolensk
				is_owned_and_controlled_by = SOV
				industrial_complex > 1
			}
			573 = { is_owned_and_controlled_by = SOV } #Zlatoust
			582 = { is_owned_and_controlled_by = SOV } #Magnitogorsk
		}

		fire_only_once = yes

		cost = 25

		days_remove = 15

		modifier = {

		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 200 # oh shit they are getting close!
				OR = {
					AND = {
						owns_state = 210
						NOT = { controls_state = 210 }
					}
					AND = {
						owns_state = 207
						NOT = { controls_state = 207 }
					}
					AND = {
						owns_state = 206
						NOT = { controls_state = 206 }
					}
					AND = {
						owns_state = 241
						NOT = { controls_state = 241 }
					}
					AND = {
						owns_state = 243
						NOT = { controls_state = 243 }
					}
					AND = {
						owns_state = 205
						NOT = { controls_state = 205 }
					}
					AND = {
						owns_state = 246
						NOT = { controls_state = 246 }
					}
				}
			}
			modifier = {
				factor = 0
				SOV_save_pp_for_manpower_trouble = yes
			}
		}

		remove_effect = {
			if = {
				limit = {
					controls_state = 242
				}
				242 = { #Smolensk
					remove_building = {
						type = industrial_complex
						level = 2
					}
				}
				573 = { #Zlatoust
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}

					hidden_effect = {
						damage_building = { type = industrial_complex damage = 0.1 }
					}
				}
				582 = { #Magnitogorsk
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}

					hidden_effect = {
						damage_building = { type = industrial_complex damage = 0.1 }
					}
				}
				custom_effect_tooltip = relocate_industry_repair_russia2
			}
			custom_effect_tooltip = SOV_relocate_industry_from_smolensk_tt_russia2
		}
	}

	move_leningrad_aluminium_plant_russia2 = { #195

		icon = aluminium

		highlight_states = {
			highlight_states_trigger = {
				state = 195
			}
		}

		allowed = {
			#Everyone
		}

		available = {
			has_full_control_of_state = 195
			has_full_control_of_state = 569
		}

		visible = {
			controls_state = 195
			controls_state = 569
			195 = { has_state_flag = leningrad_aluminium_developed }
		}

		fire_only_once = yes

		cost = 25

		days_remove = 15

		modifier = {

		}

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 200 # oh shit they are getting close!
				OR = {
					AND = {
						owns_state = 208
						NOT = { controls_state = 208 }
					}
					AND = {
						owns_state = 209
						NOT = { controls_state = 209 }
					}
					AND = {
						owns_state = 244
						NOT = { controls_state = 244 }
					}
					AND = {
						owns_state = 263
						NOT = { controls_state = 263 }
					}
					AND = {
						owns_state = 191
						NOT = { controls_state = 191 }
					}
					AND = {
						owns_state = 146
						NOT = { controls_state = 146 }
					}
				}
			}
			modifier = {
				factor = 0
				SOV_save_pp_for_manpower_trouble = yes
			}
		}

		remove_effect = {
			if = {
				limit = {
					controls_state = 195
				}
				195 = {
					add_resource = {
						type = aluminium
						amount = -12
					}
				}
				569 = {
					add_resource = {
						type = aluminium
						amount = 12
					}
				}
			}
			custom_effect_tooltip = SOV_relocate_industry_from_leningrad_tt_russia2
		}
	}
}

SOV_great_patriotic_war_russia2 = {

	SOV_order_227_russia2 = {

		icon = generic_army_support

		available = {
			has_war = yes
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
			has_civil_war = no
			surrender_progress > 0.25
		}

		cost = 50

		fire_only_once = yes

		visible = {
			has_war = yes
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
		}

		complete_effect = {
			add_timed_idea = {
				idea = SOV_Order_227
    			days = 730
			}
		}

		ai_will_do = {
			factor = 1
			modifier = {
				surrender_progress > 0.25
				factor = 100
			}
		}
	}

	SOV_red_army_offensive_russia2 = {

		icon = generic_nationalism

		available = {
			has_war = yes
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
			has_civil_war = no
			surrender_progress < 0.05
			any_state = {
				is_on_continent = europe
				is_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
			has_completed_focus = SOV_lesson_of_war
		}

		cost = 25

		fire_only_once = yes

		visible = {
			has_war = yes
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
		}

		complete_effect = {
			add_timed_idea = {
				idea = SOV_Red_army_offensive
    			days = 730
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_komintern_red_army_russia2 = {

		icon = generic_military

		available = {
			has_war = yes
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
			has_civil_war = no
			has_completed_focus = SOV_komintern_unite
		}

		fire_only_once = yes

		visible = {
			is_subject = no
			has_war = yes
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
			is_faction_leader = yes
		}

		days_remove = 7

		modifier = {
			political_power_cost = 0.15
		}

		remove_effect = {
			add_ideas = SOV_Unified_komintern_red_armies
			every_other_country = {
				limit = {
					is_in_faction_with = ROOT
					has_government = communism
					has_war_together_with = ROOT
				}
				add_ideas = SOV_Unified_komintern_red_armies
			}
		}

		ai_will_do = {
			factor = 10
		}
	}

	SOV_scorched_earth_russia2 = {

		icon = generic_scorched_earth

		available = {
			has_war = yes
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
			surrender_progress > 0.05
		}

		cost = 50

		fire_only_once = yes

		complete_effect = {
			add_stability = -0.05
			set_country_flag = SOV_scorched_earth_russia2
			unlock_decision_tooltip = SOV_scorched_earth_baltics_russia2
			unlock_decision_tooltip = SOV_scorched_earth_byelorussia_russia2
			unlock_decision_tooltip = SOV_scorched_earth_ukraine_russia2
			unlock_decision_tooltip = SOV_scorched_earth_stalingrad_russia2
			unlock_decision_tooltip = SOV_scorched_earth_caucasus_russia2
			unlock_decision_tooltip = SOV_scorched_earth_moscow_russia2
		}

		ai_will_do = {
			factor = 1

			modifier = {
				factor = 0
				SOV_save_pp_for_manpower_trouble = yes
			}
		}
	}

	SOV_scorched_earth_baltics_russia2 = {

		icon = generic_scorched_earth

		available = {
			has_equipment = {
				support_equipment > 24
			}
		}

		cost = 50

		fire_only_once = yes

		visible = {
			OR = {
				controls_state = 189
				controls_state = 815
				controls_state = 814
				controls_state = 11
				controls_state = 809
				controls_state = 808
				controls_state = 810
				controls_state = 190
				controls_state = 12
				controls_state = 191
				controls_state = 813
				controls_state = 812
				controls_state = 811
				controls_state = 13
			}
			has_country_flag = SOV_scorched_earth_russia2
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = -25
			}
			if = {
				limit = {
					controls_state = 815
				}
				815 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 814
				}
				814 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 809
				}
				809 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 808
				}
				808 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 810
				}
				810 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 813
				}
				813 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 812
				}
				812 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 811
				}
				811 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 189
				}
				189 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 11
				}
				11 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 190
				}
				190 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 12
				}
				12 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 191
				}
				191 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					controls_state = 13
				}
				13 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	SOV_scorched_earth_byelorussia_russia2 = {

		icon = generic_scorched_earth

		available = {
			has_equipment = {
				support_equipment > 49
			}
		}

		cost = 75

		fire_only_once = yes

		visible = {
			has_war = yes
			has_country_flag = SOV_scorched_earth_russia2
			any_of = {
				array = BLR.core_states
				var:v = { is_controlled_by = SOV }
			}
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = -50
			}
			every_controlled_state = {
				limit = {
					is_core_of = BLR
				}
				damage_building = {
					type = infrastructure
					damage = 2
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	SOV_scorched_earth_ukraine_russia2 = {

		icon = generic_scorched_earth

		available = {
			has_equipment = {
				support_equipment > 74
			}
		}

		cost = 75
		fire_only_once = yes
		visible = {
			has_war = yes
			has_country_flag = SOV_scorched_earth_russia2
			any_of = {
				array = UKR.core_states
				var:v = { is_controlled_by = SOV }
			}
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = -75
			}
			every_controlled_state = {
				limit = {
					is_core_of = UKR
				}
				damage_building = {
					type = infrastructure
					damage = 2
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	SOV_scorched_earth_caucasus_russia2 = {

		icon = generic_scorched_earth

		available = {
			has_equipment = {
				support_equipment > 49
			}
		}

		cost = 75
		fire_only_once = yes
		visible = {
			has_war = yes
			OR = {
				420 = { CONTROLLER = { has_war_with = SOV } }
				419 = { CONTROLLER = { has_war_with = SOV } }
				800 = { CONTROLLER = { has_war_with = SOV } }
				354 = { CONTROLLER = { has_war_with = SOV } }
				137 = { CONTROLLER = { has_war_with = SOV } }
				218 = { CONTROLLER = { has_war_with = SOV } }
				238 = { CONTROLLER = { has_war_with = SOV } }
				237 = { CONTROLLER = { has_war_with = SOV } }
				236 = { CONTROLLER = { has_war_with = SOV } }
				231 = { CONTROLLER = { has_war_with = SOV } }#sneaky QA naval invasion check
				233 = { CONTROLLER = { has_war_with = SOV } }
				234 = { CONTROLLER = { has_war_with = SOV } }
			}
			has_country_flag = SOV_scorched_earth_russia2
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = -50
			}
			if = {
				limit = {
					229 = { is_controlled_by = SOV}
				}
				229 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					230 = { is_controlled_by = SOV}
				}
				230 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					231 = { is_controlled_by = SOV}
				}
				231 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					232 = { is_controlled_by = SOV}
				}
				232 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					233 = { is_controlled_by = SOV}
				}
				233 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					234 = { is_controlled_by = SOV}
				}
				234 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					235 = { is_controlled_by = SOV}
				}
				235 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					827 = { is_controlled_by = SOV}
				}
				827 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					828 = { is_controlled_by = SOV}
				}
				828 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					821 = { is_controlled_by = SOV}
				}
				821 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	SOV_scorched_earth_stalingrad_russia2 = {

		icon = generic_scorched_earth

		available = {
			has_equipment = {
				support_equipment > 49
			}
		}

		cost = 75
		fire_only_once = yes
		visible = {
			has_war = yes
			has_country_flag = SOV_scorched_earth_russia2
			OR = {
				227 = { CONTROLLER = { has_war_with = SOV } }
				228 = { CONTROLLER = { has_war_with = SOV } }
				218 = { CONTROLLER = { has_war_with = SOV } }
				245 = { CONTROLLER = { has_war_with = SOV } }
				237 = { CONTROLLER = { has_war_with = SOV } }
				236 = { CONTROLLER = { has_war_with = SOV } }
				231 = { CONTROLLER = { has_war_with = SOV } }#sneaky QA naval invasion check
				238 = { CONTROLLER = { has_war_with = SOV } }
				260 = { CONTROLLER = { has_war_with = SOV } }
				239 = { CONTROLLER = { has_war_with = SOV } }
			}
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = -50
			}
			if = {
				limit = {
					245 = { is_controlled_by = SOV}
				}
				245 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					217 = { is_controlled_by = SOV}
				}
				217 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					218 = { is_controlled_by = SOV}
				}
				218 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					238 = { is_controlled_by = SOV}
				}
				238 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					237 = { is_controlled_by = SOV}
				}
				237 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					236 = { is_controlled_by = SOV}
				}
				236 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					265 = { is_controlled_by = SOV}
				}
				265 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
			if = {
				limit = {
					829 = { is_controlled_by = SOV}
				}
				829 = {
					damage_building = {
						type = infrastructure
						damage = 2
					}
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	SOV_scorched_earth_moscow_russia2 = {

		icon = generic_scorched_earth

		available = {
			has_equipment = {
				support_equipment > 49
			}
		}

		cost = 75
		fire_only_once = yes
		visible = {
			has_war = yes
			has_country_flag = SOV_scorched_earth_russia2
			OR = {
				207 = { CONTROLLER = { has_war_with = SOV } }
				210 = { CONTROLLER = { has_war_with = SOV } }
				241 = { CONTROLLER = { has_war_with = SOV } }
				193 = { CONTROLLER = { has_war_with = SOV } }
				225 = { CONTROLLER = { has_war_with = SOV } }
				240 = { CONTROLLER = { has_war_with = SOV } }
			}
		}

		complete_effect = {
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = -50
			}
			every_controlled_state = {
				limit = {
					OR = {
						state = 220
						state = 222
						state = 224
						state = 243
						state = 205
						state = 242
						state = 246
						state = 219
					}
				}
				damage_building = {
					type = infrastructure
					damage = 2
				}
			}

		}

		ai_will_do = {
			factor = 1
		}
	}

	#202 "Kiev"
	SOV_hold_kiev_russia2 = {

		icon = generic_civil_support

		allowed = {
			original_tag = SOV
		}

		#Fail trigger
		available = {
			NOT = { controls_state = 202 }
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 202
			}
		}

		days_mission_timeout = 90

		fire_only_once = yes

		is_good = yes

		activation = {
			is_subject = no
			has_government = communism
			has_war = yes
			has_civil_war = no
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
			surrender_progress > 0
			any_enemy_country = {
				any_state = {
					is_controlled_by = PREV
					distance_to = {
						value < 500
						target = 202
					}
				}
			}
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
				has_country_flag = black_revolution_civil_war_in_progress
			}
			202 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		#Success
		timeout_effect = {
			add_war_support = 0.05
			add_political_power = 100
			202 = { save_event_target_as = state_defended_gpw_russia2 }
			country_event = russia2_russia.495
		}
		#Fail
		complete_effect = {
			add_stability = -0.05
			202 = { save_event_target_as = state_defended_gpw_russia2 }
			country_event = russia2_russia.496
		}
	}

	#206 "Minsk"
	SOV_hold_minsk_russia2 = {

		icon = generic_civil_support

		allowed = {
			original_tag = SOV
		}

		#Fail trigger
		available = {
			NOT = { controls_state = 206 }
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 206
			}
		}

		days_mission_timeout = 90

		fire_only_once = yes

		is_good = yes

		activation = {
			is_subject = no
			has_government = communism
			has_war = yes
			has_civil_war = no
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
			any_enemy_country = {
				any_state = {
					is_controlled_by = PREV
					distance_to = {
						value < 500
						target = 206
					}
				}
			}
			surrender_progress > 0
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
				has_country_flag = black_revolution_civil_war_in_progress
			}
			206 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		#Success
		timeout_effect = {
			add_war_support = 0.05
			add_political_power = 100
			206 = { save_event_target_as = state_defended_gpw_russia2 }
			country_event = russia2_russia.495
		}
		#Fail
		complete_effect = {
			add_stability = -0.05
			206 = { save_event_target_as = state_defended_gpw_russia2 }
			country_event = russia2_russia.496
		}
	}

	#195 "Leningrad"
	SOV_hold_leningrad_russia2 = {

		icon = generic_civil_support

		allowed = {
			original_tag = SOV
		}

		#Fail trigger
		available = {
			NOT = { controls_state = 195 }
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 195
			}
		}

		days_mission_timeout = 180

		fire_only_once = yes

		is_good = yes

		activation = {
			is_subject = no
			has_government = communism
			has_war = yes
			has_civil_war = no
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
			any_enemy_country = {
				any_state = {
					is_controlled_by = PREV
					distance_to = {
						value < 500
						target = 195
					}
				}
			}
			surrender_progress > 0
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
				has_country_flag = black_revolution_civil_war_in_progress
			}
			195 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		#Success
		timeout_effect = {
			add_stability = 0.05
			add_war_support = 0.05
			195 = { save_event_target_as = state_defended_gpw_russia2 }
			country_event = russia2_russia.495
		}
		#Fail
		complete_effect = {
			add_stability = -0.1
			195 = { save_event_target_as = state_defended_gpw_russia2 }
			country_event = russia2_russia.496
		}
	}

	#219 "Moscow"
	SOV_hold_moscow_russia2 = {

		icon = generic_civil_support

		allowed = {
			original_tag = SOV
		}

		#Fail trigger
		available = {
			NOT = { controls_state = 219 }
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 219
			}
		}

		days_mission_timeout = 180

		fire_only_once = yes

		is_good = yes

		activation = {
			is_subject = no
			has_government = communism
			has_war = yes
			has_civil_war = no
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
			surrender_progress > 0
			any_enemy_country = {
				any_state = {
					is_controlled_by = PREV
					distance_to = {
						value < 500
						target = 219
					}
				}
			}
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
				has_country_flag = black_revolution_civil_war_in_progress
			}
			219 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		#Success
		timeout_effect = {
			add_stability = 0.05
			add_war_support = 0.05
			219 = { save_event_target_as = state_defended_gpw_russia2 }
			country_event = russia2_russia.495
		}
		#Fail
		complete_effect = {
			add_stability = -0.1
			219 = { save_event_target_as = state_defended_gpw_russia2 }
			country_event = russia2_russia.496
		}
	}

	#217 "Stalingrad"
	SOV_hold_stalingrad_russia2 = {

		icon = generic_civil_support

		allowed = {
			original_tag = SOV
		}

		#Fail trigger
		available = {
			NOT = { controls_state = 217 }
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 217
			}
		}

		days_mission_timeout = 180

		fire_only_once = yes

		is_good = yes

		activation = {
			is_subject = no
			has_government = communism
			has_war = yes
			has_civil_war = no
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					is_on_continent = europe
				}
			}
			any_enemy_country = {
				any_state = {
					is_controlled_by = PREV
					distance_to = {
						value < 500
						target = 217
					}
				}
			}
			surrender_progress > 0
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
				has_country_flag = black_revolution_civil_war_in_progress
			}
			217 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		#Success
		timeout_effect = {
			add_stability = 0.05
			add_war_support = 0.05
			217 = { save_event_target_as = state_defended_gpw_russia2 }
			country_event = russia2_russia.495
		}
		#Fail
		complete_effect = {
			add_stability = -0.1
			217 = { save_event_target_as = state_defended_gpw_russia2 }
			country_event = russia2_russia.496
		}
	}

	#Capture 64 "Berlin"
	SOV_capture_berlin_russia2 = {

		icon = generic_tank

		allowed = {
			original_tag = SOV
		}

		#Success trigger
		available = {
			OR = {
				controls_state = 64
				any_country = {
					is_in_faction_with = ROOT
					has_war_together_with = ROOT
					controls_state = 64
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 64
			}
		}

		days_mission_timeout = 180

		fire_only_once = yes

		is_good = no

		activation = {
			is_subject = no
			has_government = communism
			has_war = yes
			has_civil_war = no
			surrender_progress < 0.05
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					state = 64
				}
			}
			any_state = {
				distance_to = {
					value < 500
					target = 64
				}
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_in_faction_with = ROOT
						controls_state = PREV
					}
				}
			}
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
				has_country_flag = black_revolution_civil_war_in_progress
				controls_state = 64
				owns_state = 64
			}
		}

		#Fail
		timeout_effect = {
			add_war_support = -0.05
			add_political_power = -100
			64 = { save_event_target_as = state_captured_gpw_russia2 }
			country_event = russia2_russia.498
		}
		#Success
		complete_effect = {
			if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army1
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army1
					add_idea = SOV_Unstoppable_red_army2
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army2
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army2
					add_idea = SOV_Unstoppable_red_army3
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army3
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army3
					add_idea = SOV_Unstoppable_red_army4
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army4
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army4
					add_idea = SOV_Unstoppable_red_army5
				}
			}
			else = {
				add_ideas = SOV_Unstoppable_red_army1
			}
			64 = { save_event_target_as = state_captured_gpw_russia2 }
			country_event = russia2_russia.497
		}
	}

	#Capture 16 "Paris"
	SOV_capture_paris_russia2 = {

		icon = generic_tank

		allowed = {
			original_tag = SOV
		}

		#Success trigger
		available = {
			OR = {
				controls_state = 16
				any_country = {
					is_in_faction_with = ROOT
					has_war_together_with = ROOT
					controls_state = 16
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 16
			}
		}

		days_mission_timeout = 180

		fire_only_once = yes

		is_good = no

		activation = {
			is_subject = no
			has_government = communism
			has_war = yes
			has_civil_war = no
			surrender_progress < 0.05
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					state = 16
				}
			}
			any_state = {
				distance_to = {
					value < 500
					target = 16
				}
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_in_faction_with = ROOT
						controls_state = PREV
					}
				}
			}
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
				has_country_flag = black_revolution_civil_war_in_progress
				controls_state = 16
				owns_state = 16
			}
		}

		#Fail
		timeout_effect = {
			add_war_support = -0.05
			add_political_power = -100
			16 = { save_event_target_as = state_captured_gpw_russia2 }
			country_event = russia2_russia.498
		}
		#Success
		complete_effect = {
			if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army1
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army1
					add_idea = SOV_Unstoppable_red_army2
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army2
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army2
					add_idea = SOV_Unstoppable_red_army3
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army3
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army3
					add_idea = SOV_Unstoppable_red_army4
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army4
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army4
					add_idea = SOV_Unstoppable_red_army5
				}
			}
			else = {
				add_ideas = SOV_Unstoppable_red_army1
			}
			16 = { save_event_target_as = state_captured_gpw_russia2 }
			country_event = russia2_russia.497
		}
	}

	#Capture 2 "Rome"
	SOV_capture_rome_russia2 = {

		icon = generic_tank

		allowed = {
			original_tag = SOV
		}

		#Success trigger
		available = {
			OR = {
				controls_state = 2
				any_country = {
					is_in_faction_with = ROOT
					has_war_together_with = ROOT
					controls_state = 2
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 2
			}
		}

		days_mission_timeout = 180

		fire_only_once = yes

		is_good = no

		activation = {
			is_subject = no
			has_government = communism
			has_war = yes
			has_civil_war = no
			surrender_progress < 0.05
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					state = 2
				}
			}
			any_state = {
				distance_to = {
					value < 500
					target = 2
				}
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_in_faction_with = ROOT
						controls_state = PREV
					}
				}
			}
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
				has_country_flag = black_revolution_civil_war_in_progress
				controls_state = 2
				owns_state = 2
			}
		}

		#Fail
		timeout_effect = {
			add_war_support = -0.05
			add_political_power = -100
			2 = { save_event_target_as = state_captured_gpw_russia2 }
			country_event = russia2_russia.498
		}
		#Success
		complete_effect = {
			if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army1
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army1
					add_idea = SOV_Unstoppable_red_army2
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army2
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army2
					add_idea = SOV_Unstoppable_red_army3
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army3
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army3
					add_idea = SOV_Unstoppable_red_army4
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army4
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army4
					add_idea = SOV_Unstoppable_red_army5
				}
			}
			else = {
				add_ideas = SOV_Unstoppable_red_army1
			}
			2 = { save_event_target_as = state_captured_gpw_russia2 }
			country_event = russia2_russia.497
		}
	}

	#Capture 126 "London"
	SOV_capture_london_russia2 = {

		icon = generic_tank

		allowed = {
			original_tag = SOV
		}

		#Success trigger
		available = {
			OR = {
				controls_state = 126
				any_country = {
					is_in_faction_with = ROOT
					has_war_together_with = ROOT
					controls_state = 126
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 126
			}
		}

		days_mission_timeout = 180

		fire_only_once = yes

		is_good = no

		activation = {
			is_subject = no
			has_government = communism
			has_war = yes
			has_civil_war = no
			surrender_progress < 0.05
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					state = 126
				}
			}
			any_state = {
				distance_to = {
					value < 500
					target = 126
				}
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_in_faction_with = ROOT
						controls_state = PREV
					}
				}
			}
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
				has_country_flag = black_revolution_civil_war_in_progress
				controls_state = 126
				owns_state = 126
			}
		}

		#Fail
		timeout_effect = {
			add_war_support = -0.05
			add_political_power = -100
			126 = { save_event_target_as = state_captured_gpw_russia2 }
			country_event = russia2_russia.498
		}
		#Success
		complete_effect = {
			if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army1
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army1
					add_idea = SOV_Unstoppable_red_army2
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army2
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army2
					add_idea = SOV_Unstoppable_red_army3
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army3
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army3
					add_idea = SOV_Unstoppable_red_army4
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army4
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army4
					add_idea = SOV_Unstoppable_red_army5
				}
			}
			else = {
				add_ideas = SOV_Unstoppable_red_army1
			}
			126 = { save_event_target_as = state_captured_gpw_russia2 }
			country_event = russia2_russia.497
		}
	}

	#Capture 41 "Madrid"
	SOV_capture_madrid_russia2 = {

		icon = generic_tank

		allowed = {
			original_tag = SOV
		}

		#Success trigger
		available = {
			OR = {
				controls_state = 41
				any_country = {
					is_in_faction_with = ROOT
					has_war_together_with = ROOT
					controls_state = 41
				}
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = 41
			}
		}

		days_mission_timeout = 180

		fire_only_once = yes

		is_good = no

		activation = {
			is_subject = no
			has_government = communism
			has_war = yes
			has_civil_war = no
			surrender_progress < 0.05
			any_enemy_country = {
				is_major = yes
				capital_scope = {
					state = 41
				}
			}
			any_state = {
				distance_to = {
					value < 500
					target = 41
				}
				OR = {
					is_controlled_by = ROOT
					any_country = {
						is_in_faction_with = ROOT
						controls_state = PREV
					}
				}
			}
			NOT = {
				has_global_flag = second_russian_civil_war_in_progress
				has_country_flag = black_revolution_civil_war_in_progress
				controls_state = 41
				owns_state = 41
			}
		}

		#Fail
		timeout_effect = {
			add_war_support = -0.05
			add_political_power = -100
			41 = { save_event_target_as = state_captured_gpw_russia2 }
			country_event = russia2_russia.498
		}
		#Success
		complete_effect = {
			if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army1
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army1
					add_idea = SOV_Unstoppable_red_army2
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army2
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army2
					add_idea = SOV_Unstoppable_red_army3
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army3
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army3
					add_idea = SOV_Unstoppable_red_army4
				}
			}
			else_if = {
				limit = {
					has_idea = SOV_Unstoppable_red_army4
				}
				swap_ideas = {
					remove_idea = SOV_Unstoppable_red_army4
					add_idea = SOV_Unstoppable_red_army5
				}
			}
			else = {
				add_ideas = SOV_Unstoppable_red_army1
			}
			41 = { save_event_target_as = state_captured_gpw_russia2 }
			country_event = russia2_russia.497
		}
	}
}

SOV_greater_kurdistan = {

	SOV_ask_kurdistan_territory = {

		icon = GFX_decision_ger_military_buildup

		fire_only_once = yes

		days_remove = 10

		allowed = {
			original_tag = SOV
		}

		available = {
			FROM = {
				OR = {
					is_neighbor_of = ROOT
					any_country = {
						OR = {
							is_in_faction_with = ROOT
							is_subject_of = ROOT
						}
						is_neighbor_of = FROM
					}
				}
			}
		}

		visible = {
			is_faction_leader = yes
			is_subject = no
			has_government = neutrality
			has_completed_focus = SOV_fate_turkey
			KUR = {
				is_subject_of = SOV
			}
			has_country_flag = choose_kurdistan_over_other_option_event_tur
			is_subject = no
			FROM = {
				exists = yes
				NOT = {
					tag = ROOT
					tag = KUR
				}
				any_state = {
					is_owned_and_controlled_by = FROM
					OR = {
						is_claimed_by = KUR
						is_core_of = KUR
					}
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_fate_turkey
		}

		target_trigger = {
			FROM = {
				exists = yes
				NOT = {
					tag = ROOT
					tag = KUR
				}
				any_state = {
					is_owned_and_controlled_by = FROM
					OR = {
						is_claimed_by = KUR
						is_core_of = KUR
					}
				}
			}
		}

		cost = 50

		war_with_target_on_remove = yes

		remove_effect = {
			FROM = {
				country_event = russia2_russia.506
			}
		}

		ai_will_do = {
			factor = 0
			modifier = {
				add = 100
				strength_ratio = {
					tag = FROM
					ratio > 0.9
				}
			}
		}
	}

	SOV_give_back_kurdistan_territory = {

		icon = GFX_decision_ger_military_buildup

		allowed = {
			original_tag = SOV
		}

		state_target = yes

		available = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				OR = {
					is_core_of = KUR
					is_claimed_by = KUR
				}
			}
		}

		visible = {
			ROOT = {
				is_faction_leader = yes
				is_subject = no
				has_government = neutrality
				has_completed_focus = SOV_fate_turkey
				has_country_flag = choose_kurdistan_over_other_option_event_tur
				is_subject = no
			}
			KUR = {
				is_subject_of = ROOT
			}
			FROM = {
				is_owned_and_controlled_by = ROOT
				OR = {
					is_core_of = KUR
					is_claimed_by = KUR
				}
			}
		}

		target_trigger = {
			FROM = {
				is_owned_and_controlled_by = ROOT
				OR = {
					is_core_of = KUR
					is_claimed_by = KUR
				}
			}
		}

		complete_effect = {
			KUR = {
				transfer_state = FROM
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_slavic_help = {

	SOV_help_slavic = {

		icon = GFX_decision_ger_military_buildup

		fire_only_once = yes

		days_remove = 30

		allowed = {
			original_tag = SOV
		}

		visible = {
			is_faction_leader = yes
			has_completed_focus = SOV_slavic_assistance
			has_government = neutrality
			FROM = {
				exists = yes
				is_in_faction_with = ROOT
				has_country_flag = sov_invited_focus_tsar
			}
		}

		available = {
			num_of_civilian_factories_available_for_projects > 0
			NOT = {
				has_country_flag = sov_helping_slavic_country
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_slavic_assistance
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_in_faction_with = ROOT
				has_country_flag = sov_invited_focus_tsar
			}
		}

		modifier = {
			civilian_factory_use = 1
		}

		cost = 25

		complete_effect = {
			set_country_flag = sov_helping_slavic_country
		}

		remove_effect = {
			clr_country_flag = sov_helping_slavic_country
			FROM = {
				country_event = russia2_russia.505
			}
		}

		ai_will_do = {
			factor = 80
		}
	}
}

SOV_anna_anderson_legitimacy = {

	SOV_gather_support_tsar = {

		icon = hol_radio_oranje

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		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
				}
			}
		}

		available = {
			NOT = {
				has_country_flag = sov_gathering_support_anna
			}
		}

		cost = 50

		days_remove = 25

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
				}
			}
		}

		complete_effect = {
			set_country_flag = sov_gathering_support_tsar
			subtract_from_variable = { anna_anderson_daily_legitimacy_gain = 0.002 }
		}

		remove_effect = {
			clr_country_flag = sov_gathering_support_tsar
			add_to_variable = { anna_anderson_daily_legitimacy_gain = 0.002 }
		}

		modifier = {
			custom_modifier_tooltip = anna_anderson_legitimacy_gain_daily_minus_02
		}
	}

	SOV_gather_support_anna = {

		icon = hol_radio_oranje

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		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
				}
			}
		}

		available = {
			NOT = {
				has_country_flag = sov_gathering_support_tsar
			}
		}

		cost = 50

		days_remove = 25

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				NOT = {
					has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
				}
			}
		}

		complete_effect = {
			set_country_flag = sov_gathering_support_anna
			add_to_variable = { anna_anderson_daily_legitimacy_gain = 0.002 }
		}

		remove_effect = {
			clr_country_flag = sov_gathering_support_anna
			subtract_from_variable = { anna_anderson_daily_legitimacy_gain = 0.002 }
		}

		modifier = {
			custom_modifier_tooltip = anna_anderson_legitimacy_gain_daily_plus_02
		}

	}

	SOV_ask_public_opinion = {

		icon = generic_political_rally

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		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
				}
			}
		}

		available = {

		}

		cost = 50

		ai_will_do = {
			factor = 0
			modifier = {
				add = 10
				OR = {
					AND = {
						has_country_flag = RUS_AI_VLADIMIR_KIRILLOVICH_NEUTRALITY_BEHAVIOR
						check_variable = {
							var = anna_anderson_legitimacy
							value = 0.5
							compare = less_than
						}
					}
					AND = {
						has_country_flag = RUS_AI_ANASTASIA_NIKOLAEVNA_NEUTRALITY_BEHAVIOR
						check_variable = {
							var = anna_anderson_legitimacy
							value = 0.5
							compare = greater_than_or_equals
						}
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = anna_anderson_above_50
			if = {
				limit = {
					check_variable = {
						var = anna_anderson_legitimacy
						value = 0.5
						compare = greater_than_or_equals
					}
				}
				add_to_variable = { anna_anderson_legitimacy = 0.03 }
				clamp_variable = {
					var = anna_anderson_legitimacy
					min = 0
					max = 1
				}
				set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
				multiply_variable = { anna_anderson_legitimacy_gui = 100 }
				multiply_variable = { anna_anderson_legitimacy_gui = 2 }
				round_variable = anna_anderson_legitimacy_gui
				clamp_variable = {
					var = anna_anderson_legitimacy
					min = 0
					max = 200
				}
				custom_effect_tooltip = anna_anderson_add_legitimacy_3
			}
			else = {
				subtract_from_variable = { anna_anderson_legitimacy = 0.03 }
				clamp_variable = {
					var = anna_anderson_legitimacy
					min = 0
					max = 1
				}
				set_variable = { anna_anderson_legitimacy_gui = anna_anderson_legitimacy }
				multiply_variable = { anna_anderson_legitimacy_gui = 100 }
				multiply_variable = { anna_anderson_legitimacy_gui = 2 }
				round_variable = anna_anderson_legitimacy_gui
				clamp_variable = {
					var = anna_anderson_legitimacy
					min = 0
					max = 200
				}
				custom_effect_tooltip = anna_anderson_remove_legitimacy_3
			}
		}
	}

	SOV_meeting_prince_michael_andreevich = {

		icon = generic_political_discourse

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		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
				}
			}
		}

		available = {
			has_country_flag = sov_met_grand_duchess_xenia
		}

		cost = 100

		ai_will_do = {
			factor = 5
		}

		complete_effect = {
			country_event = russia2_russia.513
		}
	}

	SOV_discover_truth = {

		icon = generic_arrest

		allowed = {
			original_tag = SOV
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = sov_anna_anderson_legitimacy_100
				check_variable = {
					var = anna_anderson_legitimacy
					value = 1
					compare = greater_than_or_equals
				}
			}
		}

		is_good = no

		activation = {
			has_country_flag = sov_anna_anderson_returns_russia
		}

		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
				}
			}
		}

		is_good = no

		fire_only_once = yes

		days_mission_timeout = 222

		timeout_effect = {
            country_event = russia2_russia.514
        }

		complete_effect = {
			country_event = russia2_russia.515
		}
	}
}

SOV_buy_african_colonies_decisions = {

	SOV_buy_african_state = {

		icon = hol_attract_foreign_investors

		state_target = yes

		target_array = sov_african_colonies_purchase_array

		available = {
			NOT = {
				has_country_flag = sov_buying_african_state
			}
			FROM = {
				NOT = {
					is_controlled_by = ROOT
				}
				NOT = {
					is_owned_by = ROOT
				}
				NOT = {
					is_core_of = FROM.CONTROLLER
				}
			}
			FROM.OWNER = {
				controls_state = FROM
				NOT = {
					has_war_with = ROOT
				}
				NOT = {
					is_in_faction_with = ROOT
				}
				NOT = {
					is_subject_of = ROOT
				}
			}
		}

		cancel_trigger = {
			OR = {
				FROM = {
					is_controlled_by = ROOT
				}
				FROM = {
					is_owned_by = ROOT
				}
				FROM = {
					is_core_of = FROM.OWNER
				}
				FROM.OWNER = {
					NOT = {
						controls_state = FROM
					}
				}
				FROM.OWNER = {
					has_war_with = ROOT
				}
				FROM.OWNER = {
					is_in_faction_with = ROOT
				}
				FROM.OWNER = {
					is_subject_of = ROOT
				}
			}
		}

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

		fire_only_once = yes

		cost = 50

		ai_will_do = {
			factor = 80
		}

		days_remove = 10

		complete_effect = {
			set_country_flag = sov_buying_african_state
		}

		remove_effect = {
			clr_country_flag = sov_buying_african_state
			FROM.OWNER = {
				country_event = russia2_russia.516
			}
		}
	}
}

SOV_encourage_investments_democratic_decisions = {

	SOV_encourage_investment_democratic_in_state = {

		icon = gre_paying_ifc_debt

		state_target = yes

		target_array = sov_democratic_investments_random_states

		available = {
			num_of_civilian_factories_available_for_projects > 0
			FROM = {
				is_core_of = ROOT
				is_fully_controlled_by = ROOT
			}
			political_power_daily > 0.09
		}

		cancel_trigger = {
			FROM = {
				OR = {
					NOT = {
						is_core_of = ROOT
					}
					NOT = {
						is_fully_controlled_by = ROOT
					}
				}
			}
		}

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

		fire_only_once = yes

		cost = 10

		ai_will_do = {
			factor = 100
		}

		days_remove = 90

		complete_effect = {
			set_temp_variable = { cost_pp_infrastructure = 10 }
			subtract_from_temp_variable = { cost_pp_infrastructure = FROM.infrastructure_level }
			multiply_temp_variable = { cost_pp_infrastructure = -10 }
			if = {
				limit = {
					NOT = {
						check_variable = {
							var = cost_pp_infrastructure
							value = 0
							compare = equals
						}
					}
				}
				add_political_power = var:cost_pp_infrastructure
			}
		}

		modifier = {
			political_power_gain = -0.1
			civilian_factory_use = 1
		}

		remove_effect = {
			FROM = {
				add_extra_state_shared_building_slots = 4
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				if = {
					limit = {
						is_coastal = yes
					}
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
					add_building_construction = {
						type = dockyard
						level = 1
						instant_build = yes
					}
				}
				else = {
					add_building_construction = {
						type = arms_factory
						level = 2
						instant_build = yes
					}
				}
			}
		}
	}
}

SOV_external_threats_decisions = {

	SOV_demand_dismantle_faction = {

		icon = generic_break_treaty

     	available = {
     	    has_completed_focus = SOV_fight_extremist_ideas
			num_faction_members > 1
			surrender_progress < 0.05
			NOT = {
				has_country_flag = sov_democratic_vote_started
			}
			NOT = {
				has_war_with = FROM
			}
     	}

		visible = {
			has_government = democratic
			is_subject = no
			has_capitulated = no
			has_completed_focus = SOV_external_threats
			FROM = {
				exists = yes
				is_subject = no
				is_faction_leader = yes
				OR = {
					NOT = {
						has_government = democratic
						has_government = neutrality
					}
					has_added_tension_amount > 10
					has_wargoal_against = ROOT
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_fight_extremist_ideas
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject = no
				is_faction_leader = yes
				OR = {
					NOT = {
						has_government = democratic
						has_government = neutrality
					}
					has_added_tension_amount > 10
					has_wargoal_against = ROOT
				}
			}
		}

		cancel_trigger = {
			OR = {
				NOT = {
					has_government = democratic
				}
				is_subject = yes
				has_capitulated = yes
			}
		}

     	fire_only_once = yes

     	cost = 50

		days_remove = 10

		ai_will_do = {
			factor = 0
			modifier = {
				add = 1000
				strength_ratio = {
					tag = FROM
					ratio > 1
				}
			}
		}

     	complete_effect = {
			hidden_effect = {
				clear_array = SOV.current_democratic_vote
				clear_array = SOV.current_democratic_vote_not
				clear_array = SOV.current_democratic_vote_for
				clear_array = SOV.current_democratic_vote_against
				clear_array = SOV.current_democratic_vote_registered
				clear_array = SOV.current_democratic_vote_participants
				clr_country_flag = sov_democratic_target_alone
				clr_country_flag = sov_democratic_target_alliance
				clr_country_flag = sov_democratic_vote_started
				every_country = {
					limit = {
						OR = {
							has_country_flag = sov_voted_yes_last_vote
							has_country_flag = sov_voted_no_last_vote
							has_country_flag = sov_voted_not_last_vote
						}
					}
					clr_country_flag = sov_voted_yes_last_vote
					clr_country_flag = sov_voted_no_last_vote
					clr_country_flag = sov_voted_not_last_vote
				}
			}
			FROM = {
				save_event_target_as = sov_current_democratic_target_event_target
			}
			set_country_flag = sov_democratic_vote_started
			set_country_flag = sov_democratic_target_alliance
			set_variable = { SOV.current_democratic_target = FROM.id }
			resize_array = { current_democratic_vote = 2 }
			calculate_sov_gui_percentage_democratic_vote = yes
			every_country = {
				limit = {
					exists = yes
					OR = {
						tag = ROOT
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
				}
				hidden_effect = {
					SOV = {
						add_to_array = { current_democratic_vote_participants = PREV }
					}
				}
				country_event = russia2_russia.527
			}
		}

		remove_effect = {
			if = {
				limit = {
					check_variable = {
						var = SOV.current_democratic_vote^0
						value = SOV.current_democratic_vote^1
						compare = greater_than_or_equals
					}
				}
				country_event = russia2_russia.528
			}
			else = {
				country_event = russia2_russia.529
			}
		}
    }

	SOV_demand_puppet_external_threat = {

		icon = hol_war_on_pacifism

     	available = {
     	    has_completed_focus = SOV_defenders_of_democracy
			num_faction_members > 1
			surrender_progress < 0.05
			NOT = {
				has_country_flag = sov_democratic_vote_started
			}
			NOT = {
				has_war_with = FROM
			}
     	}

		visible = {
			has_government = democratic
			is_subject = no
			has_capitulated = no
			has_completed_focus = SOV_external_threats
			FROM = {
				exists = yes
				is_subject = no
				is_in_faction = no
				OR = {
					NOT = {
						has_government = democratic
						has_government = neutrality
					}
					has_added_tension_amount > 10
					has_wargoal_against = ROOT
				}
			}
		}

		target_root_trigger = {
			tag = SOV
			has_completed_focus = SOV_defenders_of_democracy
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject = no
				is_in_faction = no
				OR = {
					NOT = {
						has_government = democratic
						has_government = neutrality
					}
					has_added_tension_amount > 10
					has_wargoal_against = ROOT
				}
			}
		}

		cancel_trigger = {
			OR = {
				NOT = {
					has_government = democratic
				}
				is_subject = yes
				has_capitulated = yes
			}
		}

     	fire_only_once = yes

     	cost = 50

		days_remove = 10

		ai_will_do = {
			base = 0
			modifier = {
				add = 1000
				strength_ratio = {
					tag = FROM
					ratio > 1
				}
			}
		}

     	complete_effect = {
			hidden_effect = {
				clear_array = SOV.current_democratic_vote
				clear_array = SOV.current_democratic_vote_not
				clear_array = SOV.current_democratic_vote_for
				clear_array = SOV.current_democratic_vote_against
				clear_array = SOV.current_democratic_vote_registered
				clear_array = SOV.current_democratic_vote_participants
				clr_country_flag = sov_democratic_target_alone
				clr_country_flag = sov_democratic_target_alliance
				clr_country_flag = sov_democratic_vote_started
				every_country = {
					limit = {
						OR = {
							has_country_flag = sov_voted_yes_last_vote
							has_country_flag = sov_voted_no_last_vote
							has_country_flag = sov_voted_not_last_vote
						}
					}
					clr_country_flag = sov_voted_yes_last_vote
					clr_country_flag = sov_voted_no_last_vote
					clr_country_flag = sov_voted_not_last_vote
				}
			}
			FROM = {
				save_event_target_as = sov_current_democratic_target_event_target
			}
			set_country_flag = sov_democratic_vote_started
			set_country_flag = sov_democratic_target_alone
			set_variable = { current_democratic_target = FROM.id }
			resize_array = { current_democratic_vote = 2 }
			calculate_sov_gui_percentage_democratic_vote = yes
			every_country = {
				limit = {
					exists = yes
					OR = {
						tag = ROOT
						is_in_faction_with = ROOT
						is_subject_of = ROOT
					}
				}
				hidden_effect = {
					SOV = {
						add_to_array = { current_democratic_vote_participants = PREV }
					}
				}
				country_event = russia2_russia.527
			}
		}

		remove_effect = {
			if = {
				limit = {
					check_variable = {
						var = SOV.current_democratic_vote^0
						value = SOV.current_democratic_vote^1
						compare = greater_than_or_equals
					}
				}
				country_event = russia2_russia.528
				hidden_effect = {
					for_each_scope_loop = {
						array = current_democratic_vote_participants

						if = {
							limit = {
								NOT = {
									tag = SOV
								}
							}
							country_event = russia2_russia.536
						}
					}
				}
			}
			else = {
				country_event = russia2_russia.529
				hidden_effect = {
					for_each_scope_loop = {
						array = current_democratic_vote_participants

						if = {
							limit = {
								NOT = {
									tag = SOV
								}
							}
							country_event = russia2_russia.537
						}
					}
				}
			}
		}
    }
}

SOV_reinstore_german_monarchy_decisions = {

	SOV_restore_german_monarchy = {

		icon = GFX_decision_eng_ally_imperialist_coup

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			OR = {
				has_country_flag = ger_exiles_accept_puppet
				has_country_flag = ger_exiles_accept_puppet_reduced
				has_country_flag = ger_exiles_accept_no_puppet
			}
			NOT = {
				has_country_flag = will_launch_monarchist_insurrection
			}
		}

		available = {
			NOT = {
				has_country_flag = will_launch_monarchist_insurrection
			}
			has_war = no
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = has_successfully_contacted_german_exile_monarch
				OR = {
					has_country_flag = ger_exiles_accept_puppet
					has_country_flag = ger_exiles_accept_puppet_reduced
					has_country_flag = ger_exiles_accept_no_puppet
				}
			}
			custom_trigger_tooltip = {
				tooltip = germany_condition_to_restore_kaiser_in_throne
				OR = {
					AND = {
						NOT = {
							country_exists = GER
						}
						OR = {
							SOV = {
								any_owned_state = {
									is_core_of = GER
								}
							}
							any_country = {
								any_owned_state = {
									is_core_of = GER
								}
								OR = {
									is_in_faction_with = SOV
									is_subject_of = SOV
								}
							}
						}
					}
					GER = {
						is_subject_of = SOV
					}
					any_country = {
						GER = {
							is_subject_of = PREV
						}
						is_in_faction_with = SOV
					}
				}
			}
		}

		complete_effect = {
			country_event = { id = russia2_russia.228 }
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_ultimatum_foreign_country_for_german_puppet = {

		icon = GFX_decision_eng_support_imperialist_coup

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		target_trigger = {
			FROM = {
				NOT = {
					is_in_faction_with = SOV
					has_war_with = SOV
				}
			}
			GER = {
				is_subject_of = FROM
			}
		}

		visible = {
			OR = {
				has_country_flag = ger_exiles_accept_puppet
				has_country_flag = ger_exiles_accept_puppet_reduced
				has_country_flag = ger_exiles_accept_no_puppet
			}
			country_exists = GER
			any_country = {
				GER = {
					is_subject_of = FROM
				}
				NOT = {
					is_in_faction_with = SOV
				}
			}
			NOT = {
				GER = {
					is_subject_of = SOV
				}
			}
		}

		available = {
			has_war = no
			is_subject = no
			country_exists = GER
			NOT = {
				FROM = {
					has_war_with = SOV
					is_in_faction_with = SOV
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_successfully_contacted_german_exile_monarch
				OR = {
					has_country_flag = ger_exiles_accept_puppet
					has_country_flag = ger_exiles_accept_puppet_reduced
					has_country_flag = ger_exiles_accept_no_puppet
				}
			}
			custom_trigger_tooltip = {
				tooltip = ger_is_subject_of_from
				any_country = {
					GER = {
						is_subject_of = FROM
					}
					NOT = {
						is_in_faction_with = SOV
					}
				}
			}
			NOT = {
				GER = {
					is_subject_of = SOV
				}
			}
		}

		cost = 50

		complete_effect = {
			country_event = { id = russia2_russia.232 }
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_launch_monarchist_insurrection = {

		icon = GFX_decision_eng_trade_unions_demand

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			OR = {
				has_country_flag = ger_exiles_accept_puppet
				has_country_flag = ger_exiles_accept_puppet_reduced
				has_country_flag = ger_exiles_accept_no_puppet
			}
			NOT = {
				GER = {
					is_subject_of = SOV
				}
			}
			country_exists = GER
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = any_neighbor_states_is_german
				OR = {
					any_state = {
						is_owned_and_controlled_by = SOV
						any_neighbor_state = {
							is_core_of = GER
							is_owned_and_controlled_by = GER
						}
					}
					POL = {
						is_subject_of = SOV
						any_state = {
							is_owned_and_controlled_by = PREV
							any_neighbor_state = {
								is_core_of = GER
								is_owned_and_controlled_by = GER
							}
						}
					}
				}
			}
			country_exists = GER
			NOT = {
				has_war_with = GER
				GER = {
					OR = {
						is_subject_of = SOV
						is_in_faction_with = SOV
					}
				}
			}
			custom_trigger_tooltip = {
				tooltip = has_successfully_contacted_german_exile_monarch
				OR = {
					has_country_flag = ger_exiles_accept_puppet
					has_country_flag = ger_exiles_accept_puppet_reduced
					has_country_flag = ger_exiles_accept_no_puppet
				}
			}
		}

		cost = 100

		days_remove = 70

		cancel_trigger = {
			has_war_with = GER
		}

		complete_effect = {
			hidden_effect = {
				random_state = {
					limit = {
						NOT = {
							state = 762
						}
						is_core_of = GER
						is_owned_and_controlled_by = GER
						any_neighbor_state = {
							OR = {
								is_owned_and_controlled_by = SOV
								is_owned_and_controlled_by = POL
							}
							NOT = {
								has_state_flag = random_prussian_state_1
								has_state_flag = random_prussian_state_2
								has_state_flag = random_prussian_state_3
								has_state_flag = random_prussian_state_4
								has_state_flag = random_prussian_state_5
							}
						}
					}
					set_state_flag = random_prussian_state_1
				}
				GER = {
					activate_mission = SOV_civil_war_monarchy_incoming
					set_country_flag = is_victim_of_russia_civil_war
				}
			}
		}

		remove_effect = {
			custom_effect_tooltip = release_imperial_prussia_and_strat_war_with_germany
			hidden_effect = {
				set_country_flag = will_launch_monarchist_insurrection
				random_state = {
					limit = {
						NOT = {
							state = 762
						}
						is_core_of = GER
						is_owned_and_controlled_by = GER
						any_neighbor_state = {
							OR = {
								is_owned_and_controlled_by = SOV
								is_owned_and_controlled_by = POL
							}
							NOT = {
								has_state_flag = random_prussian_state_1
								has_state_flag = random_prussian_state_2
								has_state_flag = random_prussian_state_3
							}
						}
					}
					set_state_flag = random_prussian_state_2
				}
				country_event = { id = russia2_germany.34 }
				every_state = {
					limit = {
						OR = {
							has_state_flag = random_prussian_state_1
							has_state_flag = random_prussian_state_2
							has_state_flag = random_prussian_state_3
						}
					}
					PRE = {
						add_state_core = PREV
					}
				}
				GER = {
					release = PRE
					clr_country_flag = is_victim_of_russia_civil_war
				}
				declare_war_on = {
					target = GER
					type = puppet_wargoal_focus
				}
				if = {
					limit = {
						POL = {
							is_subject_of = SOV
						}
					}
					POL = {
						add_to_war = {
							targeted_alliance = SOV
							enemy = GER
							hostility_reason = asked_to_join
						}
					}
				}
				PRE = {
					set_cosmetic_tag = GEC
					declare_war_on = {
						target = GER
						type = annex_everything
					}
					if = {
						limit = {
							SOV = {
								has_country_flag = ger_exiles_accept_puppet
							}
						}
						SOV = {
							set_autonomy = {
								target = PRE
								autonomy_state = autonomy_imperial_governorates
							}
						}
						set_politics = {
							ruling_party = neutrality
							elections_allowed = no
						}
						hidden_effect = {
							set_popularities = {
								democratic = 10
								neutrality = 70
								fascism = 10
								communism = 10
							}
						}
						if = {
							limit = {
								date < 1941.06.04
							}
							create_country_leader = {
								name = "Wilhelm II"
								picture = GFX_portrait_ger_wilhelm_ii
								expire = "1965.1.1"
								ideology = despotism
								traits = {
									anti_democrat imperial_connections
								}
							}
						}
						else = {
							create_country_leader = {
								name = "Wilhelm III"
								picture = GFX_portrait_ger_wilhelm_iii
								expire = "1965.1.1"
								ideology = despotism
								traits = {
									popular_figurehead2
								}
							}
						}
					}
					else_if = {
						limit = {
							has_country_flag = ger_exiles_accept_puppet_reduced
						}
						SOV = {
							set_autonomy = {
								target = PRE
								autonomy_state = autonomy_dominion
							}
						}
						set_politics = {
							ruling_party = neutrality
							elections_allowed = no
						}
						hidden_effect = {
							set_popularities = {
								democratic = 10
								neutrality = 70
								fascism = 10
								communism = 10
							}
						}
						if = {
							limit = {
								date < 1941.06.04
							}
							create_country_leader = {
								name = "Wilhelm II"
								picture = GFX_portrait_ger_wilhelm_ii
								expire = "1965.1.1"
								ideology = despotism
								traits = {
									anti_democrat imperial_connections
								}
							}
						}
						else = {
							create_country_leader = {
								name = "Wilhelm III"
								picture = GFX_portrait_ger_wilhelm_iii
								expire = "1965.1.1"
								ideology = despotism
								traits = {
									popular_figurehead2
								}
							}
						}
						set_country_flag = GER_dominion_no_imperial
						set_country_flag = germany_no_imperial_transform
					}
					else = {
						if = {
							limit = {
								NOT = {
									SOV = { 
										is_faction_leader = yes
									}
								}
							}
							SOV = {
								create_faction = moscow_berlin_pact
								add_to_faction = PRE
							}
						}
						else = {
							SOV = {
								add_to_faction = PRE
							}
						}
						add_ai_strategy = {
							type = alliance
							id = SOV
							value = 500
						}
						set_politics = {
							ruling_party = neutrality
							elections_allowed = no
						}
						hidden_effect = {
							set_popularities = {
								democratic = 10
								neutrality = 70
								fascism = 10
								communism = 10
							}
						}
						if = {
							limit = {
								date < 1941.06.04
							}
							create_country_leader = {
								name = "Wilhelm II"
								picture = GFX_portrait_ger_wilhelm_ii
								expire = "1965.1.1"
								ideology = despotism
								traits = {
									anti_democrat imperial_connections
								}
							}
						}
						else = {
							create_country_leader = {
								name = "Wilhelm III"
								picture = GFX_portrait_ger_wilhelm_iii
								expire = "1965.1.1"
								ideology = despotism
								traits = {
									popular_figurehead2
								}
							}
						}
					}
					division_template = {
						name = "Infanterie-Division"
						division_names_group = GER_Inf_01

						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
							infantry = { x = 2 y = 2 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "Panzer-Division"
						division_names_group = GER_Arm_01

						regiments = {
							light_armor = { x = 0 y = 0 }
							light_armor = { x = 0 y = 1 }
							light_armor = { x = 1 y = 0 }
							light_armor = { x = 1 y = 1 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
						}
						support = {
							mot_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_owned_state = {
						limit = {
							has_state_flag = random_prussian_state_1
						}
						create_unit = {
							division = "name = \"1st Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"2nd Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"3rd Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"4th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"5th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"6th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"7th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"1st Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"2nd Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_state = {
						limit = {
							has_state_flag = random_prussian_state_2
						}
						create_unit = {
							division = "name = \"8th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"9th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"10th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"11th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"12th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"13th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"14th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"15th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"16th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"3rd Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"4th Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_state = {
						limit = {
							has_state_flag = random_prussian_state_3
						}
						create_unit = {
							division = "name = \"17th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"18th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"19th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"20th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"21th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"22th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"23th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"24th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"25th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"26th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"5th Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
						create_unit = {
							division = "name = \"6th Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					every_state = {
						limit = {
							is_initial_core_of_ger = yes
						}
						PRE = {
							add_state_core = PREV
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_demand_foreign_country_german_land = {

		icon = GFX_decision_eng_trade_unions_demand

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			OR = {
				has_country_flag = ger_exiles_accept_puppet
				has_country_flag = ger_exiles_accept_puppet_reduced
				has_country_flag = ger_exiles_accept_no_puppet
			}
			FROM = {
				any_state = {
					is_owned_by = PREV
					is_core_of = GER
				}
				NOT = {
					tag = GER
					tag = SOV
					is_in_faction_with = SOV
					is_subject_of = SOV
				}
			}
		}

		target_trigger = {
			FROM = {
				any_state = {
					is_owned_by = PREV
					is_core_of = GER
				}
				NOT = {
					tag = GER
					tag = SOV
					is_in_faction_with = SOV
					is_subject_of = SOV
				}
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = has_successfully_contacted_german_exile_monarch
				OR = {
					has_country_flag = ger_exiles_accept_puppet
					has_country_flag = ger_exiles_accept_puppet_reduced
					has_country_flag = ger_exiles_accept_no_puppet
				}
			}
			custom_trigger_tooltip = {
				tooltip = from_own_core_of_germany
				FROM = {
					any_state = {
						is_owned_and_controlled_by = PREV
						is_core_of = GER
					}
				}
			}
		}

		cost = 50

		complete_effect = {
			FROM = {
				country_event = { id = russia2_russia.229 days = 1 }
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_restore_prussia_monarchy = {

		icon = GFX_decision_eng_support_imperialist_coup

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
		}

		available = {
			has_war = no
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = prussia_is_owned_by_root_or_puppet
				OR = {
					64 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 64
						is_subject_of = SOV
					}
				}
				OR = {
					61 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 61
						is_subject_of = SOV
					}
				}
				OR = {
					62 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 62
						is_subject_of = SOV
					}
				}
				OR = {
					65 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 65
						is_subject_of = SOV
					}
				}
				OR = {
					66 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 66
						is_subject_of = SOV
					}
				}
				OR = {
					67 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 67
						is_subject_of = SOV
					}
				}
				OR = {
					68 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 68
						is_subject_of = SOV
					}
				}
				OR = {
					63 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 63
						is_subject_of = SOV
					}
				}
				OR = {
					55 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 55
						is_subject_of = SOV
					}
				}
				OR = {
					60 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 60
						is_subject_of = SOV
					}
				}
				OR = {
					5 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 5
						is_subject_of = SOV
					}
				}
				OR = {
					763 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 763
						is_subject_of = SOV
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = release_prussia_as_puppet
			set_country_flag = restoration_german_monarchy_kaiser
			hidden_effect = {
				PRE = {
					inherit_technology = SOV
					add_state_core = 5
					add_state_core = 763
					add_state_core = 67
					add_state_core = 66
					add_state_core = 68
					add_state_core = 63
					add_state_core = 62
					add_state_core = 55
					add_state_core = 64
					add_state_core = 65
					add_state_core = 60
					add_state_core = 61
				}
				every_state = {
					limit = {
						is_core_of = PRE
						any_country = {
							OR = {
								tag = SOV
								is_subject_of = SOV
							}
							owns_state = PREV
						}
					}
					PRE = {
						transfer_state = PREV
					}
				}
				SOV = {
					set_autonomy = {
						target = PRE
						autonomy_state = autonomy_puppet
					}
				}
				PRE = {
					division_template = {
						name = "Infanterie-Division"
						division_names_group = GER_Inf_01
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "Panzer-Division"
						division_names_group = GER_Arm_01

						regiments = {
							light_armor = { x = 0 y = 0 }
							light_armor = { x = 0 y = 1 }
							light_armor = { x = 1 y = 0 }
							light_armor = { x = 1 y = 1 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
						}
						support = {
							mot_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"4th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"5th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"6th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"7th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"8th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"9th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"10th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"11th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"12th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"13th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"14th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"15th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"16th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"17th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"18th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"19th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"20th Infanterie-Division\" division_template = \"Infanterie-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"4th Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"5th Panzer-Division\" division_template = \"Panzer-Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = PRE
						}
					}
					set_popularities = {
						democratic = 10
						neutrality = 70
						fascism = 10
						communism = 10
					}
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_restore_bavaria_monarchy = {

		icon = GFX_decision_eng_support_imperialist_coup

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
			NOT = {
				country_exists = CFR
			}
		}

		available = {
			NOT = {
				country_exists = CFR
			}
			has_war = no
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = bavaria_is_owned_by_root_or_puppet
				OR = {
					54 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 54
						is_subject_of = SOV
					}
				}
				OR = {
					53 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 53
						is_subject_of = SOV
					}
				}
				OR = {
					52 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 52
						is_subject_of = SOV
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = release_bavaria_as_puppet
			hidden_effect = {
				BAY = {
					inherit_technology = SOV
					add_state_core = 52
					add_state_core = 53
					add_state_core = 54
				}
				every_state = {
					limit = {
						is_core_of = BAY
						any_country = {
							OR = {
								tag = SOV
								is_subject_of = SOV
							}
							owns_state = PREV
						}
					}
					BAY = {
						transfer_state = PREV
					}
				}
				SOV = {
					set_autonomy = {
						target = BAY
						autonomy_state = autonomy_puppet
					}
				}
				BAY = {
					division_template = {
						name = "Bavarian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Bavarian Division\" division_template = \"Bavarian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BAY
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Bavarian Division\" division_template = \"Bavarian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BAY
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Bavarian Division\" division_template = \"Bavarian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = BAY
						}
					}
					set_popularities = {
						democratic = 10
						neutrality = 70
						fascism = 10
						communism = 10
					}
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_restore_wurttemberg_monarchy = {

		icon = GFX_decision_eng_support_imperialist_coup

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
			NOT = {
				country_exists = CFR
			}
		}

		available = {
			NOT = {
				country_exists = CFR
			}
			has_war = no
			is_subject = no
			OR = {
				50 = {
					is_owned_and_controlled_by = ROOT
				}
				any_country = {
					owns_state = 50
					is_subject_of = SOV
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = release_wurttemberg_as_puppet
			hidden_effect = {
				WUR = {
					inherit_technology = SOV
					add_state_core = 50
				}
				every_state = {
					limit = {
						is_core_of = WUR
						any_country = {
							OR = {
								tag = SOV
								is_subject_of = SOV
							}
							owns_state = PREV
						}
					}
					WUR = {
						transfer_state = PREV
					}
				}
				SOV = {
					set_autonomy = {
						target = WUR
						autonomy_state = autonomy_puppet
					}
				}
				WUR = {
					division_template = {
						name = "Wurttemberg Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Wurttemberg Division\" division_template = \"Wurttemberg Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = WUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Wurttemberg Division\" division_template = \"Wurttemberg Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = WUR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Wurttemberg Division\" division_template = \"Wurttemberg Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = WUR
						}
					}
					set_popularities = {
						democratic = 10
						neutrality = 70
						fascism = 10
						communism = 10
					}
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_restore_westphalia_monarchy = {

		icon = GFX_decision_eng_support_imperialist_coup

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
			NOT = {
				country_exists = CFR
			}
		}

		available = {
			NOT = {
				country_exists = CFR
			}
			has_war = no
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = westphalia_is_owned_by_root_or_puppet
				OR = {
					58 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 58
						is_subject_of = SOV
					}
				}
				OR = {
					59 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 59
						is_subject_of = SOV
					}
				}
				OR = {
					56 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 56
						is_subject_of = SOV
					}
				}
				OR = {
					57 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 57
						is_subject_of = SOV
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = release_westphalia_as_puppet
			hidden_effect = {
				HAN = {
					inherit_technology = SOV
					add_state_core = 58
					add_state_core = 59
					add_state_core = 56
					add_state_core = 57
				}
				every_state = {
					limit = {
						is_core_of = HAN
						any_country = {
							OR = {
								tag = SOV
								is_subject_of = SOV
							}
							owns_state = PREV
						}
					}
					HAN = {
						transfer_state = PREV
					}
				}
				SOV = {
					set_autonomy = {
						target = HAN
						autonomy_state = autonomy_puppet
					}
				}
				HAN = {
					division_template = {
						name = "Westphalian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Westphalian Division\" division_template = \"Westphalian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HAN
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Westphalian Division\" division_template = \"Westphalian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HAN
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Westphalian Division\" division_template = \"Westphalian Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = HAN
						}
					}
					set_popularities = {
						democratic = 10
						neutrality = 70
						fascism = 10
						communism = 10
					}
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_release_rhineland_monarchy = {

		icon = GFX_decision_eng_support_imperialist_coup

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
			NOT = {
				country_exists = CFR
			}
		}

		available = {
			NOT = {
				country_exists = CFR
			}
			has_war = no
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = rhineland_is_owned_by_root_or_puppet
				OR = {
					51 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 51
						is_subject_of = SOV
					}
				}
				OR = {
					42 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 42
						is_subject_of = SOV
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = release_rhineland_as_puppet
			hidden_effect = {
				RHI = {
					inherit_technology = SOV
					add_state_core = 51
					add_state_core = 42
				}
				every_state = {
					limit = {
						is_core_of = RHI
						any_country = {
							OR = {
								tag = SOV
								is_subject_of = SOV
							}
							owns_state = PREV
						}
					}
					RHI = {
						transfer_state = PREV
					}
				}
				SOV = {
					set_autonomy = {
						target = RHI
						autonomy_state = autonomy_puppet
					}
				}
				RHI = {
					division_template = {
						name = "Rhenish Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Rhenish Division\" division_template = \"Rhenish Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = RHI
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Rhenish Division\" division_template = \"Rhenish Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = RHI
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Rhenish Division\" division_template = \"Rhenish Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = RHI
						}
					}
					set_popularities = {
						democratic = 10
						neutrality = 70
						fascism = 10
						communism = 10
					}
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_release_confederation_rhine_monarchy = {

		icon = GFX_decision_eng_support_imperialist_coup

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
			NOT = {
				country_exists = BAY
				country_exists = WUR
				country_exists = HAN
				country_exists = RHI
			}
		}

		available = {
			NOT = {
				country_exists = BAY
				country_exists = WUR
				country_exists = HAN
				country_exists = RHI
			}
			has_war = no
			is_subject = no
			custom_trigger_tooltip = {
				tooltip = confederation_state_is_owned_by_root_or_puppet
				OR = {
					54 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 54
						is_subject_of = SOV
					}
				}
				OR = {
					53 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 53
						is_subject_of = SOV
					}
				}
				OR = {
					52 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 52
						is_subject_of = SOV
					}
				}
				OR = {
					50 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 50
						is_subject_of = SOV
					}
				}
				OR = {
					58 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 58
						is_subject_of = SOV
					}
				}
				OR = {
					59 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 59
						is_subject_of = SOV
					}
				}
				OR = {
					56 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 56
						is_subject_of = SOV
					}
				}
				OR = {
					57 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 57
						is_subject_of = SOV
					}
				}
				OR = {
					51 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 51
						is_subject_of = SOV
					}
				}
				OR = {
					42 = {
						is_owned_and_controlled_by = ROOT
					}
					any_country = {
						owns_state = 42
						is_subject_of = SOV
					}
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = release_confederate_rhenish_state_puppet
			hidden_effect = {
				CFR = {
					inherit_technology = SOV
					add_state_core = 50
					add_state_core = 52
					add_state_core = 53
					add_state_core = 54
					add_state_core = 58
					add_state_core = 59
					add_state_core = 56
					add_state_core = 57
					add_state_core = 51
					add_state_core = 42
				}
				every_state = {
					limit = {
						is_core_of = CFR
						any_country = {
							OR = {
								tag = SOV
								is_subject_of = SOV
							}
							owns_state = PREV
						}
					}
					CFR = {
						transfer_state = PREV
					}
				}
				SOV = {
					set_autonomy = {
						target = CFR
						autonomy_state = autonomy_puppet
					}
				}
				CFR = {
					division_template = {
						name = "Rhenish Confederate Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "Rhenish Confederate Panzer Division"

						regiments = {
							light_armor = { x = 0 y = 0 }
							light_armor = { x = 0 y = 1 }
							light_armor = { x = 1 y = 0 }
							light_armor = { x = 1 y = 1 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
						}
						support = {
							mot_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"4th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"5th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"6th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"7th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"8th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"9th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"10th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"11th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"12th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"13th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"14th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"15th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"16th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"17th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"18th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"19th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"20th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"21th Rhenish Confederate Division\" division_template = \"Rhenish Confederate Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"1st Rhenish Confederate Panzer Division\" division_template = \"Rhenish Confederate Panzer Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"2nd Rhenish Confederate Panzer Division\" division_template = \"Rhenish Confederate Panzer Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"3rd Rhenish Confederate Panzer Division\" division_template = \"Rhenish Confederate Panzer Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"4th Rhenish Confederate Panzer Division\" division_template = \"Rhenish Confederate Panzer Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"5th Rhenish Confederate Panzer Division\" division_template = \"Rhenish Confederate Panzer Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					random_owned_controlled_state = {
						create_unit = {
							division = "name = \"6th Rhenish Confederate Panzer Division\" division_template = \"Rhenish Confederate Panzer Division\" start_experience_factor = 0.5 start_equipment_factor = 1.0"
							owner = CFR
						}
					}
					set_popularities = {
						democratic = 10
						neutrality = 70
						fascism = 10
						communism = 10
					}
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_fate_of_poland_monarchist_choice_subject = {

		icon = GFX_decision_generic_operation

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = poland_accept_imperial_puppet
			has_country_flag = restoration_german_monarchy_kaiser
		}

		available = {
			country_exists = POL
			is_subject = no
			has_war = no
			has_government = neutrality
			if = {
				limit = {
					has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
					country_exists = PRE
					PRE = {
						is_subject_of = SOV
					}
				}
				custom_trigger_tooltip = {
					tooltip = SOV_fate_of_poland_monarchist_choice_subject_tt_trig_pre
					PRE = {
						OR = {
							is_subject_of = SOV
							AND = {
								is_in_faction_with = SOV
								has_government = neutrality
							}
						}
					}
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = has_successfully_contacted_german_exile_monarch
					OR = {
						has_country_flag = ger_exiles_accept_puppet
						has_country_flag = ger_exiles_accept_puppet_reduced
						has_country_flag = ger_exiles_accept_no_puppet
					}
				}
				custom_trigger_tooltip = {
					tooltip = SOV_fate_of_poland_monarchist_choice_subject_tt_trig
					GER = {
						OR = {
							is_subject_of = SOV
							AND = {
								is_in_faction_with = SOV
								has_government = neutrality
							}
						}
					}
				}
			}
			POL = {
				is_subject_of = SOV
			}
		}

		complete_effect = {
			country_event = { id = russia2_russia.248 }
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_fate_of_poland_monarchist_choice_cede_eastern_pol = {

		icon = GFX_decision_generic_operation

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = has_given_eastern_poland
			has_country_flag = restoration_german_monarchy_kaiser
		}

		available = {
			is_subject = no
			has_war = no
			has_government = neutrality
			if = {
				limit = {
					has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
					country_exists = PRE
					PRE = {
						is_subject_of = SOV
					}
				}
				custom_trigger_tooltip = {
					tooltip = SOV_fate_of_poland_monarchist_choice_subject_tt_trig_pre
					PRE = {
						OR = {
							is_subject_of = SOV
							AND = {
								is_in_faction_with = SOV
								has_government = neutrality
							}
						}
					}
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = has_successfully_contacted_german_exile_monarch
					OR = {
						has_country_flag = ger_exiles_accept_puppet
						has_country_flag = ger_exiles_accept_puppet_reduced
						has_country_flag = ger_exiles_accept_no_puppet
					}
				}
				custom_trigger_tooltip = {
					tooltip = SOV_fate_of_poland_monarchist_choice_subject_tt_trig
					GER = {
						OR = {
							is_subject_of = SOV
							AND = {
								is_in_faction_with = SOV
								has_government = neutrality
							}
						}
					}
				}
			}
			NOT = {
				POL = {
					is_subject_of = SOV
				}
			}
			country_exists = POL
		}

		complete_effect = {
			country_event = { id = russia2_russia.252 }
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_fate_of_poland_monarchist_choice_refuse_every_choice = {

		icon = GFX_decision_generic_operation

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = has_given_eastern_poland
				has_country_flag = poland_accept_imperial_puppet
			}
		}

		available = {
			is_subject = no
			has_war = no
			has_government = neutrality
			if = {
				limit = {
					has_country_flag = decide_to_restore_prussia_and_other_kingdom_for_decisions
					country_exists = PRE
					PRE = {
						is_subject_of = SOV
					}
				}
				custom_trigger_tooltip = {
					tooltip = SOV_fate_of_poland_monarchist_choice_subject_tt_trig_pre
					PRE = {
						OR = {
							is_subject_of = SOV
							AND = {
								is_in_faction_with = SOV
								has_government = neutrality
							}
						}
					}
				}
			}
			else = {
				custom_trigger_tooltip = {
					tooltip = has_successfully_contacted_german_exile_monarch
					OR = {
						has_country_flag = ger_exiles_accept_puppet
						has_country_flag = ger_exiles_accept_puppet_reduced
						has_country_flag = ger_exiles_accept_no_puppet
					}
				}
				custom_trigger_tooltip = {
					tooltip = SOV_fate_of_poland_monarchist_choice_subject_tt_trig
					GER = {
						OR = {
							is_subject_of = SOV
							AND = {
								is_in_faction_with = SOV
								has_government = neutrality
							}
						}
					}
				}
			}
			NOT = {
				POL = {
					is_subject_of = SOV
				}
			}
			country_exists = POL
		}

		complete_effect = {
			country_event = { id = russia2_russia.258 }
		}

		ai_will_do = {
			factor = 80
		}
	}
}

SOV_restore_french_monarchy_decisions_cat = {

	SOV_support_monarchist_movement_france = {

		icon = GFX_decision_eng_propaganda_campaigns

		days_re_enable = 140

		allowed = {
			original_tag = SOV
		}

		visible = {
			country_exists = FRA
			NOT = {
				FRA = {
					has_government = neutrality
				}
			}
			FRA = {
				OR = {
					has_idea = SOV_french_monarchist_sentiment_idea
					has_idea = SOV_french_monarchist_sentiment_idea_2
				}
			}
		}

		available = {
			NOT = {
				FRA = {
					has_government = neutrality
					is_subject = yes
				}
				has_war_with = FRA
			}
			country_exists = FRA
		}

		cost = 150

		days_remove = 70

		complete_effect = {

		}

		remove_effect = {
			FRA = {
				add_popularity = {
					ideology = neutrality
					popularity = 0.05
				}
			}
		}

		cancel_trigger = {
			FRA = {
				custom_trigger_tooltip = {
					tooltip = not_has_idea_french_monarchist_sentiment
					NOT = {
						has_idea = SOV_french_monarchist_sentiment_idea
					}
					NOT = {
						has_idea = SOV_french_monarchist_sentiment_idea_2
					}
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_fund_the_monarchist_party_france = {

		icon = GFX_decision_hol_attract_foreign_investors

		days_re_enable = 100

		allowed = {
			original_tag = SOV
		}

		visible = {
			country_exists = FRA
			NOT = {
				FRA = {
					has_government = neutrality
				}
			}
			FRA = {
				OR = {
					has_idea = SOV_french_monarchist_sentiment_idea
					has_idea = SOV_french_monarchist_sentiment_idea_2
				}
			}
		}

		available = {
			NOT = {
				FRA = {
					has_government = neutrality
					is_subject = yes
				}
				has_war_with = FRA
			}
			country_exists = FRA
		}

		cost = 100

		days_remove = 70

		complete_effect = {
			set_country_flag = boosting_french_monarchy_party
			FRA = {
				swap_ideas = {
					remove_idea = SOV_french_monarchist_sentiment_idea
					add_idea = SOV_french_monarchist_sentiment_idea_2
				}
			}
		}

		cancel_trigger = {
			FRA = {
				custom_trigger_tooltip = {
					tooltip = not_has_idea_french_monarchist_sentiment
					NOT = {
						has_idea = SOV_french_monarchist_sentiment_idea
					}
					NOT = {
						has_idea = SOV_french_monarchist_sentiment_idea_2
					}
				}
			}
		}

		remove_effect = {
			clr_country_flag = boosting_french_monarchy_party
			FRA = {
				swap_ideas = {
					remove_idea = SOV_french_monarchist_sentiment_idea_2
					add_idea = SOV_french_monarchist_sentiment_idea
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_influence_monarchist_leaders_france = {

		icon = GFX_decision_generic_political_discourse

		days_re_enable = 35

		allowed = {
			original_tag = SOV
		}

		visible = {
			country_exists = FRA
			NOT = {
				FRA = {
					has_government = neutrality
				}
			}
			FRA = {
				OR = {
					has_idea = SOV_french_monarchist_sentiment_idea
					has_idea = SOV_french_monarchist_sentiment_idea_2
				}
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = not_has_over_100_influence_monarchist
				NOT = {
					check_variable = {
						var = french_monarchist_leader_influence_var
						value = 100
						compare = greater_than_or_equals
					}
				}
			}
			NOT = {
				has_war_with = FRA
				FRA = {
					has_government = neutrality
					is_subject = yes
				}
			}
			country_exists = FRA
		}

		cost = 50

		complete_effect = {

		}

		days_remove = 70

		cancel_trigger = {
			FRA = {
				custom_trigger_tooltip = {
					tooltip = not_has_idea_french_monarchist_sentiment
					NOT = {
						has_idea = SOV_french_monarchist_sentiment_idea
					}
					NOT = {
						has_idea = SOV_french_monarchist_sentiment_idea_2
					}
				}
			}
		}

		remove_effect = {
			add_to_variable = {
				var = french_monarchist_leader_influence_var
			    value = 20
			}
			custom_effect_tooltip = wil_add_20_chance_french
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_launch_civil_war_french_monarchist = {

		fire_only_once = yes

		icon = GFX_decision_generic_military

		allowed = {
			original_tag = SOV
		}

		visible = {
			country_exists = FRA
			NOT = {
				FRA = {
					has_government = neutrality
				}
			}
			FRA = {
				OR = {
					has_idea = SOV_french_monarchist_sentiment_idea
					has_idea = SOV_french_monarchist_sentiment_idea_2
				}
			}
		}

		available = {
			FRA = {
				neutrality > 0.3
			}
			NOT = {
				has_country_flag = boosting_french_monarchy_party
				FRA = {
					has_government = neutrality
					is_subject = yes
					has_war = yes
				}
			}
			country_exists = FRA
		}

		cost = 100

		complete_effect = {
			hidden_effect = {
				FRA = {
					activate_mission = SOV_civil_war_monarchy_incoming
					set_country_flag = is_victim_of_russia_civil_war
				}
			}
			custom_effect_tooltip = more_neutrality_and_more_power_monarchy
			set_country_flag = is_doing_finale_france
			randomize_variable = {
				var = randomize_french_monarchist_leader_influence_var
				distribution = uniform
				min = 0
				max = 100
			}
			round_variable = randomize_french_monarchist_leader_influence_var
			add_to_variable = {
				var = french_monarchist_leader_influence_var
				value = randomize_french_monarchist_leader_influence_var
			}
			round_variable = french_monarchist_leader_influence_var
		}

		days_remove = 70

		cancel_trigger = {
			FRA = {
				has_war = yes
				custom_trigger_tooltip = {
					tooltip = not_has_idea_french_monarchist_sentiment
					NOT = {
						has_idea = SOV_french_monarchist_sentiment_idea
					}
					NOT = {
						has_idea = SOV_french_monarchist_sentiment_idea_2
					}
				}
			}
		}

		remove_effect = {
			hidden_effect = {
				every_state = {
					limit = {
						is_owned_by = FRA
					}
					set_state_flag = french_state_before_monarchist_war
				}
			}
			set_country_flag = launched_civil_war_for_monarchist_france
			clr_country_flag = is_doing_finale_france
			FRA = {
				clr_country_flag = is_victim_of_russia_civil_war
				remove_ideas = SOV_french_monarchist_sentiment_idea
				start_civil_war = {
					ideology = neutrality
					size = party_popularity@neutrality
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_help_french_monarchist_coup_detat = {

		fire_only_once = yes

		icon = GFX_decision_generic_political_rally

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = launched_civil_war_for_monarchist_france
			}
			country_exists = FRA
			NOT = {
				FRA = {
					has_government = neutrality
				}
			}
			FRA = {
				OR = {
					has_idea = SOV_french_monarchist_sentiment_idea
					has_idea = SOV_french_monarchist_sentiment_idea_2
				}
			}
		}

		available = {
			hidden_trigger = {
				NOT = {
					has_country_flag = is_doing_finale_france
				}
			}
			FRA = {
				neutrality > 0.6
			}
			NOT = {
				has_war_with = FRA
				has_country_flag = boosting_french_monarchy_party
				FRA = {
					has_government = neutrality
					is_subject = yes
					has_war = yes
				}
			}
			country_exists = FRA
		}

		cost = 150

		complete_effect = {
			FRA = {
				remove_ideas = SOV_french_monarchist_sentiment_idea
				set_politics = {
					ruling_party = neutrality
				}
				set_party_name = {
					ideology = neutrality
					long_name = FRA_orleanist_party_long
					name = FRA_orleanist_party
				}
				set_cosmetic_tag = FRA_ORLEANS
				if = {
					limit = {
						date < 1940.8.25
					}
					create_country_leader = {
						name = "Jean III"
						desc = "POLITICS_JEAN_III_DESC"
						picture = GFX_portrait_fra_jean_duke_of_guise
						expire = "1965.1.1"
						ideology = moderatism
						traits = {
							duke_of_orleans
						}
					}
				}
				else = {
					create_country_leader = {
						name = "Henri VI"
						desc = "POLITICS_HENRI_VI_DESC"
						picture = GFX_portrait_fra_henry_count_of_paris
						expire = "1965.1.1"
						ideology = moderatism
						traits = {
							count_of_paris
						}
					}
				}
			}
			hidden_effect = {
				randomize_variable = {
					var = randomize_french_monarchist_leader_influence_var
					distribution = uniform
					min = 0
					max = 100
				}
				round_variable = randomize_french_monarchist_leader_influence_var
				add_to_variable = {
					var = french_monarchist_leader_influence_var
			    	value = randomize_french_monarchist_leader_influence_var
				}
				if = {
					limit = {
						check_variable = {
							var = french_monarchist_leader_influence_var
							value = 100
							compare = greater_than_or_equals
						}
					}
					SOV = {
						set_autonomy = {
							target = FRA
							autonomy_state = autonomy_imperial_governorates
						}
					}
					FRA = {
						set_popularities = {
							democratic = 10
							neutrality = 70
							fascism = 10
							communism = 10
						}
					}
				}
				else = {
					SOV = {
						add_to_faction = FRA
					}
					FRA = {
						add_ai_strategy = {
							type = alliance
							id = SOV
							value = 100
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_proclaim_orleanist_party_french_monarch = {

		icon = GFX_decision_generic_decision

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = has_chosen_monarchy_party
			}
			FRA = {
				has_government = neutrality
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				has_government = neutrality
				is_subject_of = SOV
			}
		}

		complete_effect = {
			set_country_flag = has_chosen_monarchy_party
			FRA = {
				hidden_effect = {
					if = {
						limit = {
							date < 1940.8.25
						}
						create_country_leader = {
							name = "Jean III"
							desc = "POLITICS_JEAN_III_DESC"
							picture = GFX_portrait_fra_jean_duke_of_guise
							expire = "1965.1.1"
							ideology = moderatism
							traits = {
								duke_of_orleans
							}
						}
					}
					else = {
						create_country_leader = {
							name = "Henri VI"
							desc = "POLITICS_HENRI_VI_DESC"
							picture = GFX_portrait_fra_henry_count_of_paris
							expire = "1965.1.1"
							ideology = moderatism
							traits = {
								count_of_paris
							}
						}
					}
					set_party_name = {
						ideology = neutrality
						long_name = FRA_orleanist_party_long
						name = FRA_orleanist_party
					}
					set_cosmetic_tag = FRA_ORLEANS
				}
				add_popularity = {
					ideology = neutrality
					popularity = 0.1
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_proclaim_legitimist_party_french_monarch = {

		icon = GFX_decision_generic_decision

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = has_chosen_monarchy_party
			}
			FRA = {
				has_government = neutrality
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				has_government = neutrality
				is_subject_of = SOV
			}
		}

		complete_effect = {
			set_country_flag = has_chosen_monarchy_party
			FRA = {
				if = {
					limit = {
						date < 1941.2.21
					}
					create_country_leader = {
						name = "Alphonse I"
						desc = "POLITICS_ALPHONSE_I_DESC"
						picture = GFX_portrait_SPA_alfonso_xiii
						expire = "1965.1.1"
						ideology = despotism
						traits = {

						}
					}
				}
				else = {
					create_country_leader = {
						name = "Jacques II"
						desc = "POLITICS_JACQUES_II_DESC"
						picture = GFX_portrait_fra_infante_jaime
						expire = "1965.1.1"
						ideology = despotism
						traits = {

						}
					}
				}
				set_party_name = {
					ideology = neutrality
					long_name = FRA_legitimist_party_long
					name = FRA_legitimist_party
				}
			}
		}

		ai_will_do = {
			factor = 80
		}
	}

	SOV_proclaim_bonapartiste_party_french_monarch = {

		icon = GFX_decision_generic_decision

		fire_only_once = yes

		allowed = {
			original_tag = SOV
		}

		visible = {
			NOT = {
				has_country_flag = has_chosen_monarchy_party
			}
			FRA = {
				has_government = neutrality
				is_subject_of = SOV
			}
		}

		available = {
			FRA = {
				has_government = neutrality
				is_subject_of = SOV
			}
		}

		complete_effect = {
			set_country_flag = has_chosen_monarchy_party
			FRA = {
				create_country_leader = {
					name = "Napoléon VI"
					desc = "POLITICS_NAPOLEON_VI_DESC"
					picture = GFX_portraits_fra_napoleon_vi
					expire = "1965.1.1"
					ideology = despotism
					traits = {

					}
				}
				set_party_name = {
					ideology = neutrality
					long_name = FRA_bonepartist_party_long
					name = FRA_bonepartist_party
				}
				set_cosmetic_tag = FRA_THIRD_EMPIRE
			}
		}

		ai_will_do = {
			factor = 80
		}
	}
}

SOV_deal_with_french_monarchy_rise_cat = {

	SOV_remove_monarchy_sentiment = {

		icon = GFX_decision_generic_ignite_civil_war

		fire_only_once = yes

		allowed = {
			original_tag = FRA
		}

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

		available = {
			neutrality < 0.1
		}

		complete_effect = {
			remove_ideas = SOV_french_monarchist_sentiment_idea
			if = {
				limit = {
					has_idea = SOV_french_monarchist_sentiment_idea_2
				}
				remove_ideas = SOV_french_monarchist_sentiment_idea_2
			}
		}

		cost = 25

		ai_will_do = {
			factor = 1
		}
	}

	SOV_send_police_monarchy_sentiment = {

		icon = GFX_decision_generic_arrest

		days_re_enable = 70

		allowed = {
			original_tag = FRA
		}

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

		available = {

		}

		cost = 100

		complete_effect = {
			add_popularity = {
				ideology = neutrality
				popularity = -0.1
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	SOV_use_propagande_against_monarchy_sentiment = {

		icon = GFX_decision_eng_trade_unions_demand

		days_re_enable = 35

		allowed = {
			original_tag = FRA
		}

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

		available = {
			has_idea = SOV_french_monarchist_sentiment_idea
		}

		cost = 50

		days_remove = 70

		complete_effect = {
			add_ideas = SOV_french_stamp_down_monarchist_idea
		}

		cancel_trigger = {
			FRA = {
				custom_trigger_tooltip = {
					tooltip = not_has_idea_french_monarchist_sentiment
					NOT = {
						has_idea = SOV_french_monarchist_sentiment_idea
					}
					NOT = {
						has_idea = SOV_french_monarchist_sentiment_idea_2
					}
				}
			}
		}

		cancel_effect = {
			remove_ideas = SOV_french_stamp_down_monarchist_idea
		}

		remove_effect = {
			remove_ideas = SOV_french_stamp_down_monarchist_idea
		}

		ai_will_do = {
			factor = 1
		}
	}
}

SOV_mission_civil_war_monarchy_russia = {

	SOV_civil_war_monarchy_incoming = {

		icon = GFX_decision_generic_ignite_civil_war

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

		visible = {
			has_country_flag = is_victim_of_russia_civil_war
		}

		activation = {
			has_country_flag = is_victim_of_russia_civil_war
		}

		available = {
			has_war = yes
		}

		is_good = no

		fire_only_once = yes

		days_mission_timeout = 70

		timeout_effect = {
			custom_effect_tooltip = civil_war_will_start_monarchy
		}

		complete_effect = {
			custom_effect_tooltip = civil_war_will_start_monarchy
		}

		ai_will_do = {
			factor = 1
		}
	}
}

SOV_influence_italy_monarchist = {

	SOV_put_pressure_again = {

		icon = GFX_decision_generic_political_discourse

		days_re_enable = 100

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_government = neutrality
			is_subject = no
			has_capitulated = no
		}

		cost = 100

		days_remove = 30

		remove_effect = {
			ITA = {
				add_popularity = {
					ideology = neutrality
					popularity = 0.05
				}
			}
		}

		ai_will_do = {
			factor = 30
		}
	}

	SOV_support_italian_monarchist = {

		icon = GFX_decision_hol_attract_foreign_investors

		days_re_enable = 160

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			ITA = {
				has_idea = SOV_Russian_influence_monarchist_italy
			}
			has_government = neutrality
			is_subject = no
			has_capitulated = no
		}

		cost = 100

		days_remove = 70

		complete_effect = {
			ITA = {
				swap_ideas = {
					remove_idea = SOV_Russian_influence_monarchist_italy
					add_idea = SOV_Russian_influence_monarchist_italy_2
				}
			}
		}

		remove_effect = {
			ITA = {
				swap_ideas = {
					remove_idea = SOV_Russian_influence_monarchist_italy_2
					add_idea = SOV_Russian_influence_monarchist_italy
				}
			}
		}

		ai_will_do = {
			factor = 30
		}
	}

	SOV_demand_italy_to_restore_king = {

		icon = GFX_decision_generic_civil_support

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		fire_only_once = yes

		available = {
			ITA = {
				has_idea = SOV_Russian_influence_monarchist_italy
				neutrality > 0.3
			}
			has_government = neutrality
			is_subject = no
			has_capitulated = no
		}

		cost = 50

		complete_effect = {
			ITA = {
				country_event = { id = russia2_italy.30 days = 1 }
			}
		}

		ai_will_do = {
			factor = 30
		}
	}

	SOV_demand_italy_to_restore_king_second = {

		icon = GFX_decision_generic_civil_support

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = asked_italy_first_time_pression
		}

		fire_only_once = yes

		available = {
			ITA = {
				has_idea = SOV_Russian_influence_monarchist_italy
				neutrality > 0.4
			}
			has_government = neutrality
			is_subject = no
			has_capitulated = no
		}

		cost = 50

		complete_effect = {
			clr_country_flag = asked_italy_first_time_pression
			ITA = {
				country_event = { id = russia2_italy.33 days = 1 }
			}
		}

		ai_will_do = {
			factor = 30
		}
	}

	SOV_demand_italy_to_restore_king_last = {

		icon = GFX_decision_generic_civil_support

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = asked_italy_second_time_pression
		}

		fire_only_once = yes

		available = {
			ITA = {
				has_idea = SOV_Russian_influence_monarchist_italy
				neutrality > 0.5
			}
			has_government = neutrality
			is_subject = no
			has_capitulated = no
		}

		cost = 50

		complete_effect = {
			clr_country_flag = asked_italy_second_time_pression
			ITA = {
				country_event = { id = russia2_italy.34 days = 1 }
			}
			custom_effect_tooltip = italy_can_leave_faction_if_they_refuse
		}

		ai_will_do = {
			factor = 30
		}
	}
}

SOV_deal_with_italian_monarchy_rise_cat = {

	SOV_remove_russian_influence = {

		icon = GFX_decision_oppression

		fire_only_once = yes

		allowed = {
			original_tag = ITA
		}

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

		available = {
			neutrality < 0.1
		}

		complete_effect = {
			remove_ideas = SOV_Russian_influence_monarchist_italy
			if = {
				limit = {
					has_idea = SOV_Russian_influence_monarchist_italy_2
				}
				remove_ideas = SOV_Russian_influence_monarchist_italy_2
			}
		}

		cost = 25

		ai_will_do = {
			factor = 1
		}
	}

	SOV_send_police_monarchy_sentiment_italian = {

		icon = GFX_decision_generic_arrest

		days_re_enable = 70

		allowed = {
			original_tag = ITA
		}

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

		available = {

		}

		cost = 100

		complete_effect = {
			add_popularity = {
				ideology = neutrality
				popularity = -0.1
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	SOV_use_propagande_against_monarchy_sentiment_italy = {

		icon = GFX_decision_generic_speech

		days_re_enable = 35

		allowed = {
			original_tag = ITA
		}

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

		available = {
			has_idea = SOV_Russian_influence_monarchist_italy
		}

		cost = 50

		ai_will_do = {
			factor = 20
		}

		days_remove = 70

		complete_effect = {
			add_ideas = SOV_Destroy_russian_influence
		}

		cancel_trigger = {
			ITA = {
				custom_trigger_tooltip = {
					tooltip = not_has_idea_italy_monarchist_sentiment
					NOT = {
						has_idea = SOV_Russian_influence_monarchist_italy
					}
					NOT = {
						has_idea = SOV_Russian_influence_monarchist_italy_2
					}
				}
			}
		}

		cancel_effect = {
			remove_ideas = SOV_Destroy_russian_influence
		}

		remove_effect = {
			remove_ideas = SOV_Destroy_russian_influence
		}

		ai_will_do = {
			factor = 1
		}
	}
}

SOV_replace_puppet_leader = {

	SOV_replace_from_leader = {

		icon = GFX_decision_generic_assassination

		days_re_enable = 30

		days_remove = 10

		allowed = {
			original_tag = SOV
		}

		highlight_states = {
			highlight_states_trigger = {
				state = FROM.capital
			}
		}

		available = {
			FROM = {
				is_subject_of = ROOT
				if = {
					limit = {
						ROOT = {
							has_country_leader = {
								character = SOV_Joseph_stalin
								ruling_only = yes
							}
							has_government = communism
						}
					}
					NOT = {
						has_country_leader_with_trait = russia2_soviet_puppet
					}
				}
				else = {
					NOT = {
						has_country_leader_with_trait = russia2_russian_puppet
					}
				}
			}
			NOT = {
				has_country_flag = sov_plotting_against_from_leader
			}
		}

		visible = {
			FROM = {
				is_subject_of = ROOT
			}
			OR = {
				AND = {
					has_country_leader = {
						character = SOV_Joseph_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
				}
			}
		}

		target_root_trigger = {
			is_subject = no
		}

		target_trigger = {
			FROM = {
				is_subject_of = ROOT
				exists = yes
			}
		}

		cancel_trigger = {
			OR = {
				is_subject = yes
				FROM = {
					exists = no
				}
				FROM = {
					NOT = {
						is_subject_of = ROOT
					}
				}
			}
		}

		cost = 25

		cancel_effect = {
			clr_country_flag = sov_plotting_against_from_leader
		}

		complete_effect = {
			set_country_flag = sov_plotting_against_from_leader
		}

		remove_effect = {
			custom_effect_tooltip = sov_get_assassination_event_from_leader_tt
			hidden_effect = {
				clr_country_flag = sov_plotting_against_from_leader
				FROM = {
					save_event_target_as = SOV_replace_from_leader_event_target
				}
				country_event = russia2_russia.615
			}
		}

		ai_will_do = {
			factor = 10
		}
	}
}

SOV_reunification_war_anarchist_category_decisions = {

	SOV_attack_neutral_country_anarchist = {

		icon = GFX_decision_generic_intelligence_operation

		days_remove = 30

		allowed = {
			original_tag = SOV
		}

		highlight_states = {
			highlight_states_trigger = {
				state = FROM.capital
			}
		}

		available = {
			NOT = {
				has_country_flag = is_launching_preemptive_strike
			}
			FROM = {
				NOT = {
					is_in_faction_with = SOV
					has_war_with = SOV
				}
				has_country_flag = is_neutral_of_anarchist_russia_league_edition
			}
		}

		visible = {
			FROM = {
				NOT = {
					is_in_faction_with = SOV
					has_war_with = SOV
				}
				has_country_flag = is_neutral_of_anarchist_russia_league_edition
			}
		}

		target_root_trigger = {
			is_subject = no
		}

		target_trigger = {
			FROM = {
				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
				}
			}
		}

		cancel_trigger = {
			FROM = {
				OR = {
					exists = no
					is_in_faction_with = SOV
					has_war_with = SOV
				}
			}
		}

		cost = 25

		cancel_effect = {
			clr_country_flag = is_launching_preemptive_strike
		}

		complete_effect = {
			set_country_flag = is_launching_preemptive_strike
		}

		remove_effect = {
			clr_country_flag = is_launching_preemptive_strike
			hidden_effect = {
				FROM = {
					country_event = { id = russia2_russia.631 }
				}
			}
		}

		ai_will_do = {
			factor = 0
		}
	}
}

SOV_national_obligations_category_decisions = {

	SOV_show_national_obligations = {

		allowed = {
			original_tag = SOV
		}

		available = {
			NOT = {
                has_country_flag = sov_open_national_obligations
            }
		}

		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
			}
		}

		complete_effect = {
			custom_effect_tooltip = SOV_show_national_obligations_tt
            set_country_flag = sov_open_national_obligations
        }
    }
}

SOV_negotiation_disputants_category_decisions = {

	SOV_demand_from_acceptance_puppet_plan = {

		icon = GFX_decision_eng_trade_unions_support

		fire_only_once = yes

		days_remove = 10

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				NOT = {
					has_country_flag = is_already_agreing_anarchist_russia_puppet_plan
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_a_tight_grip
		}

		target_trigger = {
			FROM = {
				NOT = {
					has_country_flag = is_already_agreing_anarchist_russia_puppet_plan
				}
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				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
				}
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = from_support_85_percent_our_project
				FROM = {
					check_variable = {
						var = opinion_russian_anarchist_puppet_reform_plan
						value = 85
						compare = greater_than_or_equals
					}
				}
			}
		}

		remove_effect = {
			custom_effect_tooltip = from_will_now_support_project_puppet
			FROM = {
				set_country_flag = is_already_agreing_anarchist_russia_puppet_plan
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_sway_dissident_puppet_plan = {

		icon = GFX_decision_eng_propaganda_campaigns

		days_remove = 30

		on_map_mode = map_and_decisions_view

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				NOT = {
					has_country_flag = is_already_agreing_anarchist_russia_puppet_plan
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_a_tight_grip
		}

		target_trigger = {
			FROM = {
				NOT = {
					has_country_flag = is_already_agreing_anarchist_russia_puppet_plan
				}
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				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
				}
			}
		}

		cost = 25

		available = {
			NOT = {
				has_country_flag = is_swaying_political_anarchist_oppenent
			}
			has_completed_focus = SOV_convince_disputants
			custom_trigger_tooltip = {
				tooltip = from_support_85_percent_our_project
				FROM = {
					check_variable = {
						var = opinion_russian_anarchist_puppet_reform_plan
						value = 85
						compare = greater_than_or_equals
					}
				}
			}
		}

		complete_effect = {
			set_country_flag = is_swaying_political_anarchist_oppenent
		}

		remove_effect = {
			clr_country_flag = is_swaying_political_anarchist_oppenent
			custom_effect_tooltip = will_receive_random_event_choose_option_anarchists
			hidden_effect = {
				FROM = {
					country_event = { id = russia2_russia.642 }
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_reveal_personality_for_from = {

		icon = GFX_decision_onmap_recruit_operative

		days_remove = 30

		on_map_mode = map_and_decisions_view

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				NOT = {
					has_country_flag = is_already_agreing_anarchist_russia_puppet_plan
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_a_tight_grip
		}

		target_trigger = {
			FROM = {
				NOT = {
					has_country_flag = is_already_agreing_anarchist_russia_puppet_plan
				}
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				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
				}
			}
		}

		cost = 50

		fire_only_once = yes

		available = {
			NOT = {
				has_country_flag = is_revealing_personality_from
			}
			has_completed_focus = SOV_convince_disputants
			custom_trigger_tooltip = {
				tooltip = from_support_85_percent_our_project
				FROM = {
					check_variable = {
						var = opinion_russian_anarchist_puppet_reform_plan
						value = 85
						compare = greater_than_or_equals
					}
				}
			}
		}

		complete_effect = {
			set_country_flag = is_revealing_personality_from
		}

		remove_effect = {
			clr_country_flag = is_revealing_personality_from
			custom_effect_tooltip = will_reveal_from_personality_tt
			hidden_effect = {
				if = {
					limit = {
						FROM = {
							check_variable = {
								var = militaristic_personality_type_anarchist
								value = 0
								compare = equals
							}
						}
					}
					FROM = {
						add_to_variable = {
							var = militaristic_personality_type_anarchist
			    			value = 1
						}
					}
				}
				else_if = {
					limit = {
						FROM = {
							check_variable = {
								var = economic_personality_type_anarchist
								value = 0
								compare = equals
							}
						}
					}
					FROM = {
						add_to_variable = {
							var = economic_personality_type_anarchist
			    			value = 1
						}
					}
				}
				else_if = {
					limit = {
						FROM = {
							check_variable = {
								var = social_personality_type_anarchist
								value = 0
								compare = equals
							}
						}
					}
					FROM = {
						add_to_variable = {
							var = social_personality_type_anarchist
			    			value = 1
						}
					}
				}
				else_if = {
					limit = {
						FROM = {
							check_variable = {
								var = peaceful_personality_type_anarchist
								value = 0
								compare = equals
							}
						}
					}
					FROM = {
						add_to_variable = {
							var = peaceful_personality_type_anarchist
			    			value = 1
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_propaganda_campaigns_russia2 = {
	@DAYS_DETERMINED = 180 #Used for propaganda campaign SOV_heroes_forward -> Value should be the same as SOV_default_propaganda_campaign_duration
	SOV_propaganda_motherland_calls_russia2 = { # ID = 3
		priority = 2

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				surrender_progress > 0.4
			}
			modifier = {
				add = 10
				has_manpower < 500000
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_motherland_calls_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_motherland_calls_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_motherland_calls_cost > 90 } #Shouldn't even consider doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			has_war = yes
			any_enemy_country = {
				is_major = yes
			}
		}

		visible = {
			OR = {
				has_completed_focus = SOV_the_agitprop_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_motherland_calls_cost

		modifier = {
			weekly_manpower = 1000
			training_time_factor = -0.1
			minimum_training_level = -0.1
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 3 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 3 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			# Okay this looks dumb I know but it's better than having to change 24 operations each time we feel like tweaking how propaganda campaign's cost escalates
			set_variable = { SOV_propaganda_cost = SOV_propaganda_motherland_calls_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_motherland_calls_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_victory_at_hand_russia2 = { # ID = 4
		priority = 3

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_victory_at_hand_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_victory_at_hand_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_victory_at_hand_cost > 90 } #Shouldn't even consider doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			has_war = yes
			surrender_progress < 0.01
			any_enemy_country = {
				is_major = yes
				ROOT = {
					any_controlled_state = {
						is_core_of = PREV.PREV
					}
				}
			}
			SOV_propaganda_victory_at_hand_available = yes
		}

		visible = {
			OR = {
				has_completed_focus = SOV_the_agitprop_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_victory_at_hand_cost

		modifier = {
			army_attack_factor = 0.05
			army_speed_factor = 0.1
			org_loss_when_moving = -0.05
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 4 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 4 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_victory_at_hand_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_victory_at_hand_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_defend_moscow_russia2 = { # ID = 5
		priority = 4

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 500
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_defend_moscow_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_defend_moscow_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_defend_moscow_cost > 90 } #Shouldn't even consider doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			controls_state = 219 #Moscow
			219 = {
				any_neighbor_state = {
					controller = {
						has_war_with = ROOT
					}
				}
			}
		}

		visible = {
			OR = {
				has_completed_focus = SOV_the_agitprop_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_defend_moscow_cost

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 5 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes

			219 = { #Moscow
				add_dynamic_modifier = { modifier = SOV_defend_moscow scope = SOV }
				every_neighbor_state = {
					add_dynamic_modifier = { modifier = SOV_defend_moscow scope = SOV }
				}
			}
			custom_effect_tooltip = SOV_propaganda_defend_moscow_state_modifier_tt
		}

		remove_effect = {
			219 = { #Moscow
				remove_dynamic_modifier = { modifier = SOV_defend_moscow }
				every_neighbor_state = {
					remove_dynamic_modifier = { modifier = SOV_defend_moscow }
				}
			}

			set_variable = { SOV_propaganda_campaign_to_remove = 5 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_defend_moscow_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_defend_moscow_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_fight_to_the_last_russia2 = { # ID = 6
		priority = 5

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 0.75
			modifier = {
				factor = 10
				OR = {
					AND = {
						stockpile_ratio = {
							archetype = train_equipment
							ratio < 0.75
						}
						stockpile_ratio = {
							archetype = motorized_equipment
							ratio < 0.75
						}
					}
					stockpile_ratio = {
						archetype = convoy
						ratio < 5
					}
				}
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_fight_to_the_last_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_fight_to_the_last_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_fight_to_the_last_cost > 90 } #Shouldn't even consider doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes
			has_war = yes
			surrender_progress > 0.1
		}

		visible = {
			OR = {
				has_completed_focus = SOV_the_agitprop_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown


		cost = SOV_propaganda_fight_to_the_last_cost

		modifier = {
			army_org_factor = 0.05
			out_of_supply_factor = -0.1
			no_supply_grace = 70
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 6 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 6 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_fight_to_the_last_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_fight_to_the_last_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_hit_of_hammer_russia2 = { # ID = 7
		priority = 6

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_hit_of_hammer_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_hit_of_hammer_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_hit_of_hammer_cost > 90 } #Shouldn't even consider doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			has_war = yes
		}

		visible = {
			OR = {
				has_completed_focus = SOV_the_agitprop_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_hit_of_hammer_cost

		modifier = {
			industrial_capacity_factory = 0.05
			industrial_capacity_dockyard = 0.05
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 7 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 7 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_hit_of_hammer_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_hit_of_hammer_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_transport_russia2 = { # ID = 8
		priority = 7

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 0.7
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_transport_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_transport_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_transport_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes
		}

		visible = {
			OR = {
				has_completed_focus = SOV_the_agitprop_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_transport_cost

		modifier = {
			production_speed_supply_node_factor = 0.15
			production_speed_rail_way_factor = 0.15
			supply_consumption_factor = -0.1
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 8 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 8 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_transport_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_transport_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_oil_for_the_motherland_russia2 = { # ID = 9
		priority = 8

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				fuel_ratio < 0.5
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_oil_for_the_motherland_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_oil_for_the_motherland_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_oil_for_the_motherland_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			any_controlled_state = {
				has_resources_amount = {
					resource = oil
					amount > 0
				}
			}
		}

		visible = {
			OR = {
				has_completed_focus = SOV_the_agitprop_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_oil_for_the_motherland_cost

		modifier = {
			fuel_gain_factor = 0.1
			army_fuel_consumption_factor = -0.1
			air_fuel_consumption_factor = -0.1
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 9 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 9 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_oil_for_the_motherland_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_oil_for_the_motherland_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_more_metal_russia2 = { # ID = 10
		priority = 9

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 0.8
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_more_metal_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_more_metal_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_more_metal_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			any_controlled_state = {
				OR = {
					has_resources_amount = {
						resource = steel
						amount > 0
					}
					has_resources_amount = {
						resource = aluminium
						amount > 0
					}
					has_resources_amount = {
						resource = chromium
						amount > 0
					}
					has_resources_amount = {
						resource = tungsten
						amount > 0
					}
				}
			}
		}

		visible = {
			OR = {
				has_completed_focus = SOV_the_agitprop_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_more_metal_cost

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 10 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
			hidden_effect = {
				capital_scope = {
					set_variable = { SOV_steel_bonus = 0 }
					set_variable = { SOV_aluminium_bonus = 0 }
					set_variable = { SOV_chromium_bonus = 0 }
					set_variable = { SOV_tungsten_bonus = 0 }
				}
				every_controlled_state = {
					limit = {
						has_resources_amount = {
							resource = steel
							amount > 0
						}
					}
					capital_scope = { add_to_variable = { SOV_steel_bonus = 1 } }
				}

				every_controlled_state = {
					limit = {
						has_resources_amount = {
							resource = aluminium
							amount > 0
						}
					}
					capital_scope = { add_to_variable = { SOV_aluminium_bonus = 1 } }
				}

				every_controlled_state = {
					limit = {
						has_resources_amount = {
							resource = chromium
							amount > 0
						}
					}
					capital_scope = { add_to_variable = { SOV_chromium_bonus = 1 } }
				}

				every_controlled_state = {
					limit = {
						has_resources_amount = {
							resource = tungsten
							amount > 0
						}
					}
					capital_scope = { add_to_variable = { SOV_tungsten_bonus = 1 } }
				}
			}

			capital_scope = {
				add_dynamic_modifier = { modifier = SOV_increased_metals_production }
			}

			custom_effect_tooltip = SOV_propaganda_more_metal_tt
		}

		remove_effect = {
			capital_scope = {
				remove_dynamic_modifier = { modifier = SOV_increased_metals_production }
			}

			set_variable = { SOV_propaganda_campaign_to_remove = 10 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_more_metal_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_more_metal_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_high_yield_russia2 = { # ID = 11
		priority = 10

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_high_yield_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_high_yield_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_high_yield_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			surrender_progress < 0.15
		}

		visible = {
			OR = {
				has_completed_focus = SOV_the_agitprop_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_high_yield_cost

		modifier = {
			consumer_goods_factor = -0.05
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 11 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 11 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_high_yield_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_high_yield_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_for_the_motherland_russia2 = { # ID = 12
		priority = 11

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 1
			modifier = {
				factor = 10
				has_manpower < 300000
			}
			modifier = {
				factor = 2
				OR = {
					command_power < 25
					has_army_experience < 25
				}
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_for_the_motherland_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_for_the_motherland_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_for_the_motherland_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			has_war = yes
			any_enemy_country = {
				is_major = yes
			}
		}

		visible = {
			OR = {
				has_completed_focus = SOV_for_the_motherland
				has_completed_focus = SOV_revolution_to_the_utmost
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_for_the_motherland_cost

		modifier = {
			experience_gain_army_factor = 0.15
			command_power_gain_mult = 0.15
			breakthrough_factor = 0.1
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 12 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 12 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_for_the_motherland_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_for_the_motherland_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_heroes_forward_russia2 = { # ID = 13
		priority = 12

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 10
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_heroes_forward_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_heroes_forward_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_heroes_forward_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			has_war = yes
			any_unit_leader = {
				is_assigned = yes
			}
		}

		visible = {
			OR = {
				has_completed_focus = SOV_train_new_officers
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_heroes_forward_cost

		modifier = {
			army_morale_factor = 0.07
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 13 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes

			custom_effect_tooltip = SOV_propaganda_heroes_forward_tt

			set_temp_variable = { temp_targets_index = 0 }
			while_loop_effect = {
				limit = {
					check_variable = { temp_targets_index = 5 compare = less_than }
				}
				if = {
					limit = {
						any_unit_leader = {
							is_assigned = yes
							NOT = { has_trait = trait_SOV_determined }
						}
					}
					random_unit_leader = {
						limit = {
							is_assigned = yes
							NOT = { has_trait = trait_SOV_determined }
						}
						add_timed_unit_leader_trait = {
							trait = trait_SOV_determined
							days = @DAYS_DETERMINED #Does not seem to support vars
						}
					}
				}
				else = {
					random_unit_leader = {
						limit = {
							NOT = { has_trait = trait_SOV_determined }
						}
						add_timed_unit_leader_trait = {
							trait = trait_SOV_determined
							days = @DAYS_DETERMINED #Does not seem to support vars
						}
					}
				}
				add_to_temp_variable = { temp_targets_index = 1 }
			}
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 13 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_heroes_forward_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_heroes_forward_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_anti_capitalism_russia2 = { # ID = 14
		priority = 13

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 1
			modifier = {
				factor = 5
				any_enemy_country = {
					is_major = yes
					has_government = democratic
				}
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_anti_capitalism_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_anti_capitalism_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_anti_capitalism_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			any_country = {
				has_government = democratic
				OR = {
					tag = ENG
					tag = FRA
					tag = GER
					tag = ITA
					tag = USA
					tag = JAP
				}
			}
		}

		visible = {
			any_country = {
				has_government = democratic
				OR = {
					tag = ENG
					tag = FRA
					tag = GER
					tag = ITA
					tag = USA
					tag = JAP
				}
				has_war_with = SOV
			}
			OR = {
				has_country_flag = replaced_maisky
				has_completed_focus = SOV_revolution_to_the_utmost
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_anti_capitalism_cost

		modifier = {
			opinion_gain_monthly_same_ideology_factor = 0.25
			democratic_acceptance = -100
			democratic_drift = -0.1
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 14 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
			custom_effect_tooltip = SOV_propaganda_anti_capitalism_tt
			set_variable = { SOV_anti_capitalist_target = 0 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			#Choose the "most powerful" capitalist country based on num of factories
			if = {
				limit = {
					ENG = { has_government = democratic }
				}
				set_temp_variable = { SOV_max_factories = ENG.num_of_factories }
				set_variable = { SOV_anti_capitalist_target = 1 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}
			else_if = {
				limit = {
					FRA = { has_government = democratic }
				}
				set_temp_variable = { SOV_max_factories = FRA.num_of_factories }
				set_variable = { SOV_anti_capitalist_target = 2 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}
			else_if = {
				limit = {
					GER = { has_government = democratic }
				}
				set_temp_variable = { SOV_max_factories = GER.num_of_factories }
				set_variable = { SOV_anti_capitalist_target = 3 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}
			else_if = {
				limit = {
					ITA = { has_government = democratic }
				}
				set_temp_variable = { SOV_max_factories = ITA.num_of_factories }
				set_variable = { SOV_anti_capitalist_target = 4 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}
			else_if = {
				limit = {
					USA = { has_government = democratic }
				}
				set_temp_variable = { SOV_max_factories = USA.num_of_factories }
				set_variable = { SOV_anti_capitalist_target = 5 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}
			else_if = {
				limit = {
					JAP = { has_government = democratic }
				}
				set_temp_variable = { SOV_max_factories = JAP.num_of_factories }
				set_variable = { SOV_anti_capitalist_target = 6 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}

			if = {
				limit = {
					FRA = { has_government = democratic }
				}
				set_temp_variable = { SOV_compare_factories = FRA.num_of_factories }
				if = { #FIRST Vs FRA
					limit = {
						check_variable = { SOV_max_factories < SOV_compare_factories }
					}
					set_temp_variable = { SOV_max_factories = FRA.num_of_factories }
					set_variable = { SOV_anti_capitalist_target = 2 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
				}
			}

			if = {
				limit = {
					GER = { has_government = democratic }
				}
				set_temp_variable = { SOV_compare_factories = GER.num_of_factories }
				if = { #WINNER Vs GER
					limit = {
						check_variable = { SOV_max_factories < SOV_compare_factories }
					}
					set_temp_variable = { SOV_max_factories = GER.num_of_factories }
					set_variable = { SOV_anti_capitalist_target = 3 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
				}
			}

			if = {
				limit = {
					ITA = { has_government = democratic }
				}
				set_temp_variable = { SOV_compare_factories = ITA.num_of_factories }
				if = { #WINNER Vs ITA
					limit = {
						check_variable = { SOV_max_factories < SOV_compare_factories }
					}
					set_temp_variable = { SOV_max_factories = ITA.num_of_factories }
					set_variable = { SOV_anti_capitalist_target = 4 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
				}
			}

			if = {
				limit = {
					USA = { has_government = democratic }
				}
				set_temp_variable = { SOV_compare_factories = USA.num_of_factories }
				if = { #WINNER Vs USA
					limit = {
						check_variable = { SOV_max_factories < SOV_compare_factories }
					}
					set_temp_variable = { SOV_max_factories = USA.num_of_factories }
					set_variable = { SOV_anti_capitalist_target = 5 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
				}
			}

			if = {
				limit = {
					JAP = { has_government = democratic }
				}
				set_temp_variable = { SOV_compare_factories = JAP.num_of_factories }
				if = { #WINNER Vs JAP
					limit = {
						check_variable = { SOV_max_factories < SOV_compare_factories }
					}
					set_temp_variable = { SOV_max_factories = JAP.num_of_factories }
					set_variable = { SOV_anti_capitalist_target = 6 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
				}
			}

			if = {
				limit = {
					check_variable = { SOV_anti_capitalist_target = 1 }
				}
				add_timed_idea = {
					idea = SOV_anti_capitalist_campaign_eng
					days = SOV_default_propaganda_campaign_duration
				}
			}
			else_if = {
				limit = {
					check_variable = { SOV_anti_capitalist_target = 2 }
				}
				add_timed_idea = {
					idea = SOV_anti_capitalist_campaign_fra
					days = SOV_default_propaganda_campaign_duration
				}
			}
			else_if = {
				limit = {
					check_variable = { SOV_anti_capitalist_target = 3 }
				}
				add_timed_idea = {
					idea = SOV_anti_capitalist_campaign_ger
					days = SOV_default_propaganda_campaign_duration
				}
			}
			else_if = {
				limit = {
					check_variable = { SOV_anti_capitalist_target = 4 }
				}
				add_timed_idea = {
					idea = SOV_anti_capitalist_campaign_ita
					days = SOV_default_propaganda_campaign_duration
				}
			}
			else_if = {
				limit = {
					check_variable = { SOV_anti_capitalist_target = 5 }
				}
				add_timed_idea = {
					idea = SOV_anti_capitalist_campaign_usa
					days = SOV_default_propaganda_campaign_duration
				}
			}
			else_if = {
				limit = {
					check_variable = { SOV_anti_capitalist_target = 6 }
				}
				add_timed_idea = {
					idea = SOV_anti_capitalist_campaign_jap
					days = SOV_default_propaganda_campaign_duration
				}
			}
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 14 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_anti_capitalism_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_anti_capitalism_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_anti_fascism_russia2 = { # ID = 15
		priority = 14

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 1
			modifier = {
				factor = 5
				any_enemy_country = {
					is_major = yes
					has_government = democratic
				}
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_anti_fascism_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_anti_fascism_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_anti_fascism_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			any_country = {
				has_government = fascism
				OR = {
					tag = ENG
					tag = FRA
					tag = GER
					tag = ITA
					tag = USA
					tag = JAP
				}
			}
		}

		visible = {
			any_country = {
				has_government = fascism
				OR = {
					tag = ENG
					tag = FRA
					tag = GER
					tag = ITA
					tag = USA
					tag = JAP
				}
				has_war_with = SOV
			}
			OR = {
				has_country_flag = kept_maisky
				has_completed_focus = SOV_revolution_to_the_utmost
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_anti_fascism_cost

		modifier = {
			opinion_gain_monthly_same_ideology_factor = 0.25
			fascism_acceptance = -100
			fascism_drift = -0.1
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 15 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
			custom_effect_tooltip = SOV_propaganda_anti_fascism_tt
			set_variable = { SOV_anti_fascist_target = 0 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			#Choose the "most powerful" fascist country based on num of factories
			if = {
				limit = {
					ENG = { has_government = fascism }
				}
				set_temp_variable = { SOV_max_factories = ENG.num_of_factories }
				set_variable = { SOV_anti_fascist_target = 1 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}
			else_if = {
				limit = {
					FRA = { has_government = fascism }
				}
				set_temp_variable = { SOV_max_factories = FRA.num_of_factories }
				set_variable = { SOV_anti_fascist_target = 2 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}
			else_if = {
				limit = {
					GER = { has_government = fascism }
				}
				set_temp_variable = { SOV_max_factories = GER.num_of_factories }
				set_variable = { SOV_anti_fascist_target = 3 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}
			else_if = {
				limit = {
					ITA = { has_government = fascism }
				}
				set_temp_variable = { SOV_max_factories = ITA.num_of_factories }
				set_variable = { SOV_anti_fascist_target = 4 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}
			else_if = {
				limit = {
					USA = { has_government = fascism }
				}
				set_temp_variable = { SOV_max_factories = USA.num_of_factories }
				set_variable = { SOV_anti_fascist_target = 5 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}
			else_if = {
				limit = {
					JAP = { has_government = fascism }
				}
				set_temp_variable = { SOV_max_factories = JAP.num_of_factories }
				set_variable = { SOV_anti_fascist_target = 6 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
			}

			if = {
				limit = {
					FRA = { has_government = fascism }
				}
				set_temp_variable = { SOV_compare_factories = FRA.num_of_factories }
				if = { #FIRST Vs FRA
					limit = {
						check_variable = { SOV_max_factories < SOV_compare_factories }
					}
					set_temp_variable = { SOV_max_factories = FRA.num_of_factories }
					set_variable = { SOV_anti_fascist_target = 2 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
				}
			}

			if = {
				limit = {
					GER = { has_government = fascism }
				}
				set_temp_variable = { SOV_compare_factories = GER.num_of_factories }
				if = { #WINNER Vs GER
					limit = {
						check_variable = { SOV_max_factories < SOV_compare_factories }
					}
					set_temp_variable = { SOV_max_factories = GER.num_of_factories }
					set_variable = { SOV_anti_fascist_target = 3 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
				}
			}

			if = {
				limit = {
					ITA = { has_government = fascism }
				}
				set_temp_variable = { SOV_compare_factories = ITA.num_of_factories }
				if = { #WINNER Vs ITA
					limit = {
						check_variable = { SOV_max_factories < SOV_compare_factories }
					}
					set_temp_variable = { SOV_max_factories = ITA.num_of_factories }
					set_variable = { SOV_anti_fascist_target = 4 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
				}
			}

			if = {
				limit = {
					USA = { has_government = fascism }
				}
				set_temp_variable = { SOV_compare_factories = USA.num_of_factories }
				if = { #WINNER Vs USA
					limit = {
						check_variable = { SOV_max_factories < SOV_compare_factories }
					}
					set_temp_variable = { SOV_max_factories = USA.num_of_factories }
					set_variable = { SOV_anti_fascist_target = 5 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
				}
			}

			if = {
				limit = {
					JAP = { has_government = fascism }
				}
				set_temp_variable = { SOV_compare_factories = JAP.num_of_factories }
				if = { #WINNER Vs JAP
					limit = {
						check_variable = { SOV_max_factories < SOV_compare_factories }
					}
					set_temp_variable = { SOV_max_factories = JAP.num_of_factories }
					set_variable = { SOV_anti_fascist_target = 6 } #1=ENG / 2=FRA / 3=GER / 4=ITA / 5=USA / 6=JAP
				}
			}

			if = {
				limit = {
					check_variable = { SOV_anti_fascist_target = 1 }
				}
				add_timed_idea = {
					idea = SOV_anti_fascist_campaign_eng
					days = SOV_default_propaganda_campaign_duration
				}
			}
			else_if = {
				limit = {
					check_variable = { SOV_anti_fascist_target = 2 }
				}
				add_timed_idea = {
					idea = SOV_anti_fascist_campaign_fra
					days = SOV_default_propaganda_campaign_duration
				}
			}
			else_if = {
				limit = {
					check_variable = { SOV_anti_fascist_target = 3 }
				}
				add_timed_idea = {
					idea = SOV_anti_fascist_campaign_ger
					days = SOV_default_propaganda_campaign_duration
				}
			}
			else_if = {
				limit = {
					check_variable = { SOV_anti_fascist_target = 4 }
				}
				add_timed_idea = {
					idea = SOV_anti_fascist_campaign_ita
					days = SOV_default_propaganda_campaign_duration
				}
			}
			else_if = {
				limit = {
					check_variable = { SOV_anti_fascist_target = 5 }
				}
				add_timed_idea = {
					idea = SOV_anti_fascist_campaign_usa
					days = SOV_default_propaganda_campaign_duration
				}
			}
			else_if = {
				limit = {
					check_variable = { SOV_anti_fascist_target = 6 }
				}
				add_timed_idea = {
					idea = SOV_anti_fascist_campaign_jap
					days = SOV_default_propaganda_campaign_duration
				}
			}
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 15 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_anti_fascism_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_anti_fascism_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_treacherous_enemy_russia2 = { # ID = 16
		priority = 15

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 1
			modifier = {
				factor = 5
				agency_upgrade_number > 4
			}
			modifier = {
				factor = 0
				has_intelligence_agency = no
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_treacherous_enemy_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_treacherous_enemy_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_treacherous_enemy_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes
		}

		visible = {
			OR = {
				has_completed_focus = SOV_smersh2
				has_completed_focus = SOV_permanent_revolution2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_treacherous_enemy_cost

		modifier = {
			encryption = 1
			enemy_operative_detection_chance_factor = 0.75
			enemy_operative_capture_chance_factor = 0.75
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 16 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 16 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_treacherous_enemy_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_treacherous_enemy_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_do_not_blab_russia2 = { # ID = 17
		priority = 16

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 1
			modifier = {
				factor = 5
				has_war = yes
			}
			modifier = {
				factor = 5
				any_enemy_country = {
					is_major = yes
				}
			}
			modifier = {
				factor = 0
				has_intelligence_agency = no
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_do_not_blab_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_do_not_blab_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_do_not_blab_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes
		}

		visible = {
			OR = {
				has_completed_focus = SOV_smersh2
				has_completed_focus = SOV_permanent_revolution2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_do_not_blab_cost

		modifier = {
			army_intel_to_others = -50
			navy_intel_to_others = -50
			airforce_intel_to_others = -50
			civilian_intel_to_others = -50
			foreign_subversive_activites = -0.25
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 17 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 17 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_do_not_blab_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_do_not_blab_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_sweep_scum_out_russia2 = { # ID = 18
		priority = 17

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 0.5
			modifier = {
				add = 100
				has_country_flag = { flag = SOV_great_patriotic_war_flag days > 365 }
			}
			modifier = {
				factor = 0.1
				surrender_progress > 0.75
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_sweep_scum_out_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_sweep_scum_out_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_sweep_scum_out_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			has_war = yes
			any_enemy_country = {
				any_controlled_state = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			OR = {
				has_completed_focus = SOV_for_the_motherland
				has_completed_focus = SOV_permanent_revolution2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_sweep_scum_out_cost

		modifier = {
			army_core_attack_factor = 0.1
			army_core_defence_factor = 0.05
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 18 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 18 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_sweep_scum_out_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_sweep_scum_out_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_knowledge_russia2 = { # ID = 19
		priority = 18

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 5
			modifier = {
				factor = 10
				has_war = no
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_knowledge_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_knowledge_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_knowledge_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes
		}

		visible = {
			OR = {
				has_completed_focus = SOV_extra_research_slot
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_knowledge_cost

		modifier = {
			research_speed_factor = 0.05
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 19 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 19 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_knowledge_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_knowledge_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_builders_of_communism_russia2 = { # ID = 20
		priority = 19

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 2
			modifier = {
				factor = 10
				has_war = no
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_builders_of_communism_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_builders_of_communism_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_builders_of_communism_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes
		}

		visible = {
			OR = {
				has_completed_focus = SOV_heavy_industry_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_builders_of_communism_cost

		modifier = {
			research_speed_factor = 0.02
			communism_drift = 0.1
			opinion_gain_monthly_same_ideology_factor = 0.25
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 20 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
			custom_effect_tooltip = SOV_propaganda_builders_of_communism_effect_tt
			if = {
				limit = {
					any_country = {
						is_subject_of = ROOT
					}
				}
				hidden_effect = {
					every_country = {
						limit = {
							is_subject_of = ROOT
						}
						country_event = NSB_soviet_propaganda_capmaign_events.1
					}
				}
			}
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 20 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_builders_of_communism_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_builders_of_communism_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_glory_to_partisans_russia2 = { # ID = 21
		priority = 20

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 0.1
			modifier = {
				factor = 10
				agency_upgrade_number > 4
				any_enemy_country = {
					SOV_is_major_not_original_sov = yes
				}
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_glory_to_partisans_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_glory_to_partisans_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_glory_to_partisans_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			has_war = yes
			any_enemy_country = {
				NOT = { original_tag = SOV }
				any_controlled_state = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			OR = {
				has_completed_focus = SOV_for_the_motherland
				has_completed_focus = SOV_permanent_revolution2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_glory_to_partisans_cost

		modifier = {
			operation_targeted_sabotage_resources_outcome = 0.25
			operation_targeted_sabotage_infrastructure_outcome = 0.25
			operation_targeted_sabotage_industry_outcome = 0.25
			operation_make_resistance_contacts_outcome = 0.25
			operation_boost_resistance_outcome = 0.25
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 21 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 21 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_glory_to_partisans_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_glory_to_partisans_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_death_to_invaders_russia2 = { # ID = 22
		priority = 21

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 1
			modifier = {
				factor = 5
				any_enemy_country = {
					SOV_is_major_not_original_sov = yes
				}
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_death_to_invaders_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_death_to_invaders_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_death_to_invaders_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			has_war = yes
			any_enemy_country = {
				NOT = { original_tag = SOV }
				any_controlled_state = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			OR = {
				has_completed_focus = SOV_for_the_motherland
				has_completed_focus = SOV_permanent_revolution2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_death_to_invaders_cost

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 22 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
			set_global_flag = SOV_propaganda_death_to_invaders_active_flag #This is used to dynamically add/remove the state modifier when a state is gained/lost by SOV

			if = {
				limit = {
					any_enemy_country = {
						any_controlled_state = {
							is_core_of = ROOT
						}
					}
				}
				every_enemy_country = {
					limit = {
						any_controlled_state = {
							is_core_of = ROOT
						}
					}
					every_controlled_state = {
						limit = {
							is_core_of = ROOT
						}
						add_dynamic_modifier = { modifier = SOV_invaders_must_die }
					}
				}
			}
			else = {
				custom_effect_tooltip = SOV_propaganda_death_to_invaders_no_invaders_tt
			}
			custom_effect_tooltip = SOV_propaganda_death_to_invaders_state_modifier_tt
		}

		remove_effect = {
			every_controlled_state = {
				limit = {
					has_dynamic_modifier = { modifier = SOV_invaders_must_die }
				}
				remove_dynamic_modifier = { modifier = SOV_invaders_must_die }
			}

			clr_global_flag = SOV_propaganda_death_to_invaders_active_flag

			set_variable = { SOV_propaganda_campaign_to_remove = 22 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_death_to_invaders_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_death_to_invaders_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_stalin_russia2 = { # ID = 23
		priority = 22

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 5
			modifier = {
				factor = 2
				has_war = no
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_stalin_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_stalin_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_stalin_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes
			has_country_leader = {
		    	character = SOV_Joseph_stalin
				ruling_only = yes
			}
		}

		visible = {
			OR = {
				has_completed_focus = SOV_stalinism_foc
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_stalin_cost

		modifier = {
			political_power_factor = 0.1
			command_power_gain_mult = 0.1
			war_support_weekly = 0.01
			communism_drift = 0.1
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 23 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 23 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_stalin_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_stalin_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_rebuild_to_glory_russia2 = { # ID = 24
		priority = 23

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 3
			modifier = {
				factor = 2
				has_war = no
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_rebuild_to_glory_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_rebuild_to_glory_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_rebuild_to_glory_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes
		}

		visible = {
			OR = {
				has_completed_focus = SOV_heavy_industry_russia2
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_rebuild_to_glory_cost

		modifier = {
			industry_repair_factor = 0.15
			production_speed_buildings_factor = 0.05
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 24 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 24 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_rebuild_to_glory_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_rebuild_to_glory_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_peace_russia2 = { # ID = 25
		priority = 24

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 2
			modifier = {
				factor = 0
				any_country = {
					SOV = { is_justifying_wargoal_against = PREV }
				}
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_peace_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_peace_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_peace_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			has_war = no
			NOT = { has_country_flag = SOV_punished_for_breaking_flag }
		}

		visible = {
			OR = {
				has_completed_focus = SOV_proclaim_neutrality
				has_completed_focus = SOV_rebuild_country
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
			NOT = { has_country_flag = SOV_punished_for_breaking_flag }
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_peace_cost

		modifier = {
			stability_weekly = 0.005
			consumer_goods_factor = -0.03
			opinion_gain_monthly_factor = 0.25
			enemy_justify_war_goal_time = 0.50
			war_support_weekly = -0.005
			industrial_capacity_factory = -0.05
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 25 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
			set_rule = { can_send_volunteers = no }

			set_country_flag = SOV_propaganda_peace_active_flag
		}

		remove_effect = {
			set_rule = { can_send_volunteers = yes }

			clr_country_flag = SOV_propaganda_peace_active_flag

			set_variable = { SOV_propaganda_campaign_to_remove = 25 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_peace_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_peace_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}

	SOV_propaganda_happy_life_russia2 = { # ID = 26
		priority = 25

		icon = eng_propaganda_campaigns

		ai_will_do = {
			base = 3
			modifier = {
				factor = 2
				has_war = no
			}
			modifier = {
				factor = 10
				has_stability < 0.4
			}
			modifier = {
				factor = 10
				has_stability < 0.2
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_happy_life_cost > 30 } #Less likely to do it a third time
			}
			modifier = {
				factor = 0.1
				check_variable = { SOV_propaganda_happy_life_cost > 45 } #Even less likely to do it a fourth time
			}
			modifier = {
				factor = 0
				check_variable = { SOV_propaganda_happy_life_cost > 90 } #Shouldn't even considered doing it a fifth time
			}
		}

		allowed = {
			original_tag = SOV
		}

		available = {
			SOV_propaganda_poster_slot_available = yes

			surrender_progress < 0.01
		}

		visible = {
			OR = {
				has_completed_focus = SOV_finish_the_second_five_year_plan
				has_country_flag = SOV_debug_unlock_propaganda_campaigns_flag #debug
			}
		}

		days_remove = SOV_default_propaganda_campaign_duration

		days_re_enable = SOV_default_propaganda_campaign_cooldown

		cost = SOV_propaganda_happy_life_cost

		modifier = {
			stability_weekly = 0.01
			compliance_growth = 0.05
			resistance_decay = 0.05
			resistance_damage_to_garrison = 0.15
			consumer_goods_factor = 0.03
		}

		complete_effect = {
			set_variable = { SOV_new_propaganda_campaign = 26 }
			SOV_pick_propaganda_campaign_slot_effect = yes
			SOV_achievement_propaganda_counter_effect = yes
		}

		remove_effect = {
			set_variable = { SOV_propaganda_campaign_to_remove = 26 }
			SOV_reset_propaganda_campaign_slot_effect = yes

			set_variable = { SOV_propaganda_cost = SOV_propaganda_happy_life_cost }
			SOV_increase_propaganda_campaign_cost_effect = yes
			set_variable = { SOV_propaganda_happy_life_cost = SOV_propaganda_cost }
			clear_variable = SOV_propaganda_cost

			custom_effect_tooltip = SOV_propaganda_campaign_cooldown_tt
		}
	}
}

political_actions = {

	SOV_put_nikita_in_charge_of_ukraine = {

		icon = GFX_decision_generic_decision

		allowed = {
			tag = SOV
		}

		ai_will_do = {
			factor = 100
		}

		visible = {
			is_subject = no
			has_civil_war = no
			has_government = communism
			UKR = {
				is_subject_of = ROOT
				has_government = communism
			}
		}

		highlight_states = {
			highlight_states_trigger = {
				state = UKR.capital
			}
		}

		available = {
			NOT = {
				has_country_leader = {
					character = SOV_Nikita_khrushchev
					ruling_only = yes
				}
			}
			UKR = {
				NOT = {
					has_country_leader = {
						character = UKR_Nikita_khrushchev
						ruling_only = yes
					}
				}
			}
		}

		complete_effect = {
			UKR = {
				add_country_leader_role = {
					character = UKR_Nikita_khrushchev
					promote_leader = yes
					country_leader = {
						ideology = stalinism
						traits = {

						}
						expire = "1965.1.1"
						id = -1
					}
				}
			}
		}
	}
}

SOV_anarchist_selection_beneficiary_decisions = {

	SOV_choose_fisrt_beneficiary_anarchist = {

		icon = GFX_decision_eng_trade_unions_support

		on_map_mode = map_and_decisions_view

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				NOT = {
					has_country_flag = has_been_chosen_as_first_beneficiary
					has_country_flag = has_been_chosen_as_second_beneficiary
				}
			}
			NOT = {
				any_country = {
					has_country_flag = has_been_chosen_as_first_beneficiary
				}
				has_country_flag = has_confirmed_beneficiary
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_choose_beneficiary
		}

		target_trigger = {
			FROM = {
				NOT = {
					has_country_flag = has_been_chosen_as_first_beneficiary
					has_country_flag = has_been_chosen_as_second_beneficiary
				}
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				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
				}
			}
		}

		cost = 25

		available = {
			has_completed_focus = SOV_choose_beneficiary
		}

		complete_effect = {
			custom_effect_tooltip = from_will_be_chosen_as_first_beneficiary
			FROM = {
				set_country_flag = has_been_chosen_as_first_beneficiary
				save_global_event_target_as = FROM_first_beneficiary
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_revoke_fisrt_beneficiary_anarchist = {

		icon = GFX_decision_eng_trade_unions_demand

		on_map_mode = map_and_decisions_view

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				has_country_flag = has_been_chosen_as_first_beneficiary
			}
			NOT = {
				has_country_flag = has_confirmed_beneficiary
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_choose_beneficiary
		}

		target_trigger = {
			FROM = {
				has_country_flag = has_been_chosen_as_first_beneficiary
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				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
				}
			}
		}

		cost = 10

		available = {
			has_completed_focus = SOV_choose_beneficiary
		}

		complete_effect = {
			custom_effect_tooltip = from_will_be_revoke_as_first_beneficiary
			FROM = {
				clr_country_flag = has_been_chosen_as_first_beneficiary
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	SOV_choose_second_beneficiary_anarchist = {

		icon = GFX_decision_eng_trade_unions_support

		on_map_mode = map_and_decisions_view

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				NOT = {
					has_country_flag = has_been_chosen_as_first_beneficiary
					has_country_flag = has_been_chosen_as_second_beneficiary
				}
			}
			any_country = {
				has_country_flag = has_been_chosen_as_first_beneficiary
			}
			NOT = {
				any_country = {
					has_country_flag = has_been_chosen_as_second_beneficiary
				}
				has_country_flag = has_confirmed_beneficiary
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_choose_beneficiary
		}

		target_trigger = {
			FROM = {
				NOT = {
					has_country_flag = has_been_chosen_as_first_beneficiary
					has_country_flag = has_been_chosen_as_second_beneficiary
				}
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				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
				}
			}
		}

		cost = 25

		available = {
			has_completed_focus = SOV_choose_beneficiary
		}

		complete_effect = {
			custom_effect_tooltip = from_will_be_chosen_as_second_beneficiary
			FROM = {
				set_country_flag = has_been_chosen_as_second_beneficiary
				save_global_event_target_as = FROM_second_beneficiary
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_revoke_second_beneficiary_anarchist = {

		icon = GFX_decision_eng_trade_unions_demand

		on_map_mode = map_and_decisions_view

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				has_country_flag = has_been_chosen_as_second_beneficiary
			}
			NOT = {
				has_country_flag = has_confirmed_beneficiary
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_choose_beneficiary
		}

		target_trigger = {
			FROM = {
				has_country_flag = has_been_chosen_as_second_beneficiary
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				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
				}
			}
		}

		cost = 10

		available = {
			has_completed_focus = SOV_choose_beneficiary
		}

		complete_effect = {
			custom_effect_tooltip = from_will_be_revoke_as_first_beneficiary
			FROM = {
				clr_country_flag = has_been_chosen_as_second_beneficiary
			}
		}

		ai_will_do = {
			factor = 0
		}
	}

	SOV_confirm_choice_beneficiary_anarchist = {

		icon = GFX_decision_hol_exchange_intelligence_data

		allowed = {
			original_tag = SOV
		}

		visible = {
			any_country = {
				has_country_flag = has_been_chosen_as_first_beneficiary
			}
			any_country = {
				has_country_flag = has_been_chosen_as_second_beneficiary
			}
		}

		available = {
			has_completed_focus = SOV_choose_beneficiary
		}

		complete_effect = {
			custom_effect_tooltip = will_confirm_our_choice_no_back
			set_country_flag = has_confirmed_beneficiary
			every_country = {
				limit = {
					is_neighbor_of = event_target:FROM_first_beneficiary
					NOT = {
						tag = event_target:FROM_first_beneficiary
						tag = event_target:FROM_second_beneficiary
						tag = SOV
					}
					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
					}
				}
				set_country_flag = is_neighbor_of_from_first_beneficiary
			}
			every_country = {
				limit = {
					is_neighbor_of = event_target:FROM_second_beneficiary
					NOT = {
						tag = event_target:FROM_first_beneficiary
						tag = event_target:FROM_second_beneficiary
						tag = SOV
					}
					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
					}
				}
				set_country_flag = is_neighbor_of_from_second_beneficiary
			}
			every_country = {
				limit = {
					is_neighbor_of = SOV
					NOT = {
						tag = event_target:FROM_first_beneficiary
						tag = event_target:FROM_second_beneficiary
						tag = SOV
					}
					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
					}
				}
				set_country_flag = is_neighbor_of_from_sov_beneficiary
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_repartition_contested_territories_anarchist = {

		icon = GFX_decision_eng_trade_unions_support

		on_map_mode = map_and_decisions_view

		allowed = {
			original_tag = SOV
		}

		visible = {
			FROM = {
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				OR = {
					AND = {
						has_country_flag = is_neighbor_of_from_first_beneficiary
						OR = {
							has_country_flag = is_neighbor_of_from_second_beneficiary
							has_country_flag = is_neighbor_of_from_sov_beneficiary
						}
					}
					AND = {
						has_country_flag = is_neighbor_of_from_second_beneficiary
						OR = {
							has_country_flag = is_neighbor_of_from_first_beneficiary
							has_country_flag = is_neighbor_of_from_sov_beneficiary
						}
					}
					AND = {
						has_country_flag = is_neighbor_of_from_sov_beneficiary
						OR = {
							has_country_flag = is_neighbor_of_from_first_beneficiary
							has_country_flag = is_neighbor_of_from_second_beneficiary
						}
					}
					NOT = {
						AND = {
							has_country_flag = is_neighbor_of_from_first_beneficiary
							has_country_flag = is_neighbor_of_from_second_beneficiary
							has_country_flag = is_neighbor_of_from_sov_beneficiary
						}
					}
				}
			}
			has_country_flag = has_confirmed_beneficiary
		}

		target_root_trigger = {
			has_completed_focus = SOV_choose_beneficiary
		}

		target_trigger = {
			FROM = {
				OR = {
					AND = {
						has_country_flag = is_neighbor_of_from_first_beneficiary
						OR = {
							has_country_flag = is_neighbor_of_from_second_beneficiary
							has_country_flag = is_neighbor_of_from_sov_beneficiary
						}
					}
					AND = {
						has_country_flag = is_neighbor_of_from_second_beneficiary
						OR = {
							has_country_flag = is_neighbor_of_from_first_beneficiary
							has_country_flag = is_neighbor_of_from_sov_beneficiary
						}
					}
					AND = {
						has_country_flag = is_neighbor_of_from_sov_beneficiary
						OR = {
							has_country_flag = is_neighbor_of_from_first_beneficiary
							has_country_flag = is_neighbor_of_from_second_beneficiary
						}
					}
					NOT = {
						AND = {
							has_country_flag = is_neighbor_of_from_first_beneficiary
							has_country_flag = is_neighbor_of_from_second_beneficiary
							has_country_flag = is_neighbor_of_from_sov_beneficiary
						}
					}
				}
				exists = yes
				has_government = anarchy
				is_in_faction_with = SOV
				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
				}
			}
		}

		fire_only_once = yes

		available = {
			has_completed_focus = SOV_choose_beneficiary
		}

		complete_effect = {
			FROM = {
				SOV = {
					country_event = { id = russia2_russia.647 }
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
	}
}

SOV_anarchist_the_revolution_without_borders = {

		SOV_support_the_anarchist_militant = {

		icon = GFX_decision_generic_political_rally

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			if = {
				limit = {
					NOT = {
						has_completed_focus = SOV_form_the_communes_of_peoples
					}
				}
				if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_west
					}
					custom_trigger_tooltip = {
						tooltip = must_owns_25_valid_european_states_tt
						must_own_25_european_state_trigger_anarchist = yes
					}
				}
				else_if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_east
					}
					custom_trigger_tooltip = {
						tooltip = must_owns_30_valid_asian_states_tt
						must_owns_30_valid_asian_states_triger_anarchist = yes
					}
				}
				else = {
					custom_trigger_tooltip = {
						tooltip = must_owns_50_valid_eurasian_states_tt
						must_owns_50_valid_eurasian_states_trigger_anarchist = yes
					}
				}
			}
			else_if = {
				limit = {
					has_completed_focus = SOV_form_the_communes_of_peoples
				}
				if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_west
					}
					count_triggers = {
						amount = 1
						EAC = {
							is_subject_of = SOV
						}
						NAC = {
							is_subject_of = SOV
						}
						WAC = {
							is_subject_of = SOV
						}
					}
				}
				else_if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_east
					}
					count_triggers = {
						amount = 1
						SWA = {
							is_subject_of = SOV
						}
						AEA = {
							is_subject_of = SOV
						}
						SAE = {
							is_subject_of = SOV
						}
					}
				}
				else = {
					count_triggers = {
						amount = 2
						EAC = {
							is_subject_of = SOV
						}
						NAC = {
							is_subject_of = SOV
						}
						WAC = {
							is_subject_of = SOV
						}
						SWA = {
							is_subject_of = SOV
						}
						AEA = {
							is_subject_of = SOV
						}
						SAE = {
							is_subject_of = SOV
						}
					}
				}
			}
		}

		cost = 50

		fire_only_once = yes

		complete_effect = {
			if = {
				limit = {
					has_completed_focus = SOV_spread_revolution_both
				}
				every_country = {
					limit = {
						has_idea = SOV_Anarchist_uprising
					}
					country_event = { id = russia2_generic.47 hours = 1 }
				}
			}
			else = {
				every_country = {
					limit = {
						has_idea = SOV_Anarchist_uprising
					}
					country_event = { id = russia2_generic.46 hours = 1 }
				}
			}
			set_country_flag = anarchist_revolution_level_2
			set_variable = { anarchist_revolution_level_variable = 0 }
			add_to_variable = {
				var = anarchist_revolution_level_variable
				value = 1
			}
			if = {
				limit = {
					has_completed_focus = SOV_spread_revolution_both
				}
				custom_effect_tooltip = will_increase_idea_anarchist_uprising_bonus_025_tt
			}
			else = {
				custom_effect_tooltip = will_increase_idea_anarchist_uprising_tt
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_give_weapons_to_the_anarchist_militant = {

		icon = GFX_decision_generic_industry

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = anarchist_revolution_level_2
		}

		available = {
			if = {
				limit = {
					NOT = {
						has_completed_focus = SOV_form_the_communes_of_peoples
					}
				}
				if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_west
					}
					custom_trigger_tooltip = {
						tooltip = must_owns_50_valid_european_states_tt
						must_own_50_european_state_trigger_anarchist = yes
					}
				}
				else_if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_east
					}
					custom_trigger_tooltip = {
						tooltip = must_owns_60_valid_asian_states_tt
						must_owns_60_valid_asian_states_triger_anarchist = yes
					}
				}
				else = {
					custom_trigger_tooltip = {
						tooltip = must_owns_100_valid_eurasian_states_tt
						must_owns_100_valid_eurasian_states_trigger_anarchist = yes
					}
				}
			}
			else_if = {
				limit = {
					has_completed_focus = SOV_form_the_communes_of_peoples
				}
				if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_west
					}
					count_triggers = {
						amount = 2
						EAC = {
							is_subject_of = SOV
						}
						NAC = {
							is_subject_of = SOV
						}
						WAC = {
							is_subject_of = SOV
						}
					}
				}
				else_if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_east
					}
					count_triggers = {
						amount = 2
						SWA = {
							is_subject_of = SOV
						}
						AEA = {
							is_subject_of = SOV
						}
						SAE = {
							is_subject_of = SOV
						}
					}
				}
				else = {
					count_triggers = {
						amount = 4
						EAC = {
							is_subject_of = SOV
						}
						NAC = {
							is_subject_of = SOV
						}
						WAC = {
							is_subject_of = SOV
						}
						SWA = {
							is_subject_of = SOV
						}
						AEA = {
							is_subject_of = SOV
						}
						SAE = {
							is_subject_of = SOV
						}
					}
				}
			}
		}

		cost = 50

		fire_only_once = yes

		complete_effect = {
			if = {
				limit = {
					has_completed_focus = SOV_spread_revolution_both
				}
				every_country = {
					limit = {
						has_idea = SOV_Anarchist_uprising_5
					}
					country_event = { id = russia2_generic.49 hours = 1 }
				}
			}
			else = {
				every_country = {
					limit = {
						has_idea = SOV_Anarchist_uprising_2
					}
					country_event = { id = russia2_generic.48 hours = 1 }
				}
			}
			set_country_flag = anarchist_revolution_level_3
			clr_country_flag = anarchist_revolution_level_2
			add_to_variable = {
				var = anarchist_revolution_level_variable
				value = 1
			}
			if = {
				limit = {
					has_completed_focus = SOV_spread_revolution_both
				}
				custom_effect_tooltip = will_increase_idea_anarchist_uprising_bonus_025_tt
			}
			else = {
				custom_effect_tooltip = will_increase_idea_anarchist_uprising_tt
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_send_volunteers_support_militant = {

		icon = GFX_decision_generic_military

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = anarchist_revolution_level_3
		}

		available = {
			if = {
				limit = {
					NOT = {
						has_completed_focus = SOV_form_the_communes_of_peoples
					}
				}
				if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_west
					}
					custom_trigger_tooltip = {
						tooltip = must_owns_70_valid_european_states_tt
						must_own_70_european_state_trigger_anarchist = yes
					}
				}
				else_if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_east
					}
					custom_trigger_tooltip = {
						tooltip = must_owns_80_valid_asian_states_tt
						must_owns_80_valid_asian_states_triger_anarchist = yes
					}
				}
				else = {
					custom_trigger_tooltip = {
						tooltip = must_owns_150_valid_eurasian_states_tt
						must_owns_150_valid_eurasian_states_trigger_anarchist = yes
					}
				}
			}
			else_if = {
				limit = {
					has_completed_focus = SOV_form_the_communes_of_peoples
				}
				if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_west
					}
					EAC = {
						is_subject_of = SOV
					}
					NAC = {
						is_subject_of = SOV
					}
					WAC = {
						is_subject_of = SOV
					}
				}
				else_if = {
					limit = {
						has_completed_focus = SOV_spread_revolution_east
					}
					SWA = {
						is_subject_of = SOV
					}
					AEA = {
						is_subject_of = SOV
					}
					SAE = {
						is_subject_of = SOV
					}
				}
				else = {
					EAC = {
						is_subject_of = SOV
					}
					NAC = {
						is_subject_of = SOV
					}
					WAC = {
						is_subject_of = SOV
					}
					SWA = {
						is_subject_of = SOV
					}
					AEA = {
						is_subject_of = SOV
					}
					SAE = {
						is_subject_of = SOV
					}
				}
			}
		}

		cost = 50

		fire_only_once = yes

		complete_effect = {
			if = {
				limit = {
					has_completed_focus = SOV_spread_revolution_both
				}
				every_country = {
					limit = {
						has_idea = SOV_Anarchist_uprising_6
					}
					country_event = { id = russia2_generic.51 hours = 1 }
				}
			}
			else = {
				every_country = {
					limit = {
						has_idea = SOV_Anarchist_uprising_3
					}
					country_event = { id = russia2_generic.50 hours = 1 }
				}
			}
			set_country_flag = anarchist_revolution_level_4
			clr_country_flag = anarchist_revolution_level_3
			add_to_variable = {
				var = anarchist_revolution_level_variable
				value = 1
			}
			if = {
				limit = {
					has_completed_focus = SOV_spread_revolution_both
				}
				custom_effect_tooltip = will_increase_idea_anarchist_uprising_tt
			}
			else = {
				custom_effect_tooltip = will_increase_idea_anarchist_uprising_bonus_10_tt
			}
		}

		ai_will_do = {
			factor = 100
		}
	}

	SOV_offer_exile_anarchist_militant = {

		icon = GFX_decision_eng_blackshirt_march

		allowed = {
			original_tag = SOV
		}

		days_re_enable = 180

		visible = {
			any_country = {
				OR = {
					has_idea = SOV_Anarchist_uprising
					has_idea = SOV_Anarchist_uprising_2
					has_idea = SOV_Anarchist_uprising_3
					has_idea = SOV_Anarchist_uprising_4
					has_idea = SOV_Anarchist_uprising_5
					has_idea = SOV_Anarchist_uprising_6
					has_idea = SOV_Anarchist_uprising_7
				}
			}
		}

		available = {
			has_government = anarchy
		}

		cost = 25

		complete_effect = {
			add_manpower = 15000
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_ask_anarchist_militant_steal_equipment = {

		icon = GFX_decision_generic_intelligence_operation

		allowed = {
			original_tag = SOV
		}

		days_re_enable = 180

		visible = {
			any_country = {
				OR = {
					has_idea = SOV_Anarchist_uprising
					has_idea = SOV_Anarchist_uprising_2
					has_idea = SOV_Anarchist_uprising_3
					has_idea = SOV_Anarchist_uprising_4
					has_idea = SOV_Anarchist_uprising_5
					has_idea = SOV_Anarchist_uprising_6
					has_idea = SOV_Anarchist_uprising_7
				}
			}
		}

		available = {
			has_government = anarchy
		}

		cost = 25

		complete_effect = {
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 1000
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_infiltrate_chosen_state_from_justify_war = {

		icon = GFX_decision_onmap_recruit_operative

		allowed = {
			original_tag = SOV
		}

		on_map_mode = map_only

		state_target = yes

		visible = {
			SOV = {
				is_justifying_wargoal_against = FROM
				has_government = anarchy
				has_country_flag = has_elected_anarcho_communism
				has_country_flag = can_infiltrate_foreign_countries_wargoal
			}
		}

		available = {
			has_government = anarchy
			has_country_flag = has_elected_anarcho_communism
			custom_trigger_tooltip = {
				tooltip = not_more_than_3_chosen_infiltrated_states_tt
				any_country = {
					owns_state = FROM
					NOT = {
						check_variable = {
							var = anarchist_state_infiltration
							value = 3
							compare = equals
						}
					}
				}
			}
		}

		target_trigger = {
			SOV = {
				is_justifying_wargoal_against = FROM
			}
		}

		fire_only_once = yes

		cost = 15

		complete_effect = {
			custom_effect_tooltip = SOV_infiltrate_chosen_state_from_justify_war_tt
			FROM = {
				set_state_flag = is_chosen_infiltrated_states_anarchist_communism
			}
			add_to_variable = {
				var = anarchist_state_infiltration
				value = 1
			}
			hidden_effect = {
				every_country = {
					limit = {
						owns_state = FROM
					}
					if = {
						limit = {
							NOT = {
								has_variable = anarchist_state_infiltration
							}
						}
						set_variable = { anarchist_state_infiltration = 1 }
					}
					else = {
						add_to_variable = {
							var = anarchist_state_infiltration
							value = 1
						}
					}
				}
			}
		}
	}

	SOV_infiltrate_foreign_countries_anarchist = {

		icon = GFX_decision_onmap_recruit_operative

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_government = anarchy
			has_country_flag = has_elected_anarcho_communism
			custom_trigger_tooltip = {
				tooltip = has_completed_decision_level_1_anarchy
				check_variable = {
					var = anarchist_revolution_level_variable
					value = 1
					compare = greater_than_or_equals
				}
			}
		}

		cost = 75

		fire_only_once = yes

		complete_effect = {
			set_country_flag = can_infiltrate_foreign_countries_wargoal
			custom_effect_tooltip = unlock_new_wargoal_type_anarchist_tt
			custom_effect_tooltip = SOV_Infitrate_foreign_countries_decision_tt
		}

		ai_will_do = {
			factor = 150
		}
	}

	SOV_Recruit_local_civilian_anarchist = {

		icon = GFX_decision_hol_exchange_intelligence_data

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = can_infiltrate_foreign_countries_wargoal
		}

		available = {
			has_government = anarchy
			custom_trigger_tooltip = {
				tooltip = has_completed_decision_level_2_anarchy
				check_variable = {
					var = anarchist_revolution_level_variable
					value = 2
					compare = greater_than_or_equals
				}
			}
		}

		cost = 75

		fire_only_once = yes

		complete_effect = {
			set_country_flag = can_infiltrate_foreign_countries_wargoal_lvl2
			custom_effect_tooltip = SOV_Recruit_local_civilian_anarchist_tt
		}

		ai_will_do = {
			factor = 150
		}
	}

	SOV_form_hidden_base_anarchist = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = can_infiltrate_foreign_countries_wargoal_lvl2
		}

		available = {
			has_government = anarchy
			custom_trigger_tooltip = {
				tooltip = has_completed_decision_level_3_anarchy
				check_variable = {
					var = anarchist_revolution_level_variable
					value = 3
					compare = greater_than_or_equals
				}
			}
		}

		cost = 75

		fire_only_once = yes

		complete_effect = {
			set_country_flag = can_infiltrate_foreign_countries_wargoal_lvl3
			custom_effect_tooltip = SOV_form_hidden_base_anarchist_tt
		}

		ai_will_do = {
			factor = 150
		}
	}

	SOV_allow_diplomacy_with_outside_world = {

		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_government = anarchy
			has_country_flag = has_elected_anarcho_syndicalism
		}

		cost = 100

		fire_only_once = yes

		complete_effect = {
			if = {
				limit = {
					has_completed_focus = SOV_spread_revolution_west
				}
				custom_effect_tooltip = SOV_allow_diplomacy_with_outside_world_asia_tt
			}
			else = {
				custom_effect_tooltip = SOV_allow_diplomacy_with_outside_world_europe_tt
			}
			add_ideas = SOV_Contact_with_outside
		}

		ai_will_do = {
			factor = 150
		}
	}

	SOV_expand_diplomacy_with_outside_world = {

		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		visible = {
			SOV = {
				has_idea = SOV_Contact_with_outside
			}
		}

		available = {
			SOV = {
				has_idea = SOV_Contact_with_outside
			}
			custom_trigger_tooltip = {
				tooltip = has_completed_decision_level_1_anarchy
				check_variable = {
					var = anarchist_revolution_level_variable
					value = 1
					compare = greater_than_or_equals
				}
			}
		}

		cost = 75

		fire_only_once = yes

		complete_effect = {
			if = {
				limit = {
					has_completed_focus = SOV_spread_revolution_west
				}
				set_country_flag = expand_diplomacy_outside_asia
				custom_effect_tooltip = SOV_expand_diplomacy_with_outside_world_asia_tt
			}
			else = {
				custom_effect_tooltip = SOV_expand_diplomacy_with_outside_world_europe_tt
				set_country_flag = expand_diplomacy_outside_europe
			}
		}

		ai_will_do = {
			factor = 150
		}
	}

	SOV_supply_anarchist_militan_revolution_cw = {

		icon = GFX_decision_generic_factory

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_government = anarchy
			has_country_flag = has_elected_anarcho_individualism
			custom_trigger_tooltip = {
				tooltip = has_completed_decision_level_1_anarchy
				check_variable = {
					var = anarchist_revolution_level_variable
					value = 1
					compare = greater_than_or_equals
				}
			}
		}

		cost = 50

		fire_only_once = yes

		complete_effect = {
			set_variable = { anarchist_militants_civil_war_strength_var = 1 }
			custom_effect_tooltip = supply_anarchist_militan_revolution_decision_tt
			custom_effect_tooltip = SOV_supply_anarchist_militan_revolution_decision_tt
			set_country_flag = can_launch_anarchist_civil_war_indivudualist
			add_ideas = SOV_Black_squad
		}

		ai_will_do = {
			factor = 150
		}
	}

	SOV_give_better_weapon_to_militant_cw = {

		icon = GFX_decision_generic_tank

		allowed = {
			original_tag = SOV
		}

		visible = {
			SOV = {
				has_country_flag = can_launch_anarchist_civil_war_indivudualist
			}
			has_country_flag = has_elected_anarcho_individualism
		}

		available = {
			has_government = anarchy
			has_country_flag = has_elected_anarcho_individualism
			custom_trigger_tooltip = {
				tooltip = has_completed_decision_level_2_anarchy
				check_variable = {
					var = anarchist_revolution_level_variable
					value = 2
					compare = greater_than_or_equals
				}
			}
		}

		cost = 50

		fire_only_once = yes

		complete_effect = {
			add_to_variable = {
				var = anarchist_militants_civil_war_strength_var
				value = 1
			}
			custom_effect_tooltip = SOV_give_better_weapon_to_militant_decision_tt
		}

		ai_will_do = {
			factor = 150
		}
	}

	SOV_train_partisans_anarchist_guerilla_cw = {

		icon = GFX_decision_generic_army_support

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = has_elected_anarcho_individualism
			check_variable = {
				var = anarchist_revolution_level_variable
				value = 2
				compare = greater_than_or_equals
			}
		}

		available = {
			has_country_flag = has_elected_anarcho_individualism
			custom_trigger_tooltip = {
				tooltip = has_completed_decision_level_3_anarchy
				check_variable = {
					var = anarchist_revolution_level_variable
					value = 3
					compare = greater_than_or_equals
				}
			}
		}

		cost = 50

		fire_only_once = yes

		complete_effect = {
			add_to_variable = {
				var = anarchist_militants_civil_war_strength_var
				value = 1
			}
			set_country_flag = can_launch_anarchist_revolution_major
			custom_effect_tooltip = SOV_train_partisans_anarchist_guerilla_tt
			custom_effect_tooltip = train_partisans_anarchist_guerilla_stronger_tt
		}

		ai_will_do = {
			factor = 150
		}
	}

	SOV_launch_revolution_to_from_indi = {

		icon = GFX_decision_generic_ignite_civil_war

		allowed = {
			original_tag = SOV
		}

		visible = {
			has_country_flag = can_launch_anarchist_civil_war_indivudualist
			FROM = {
				exists = yes
				is_owner_neighbor_of = SOV
			}
		}

		available = {
			has_government = anarchy
			NOT = {
				has_country_flag = is_launching_a_civil_war_anarchist_indi
				has_global_flag = an_anarchist_recolution_is_happening_indi
				has_war = yes
				has_war_with = FROM
			}
			custom_trigger_tooltip = {
				tooltip = cooldown_has_passed_210_days_tt
				if = {
					limit = {
						has_country_flag = is_on_cooldown_anarchist_revolution_indi
					}
					has_country_flag = {
						flag = is_on_cooldown_anarchist_revolution_indi
						days > 210
					}
				}
			}
			FROM = {
				custom_trigger_tooltip = {
					tooltip = has_idea_anarchist_uprising_tt
					OR = {
						has_idea = SOV_Anarchist_uprising
						has_idea = SOV_Anarchist_uprising_2
						has_idea = SOV_Anarchist_uprising_3
						has_idea = SOV_Anarchist_uprising_4
						has_idea = SOV_Anarchist_uprising_5
						has_idea = SOV_Anarchist_uprising_6
						has_idea = SOV_Anarchist_uprising_7
					}
				}
				NOT = {
					has_civil_war = yes
					has_war_with = SOV
					has_war = yes
					is_subject = yes
				}
				if = {
					limit = {
						NOT = {
							SOV = {
								has_country_flag = can_launch_anarchist_revolution_major
							}
						}
					}
					NOT = {
						is_major = yes
					}
				}
			}
			set_temp_variable = { from_army_size = FROM.num_battalions }
			set_temp_variable = { from_owned_controlled_states = FROM.owned_controlled_states }
			multiply_temp_variable = { from_owned_controlled_states = 1.5}
			round_temp_variable = from_owned_controlled_states
			multiply_temp_variable = { from_army_size = from_owned_controlled_states }
			clamp_temp_variable = {
				var = from_army_size
				min = 0
				max = 30000
			}
			has_equipment = {
				infantry_equipment > from_army_size
			}
		}

		target_trigger = {
			FROM = {
				OR = {
					has_idea = SOV_Anarchist_uprising
					has_idea = SOV_Anarchist_uprising_2
					has_idea = SOV_Anarchist_uprising_3
					has_idea = SOV_Anarchist_uprising_4
					has_idea = SOV_Anarchist_uprising_5
					has_idea = SOV_Anarchist_uprising_6
					has_idea = SOV_Anarchist_uprising_7
				}
				is_neighbor_of = SOV
				check_variable = {
					var = var:num_owned_states
					value = 1
					compare = greater_than
				}
			}
		}

		cost = 50

		days_remove = 70

		fire_only_once = yes

		cancel_trigger = {
			has_war = yes
			has_war_with = FROM
			FROM = {
				has_war = yes
			}
			NOT = {
				has_government = anarchy
			}
		}

		cancel_effect = {
			clr_global_flag = an_anarchist_recolution_is_happening_indi
			clr_country_flag = is_launching_a_civil_war_anarchist_indi
		}

		complete_effect = {
			clr_country_flag = is_on_cooldown_anarchist_revolution_indi
			set_country_flag = is_launching_a_civil_war_anarchist_indi
			FROM = {
				country_event = { id = russia2_generic.58 }
			}
		}

		remove_effect = {
			set_global_flag = an_anarchist_recolution_is_happening_indi
			set_country_flag = is_on_cooldown_anarchist_revolution_indi
			clr_country_flag = is_launching_a_civil_war_anarchist_indi
			set_temp_variable = { from_army_size = FROM.num_battalions }
			set_temp_variable = { from_owned_controlled_states = FROM.owned_controlled_states }
			multiply_temp_variable = { from_owned_controlled_states = 1.5 }
			round_temp_variable = from_owned_controlled_states
			multiply_temp_variable = { from_army_size = from_owned_controlled_states }
			multiply_temp_variable = { from_army_size = -1 }
			clamp_temp_variable = {
				var = from_army_size
				min = -30000
				max = 0
			}
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = from_army_size
			}
			custom_effect_tooltip = SOV_launch_revolution_to_from_indi_tt
			hidden_effect = {
				FROM = {
					if = {
						limit = {
							is_in_faction = yes
						}
						leave_faction = yes
					}
					if = {
						limit = {
							SOV = {
								check_variable = {
									var = anarchist_militants_civil_war_strength_var
									value = 1
									compare = equals
								}
							}
						}
						start_civil_war = {
							ideology = anarchy
							size = 0.3
							keep_unit_leaders_trigger = {
								is_unit_leader = yes
							}
							keep_political_leader = yes
							keep_political_party_members = yes
						}
						add_timed_idea = {
							idea = SOV_Anarchist_sabotage
							days = 21
						}
					}
					else_if = {
						limit = {
							SOV = {
								check_variable = {
									var = anarchist_militants_civil_war_strength_var
									value = 2
									compare = equals
								}
							}
						}
						start_civil_war = {
							ideology = anarchy
							size = 0.4
							keep_unit_leaders_trigger = {
								is_unit_leader = yes
							}
							keep_political_leader = yes
							keep_political_party_members = yes
						}
						add_timed_idea = {
							idea = SOV_Anarchist_sabotage
							days = 14
						}
					}
					else = {
						start_civil_war = {
							ideology = anarchy
							size = 0.5
							keep_unit_leaders_trigger = {
								is_unit_leader = yes
							}
							keep_political_leader = yes
							keep_political_party_members = yes
						}
					}
					add_ideas = SOV_Anarchist_civil_war_revolution
				}
				random_other_country = {
					limit = {
						original_tag = FROM
						has_government = anarchy
					}
					set_cosmetic_tag = ANAR
					create_country_leader = {
						name = "Anarchists Partisan"
						desc = "ANARCHIST_PARTISAN_DESC"
						picture = "gfx/leaders/SOV/Portrait_Russia_Anarchist_Commune.dds"
						expire = "1965.1.1"
						ideology = anarchist
						traits = {

						}
					}
					if = {
						limit = {
							SOV = {
								has_country_flag = can_launch_anarchist_revolution_major
							}
						}
						add_ideas = SOV_Guerilla_warfare_tactics
					}
					add_ideas = SOV_Anarchist_civil_war_revolution
					if = {
						limit = {
							SOV = {
								check_variable = {
									var = anarchist_militants_civil_war_strength_var
									value = 1
									compare = equals
								}
							}
						}
						add_timed_idea = {
							idea = SOV_Anarchist_sabotage
							days = 21
						}
					}
					else_if = {
						limit = {
							SOV = {
								check_variable = {
									var = anarchist_militants_civil_war_strength_var
									value = 2
									compare = equals
								}
							}
						}
						add_timed_idea = {
							idea = SOV_Anarchist_sabotage
							days = 14
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_invite_from_to_anarchist_faction = {

		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		visible = {
			SOV = {
				has_idea = SOV_Contact_with_outside
				is_faction_leader = yes
			}
		}

		available = {
			has_government = anarchy
			NOT = {
				has_country_flag = is_inviting_a_country_anarchist
				has_war = yes
			}
			FROM = {
				NOT = {
					is_in_faction = yes
					has_civil_war = yes
					has_war_with = SOV
					is_subject = yes
				}
			}
		}

		target_trigger = {
			FROM = {
				if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_spread_revolution_east
							NOT = {
								has_country_flag = expand_diplomacy_outside_europe
							}
						}
					}
					any_state = {
						is_capital = yes
						is_on_continent = europe
						is_owned_by = FROM
					}
				}
				else_if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_spread_revolution_east
							has_country_flag = expand_diplomacy_outside_europe
						}
					}
					NOT = {
						any_state = {
							is_capital = yes
							is_on_continent = asia
							is_owned_by = FROM
						}
						any_state = {
							is_capital = yes
							is_on_continent = middle_east
							is_owned_by = FROM
						}
					}
				}
				if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_spread_revolution_west
							NOT = {
								has_country_flag = expand_diplomacy_outside_asia
							}
						}
					}
					OR = {
						any_state = {
							is_capital = yes
							is_on_continent = asia
							is_owned_by = FROM
						}
						any_state = {
							is_capital = yes
							is_on_continent = middle_east
							is_owned_by = FROM
						}
					}
				}
				else_if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_spread_revolution_west
							has_country_flag = expand_diplomacy_outside_asia
						}
					}
					NOT = {
						any_state = {
							is_capital = yes
							is_on_continent = europe
							is_owned_by = FROM
						}
					}
				}
				OR = {
					has_government = neutrality
					has_government = democratic
				}
				NOT = {
					is_in_faction = yes
					has_civil_war = yes
					has_war_with = SOV
					is_subject = yes
				}
			}
		}

		cost = 50

		days_remove = 70

		fire_only_once = yes

		cancel_trigger = {
			NOT = {
				is_faction_leader = yes
			}
		}

		cancel_effect = {
			clr_country_flag = is_inviting_a_country_anarchist
		}

		complete_effect = {
			set_country_flag = is_inviting_a_country_anarchist
		}

		remove_effect = {
			clr_country_flag = is_inviting_a_country_anarchist
			FROM = {
				country_event = { id = russia2_generic.52 hours = 1 }
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_join_from_to_anarchist_faction = {

		icon = GFX_decision_generic_political_discourse

		allowed = {
			original_tag = SOV
		}

		visible = {
			SOV = {
				has_idea = SOV_Contact_with_outside
				NOT = {
					is_in_faction = yes
				}
			}
			NOT = {
				has_country_flag = cant_spam_join_faction_anarchist
			}
		}

		available = {
			has_government = anarchy
			NOT = {
				has_war_with = FROM
				has_war = yes
			}
			if = {
				limit = {
					FROM = {
						tag = GER
					}
				}
				NOT = {
					GER = {
						has_government = fascism
					}
				}
			}
			if = {
				limit = {
					FROM = {
						tag = JAP
					}
				}
				NOT = {
					JAP = {
						has_government = neutrality
					}
				}
			}
		}

		target_trigger = {
			FROM = {
				if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_spread_revolution_east
							NOT = {
								has_country_flag = expand_diplomacy_outside_europe
							}
						}
					}
					any_state = {
						is_capital = yes
						is_on_continent = europe
						is_owned_by = FROM
					}
				}
				else_if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_spread_revolution_east
							has_country_flag = expand_diplomacy_outside_europe
						}
					}
					NOT = {
						any_state = {
							is_capital = yes
							is_on_continent = asia
							is_owned_by = FROM
						}
						any_state = {
							is_capital = yes
							is_on_continent = middle_east
							is_owned_by = FROM
						}
					}
				}
				if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_spread_revolution_west
							NOT = {
								has_country_flag = expand_diplomacy_outside_asia
							}
						}
					}
					OR = {
						any_state = {
							is_capital = yes
							is_on_continent = asia
							is_owned_by = FROM
						}
						any_state = {
							is_capital = yes
							is_on_continent = middle_east
							is_owned_by = FROM
						}
					}
				}
				else_if = {
					limit = {
						SOV = {
							has_completed_focus = SOV_spread_revolution_west
							has_country_flag = expand_diplomacy_outside_asia
						}
					}
					NOT = {
						any_state = {
							is_capital = yes
							is_on_continent = europe
							is_owned_by = FROM
						}
					}
				}
				if = {
					limit = {
						FROM = {
							tag = GER
						}
					}
					NOT = {
						GER = {
							has_government = fascism
						}
					}
				}
				if = {
					limit = {
						FROM = {
							tag = JAP
						}
					}
					NOT = {
						JAP = {
							has_government = neutrality
						}
					}
				}
				is_faction_leader = yes
				NOT = {
					has_civil_war = yes
					has_war_with = SOV
				}
			}
		}

		cost = 25

		fire_only_once = yes

		complete_effect = {
			set_country_flag = cant_spam_join_faction_anarchist
			FROM = {
				country_event = { id = russia2_generic.55 hours = 1 }
			}
		}

		ai_will_do = {
			factor = 50
		}
	}
}

SOV_mission_anarchist_revolution = {

	SOV_anarchist_revolution_timeout = {

		icon = generic_civil_support

		available = {
			OR = {
				has_war = yes
				has_war_with = SOV
				NOT = {
					SOV = {
						has_government = anarchy
					}
				}
			}
		}

		activation = {
			has_country_flag = is_victim_of_russian_anarchism
		}

		visible = {

		}

		is_good = no

		fire_only_once = yes

		days_mission_timeout = 70

		timeout_effect = {
			clr_country_flag = is_victim_of_russian_anarchism
            custom_effect_tooltip = we_will_enter_civil_war_anarchist_tt
        }
	}
}

SOV_anarchist_the_peoples_commune_formation = {

	SOV_form_commune_eastern_europe_puppet = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_government = anarchy
			custom_trigger_tooltip = {
				tooltip = SOV_form_commune_eastern_europe_available_tt
				must_owns_20_valid_eastern_european_states_trigger_anarchist = yes
			}
		}

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				give_core_to_EAC_puppet = yes
			}
			SOV = {
				release_autonomy = {
					target = EAC
					autonomy_state = autonomy_russian_commune_people
					freedom_level = 0.5
				}
			}
			hidden_effect = {
				EAC = {
					create_country_leader = {
						name = "Council of Eastern Europe"
						picture = "gfx/leaders/SOV/Portrait_Russia_Anarchist_Commune.dds"
						expire = "1965.1.1"
						ideology = anarchist
						traits = {

						}
					}
					set_popularities = {
						democratic = 5
						neutrality = 5
						fascism = 5
						communism = 5
						anarchy = 80
					}
					inherit_technology = SOV
					division_template = {
						name = "Eastern European Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "Eastern European Tank"
						priority = 2
						regiments = {
							light_armor = { x = 0 y = 0 }
							light_armor = { x = 0 y = 1 }
							light_armor = { x = 0 y = 2 }
							light_armor = { x = 0 y = 3 }
							light_armor = { x = 0 y = 4 }
							light_armor = { x = 1 y = 0 }
							light_armor = { x = 1 y = 1 }
							light_armor = { x = 1 y = 2 }
							light_armor = { x = 1 y = 3 }
							light_armor = { x = 1 y = 4 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
							motorized = { x = 2 y = 3 }
							motorized = { x = 2 y = 4 }
							motorized = { x = 3 y = 0 }
							motorized = { x = 3 y = 1 }
							motorized = { x = 3 y = 2 }
							motorized = { x = 3 y = 3 }
							motorized = { x = 3 y = 4 }
						}
						support = {
							light_tank_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st Eastern European Division\" division_template = \"Eastern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"2nd Eastern European Division\" division_template = \"Eastern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"3rd Eastern European Division\" division_template = \"Eastern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"4th Eastern European Division\" division_template = \"Eastern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"5th Eastern European Division\" division_template = \"Eastern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"6th Eastern European Division\" division_template = \"Eastern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"7th Eastern European Division\" division_template = \"Eastern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"8th Eastern European Division\" division_template = \"Eastern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"9th Eastern European Division\" division_template = \"Eastern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"10th Eastern European Division\" division_template = \"Eastern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"1st Eastern European Tank\" division_template = \"Eastern European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"2nd Eastern European Tank\" division_template = \"Eastern European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"3rd Eastern European Tank\" division_template = \"Eastern European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"4th Eastern European Tank\" division_template = \"Eastern European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
						create_unit = {
							division = "name = \"5th Eastern European Tank\" division_template = \"Eastern European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = EAC
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_integrate_eastern_european_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			EAC = {
				is_subject_of = SOV
			}
		}

		visible = {
			EAC = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = EAC
				}
				any_state = {
					is_core_of = EAC
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_form_the_communes_of_peoples
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = EAC
				}
				any_state = {
					is_core_of = EAC
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_generic.60 }
			}
		}
	}

	SOV_give_eastern_european_anarchist_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			EAC = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = EAC
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			EAC = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = EAC
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = EAC
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				EAC = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_form_commune_northern_europe_puppet = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_government = anarchy
			custom_trigger_tooltip = {
				tooltip = SOV_form_commune_northern_europe_available_tt
				must_owns_20_valid_northern_european_states_trigger_anarchist = yes
			}
		}

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				give_core_to_NAC_puppet = yes
			}
			SOV = {
				release_autonomy = {
					target = NAC
					autonomy_state = autonomy_russian_commune_people
					freedom_level = 0.5
				}
			}
			hidden_effect = {
				NAC = {
					create_country_leader = {
						name = "Council of Northern Europe"
						picture = "gfx/leaders/SOV/Portrait_Russia_Anarchist_Commune.dds"
						expire = "1965.1.1"
						ideology = anarchist
						traits = {

						}
					}
					set_popularities = {
						democratic = 5
						neutrality = 5
						fascism = 5
						communism = 5
						anarchy = 80
					}
					inherit_technology = SOV
					division_template = {
						name = "Northern European Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "Northern European Tank"
						priority = 2
						regiments = {
							light_armor = { x = 0 y = 0 }
							light_armor = { x = 0 y = 1 }
							light_armor = { x = 0 y = 2 }
							light_armor = { x = 0 y = 3 }
							light_armor = { x = 0 y = 4 }
							light_armor = { x = 1 y = 0 }
							light_armor = { x = 1 y = 1 }
							light_armor = { x = 1 y = 2 }
							light_armor = { x = 1 y = 3 }
							light_armor = { x = 1 y = 4 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
							motorized = { x = 2 y = 3 }
							motorized = { x = 2 y = 4 }
							motorized = { x = 3 y = 0 }
							motorized = { x = 3 y = 1 }
							motorized = { x = 3 y = 2 }
							motorized = { x = 3 y = 3 }
							motorized = { x = 3 y = 4 }
						}
						support = {
							light_tank_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st Northern European Division\" division_template = \"Northern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"2nd Northern European Division\" division_template = \"Northern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"3rd Northern European Division\" division_template = \"Northern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"4th Northern European Division\" division_template = \"Northern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"5th Northern European Division\" division_template = \"Northern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"6th Northern European Division\" division_template = \"Northern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"7th Northern European Division\" division_template = \"Northern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"8th Northern European Division\" division_template = \"Northern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"9th Northern European Division\" division_template = \"Northern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"10th Northern European Division\" division_template = \"Northern European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"1st Northern European Tank\" division_template = \"Northern European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"2nd Northern European Tank\" division_template = \"Northern European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"3rd Northern European Tank\" division_template = \"Northern European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"4th Northern European Tank\" division_template = \"Northern European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
						create_unit = {
							division = "name = \"5th Northern European Tank\" division_template = \"Northern European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = NAC
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_integrate_northern_european_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			NAC = {
				is_subject_of = SOV
			}
		}

		visible = {
			NAC = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAC
				}
				any_state = {
					is_core_of = NAC
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_form_the_communes_of_peoples
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = NAC
				}
				any_state = {
					is_core_of = NAC
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_generic.61 }
			}
		}
	}

	SOV_give_eastern_northern_anarchist_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			NAC = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = NAC
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			NAC = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = NAC
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = NAC
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				NAC = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_form_commune_western_europe_puppet = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_government = anarchy
			custom_trigger_tooltip = {
				tooltip = SOV_form_commune_western_europe_available_tt
				must_owns_20_valid_western_european_states_trigger_anarchist = yes
			}
		}

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				give_core_to_WAC_puppet = yes
			}
			SOV = {
				release_autonomy = {
					target = WAC
					autonomy_state = autonomy_russian_commune_people
					freedom_level = 0.5
				}
			}
			hidden_effect = {
				WAC = {
					create_country_leader = {
						name = "Council of Northern Europe"
						picture = "gfx/leaders/SOV/Portrait_Russia_Anarchist_Commune.dds"
						expire = "1965.1.1"
						ideology = anarchist
						traits = {

						}
					}
					set_popularities = {
						democratic = 5
						neutrality = 5
						fascism = 5
						communism = 5
						anarchy = 80
					}
					inherit_technology = SOV
					division_template = {
						name = "Western European Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "Western European Tank"
						priority = 2
						regiments = {
							light_armor = { x = 0 y = 0 }
							light_armor = { x = 0 y = 1 }
							light_armor = { x = 0 y = 2 }
							light_armor = { x = 0 y = 3 }
							light_armor = { x = 0 y = 4 }
							light_armor = { x = 1 y = 0 }
							light_armor = { x = 1 y = 1 }
							light_armor = { x = 1 y = 2 }
							light_armor = { x = 1 y = 3 }
							light_armor = { x = 1 y = 4 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
							motorized = { x = 2 y = 3 }
							motorized = { x = 2 y = 4 }
							motorized = { x = 3 y = 0 }
							motorized = { x = 3 y = 1 }
							motorized = { x = 3 y = 2 }
							motorized = { x = 3 y = 3 }
							motorized = { x = 3 y = 4 }
						}
						support = {
							light_tank_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st Western European Division\" division_template = \"Western European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"2nd Western European Division\" division_template = \"Western European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"3rd Western European Division\" division_template = \"Western European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"4th Western European Division\" division_template = \"Western European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"5th Western European Division\" division_template = \"Western European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"6th Western European Division\" division_template = \"Western European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"7th Western European Division\" division_template = \"Western European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"8th Western European Division\" division_template = \"Western European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"9th Western European Division\" division_template = \"Western European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"10th Western European Division\" division_template = \"Western European Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"1st Western European Tank\" division_template = \"Western European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"2nd Western European Tank\" division_template = \"Western European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"3rd Western European Tank\" division_template = \"Western European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"4th Western European Tank\" division_template = \"Western European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
						create_unit = {
							division = "name = \"5th Western European Tank\" division_template = \"Western European Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = WAC
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_integrate_western_european_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			WAC = {
				is_subject_of = SOV
			}
		}

		visible = {
			WAC = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = WAC
				}
				any_state = {
					is_core_of = WAC
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_form_the_communes_of_peoples
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = WAC
				}
				any_state = {
					is_core_of = WAC
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_generic.62 }
			}
		}
	}

	SOV_give_western_northern_anarchist_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			WAC = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = WAC
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			WAC = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = WAC
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = WAC
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				WAC = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_form_commune_south_western_asia_puppet = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_government = anarchy
			custom_trigger_tooltip = {
				tooltip = SOV_form_commune_south_western_asia_available_tt
				must_owns_20_valid_south_western_asian_states_trigger_anarchist = yes
			}
		}

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				give_core_to_SWA_puppet = yes
			}
			SOV = {
				release_autonomy = {
					target = SWA
					autonomy_state = autonomy_russian_commune_people
					freedom_level = 0.5
				}
			}
			hidden_effect = {
				SWA = {
					create_country_leader = {
						name = "Council of South West Asia"
						picture = "gfx/leaders/SOV/Portrait_Russia_Anarchist_Commune.dds"
						expire = "1965.1.1"
						ideology = anarchist
						traits = {

						}
					}
					set_popularities = {
						democratic = 5
						neutrality = 5
						fascism = 5
						communism = 5
						anarchy = 80
					}
					inherit_technology = SOV
					division_template = {
						name = "South West Asian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "South West Asian Tank"
						priority = 2
						regiments = {
							light_armor = { x = 0 y = 0 }
							light_armor = { x = 0 y = 1 }
							light_armor = { x = 0 y = 2 }
							light_armor = { x = 0 y = 3 }
							light_armor = { x = 0 y = 4 }
							light_armor = { x = 1 y = 0 }
							light_armor = { x = 1 y = 1 }
							light_armor = { x = 1 y = 2 }
							light_armor = { x = 1 y = 3 }
							light_armor = { x = 1 y = 4 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
							motorized = { x = 2 y = 3 }
							motorized = { x = 2 y = 4 }
							motorized = { x = 3 y = 0 }
							motorized = { x = 3 y = 1 }
							motorized = { x = 3 y = 2 }
							motorized = { x = 3 y = 3 }
							motorized = { x = 3 y = 4 }
						}
						support = {
							light_tank_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st South West Asian Division\" division_template = \"South West Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"2nd South West Asian Division\" division_template = \"South West Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"3rd South West Asian Division\" division_template = \"South West Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"4th South West Asian Division\" division_template = \"South West Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"5th South West Asian Division\" division_template = \"South West Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"6th South West Asian Division\" division_template = \"South West Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"7th South West Asian Division\" division_template = \"South West Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"8th South West Asian Division\" division_template = \"South West Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"9th South West Asian Division\" division_template = \"South West Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"10th South West Asian Division\" division_template = \"South West Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"1st South West Asian Tank\" division_template = \"South West Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"2nd South West Asian Tank\" division_template = \"South West Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"3rd South West Asian Tank\" division_template = \"South West Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"4th South West Asian Tank\" division_template = \"South West Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
						create_unit = {
							division = "name = \"5th South West Asian Tank\" division_template = \"South West Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SWA
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_integrate_southern_western_asian_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			SWA = {
				is_subject_of = SOV
			}
		}

		visible = {
			SWA = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = SWA
				}
				any_state = {
					is_core_of = SWA
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_form_the_communes_of_peoples
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = SWA
				}
				any_state = {
					is_core_of = SWA
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_generic.63 }
			}
		}
	}

	SOV_give_southern_western_asian_anarchist_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			SWA = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = SWA
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			SWA = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = SWA
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = SWA
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				SWA = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_form_commune_eastern_asia_puppet = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_government = anarchy
			custom_trigger_tooltip = {
				tooltip = SOV_form_commune_eastern_asia_available_tt
				must_owns_20_valid_eastern_asian_states_trigger_anarchist = yes
			}
		}

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				give_core_to_AEA_puppet = yes
			}
			SOV = {
				release_autonomy = {
					target = AEA
					autonomy_state = autonomy_russian_commune_people
					freedom_level = 0.5
				}
			}
			hidden_effect = {
				AEA = {
					create_country_leader = {
						name = "Council of Eastern Asia"
						picture = "gfx/leaders/SOV/Portrait_Russia_Anarchist_Commune.dds"
						expire = "1965.1.1"
						ideology = anarchist
						traits = {

						}
					}
					set_popularities = {
						democratic = 5
						neutrality = 5
						fascism = 5
						communism = 5
						anarchy = 80
					}
					inherit_technology = SOV
					division_template = {
						name = "Eastern Asian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "Eastern Asian Tank"
						priority = 2
						regiments = {
							light_armor = { x = 0 y = 0 }
							light_armor = { x = 0 y = 1 }
							light_armor = { x = 0 y = 2 }
							light_armor = { x = 0 y = 3 }
							light_armor = { x = 0 y = 4 }
							light_armor = { x = 1 y = 0 }
							light_armor = { x = 1 y = 1 }
							light_armor = { x = 1 y = 2 }
							light_armor = { x = 1 y = 3 }
							light_armor = { x = 1 y = 4 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
							motorized = { x = 2 y = 3 }
							motorized = { x = 2 y = 4 }
							motorized = { x = 3 y = 0 }
							motorized = { x = 3 y = 1 }
							motorized = { x = 3 y = 2 }
							motorized = { x = 3 y = 3 }
							motorized = { x = 3 y = 4 }
						}
						support = {
							light_tank_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st Eastern Asian Division\" division_template = \"Eastern Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"2nd Eastern Asian Division\" division_template = \"Eastern Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"3rd Eastern Asian Division\" division_template = \"Eastern Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"4th Eastern Asian Division\" division_template = \"Eastern Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"5th Eastern Asian Division\" division_template = \"Eastern Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"6th Eastern Asian Division\" division_template = \"Eastern Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"7th Eastern Asian Division\" division_template = \"Eastern Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"8th Eastern Asian Division\" division_template = \"Eastern Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"9th Eastern Asian Division\" division_template = \"Eastern Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"10th Eastern Asian Division\" division_template = \"Eastern Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"1st Eastern Asian Tank\" division_template = \"Eastern Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"2nd Eastern Asian Tank\" division_template = \"Eastern Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"3rd Eastern Asian Tank\" division_template = \"Eastern Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"4th Eastern Asian Tank\" division_template = \"Eastern Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
						create_unit = {
							division = "name = \"5th Eastern Asian Tank\" division_template = \"Eastern Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = AEA
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_integrate_eastern_asian_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			AEA = {
				is_subject_of = SOV
			}
		}

		visible = {
			AEA = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = AEA
				}
				any_state = {
					is_core_of = AEA
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_form_the_communes_of_peoples
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = AEA
				}
				any_state = {
					is_core_of = AEA
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_generic.64 }
			}
		}
	}

	SOV_give_eastern_asian_anarchist_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			AEA = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = AEA
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			AEA = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = AEA
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = AEA
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				AEA = {
					transfer_state = PREV
				}
			}
		}
	}

	SOV_form_commune_southern_eastern_asian_puppet = {

		icon = GFX_decision_generic_form_nation

		allowed = {
			original_tag = SOV
		}

		visible = {

		}

		available = {
			has_government = anarchy
			custom_trigger_tooltip = {
				tooltip = SOV_form_commune_southern_eastern_asian_available_tt
				must_owns_20_valid_south_eastern_asian_states_trigger_anarchist = yes
			}
		}

		fire_only_once = yes

		complete_effect = {
			hidden_effect = {
				give_core_to_SAE_puppet = yes
			}
			SOV = {
				release_autonomy = {
					target = SAE
					autonomy_state = autonomy_russian_commune_people
					freedom_level = 0.5
				}
			}
			hidden_effect = {
				SAE = {
					create_country_leader = {
						name = "Council of South East Asia"
						picture = "gfx/leaders/SOV/Portrait_Russia_Anarchist_Commune.dds"
						expire = "1965.1.1"
						ideology = anarchist
						traits = {

						}
					}
					set_popularities = {
						democratic = 5
						neutrality = 5
						fascism = 5
						communism = 5
						anarchy = 80
					}
					inherit_technology = SOV
					division_template = {
						name = "South East Asian Division"
						priority = 1
						regiments = {
							infantry = { x = 0 y = 0 }
							infantry = { x = 0 y = 1 }
							infantry = { x = 0 y = 2 }
							infantry = { x = 0 y = 3 }
							infantry = { x = 0 y = 4 }
							infantry = { x = 1 y = 0 }
							infantry = { x = 1 y = 1 }
							infantry = { x = 1 y = 2 }
							infantry = { x = 1 y = 3 }
							infantry = { x = 1 y = 4 }
							infantry = { x = 2 y = 0 }
							infantry = { x = 2 y = 1 }
						}
						support = {
							engineer = { x = 0 y = 0 }
							artillery = { x = 0 y = 1 }
						}
					}
					division_template = {
						name = "South East Asian Tank"
						priority = 2
						regiments = {
							light_armor = { x = 0 y = 0 }
							light_armor = { x = 0 y = 1 }
							light_armor = { x = 0 y = 2 }
							light_armor = { x = 0 y = 3 }
							light_armor = { x = 0 y = 4 }
							light_armor = { x = 1 y = 0 }
							light_armor = { x = 1 y = 1 }
							light_armor = { x = 1 y = 2 }
							light_armor = { x = 1 y = 3 }
							light_armor = { x = 1 y = 4 }
							motorized = { x = 2 y = 0 }
							motorized = { x = 2 y = 1 }
							motorized = { x = 2 y = 2 }
							motorized = { x = 2 y = 3 }
							motorized = { x = 2 y = 4 }
							motorized = { x = 3 y = 0 }
							motorized = { x = 3 y = 1 }
							motorized = { x = 3 y = 2 }
							motorized = { x = 3 y = 3 }
							motorized = { x = 3 y = 4 }
						}
						support = {
							light_tank_recon = { x = 0 y = 0 }
							engineer = { x = 0 y = 1 }
						}
					}
					random_controlled_state = {
						create_unit = {
							division = "name = \"1st South East Asian Division\" division_template = \"South East Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"2nd South East Asian Division\" division_template = \"South East Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"3rd South East Asian Division\" division_template = \"South East Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"4th South East Asian Division\" division_template = \"South East Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"5th South East Asian Division\" division_template = \"South East Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"6th South East Asian Division\" division_template = \"South East Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"7th South East Asian Division\" division_template = \"South East Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"8th South East Asian Division\" division_template = \"South East Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"9th South East Asian Division\" division_template = \"South East Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"10th South East Asian Division\" division_template = \"South East Asian Division\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"1st South East Asian Tank\" division_template = \"South East Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"2nd South East Asian Tank\" division_template = \"South East Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"3rd South East Asian Tank\" division_template = \"South East Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"4th South East Asian Tank\" division_template = \"South East Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
						create_unit = {
							division = "name = \"5th South East Asian Tank\" division_template = \"South East Asian Tank\" start_experience_factor = 0.3 start_equipment_factor = 1.0"
							owner = SAE
						}
					}
				}
			}
		}

		ai_will_do = {
			factor = 50
		}
	}

	SOV_integrate_southern_eastern_asian_puppet = {

		icon = GFX_decision_generic_nationalism

		allowed = {
			original_tag = SOV
		}

		fire_only_once = yes

		available = {
			SAE = {
				is_subject_of = SOV
			}
		}

		visible = {
			SAE = {
				is_subject_of = SOV
			}
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = SAE
				}
				any_state = {
					is_core_of = SAE
					is_owned_and_controlled_by = FROM
				}
			}
		}

		target_root_trigger = {
			has_completed_focus = SOV_form_the_communes_of_peoples
		}

		target_trigger = {
			FROM = {
				exists = yes
				is_subject_of = SOV
				NOT = {
					tag = SAE
				}
				any_state = {
					is_core_of = SAE
					is_owned_and_controlled_by = FROM
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			FROM = {
				country_event = { id = russia2_generic.65 }
			}
		}
	}

	SOV_give_southern_eastern_asian_anarchist_land = {

		icon = GFX_decision_hol_draw_up_staff_plans

		allowed = {
			original_tag = SOV
		}

		available = {
			SAE = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = SAE
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		visible = {
			SAE = {
				is_subject_of = SOV
			}
			any_state = {
				is_core_of = SAE
				is_owned_and_controlled_by = ROOT
				NOT = {
					is_core_of = ROOT
				}
			}
		}

		ai_will_do =  {
			factor = 100
		}

		complete_effect = {
			every_state = {
				limit = {
					is_core_of = SAE
					is_owned_and_controlled_by = ROOT
					NOT = {
						is_core_of = SOV
					}
				}
				SAE = {
					transfer_state = PREV
				}
			}
		}
	}
}
