namespace = dis_fas

# Revolution
country_event = {
	id = dis_fas.1
	title = "dis_fas.EVTNAME1"
	desc = "dis_fas.EVTDESC1"
	picture = REVOLUTION_eventPicture
	
	major = yes
	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
	}
	

	immediate = {
		random_owned_province = { 
			limit = {
				base_tax = 4
			}
			spawn_rebels = {
				type = fascist_rebels
				size = 3		
				win = yes
				unrest = 10
			}
			
		}
		add_stability = -3
	
	
		set_country_flag = had_fascist_revolution
		set_country_flag = fascist_revolution
	}
	
	option = {
		name = "dis_fas.EVTOPTA1"			# Dire times are ahead of us
		add_prestige = -10
	}
}

# Serfdom
country_event = {
	id = dis_fas.2
	title = "dis_fas.EVTNAME2"
	desc = "dis_fas.EVTDESC2"
	picture = REVOLUTION_eventPicture
	
	trigger = {
		NOT = { has_country_flag = minority_rights }
	}
	
	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
	}

	immediate = {
		set_country_flag = minority_rights
	}	
	
	option = {
		name = "dis_fas.EVTOPTA2"		# Restrict serfdom
		ai_chance = { factor = 30 }
		add_country_modifier = {
			name = "minority_restrictions"
			duration = -1
			desc = "END_OF_REVOLUTION"
		}
	}
	option = {
		name = "dis_fas.EVTOPTB2"		# Keep the masses in chains
		ai_chance = { factor = 70 }
		random_owned_province = { fascist_rebels = 2 }
	}
}

# Social reform
country_event = {
	id = dis_fas.3
	title = "dis_fas.EVTNAME3"
	desc = "dis_fas.EVTDESC3"
	picture = REFORM_eventPicture
	
	trigger = {
		NOT = { has_country_flag = fascist_thinkers }
	}
	
	is_triggered_only = yes

	mean_time_to_happen = {
		days = 1
	}
	immediate = { 
		set_country_flag = fascist_thinkers
	}
	
	option = {
		name = "dis_fas.EVTOPTA3"			# Suppress the free thinkers
		ai_chance = { factor = 60 }
		add_country_modifier = {
			name = "suppress_fascist_thinkers"
			duration = -1
			desc = "END_OF_REVOLUTION"			
		}
	}
	option = {
		name = "dis_fas.EVTOPTB3"			# They hardly pose a threat
		ai_chance = { factor = 40 }
		random_owned_province = { fascist_rebels = 1 }
		random_owned_province = { fascist_rebels = 1 }
		random_owned_province = { fascist_rebels = 1 }
	}
}

# Stability returns
country_event = {
	id = dis_fas.4
	title = "EVTNAME3019"
	desc = "EVTDESC3019"
	picture = REVOLUTION_eventPicture
	
	major = yes	
	is_triggered_only = yes
	
	trigger = {
		has_country_flag = fascist_revolution
		had_country_flag = { flag = fascist_revolution days = 1000 }
	
	}

	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "EVTOPTA3019"			# Restore order
		country_event = { id = dis_fas.5 }
		add_stability = 2
	}
}

country_event = {
	id = dis_fas.5
	title = revolution.20.t
	desc = revolution.20.d
	picture = REVOLUTION_eventPicture

	is_triggered_only = yes

	option = {
		name = revolution.20.a
		end_disaster = fascist_revolution
		clr_country_flag = fascist_revolution

		clr_country_flag = minority_rights
		clr_country_flag = fascist_thinkers
		clr_country_flag = government_corruption
		clr_country_flag = road_to_bankruptcy
		clr_country_flag = financial_crisis		
		remove_country_modifier = minority_restrictions
		remove_country_modifier = suppress_fascist_thinkers
		remove_country_modifier = corrupted_government
		remove_country_modifier = mint_money
		remove_country_modifier = fight_inflation
		remove_country_modifier = disarmament
		remove_country_modifier = financial_disaster
	}
}

