add_namespace = t52_political

#Fascist Coup
country_event = {
	id = t52_political.1
	title = t52_political.1.t
	desc = t52_political.1.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		fascist > 0.45
		NOT = {
			has_government = nationalist
			has_government = fascist
		}
		is_puppet = no
		is_ai = no
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			fascist > 0.5
		}
		modifier = {
			factor = 0.5
			fascist > 0.55
		}
		modifier = {
			factor = 0.75
			has_government = communist
		}
	}
	
	option = {
		name = t52_political.1.o1
		set_politics = {
			ruling_party = fascist
			elections_allowed = no
		}
	}
}


#Nationalist Coup
country_event = {
	id = t52_political.2
	title = t52_political.2.t
	desc = t52_political.2.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		nationalist > 0.45
		NOT = {
			has_government = nationalist
			has_government = fascist
		}
		is_puppet = no
		is_ai = no
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			nationalist > 0.5
		}
		modifier = {
			factor = 0.5
			nationalist > 0.55
		}
		modifier = {
			factor = 0.75
			has_government = communist
		}
	}
	
	option = {
		name = t52_political.2.o1
		set_politics = {
			ruling_party = nationalist
			elections_allowed = no
		}
	}
}

#Communist Coup
country_event = {
	id = t52_political.3
	title = t52_political.3.t
	desc = t52_political.3.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		communist > 0.45
		NOT = {
			has_government = communist
		}
		is_puppet = no
		is_ai = no
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			communist > 0.5
		}
		modifier = {
			factor = 0.5
			communist > 0.55
		}
		modifier = {
			factor = 0.75
			OR = {
				has_government = communist
				has_government = nationalist
			}
		}
	}
	
	option = {
		name = t52_political.3.o1
		set_politics = {
			ruling_party = communist
			elections_allowed = no
		}
	}
}

#Islamist Coup
country_event = {
	id = t52_political.4
	title = t52_political.4.t
	desc = t52_political.4.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		islamist > 0.45
		NOT = {
			has_government = islamist
		}
		is_ai = no
		is_puppet = no
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			islamist > 0.5
		}
		modifier = {
			factor = 0.5
			islamist > 0.55
		}
		modifier = {
			factor = 1.5
			communist > 0.3
		}
	}
	
	option = {
		name = t52_political.4.o1
		set_politics = {
			ruling_party = islamist
			elections_allowed = no
		}
	}
}

#Reactionary Coup
country_event = {
	id = t52_political.5
	title = t52_political.5.t
	desc = t52_political.5.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		reactionary > 0.45
		NOT = {
			has_government = reactionary
			has_government = fascist
			has_government = nationalist
		}
		is_ai = no
		is_puppet = no
		OR = {
			has_government = communist
			has_government = fascist
			has_government = communist
			has_government = nationalist
		}
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			reactionary > 0.5
		}
		modifier = {
			factor = 0.5
			reactionary > 0.55
		}
	}
	
	option = {
		name = t52_political.5.o1
		set_politics = {
			ruling_party = reactionary
			elections_allowed = yes
		}
	}
}

#Conservative Coup
country_event = {
	id = t52_political.6
	title = t52_political.6.t
	desc = t52_political.6.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		conservative > 0.45
		NOT = {
			has_government = conservative
		}
		is_ai = no
		is_puppet = no
		OR = {
			has_government = communist
			has_government = fascist
			has_government = communist
			has_government = nationalist
		}
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			conservative > 0.5
		}
		modifier = {
			factor = 0.5
			conservative > 0.55
		}
	}
	
	option = {
		name = t52_political.6.o1
		set_politics = {
			ruling_party = conservative
			elections_allowed = yes
		}
	}
}

#Market Liberal Coup
country_event = {
	id = t52_political.7
	title = t52_political.7.t
	desc = t52_political.7.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		market_liberal > 0.45
		NOT = {
			has_government = market_liberal
		}
		is_ai = no
		is_puppet = no
		OR = {
			has_government = communist
			has_government = fascist
			has_government = communist
			has_government = nationalist
		}
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			market_liberal > 0.5
		}
		modifier = {
			factor = 0.5
			market_liberal > 0.55
		}
	}
	
	option = {
		name = t52_political.7.o1
		set_politics = {
			ruling_party = market_liberal
			elections_allowed = yes
		}
	}
}

#Social Liberal Coup
country_event = {
	id = t52_political.8
	title = t52_political.8.t
	desc = t52_political.8.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		social_liberal > 0.45
		NOT = {
			has_government = social_liberal
		}
		is_ai = no
		is_puppet = no
		OR = {
			has_government = communist
			has_government = fascist
			has_government = communist
			has_government = nationalist
		}
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			social_liberal > 0.5
		}
		modifier = {
			factor = 0.5
			social_liberal > 0.55
		}
	}
	
	option = {
		name = t52_political.8.o1
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		}
	}
}

#Social Democrat Coup
country_event = {
	id = t52_political.9
	title = t52_political.9.t
	desc = t52_political.9.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		social_democrat > 0.45
		NOT = {
			has_government = social_democrat
		}
		is_ai = no
		is_puppet = no
		OR = {
			has_government = communist
			has_government = fascist
			has_government = communist
			has_government = nationalist
		}
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			social_democrat > 0.5
		}
		modifier = {
			factor = 0.5
			social_democrat > 0.55
		}
	}
	
	option = {
		name = t52_political.9.o1
		set_politics = {
			ruling_party = social_democrat
			elections_allowed = yes
		}
	}
}

#Progressive Coup
country_event = {
	id = t52_political.10
	title = t52_political.10.t
	desc = t52_political.10.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		progressive > 0.45
		NOT = {
			has_government = progressive
		}
		is_ai = no
		is_puppet = no
		OR = {
			has_government = communist
			has_government = fascist
			has_government = communist
			has_government = nationalist
		}
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			progressive > 0.5
		}
		modifier = {
			factor = 0.5
			progressive > 0.55
		}
	}
	
	option = {
		name = t52_political.10.o1
		set_politics = {
			ruling_party = progressive
			elections_allowed = yes
		}
	}
}

#Democratic Socialist Coup
country_event = {
	id = t52_political.11
	title = t52_political.11.t
	desc = t52_political.11.d
	picture = GFX_report_event_gathering_protest
	
	trigger = {
		democratic_socialist > 0.45
		NOT = {
			has_government = democratic_socialist
			has_government = communist
		}
		is_ai = no
		is_puppet = no
		OR = {
			has_government = communist
			has_government = fascist
			has_government = communist
			has_government = nationalist
		}
	}
	
	mean_time_to_happen = {
		days = 250
		modifier = {
			factor = 0.5
			democratic_socialist > 0.5
		}
		modifier = {
			factor = 0.5
			democratic_socialist > 0.55
		}
	}
	
	option = {
		name = t52_political.11.o1
		set_politics = {
			ruling_party = democratic_socialist
			elections_allowed = yes
		}
	}
}