focus_tree = { 
id = sudan
continuous_focus_position = { x = 0 y = 900 } 
	country = 	{ 
	factor = 0 
		modifier = { 
			add = 20 
			tag = SUD 
		} 
	}
	
focus = {
id = SUD_brothers_of_the_valley
icon = GFX_goal_EGY_nile_proc
x = 13
y = 0
cost = 6
available_if_capitulated = no
ai_will_do = {
	factor = 100
}
completion_reward = {
	country_event = sudnew.20
	add_war_support = 0.05
	}
 }

#Economic

focus = {
id = SUD_funding_from_cairo
icon = GFX_Egyptian_Crown
x = -4
y = 2
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_white_flag_membership
}
available_if_capitulated = no
ai_will_do = {
	factor = 100
}
completion_reward = {
	add_stability = 0.03
		551 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}
	}
}

focus = {
id = SUD_port_sudan_investments
icon = GFX_goal_generic_construct_naval_dockyard
x = -5
y = 3
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_funding_from_cairo
}
available_if_capitulated = no
ai_will_do = { 
factor = 100
} 
completion_reward = {
	1007 = {
		add_extra_state_shared_building_slots = 1
		add_building_construction = {
			type = dockyard
			level = 1
			instant_build = yes
		}
	}
	1007 = {
		add_extra_state_shared_building_slots = 1
		add_building_construction = {
			type = naval_base
			level = 1
			instant_build = yes
			}
		}				
	}
}

focus = {
id = SUD_equatoria_development
icon = GFX_focus_generic_africa_factory
x = -4
y = 4
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_funding_from_cairo
}
available_if_capitulated = no
ai_will_do = { 
factor = 100
}
completion_reward = {
	549 = {
		add_extra_state_shared_building_slots = 2
		add_building_construction = {
			type = industrial_complex
			level = 1
			instant_build = yes
			}
		}		
	}
}

focus = {
id = SUD_all_for_gezira
icon = GFX_goal_Cotton
x = -6
y = 4
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_develop_the_railways
}
prerequisite = {
	focus = SUD_port_sudan_investments
}
available_if_capitulated = no
ai_will_do = { 
factor = 100
}
completion_reward = {
	551 = {
		add_extra_state_shared_building_slots = 2
		add_building_construction = {
			type = industrial_complex
			level = 1
			instant_build = yes
			}
		}	
	}
}
 
 
focus = {
id = SUD_cut_khartoumer_funding
icon = GFX_focus_empty_coffers
x = 5
y = 2
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_brothers_of_the_valley
}
available = {
	has_global_flag = black_monday
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_political_power = 30
	add_stability = -0.02
	}
}

focus = {
id = SUD_continue_the_hapag_partnership
icon = GFX_USA_ports_atlantic
x = 8
y = 2
relative_position_id = SUD_brothers_of_the_valley
cost = 6
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_ideas = SUD_hapag_deal
	}
}

focus = {
id = SUD_decentralisation_by_necessity
icon = GFX_goal_OTT_Pipeline
x = 5
y = 3
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_cut_khartoumer_funding
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
		1011 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}	
	}
}

focus = {
id = SUD_simplify_the_law
icon = GFX_goal_brain
x = 3
y = 3
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_cut_khartoumer_funding
}
available_if_capitulated = no
ai_will_do = { factor = 100 } 
completion_reward = {
	add_ideas = SUD_new_law_code
	}
}

focus = {
id = SUD_khartoum_investments
icon = GFX_goal_factory_complex
x = 7
y = 3
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_cut_khartoumer_funding
}
prerequisite = {
	focus = SUD_continue_the_hapag_partnership
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
		551 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = arms_factory
				level = 1
				instant_build = yes
			}
		}	
	}
}

focus = {
id = SUD_industrialdevelopments
icon = GFX_demandcompaniesonshore
x = 9
y = 3
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_cut_khartoumer_funding
}
prerequisite = {
	focus = SUD_continue_the_hapag_partnership
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
		add_tech_bonus = {
				name = SUD_industrialdevelopments
				bonus = 1
				uses = 1
				category = industry
		}
		add_tech_bonus = {
			name = industrial_bonus
			bonus = 2
			uses = 1
			category = construction_tech
		}
	}
}

