EGY_create_republic = {
	set_country_flag = EGY_is_republic
	set_cosmetic_tag = EGY_Republic
		if = {
			limit = {
				SUD = {
					is_subject_of = EGY
				}
			}
			SUD = {
				set_cosmetic_tag = SUD_EGYPT_REPUBLIC
			}
		}
	set_party_name = {
		name = EGY_authoritarian_democrat_party
		long_name = EGY_authoritarian_democrat_party_long
		ideology = paternal_autocrat
	}
	create_country_leader = {
		name = "Sayyid Qutb"
		picture = "gfx/leaders/EGY/Portrait_Egypt_Sayyid_Qutb.png"
		expire = "1.1.1"
		ideology = pataut_islamism_subtype
	}
	create_country_leader = {
		name = "Hassan al-Banna"
		picture = "gfx/leaders/EGY/Portrait_Egypt_Hassan_al_Banna.png"
		expire = "1.1.1"
		ideology = islamism_subtype
	}
	create_country_leader = {
		name = "Ahmed Naguib el-Hilaly"
		picture = "gfx/leaders/EGY/Portrait_Egypt_Ahmed_Naguib_el_Hilaly.png"
		expire = "1.1.1"
		ideology = soccon_islamism_subtype
	}
	if = {
		limit = { has_idea = EGY_Ibrahim_Abdel_Hady_hog_mli }
		create_country_leader = {
			name = "Ibrahim Abdel Hady"
			picture = "gfx/leaders/EGY/Portrait_Egypt_Ibrahim_Abdel_Hady_Pasha.png"
			expire = "1.1.1"
			ideology = marlib_national_liberalism_subtype
		}
	}
	else_if = {
		limit = { has_idea = EGY_Ahmad_Mahir_hog_mli }
		create_country_leader = {
			name = "Ahmad Mahir"
			picture = "gfx/leaders/EGY/Portrait_Egypt_Ahmad_Mahir.png"
			expire = "1.1.1"
			ideology = marlib_national_liberalism_subtype
		}
	}
	else_if = {
		limit = { has_idea = EGY_Makram_Ebeid_hog_mli }
		create_country_leader = {
			name = "Makram Ebeid"
			picture = "gfx/leaders/EGY/Portrait_Egypt_Makram_Ebeid.png"
			expire = "1.1.1"
			ideology = marlib_national_liberalism_subtype
		}
	}
	else_if = {
		limit = { has_idea = EGY_Fouad_Serageddin_hog_mli }
		create_country_leader = {
			name = "Fouad Serageddin"
			picture = "gfx/leaders/EGY/Portrait_EGY_Fouad_Serageddin.png"
			expire = "1.1.1"
			ideology = marlib_national_liberalism_subtype
		}
	}
	else = {
		create_country_leader = {
			name = "Mostafa El-Nahas"
			picture = "gfx/leaders/EGY/Portrait_Egypt_Mostafa_el-Nahhas.png"
			expire = "1.1.1"
			ideology = marlib_national_liberalism_subtype
		}
	}
	if = {
		limit = { has_idea = EGY_Aly_Maher_hog_sli }
		create_country_leader = {
			name = "Aly Maher"
			picture = "gfx/leaders/EGY/Portrait_Egypt_Aly_Maher.png"
			expire = "1.1.1"
			ideology = national_liberalism_subtype
		}
	}
	else_if = {
		limit = { has_idea = EGY_Taha_Hussein_hog_sli }
		create_country_leader = {
			name = "Taha Hussein"
			picture = "gfx/leaders/EGY/Portrait_Egypt_Taha_Hussein.png"
			expire = "1.1.1"
			ideology = national_liberalism_subtype
		}
	}
	else = {
		create_country_leader = {
			name = "Mohamed Mahmoud"
			picture = "gfx/leaders/EGY/Portrait_Egypt_Mohamed_Mahmoud.png"
			expire = "1.1.1"
			ideology = national_liberalism_subtype
		}
	}
	if = {
		limit = { has_idea = EGY_Mohammed_Naguib_hog_sde }
		create_country_leader = {
			name = "Mohammed Naguib"
			picture = "gfx/leaders/EGY/Portrait_EGY_Mohammed_Naguib.png"
			expire = "1.1.1"
			ideology = socdem_left_nationalism_subtype
		}
	}
	else = {
		create_country_leader = {
			name = "Gamel Abdel Nasser"
			picture = "gfx/leaders/EGY/Portrait_EGY_Gamel_Abdel_Nasser.png"
			expire = "1.1.1"
			ideology = socdem_pharaonism_subtype
		}
	}
}

EGY_change_to_pharaonism = {
	if = {
		limit = {
			has_government = market_liberal
		}
		set_country_leader_ideology = marlib_pharaonism_subtype
		set_country_flag = EGY_marlib_pharaon_flag
	}
	if = {
		limit = {
			has_government = social_liberal
		}
		set_country_leader_ideology = pharaonism_subtype
		set_country_flag = EGY_soclib_pharaon_flag
	}
}