#Cleanup non-existent countries
country_event = {
	id = 17030000
	picture = "Womensrights"
	title = "Cleanup countries - annex bug countries"
	immediate = { 
		any_country = { end_war = THIS } }
	
	is_triggered_only = yes
		
	option = {
		name = "EVTOPTA17030"
		THIS = {
			annex_to = FROM
		}
	}
}
#country_event = {
#	id = 1703003
#	picture = "Womensrights"
#	title = "Cleanup countries- end wars"
#	
#	trigger = {
#		capital = 2536
#		NOT = { has_country_flag = cease_exists }
#	}
#		
#	option = {
#		name = "EVTOPTA17030"
#		any_country = { end_war = THIS } 
#		set_country_flag = cease_exists
#	}
#}
country_event = {
	id = 1703002
	picture = "Womensrights"
	title = "Cleanup countries"
	
	trigger = {
		tag = JAN
	}
	mean_time_to_happen = { days = 30 }
		
	option = {
		name = "EVTOPTA17030"
		any_country = { 
		limit = { 
		OR = { AND = { is_mobilised = yes
		exists = no }
		AND = { war = yes
		exists = no }
		AND = { total_amount_of_ships = 1
		exists = no }}} 
		country_event = 17030000 }
	}
}
country_event = {
	id = 870302
	picture = "War exhaustion"
	title = "Surrender, there is no more fighting to do."
	
	trigger = {
		war_exhaustion = 100
		war = yes
	}
	
	mean_time_to_happen = { days = 30 }
		
	option = {
		name = "EVTOPTA17030"
		add_country_modifier = {
				name = social_instability
				duration = -1
		}
	}
}
country_event = {
	id = 870303
	picture = "War exhaustion"
	title = "Our population can rest now that fighting ceased."
	
	trigger = {
		war = no
		has_country_modifier = social_instability
	}
	
	mean_time_to_happen = { days = 30 }
		
	option = {
		name = "EVTOPTA17030"
		remove_country_modifier = social_instability
		
	}
}