focus = {
id = SUD_constructequatoriadarfurrailway
icon = GFX_goal_KTG_Jungle_Railroad
x = 7
y = 4
relative_position_id = SUD_brothers_of_the_valley
cost = 8
prerequisite = {
	focus = SUD_khartoum_investments
}
prerequisite = {
	focus = SUD_industrialdevelopments
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
		country_event = sudnew.32
		hidden_effect = {
			if = {
				limit = {
					SUD = {
						is_subject_of = EGY
						}
					}
			EGY = {
				country_event = sudnew.32
				}
			}
		}
		build_railway = {
			level = 1
			start_province = 10877
			target_province = 1960
		}
		remove_ideas = SUD_darfur_tensions
		add_stability = 0.03
	}
}

focus = {
id = SUD_redevelopportsudan
icon = GFX_goal_generic_sea_focused_navy
x = 4
y = 4
relative_position_id = SUD_brothers_of_the_valley
cost = 10
prerequisite = {
	focus = SUD_simplify_the_law focus = SUD_decentralisation_by_necessity
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
		1007 = {
			add_extra_state_shared_building_slots = 1
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
		}	
		1007 = {
			add_extra_state_shared_building_slots = 2
			add_building_construction = {
				type = dockyard
				level = 1
				instant_build = yes
			}
		}
		1007 = {
			add_building_construction = {
				type = naval_base
				level = 1
				instant_build = yes
			}
		}
	}
}
 
 # Political
focus = {
id = SUD_white_flag_membership
icon = GFX_preventionofintimidationact
x = -3
y = 1
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_brothers_of_the_valley
}
available_if_capitulated = no
ai_will_do = {
	factor = 100
}
completion_reward = {
	country_event = { id = sudnew.55 days = 0 } #The White Flag League and the Sudanese Compromise
	increase_ruling_party_popularity_by_5 = yes
	add_war_support = 0.05
}
}

focus = {
id = SUD_rein_in_the_sufi_orders
icon = GFX_goal_OTT_Islamic_Education
x = -1
y = 1
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_brothers_of_the_valley	
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_political_power = 50
	add_war_support = 0.05
	add_stability = -0.01
	}
}

focus = {
id = SUD_restate_triumvir_unity
icon = GFX_EGY_Radio_Free_Cairo
x = 1
y = 1
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_brothers_of_the_valley
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	}
}

focus = {
id = SUD_unity_propaganda
icon = GFX_EGY_Coordinate_with_Al_Ahd
x = 3
y = 1
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_brothers_of_the_valley	
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	increase_ruling_party_popularity_by_5 = yes
	add_stability = 0.03
	}
}

focus = {
id = SUD_free_khartoum
icon = GFX_focus_generic_bastion_of_democracy
x = -7
y = 1
relative_position_id = SUD_brothers_of_the_valley
cost = 5
prerequisite = {
	focus = SUD_brothers_of_the_valley	
}
available = {
	is_subject = no
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	add_war_support = 0.05
	}
}

focus = {
id = SUD_under_the_king_once_more
icon = GFX_goal_united_kingdom
x = -8
y = 2
relative_position_id = SUD_brothers_of_the_valley
cost = 5
prerequisite = {
	focus = SUD_free_khartoum	
}
available = {
	threat > 0.6
	is_subject = no
	has_war = no
	is_in_faction = no
	NOT = {
		has_government = national_populist
	}
}
available_if_capitulated = no
ai_will_do = { 
	factor = 100
	modifier = {
		factor = 0
		has_war = yes
	}
}
completion_reward = {
	if = {
		limit = {
			country_exists = ENT
			ENT = {
				is_faction_leader = yes
				}
			}
			ENT = {
			country_event = sharedafrika.2
			}
		}
	}
}
focus = {
id = SUD_ally_with_the_reich
icon = GFX_goal_germany
x = -6
y = 2
relative_position_id = SUD_brothers_of_the_valley
cost = 5
prerequisite = {
	focus = SUD_free_khartoum	
}
available = {
	threat > 0.6
	is_subject = no
	has_war = no
	is_in_faction = no
	NOT = {
		has_government = national_populist
	}
}
available_if_capitulated = no
ai_will_do = { 
	factor = 100
	modifier = {
		factor = 0
		has_war = yes
	}
}
completion_reward = {
	if = {
		limit = {
			country_exists = GER
			GER = {
				is_faction_leader = yes
				}
			}
			GER = {
				country_event = sharedafrika.2
			}
		}
	}
}

focus = {
id = SUD_promote_detribalised_acceptance
icon = GFX_anofficiallanguage
x = -2
y = 2
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_white_flag_membership focus = SUD_rein_in_the_sufi_orders
}
available = {
	has_idea = SUD_detribalised_issue
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	remove_ideas = SUD_detribalised_issue
	}
}

