on_actions = {

	#SOV puppet State Magistrate
	on_puppet = {
		effect = {
			if = {
				limit = {
					FROM = {
						tag = SOV
						has_idea = SOV_Impose_order
					}
				}
				ROOT = {
					create_country_leader = {
						name = SOV_State_magistrate_leader
						desc = SOV_State_magistrate_leader_desc
						picture = "gfx/leaders/EUR/Provisional_Government_Fascism.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
						traits = {

						}
					}
				}
			}
		}
	}

	#Create State Magistrate if Release Country
	on_release_as_puppet = {
		effect = {
			if = {
				limit = {
					FROM = {
						original_tag = SOV
						has_idea = SOV_Impose_order
						has_government = fascism
						is_subject = no
					}
				}
				FROM = {
					set_autonomy = {
						target = ROOT
						autonomy_state = autonomy_state_magistrate
					}
				}
				ROOT = {
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 70
						communism = 10
					}
					create_country_leader = {
						name = SOV_State_magistrate_leader
						desc = SOV_State_magistrate_leader_desc
						picture = "gfx/leaders/EUR/Provisional_Government_Fascism.dds"
						expire = "1965.1.1"
						ideology = fascism_ideology
						traits = {

						}
					}
				}
			}
		}
	}

	#Create Soviet Republic if Release Country
	on_release_as_puppet = {
		effect = {
			if = {
				limit = {
					FROM = {
						tag = SOV
						has_government = communism
					}
				}
				FROM = {
					set_autonomy = {
						target = ROOT
						autonomy_state = autonomy_soviet_republic
					}
				}
				ROOT = {
					set_popularities = {
						democratic = 10
						neutrality = 10
						fascism = 10
						communism = 70
					}
				}
			}
		}
	}

	#Create Russian Protectorate if Freedom for All was completed
	on_release_as_puppet = {
		effect = {
			if = {
				limit = {
					ROOT = {
						OR = {
							tag = UKR
							tag = BLR
							tag = ARM
							tag = GEO
							tag = AZR
							tag = KAZ
							tag = TMS
							tag = UZB
							tag = TAG
							tag = KYR
							tag = CIR
							tag = CRI
							tag = DAG
							tag = KAL
							tag = KAR
							tag = KUB
							tag = NOV
							tag = PRM
							tag = ROS
							tag = SIB
							tag = STP
							tag = TAT
							tag = URA
							tag = VLG
							tag = MON
							tag = TAN
							tag = EFR
							tag = KMI
							tag = VYA
						}
						is_subject_of = SOV
						NOT = {
							has_autonomy_state = autonomy_collaboration_government
						}
					}
					FROM = {
						tag = SOV
						has_completed_focus = SOV_freedom_all
						has_government = democratic
						is_subject = no
						NOT = {
							has_idea = SOV_Exiled_russia
						}
					}
				}
				FROM = {
					set_autonomy = {
						target = ROOT
						autonomy_state = autonomy_russian_protectorate
					}
				}
				ROOT = {
					set_popularities = {
						democratic = 70
						neutrality = 10
						fascism = 10
						communism = 10
					}
				}
			}
		}
	}
}