add_namespace = TR_SOV

country_event = { #Collapse of the Soviet Union - triggers Siberian Nationalist Independence
	id = TR_SOV.1
	title = TR_SOV.1.t
	desc = TR_SOV.1.desc
	picture = GFX_report_event_soviet_union_collapse
	
	fire_only_once = yes
	
	trigger = {
		tag = SOV
		has_war_with = GER
		surrender_progress > 0.65
		NOT = { controls_state = 195 }
		NOT = { controls_state = 219 }
		NOT = { controls_state = 217 }
	}

	mean_time_to_happen = {
		days = 2
	}

	immediate = {
		hidden_effect = {
			collapse_the_soviet_union = yes
			SOV = { country_event = { id = TR_SOV.2 days = 5 } }
		}
	}
	
	option = {
		name = TR_SOV.1.a
	}
}

country_event = { #Collapse of the Soviet Union - Tomsk Independence
	id = TR_SOV.2
	title = TR_SOV.2.t
	desc = TR_SOV.2.desc
	picture = GFX_report_event_tomsk_independence

	fire_only_once = yes

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			TOM = { 
				siberian_nationalist_independence = yes 
				TR_SOV_TOM_Promotes_Leader = yes
			}
			SOV = { country_event = { id = TR_SOV.3 days = 5 } }
		}
	}

	option = {
		name = TR_SOV.2.a
	}
}

country_event = { #Collapse of the Soviet Union - Far East Independence
	id = TR_SOV.3
	title = TR_SOV.3.t
	desc = TR_SOV.3.desc
	picture = GFX_report_event_fareast_independence

	fire_only_once = yes

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			FAR = { 
				siberian_nationalist_independence = yes
				TR_SOV_FAR_Promotes_Leader = yes
			}
			GER = { country_event = { id = TR_GER.1 days = 3 } }
		}
	}

	option = {
		name = TR_SOV.3.a
	}
}

country_event = { #Collapse of the Soviet Union - Soviet-German White Peace
	id = TR_SOV.4
	title = TR_SOV.4.t
	desc = TR_SOV.4.desc
	picture = GFX_report_event_soviet_collapsed

	fire_only_once = yes

	is_triggered_only = yes

	option = {
		name = TR_SOV.4.a
		
		custom_effect_tooltip = TR_SOV_GER_White_Peace_tt

		hidden_effect = {
			WRF = { 
				siberian_nationalist_independence = yes
				change_tag_from = SOV
			}
			TYM = { 
				siberian_nationalist_independence = yes
				TR_SOV_TYM_Promotes_Leader = yes
			}
			KZR = { 
				siberian_nationalist_independence = yes
				TR_SOV_KZR_Promotes_Leader = yes
			}
			soviet_german_white_peace = yes
			SOV = { country_event = { id = TR_SOV.5 days = 1 } }
			set_global_flag = SOV_Collapsed
		}
	}
}

country_event = { #Collapse of the Soviet Union - Some Soviet States to Far East
	id = TR_SOV.5
	hidden = yes

	fire_only_once = yes

	is_triggered_only = yes

	immediate = {
		hidden_effect = {
			transfer_SOV_to_WRF = yes
			FAR = { transfer_state = 875 }
		}
	}

	option = {
		name = TR_SOV.5.a
	}
}