focus = {
id = SUD_legalise_trade_unionism
icon = GFX_calmtribaltensions
x = -3
y = 3
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_promote_detribalised_acceptance
}
available = {
	has_country_flag = dealwithstrikers
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_ideas = SUD_union_deal
	}
}

focus = {
id = SUD_religious_tolerance
icon = GFX_regimentaldelineation
x = 0
y = 2
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_restate_triumvir_unity focus = SUD_rein_in_the_sufi_orders	
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	}
}

focus = {
id = SUD_anti_slavery_rhetoric
icon = GFX_makethechiefssubmit
x = 2
y = 2
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
focus = SUD_restate_triumvir_unity focus = SUD_unity_propaganda	
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	add_political_power = -10
	}
 }

focus = {
id = SUD_massawa_claims
icon = GFX_goal_ETH_Lion
x = 0
y = 3
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_promote_detribalised_acceptance
}
prerequisite = {
	focus = SUD_anti_slavery_rhetoric
}
prerequisite = {
	focus = SUD_religious_tolerance
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	550 = {
		add_claim_by = SUD
		}
	961 = {
		add_claim_by = SUD
		}
	268 = {
		add_claim_by = SUD
		}
	1297 = {
		add_claim_by = SUD
		}
	}
}

focus = {
id = SUD_seek_the_source
icon = GFX_settlenationaldisputes
x = -1
y = 4
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_massawa_claims
}
available_if_capitulated = no
	ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = UGA ratio < 1 }
			}
			modifier = {
				factor = 0
				UGA = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				UGA = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
will_lead_to_war_with = UGA
bypass = {
	548 = { is_owned_by = ROOT }
}
available = {
	owns_state = 549
	is_in_faction = no
	is_subject = no
	can_declare_war_on = 548.owner
	controls_all_owned_states = yes
}
completion_reward = {
	declare_war_on = { type = annex_everything target = 548.owner }
	}
}

focus = {
id = SUD_avenge_gura
icon = GFX_SOM_goal_put_down_the_lion
x = 1
y = 4
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_massawa_claims
}

available_if_capitulated = no
	ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = ETH ratio < 1 }
			}
			modifier = {
				factor = 0
				ETH = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				ETH = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
will_lead_to_war_with = ETH
bypass = {
	550 = { is_owned_by = ROOT }
}
available = {
	is_in_faction = no
	is_subject = no
	controls_all_owned_states = yes
	can_declare_war_on = 550.owner
	}
completion_reward = {
	declare_war_on = { type = annex_everything target = 550.owner }
	}
}

focus = {
id = SUD_collapse_of_the_triumvirate
icon = GFX_restoreruleinzanzibar
x = 0
y = 5
relative_position_id = SUD_brothers_of_the_valley
cost = 1
cancelable = no
available = {
	EGY = {
		is_faction_leader = yes
	}
}
select_effect = {
	country_event = {
		id = sudnew.21
		days = 2
	}
}
available_if_capitulated = no
ai_will_do = {
factor = 500
}
completion_reward = {
	add_stability = 0.1
	add_political_power = 50
	}
}

# Mahdist
focus = {
id = SUD_the_second_mahdist_state
icon = GFX_antishiftaexpeditions
x = -6
y = 6
relative_position_id = SUD_brothers_of_the_valley
cost = 2
prerequisite = {
	focus = SUD_collapse_of_the_triumvirate
}
available_if_capitulated = no
ai_will_do = { 
	factor = 500
}
mutually_exclusive = { focus = SUD_rise_of_the_sheikhs }
mutually_exclusive = { focus = SUD_al_latif_holds_on }

available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	custom_effect_tooltip = unlock_focuses
	}
}

focus = {
id = SUD_legitimising_symbols
icon = GFX_thestatusofislam
x = -7
y = 7
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
focus = SUD_the_second_mahdist_state
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	increase_ruling_party_popularity_by_15 = yes
	}
} 

focus = {
id = SUD_safeguard_the_ummah
icon = GFX_prioritisethekitawala
x = -7
y = 8
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
focus = SUD_legitimising_symbols
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	}
}

