###########################
# Mittelafrikan Elections Events By Foppe
###########################

add_namespace = maf.election


country_event = { # First election post L-Vbck
	id = maf.election.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event maf.election.1" }
	title = maf.election.1.t
	desc = maf.election.1.d
	picture = GFX_report_event_MAF_officers

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = maf.election.1.a #hans gang
		custom_effect_tooltip = MAF_election_Hans
		hidden_effect = {
			create_country_leader = {
				name = "Hans Albert von Lettow-Vorbeck"
					desc = "POLITICS_HANS_ALBERT_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Hans_Albert_Vorbeck.png"
					expire = "1.1.1"
				ideology = colonial_govt_subtype
			}
			create_country_leader = {
				name = "Hans Albert von Lettow-Vorbeck"
					desc = "POLITICS_HANS_ALBERT_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Hans_Albert_Vorbeck.png"
					expire = "1.1.1"
				ideology = soccon_colonial_govt_subtype
			}
		}
		}
		
	option = {
		name = maf.election.1.b #stauch gang
		custom_effect_tooltip = MAF_election_Stauch
		hidden_effect = {
			create_country_leader = {
				name = "August Stauch"
					desc = "POLITICS_AUGUST_STAUCH_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_August_Stauch.png"
					expire = "1.1.1"
				ideology = colonial_govt_subtype
			}
			create_country_leader = {
				name = "August Stauch"
					desc = "POLITICS_AUGUST_STAUCH_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_August_Stauch.png"
					expire = "1.1.1"
				ideology = soccon_colonial_govt_subtype
			}
		}
		}
	
	option = {
		name = maf.election.1.c #alfred gang
		custom_effect_tooltip = MAF_election_Hanemann
		hidden_effect = {
			create_country_leader = {
				name = "Alfred Hanemann"
					desc = "POLITICS_ALFRED_HANEMANN_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Alfred_Hanemann.png"
					expire = "1.1.1"
				ideology = colonial_govt_subtype
			}
			create_country_leader = {
				name = "Alfred Hanemann"
					desc = "POLITICS_ALFRED_HANEMANN_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Alfred_Hanemann.png"
					expire = "1.1.1"
				ideology = soccon_colonial_govt_subtype
			}
		}
		}
	option = {
		name = maf.election.1.e #lequis gang
		custom_effect_tooltip = MAF_election_Arnold
		hidden_effect = {
			create_country_leader = {
				name = "Arnold Lequis"
					desc = "POLITICS_ARNOLD_LEQUIS_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Arnold_Lequis.png"
					expire = "1.1.1"
				ideology = colonial_govt_subtype
			}
			create_country_leader = {
				name = "Arnold Lequis"
					desc = "POLITICS_ARNOLD_LEQUIS_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Arnold_Lequis.png"
					expire = "1.1.1"
				ideology = soccon_colonial_govt_subtype
			}
		}
	}
}

country_event = { # First election post the thing
	id = maf.election.2
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event maf.election.2" 
		hidden_effect = {
			if = {
				limit = {
					has_country_leader = {
						name = "Albert von Göring"
						ruling_only = yes
					}
				}
				country_event = {
					id = mafrfg.5
					days = 12
				}
			}
			country_event = {
				id = maf.election.3
				days = 1456
			}
		}
	}
	title = maf.election.2.t
	desc = maf.election.2.d
	picture = GFX_report_event_MAF_officers

	is_triggered_only = yes
	fire_only_once = yes

	option = {
		name = maf.election.2.a #Bell gang
		hidden_effect = {
			create_country_leader = {
				name = "Alexander Douala Manga Bell"
					desc = "POLITICS_BELL_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Alexander_Duala_Manga_Bell.png"
					expire = "1.1.1"
				ideology = soccon_colonial_govt_subtype
			}
			create_country_leader = {
				name = "Alexander Douala Manga Bell"
					desc = "POLITICS_BELL_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Alexander_Duala_Manga_Bell.png"
					expire = "1.1.1"
				ideology = marlib_colonial_govt_subtype
			}
			set_politics = {
				ruling_party = market_liberal
				elections_allowed = yes
			}
		}
	}
	option = {
		name = maf.election.2.b #Kenyatta gang
		hidden_effect = {
			create_country_leader = {
				name = "Jomo Kenyatta"
					desc = "POLITICS_KENYATTA_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Jomo_Kenyatta.png"
					expire = "1.1.1"
				ideology = soccon_republican_panafricanism_subtype
			}
			create_country_leader = {
				name = "Jomo Kenyatta"
					desc = "POLITICS_KENYATTA_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Jomo_Kenyatta.png"
					expire = "1.1.1"
				ideology = soclib_republican_panafricanism_subtype
			}
			create_country_leader = {
				name = "Jomo Kenyatta"
					desc = "POLITICS_KENYATTA_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Jomo_Kenyatta.png"
					expire = "1.1.1"
				ideology = socdem_republican_panafricanism_subtype
			}
			create_country_leader = {
				name = "Jomo Kenyatta"
					desc = "POLITICS_KENYATTA_DESC"
					picture =  "gfx/leaders/MAF/Portrait_Mittelafrika_Jomo_Kenyatta.png"
					expire = "1.1.1"
				ideology = radsoc_left_panafricanism_subtype
			}
			set_politics = {
				ruling_party = social_democrat
				elections_allowed = yes
			}
		}
	}
}

country_event = { # Second election post the thing
	id = maf.election.3
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event maf.election.2"
		hidden_effect = {
			country_event = {
				id = maf.election.3
				days = 1456
			}
		}
	}
	title = maf.election.3.t
	desc = maf.election.3.d
	picture = GFX_report_event_MAF_officers

	is_triggered_only = yes

	option = {
		name = maf.election.3.a #MarLib
		hidden_effect = {
			set_politics = {
				ruling_party = market_liberal
				elections_allowed = yes
			}
		}
	}
	option = {
		name = maf.election.3.b #SocLib
		hidden_effect = {
			set_politics = {
				ruling_party = social_liberal
				elections_allowed = yes
			}
		}
	}
	option = {
		name = maf.election.3.c #SocDem
		hidden_effect = {
			set_politics = {
				ruling_party = social_democrat
				elections_allowed = yes
			}
		}
	}
}
