EGY_civil_war = {
	MUS_declare_victory = {
			available = {
				tag = MUS
				has_global_flag = EGY_nuke_civil_war
				EGY = { exists = no }	
				MEK = { exists = no }	
			}
			modifier = {
			}
			ai_will_do = {
				factor = 100
			}
			fire_only_once = yes
			days_remove = 25
			cost = 0
			
		remove_effect = {
		
			if = {
				limit = { has_global_flag = ISR_samson_used_flag }
				news_event = { id = Samsonnews.5 hours = 6 }
				every_possible_country = { remove_ideas = EGY_blocked_suez_canal }
				remove_ideas = MUS_collapsing_society
				remove_ideas = MUS_severe_water_shortage
				remove_ideas = MUS_united_by_chaos
				clr_global_flag = EGY_nuke_civil_war
				set_capital = {
				  state = 446
				  remember_old_capital = no
				}
				MUS = {
					change_government_type_presidential_dictatorship = yes
					add_ideas = ZZZ_mixed_economy
				}
				MUS = { country_event = { id = jordan.3 days = 230 } }
				every_state = {
					limit = {
					is_core_of = MUS
					}
					remove_core_of = MEK
					remove_core_of = EGY
				}
			}
			
			else = {
				news_event = { id = Samsonnews.21 hours = 6 }
				every_possible_country = { remove_ideas = EGY_blocked_suez_canal }
				remove_ideas = MUS_collapsing_society
				remove_ideas = MUS_severe_water_shortage
				remove_ideas = MUS_united_by_chaos
				clr_global_flag = EGY_nuke_civil_war
				set_capital = {
				  state = 446
				  remember_old_capital = no
				}
				MUS = {
					change_government_type_presidential_dictatorship = yes
					add_ideas = ZZZ_mixed_economy
				}
				MUS = { country_event = { id = jordan.3 days = 230 } }
				every_state = {
					limit = {
					is_core_of = MUS
					}
					remove_core_of = MEK
					remove_core_of = EGY
				}
			}
		}
	}
	EGY_declare_victory = {
			available = {
				tag = EGY
				MUS = { exists = no }	
				MEK = { exists = no }	
				has_global_flag = EGY_nuke_civil_war
			}
			modifier = {
			}
			ai_will_do = {
				factor = 100
			}
			fire_only_once = yes
			days_remove = 25
			cost = 0
			
		remove_effect = {
			if = {
					limit = { has_global_flag = ISR_samson_used_flag }
				every_possible_country = { remove_ideas = EGY_blocked_suez_canal }
				news_event = { id = Samsonnews.4 hours = 6 }
				remove_ideas = MUS_united_by_chaos
				remove_ideas = EGY_severe_water_shortage
				clr_global_flag = EGY_nuke_civil_war
				every_state = {
					limit = {
					is_core_of = EGY
					}
					remove_core_of = MEK
					remove_core_of = MUS
				}
			}
			
			else = {
				every_possible_country = { remove_ideas = EGY_blocked_suez_canal }
				news_event = { id = Samsonnews.20 hours = 6 }
				remove_ideas = MUS_united_by_chaos
				remove_ideas = EGY_severe_water_shortage
				clr_global_flag = EGY_nuke_civil_war
				every_state = {
					limit = {
					is_core_of = EGY
					}
					remove_core_of = MEK
					remove_core_of = MUS
				}
			}
		}
	}
	MEK_declare_victory = {
			available = {
				tag = MEK
				MUS = { exists = no }	
				EGY = { exists = no }	
				has_global_flag = EGY_nuke_civil_war
			}
			modifier = {
			}
			ai_will_do = {
				factor = 100
			}
			fire_only_once = yes
			days_remove = 5
			cost = 0
			
		remove_effect = {
				news_event = { id = Samsonnews.23 hours = 6 }
				set_cosmetic_tag = MEK_WM
				set_capital = {
				  state = 447
				  remember_old_capital = no
				}
				clr_global_flag = EGY_nuke_civil_war
				every_state = {
					limit = {
					is_core_of = MEK
					}
					remove_core_of = EGY
					remove_core_of = MUS
			}
		}
	}
}

MUS_HRL_invasion = {

		MUS_gaddafi_intervention_debug = {
		priority = 1
		icon = GFX_SOV_decision_president_election_category
		days_mission_timeout = 200
		fire_only_once = no
		is_good = no
		cancel_if_not_visible = yes
		visible = {
	
		}
		available = {
			HRL = {
			OR = {
				casualties_k > 50
				surrender_progress > 0.25
				}
			}
		}
		activation = {
			MUS = { has_war_with = HRL }
		}
		complete_effect = {
		HRL = {
			add_war_support = -0.2
			add_stability = -0.2
			}
			white_peace = HRL
		}
		timeout_effect = {
		HRL = {
			add_war_support = -0.2
			add_stability = -0.2
			}
			white_peace = HRL
		}
	}
}