focus = {
id = SUD_seize_foreign_investments
icon = GFX_Focus_Peasant_Rebellion
x = -5
y = 7
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
focus = SUD_the_second_mahdist_state
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_political_power = 100
		EGY = {
			country_event = sudnew.41
		}
		GER = {
			country_event = sudnew.41
		}
		AUS = {
			country_event = sudnew.41
		}
		CAN = {
			country_event = sudnew.41
		}
		NFA = {
			country_event = sudnew.41
		}
		ETH = {
			country_event = sudnew.41
		}
		TUR = {
			country_event = sudnew.41
		}
		UGA = {
			country_event = sudnew.41
		}
		SOM = {
			country_event = sudnew.41
		}
		CEA = {
			country_event = sudnew.41
		}
		MAF = {
			country_event = sudnew.41
		}
		DJI = {
			country_event = sudnew.41
		}
		GRE = {
			country_event = sudnew.41
		}
		POR = {
			country_event = sudnew.41
		}
	}
}

focus = {
id = SUD_settlement_in_equatoria
icon = GFX_goal_generic_crisis
x = -3
y = 7
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
focus = SUD_the_second_mahdist_state focus = SUD_al_latif_holds_on focus = SUD_rise_of_the_sheikhs
}
available = {
	owns_state = 549
}
bypass = {
	NOT = {
		owns_state = 549
	}
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	decrease_ruling_party_popularity_by_5 = yes
	}
} 
 
focus = {
id = SUD_new_headmen
icon = GFX_goal_generic_council
x = -3
y = 8
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
focus = SUD_settlement_in_equatoria
}
available = {
	owns_state = 549
}
bypass = {
	NOT = {
		owns_state = 549
	}
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
		remove_state_claim = 549
		add_state_core = 549
	}
} 

focus = {
id = SUD_promote_darfuri_investment
icon = GFX_goal_generic_improve_industry
x = 3
y = 7
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
focus = SUD_the_second_mahdist_state focus = SUD_al_latif_holds_on focus = SUD_rise_of_the_sheikhs
}
available = {
	owns_state = 1010
}
bypass = {
	NOT = {
		owns_state = 1010
	}
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	1010 = {
		add_extra_state_shared_building_slots = 2
		add_building_construction = {
			type = industrial_complex
			level = 1
			instant_build = yes
			}
		}	
	}
}

focus = {
id = SUD_integrate_darfur
icon = GFX_goal_KTG_Elections
x = 3
y = 8
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
focus = SUD_promote_darfuri_investment
}
available = {
	owns_state = 1010
}
bypass = {
	NOT = {
		owns_state = 1010
	}
}

available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	1010 = {
		add_core_of = ROOT
		}
	}
} 

focus = {
id = SUD_suppress_the_copts
icon = GFX_goal_EGY_coptic
x = -5
y = 8
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
focus = SUD_seize_foreign_investments
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	increase_ruling_party_popularity_by_10 = yes
	add_war_support = 0.05
	}
} 

focus = {
id = SUD_the_abode_of_peace
icon = GFX_solvethezanzibarproblem
x = -6
y = 9
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_suppress_the_copts
}
prerequisite = {
	focus = SUD_safeguard_the_ummah
}
available_if_capitulated = no
ai_will_do = { 
factor = 100
}
completion_reward = {
	add_stability = 0.1
	}
}
 
#Pro-Egypt path
focus = {
id = SUD_al_latif_holds_on
icon = GFX_goal_OTT_Integrate_Egypt
x = 0
y = 6
relative_position_id = SUD_brothers_of_the_valley
cost = 1
prerequisite = {
	focus = SUD_collapse_of_the_triumvirate
}
mutually_exclusive = { focus = SUD_rise_of_the_sheikhs }
mutually_exclusive = { focus = SUD_the_second_mahdist_state }
available_if_capitulated = no
ai_will_do = { 
	factor = 500
}
completion_reward = {
	custom_effect_tooltip = unlock_focuses
	}
}

focus = {
id = SUD_secular_nationalism
icon = GFX_aconfederation
x = -1
y = 7
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_al_latif_holds_on
}
available = {
	has_country_leader = { name = "Ali Abd al-Latif" ruling_only = yes }
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	}
}

focus = {
id = SUD_southern_autonomies
icon = GFX_truthandreconciliationcommittee
x = -1
y = 8
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_secular_nationalism
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_war_support = 0.15
	increase_ruling_party_popularity_by_5 = yes
	}
}

focus = {
id = SUD_the_cult_of_the_urban
icon = GFX_focus_generic_electricity
x = 1
y = 7
relative_position_id = SUD_brothers_of_the_valley
cost = 6
available = {
	has_country_leader = { name = "Ali Abd al-Latif" ruling_only = yes }
}
prerequisite = {
	focus = SUD_al_latif_holds_on
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_ideas = SUD_urban_renewal
	add_political_power = 20
	}
}

focus = {
id = SUD_tribal_federalism
icon = GFX_Generic_Desert_Warfare
x = 1
y = 8
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_the_cult_of_the_urban
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	}
}

focus = {
id = SUD_integrate_with_cairo
icon = GFX_goal_EGY_Pyramids
x = 0
y = 9
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_tribal_federalism
}
prerequisite = {
	focus = SUD_southern_autonomies
}
prerequisite = {
	focus = SUD_new_headmen
}
prerequisite = {
	focus = SUD_integrate_darfur
}
available = {
	is_subject_of = EGY
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	country_event = sudnew.43
		if = {
			limit = { is_ai = no }
			EGY = { change_tag_from = SUD }
		}
		EGY = {
			every_state = {
				limit = {
					is_core_of = SUD
				}
				add_core_of = PREV
			}
			annex_country = {
				target = SUD
				transfer_troops = yes
			}
			country_event = sudnew.43
		}
			EGY = {
				every_owned_state = {
					limit = {
						is_claimed_by = SUD
					}
					remove_claim_by = SUD
				}
				every_owned_state = {
					limit = {
						is_core_of = SUD
					}
					remove_core_of = SUD
				}
			}
			EGY = {
				every_owned_state = {
					limit = {
						is_claimed_by = DFR
					}
					remove_claim_by = DFR
				}
				every_owned_state = {
					limit = {
						is_core_of = DFR
					}
					remove_core_of = DFR
				}
			}
	}
}
 
#Sheikhly rule
focus = {
id = SUD_rise_of_the_sheikhs
icon = GFX_goal_EGY_economic_independence
x = 6
y = 6
relative_position_id = SUD_brothers_of_the_valley
cost = 2
prerequisite = {
	focus = SUD_collapse_of_the_triumvirate
}
mutually_exclusive = { focus = SUD_the_second_mahdist_state }
mutually_exclusive = { focus = SUD_al_latif_holds_on }
available_if_capitulated = no
ai_will_do = { 
factor = 500
}
completion_reward = {
	custom_effect_tooltip = unlock_focuses
	}
 }

focus = {
id = SUD_sudan_for_all_sudanese
icon = GFX_seekallies
x = 7
y = 7
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_rise_of_the_sheikhs
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	if = {
		limit = {
			NOT = {
				has_government = national_populist
			}
		}
		country_event = sudnew.3
		}
	}
}

focus = {
id = SUD_undermine_the_tribalised
icon = GFX_manipulatetheintellectuals
x = 7
y = 8
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_sudan_for_all_sudanese
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_war_support = 0.15
	add_political_power = 30
	}
}

focus = {
id = SUD_entrench_arab_supremacy
icon = GFX_goal_Unite_Arabia
x = 5
y = 7
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_rise_of_the_sheikhs
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_stability = 0.1
	increase_ruling_party_popularity_by_10 = yes
	}
}

focus = {
id = SUD_restore_sultanate_privileges
icon = GFX_thekabakasourally
x = 5
y = 8
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_entrench_arab_supremacy
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	add_political_power = 50
	add_war_support = 0.05
	}
}

focus = {
id = SUD_a_return_to_tradition
icon = GFX_anewagreement
x = 6
y = 9
relative_position_id = SUD_brothers_of_the_valley
cost = 6
prerequisite = {
	focus = SUD_restore_sultanate_privileges
}
prerequisite = {
	focus = SUD_undermine_the_tribalised
}
available_if_capitulated = no
ai_will_do = { factor = 100 }
completion_reward = {
	increase_ruling_party_popularity_by_10 = yes
	add_stability = 0.1
	}
}

focus = {
id = SUD_the_khartoumer_army
icon = GFX_Egyptian_Officers
prerequisite = { focus = SUD_brothers_of_the_valley }
x = 3
y = 1
cost = 6
ai_will_do = { factor = 100 }
completion_reward = {
	army_experience = 10
	add_tech_bonus = {
		name = SUD_the_khartoumer_army
		bonus = 1
		uses = 1
		category = land_doctrine
		}
	}
}

	focus = {
		id = SUD_arms_investments
		icon = GFX_goal_break_rifle
		prerequisite = { focus = SUD_the_khartoumer_army }
		x = 0
		y = 2
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			add_equipment_to_stockpile = {
				type = infantry_equipment_0
				amount = 300
				producer = EGY
			}
			add_tech_bonus = {
				name = SUD_arms_investments
				bonus = 0.5
				uses = 1
				category = infantry_weapons
			}
		}
	}

	focus = {
		id = SUD_learn_from_omdurman
		icon = GFX_developartillery
		prerequisite = { focus = SUD_arms_investments }
		x = 0
		y = 3
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			add_tech_bonus = {
				name = SUD_learn_from_omdurman
				bonus = 0.5
				uses = 1
				category = artillery
			}
		}
	}
	
	focus = {
		id = SUD_expand_the_hajana
		icon = GFX_goal_OTT_camels
		prerequisite = { focus = SUD_arms_investments }
		x = -2
		y = 3
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
		hidden_effect = {
			set_technology = {
				camel_corps_tech = 1
			}
		}
		custom_effect_tooltip = OTT_camel_corps_effect
		hidden_effect = {
			set_technology = { desert_warfare = 1 }
			set_technology = { camelry = 1 }
		}
		custom_effect_tooltip = desert_warfare_effect		
		}
	}

	focus = {
		id = SUD_military_logistics
		icon = GFX_goal_generic_support_equipment
		prerequisite = { focus = SUD_learn_from_omdurman }
		x = 0
		y = 4
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			add_tech_bonus = {
				name = SUD_military_logistics
				bonus = 2
				uses = 1
				category = support_tech
			}
		}
	}

	focus = {
		id = SUD_foreign_officers
		icon = GFX_focus_por_luso_tropicalism
		prerequisite = { focus = SUD_the_khartoumer_army }
		x = 2
		y = 2
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			army_experience = 15
			swap_ideas = {
				remove_idea = SUD_khartoumer_spirit
				add_idea = SUD_khartoumer_spirit2
			}	
		}
	}

	focus = {
		id = SUD_special_forces
		icon = GFX_specialistunits
		prerequisite = { focus = SUD_foreign_officers }
		x = 2
		y = 3
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			add_tech_bonus = {
				name = SUD_special_forces
				bonus = 1
				uses = 1
				technology = paratroopers
				technology = paratroopers2
				technology = marines
				technology = marines2
				technology = tech_mountaineers
				technology = tech_mountaineers2
			}
		}
	}

	focus = {
		id = SUD_doctrinal_developments
		icon = GFX_goal_military_academy
		prerequisite = { focus = SUD_special_forces }
		x = 3
		y = 4
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			army_experience = 5
			add_tech_bonus = {
				name = SUD_doctrinal_developments
				bonus = 1
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = SUD_armoured_camels
		icon = GFX_crushtherebels
		prerequisite = { focus = SUD_the_khartoumer_army }
		prerequisite = { focus = SUD_funding_from_cairo }
		x = 4
		y = 3
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			add_tech_bonus = {
				name = SUD_armoured_camels
				bonus = 1
				uses = 1
				category = motorized_equipment
			}
		}
	}
	
	focus = {
		id = SUD_develop_the_railways
		icon = GFX_goal_generic_seize_railway
		prerequisite = { focus = SUD_funding_from_cairo }
		x = 6
		y = 3
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			551 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			549 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = SUD_military_industry
		icon = GFX_goal_munitions_factories
		prerequisite = { focus = SUD_armoured_camels }
		prerequisite = { focus = SUD_develop_the_railways }
		x = 5
		y = 4
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			551 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}					
		}
	}

	focus = {
		id = SUD_a_new_army
		icon = GFX_goal_flames_of_rebellion
		prerequisite = { focus = SUD_military_industry }
		prerequisite = { focus = SUD_doctrinal_developments }
		prerequisite = { focus = SUD_military_logistics }
		x = 1
		y = 5
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			swap_ideas = {
				remove_idea = SUD_khartoumer_spirit2
				add_idea = SUD_khartoumer_spirit3
			}	
			add_tech_bonus = {
				name = SUD_a_new_army
				bonus = 1
				uses = 1
				category = land_doctrine
			}
		}
	}

	focus = {
		id = SUD_military_innovations
		icon = GFX_focus_research
		prerequisite = { focus = SUD_doctrinal_developments }
		prerequisite = { focus = SUD_military_industry }
		prerequisite = { focus = SUD_all_for_gezira }
		x = 4
		y = 5
		cost = 6
		ai_will_do = { 
			factor = 100
		}
		completion_reward = {
			add_research_slot_until_five = yes
		}
	}
 
}