focus_tree = {
	id = egypt_vic_ft
	country = {
		factor = 0
		modifier = {
			add = 10
			tag = EGY
		}
	}
	default = no
	focus = {
		id = EGY_vic_begin_army_exspansion
		icon = GFX_Focus_conscription
		cost = 140
		x = 2
		y = 0
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available={
			NOT={has_country_flag = EGY_backed_down_mil}
		}
		cancel = {
			has_country_flag = EGY_backed_down_mil
		}
		mutually_exclusive = {
			focus = EGY_vic_army_innovations
		}
		select_effect = {
			if = {
				limit = {
					OVERLORD = {
						tag = OTO
					}
					NOT = {
						has_completed_focus = EGY_vic_request_firman_stab_succ
					}
				}
				hidden_effect = {
					OTO = {
						country_event = {
							id = afr_EGY_vic.1
							days = 70
						}
					}
				}
			}
		}
		completion_reward = {
			if = {
				limit = {
					has_idea = volunteer_only
				}
				swap_ideas={
					remove_idea = volunteer_only
					add_idea = limited_conscription
				}
			}
			custom_effect_tooltip = EGY_Otto_may_disaprove

		}
	}
	focus = {
		id = EGY_vic_army_innovations
		icon = GFX_goal_generic_small_arms
		cost = 140
		x = 4
		y = 0
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		mutually_exclusive = {
			focus = EGY_vic_begin_army_exspansion
		}
		completion_reward = {
			army_experience = 15
		}
	}
	focus = {
		id = EGY_vic_new_doctrines
		icon = GFX_goal_generic_air_doctrine
		cost = 140
		prerequisite = {
			focus = EGY_vic_army_innovations
			focus = EGY_vic_begin_army_exspansion
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		x = 3
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_doctrine_cost_reduction = { name = EGY_new_victorian_doctrines cost_reduction = 0.25 uses = 2 category = land_doctrine }
		}
	}
	focus = {
		id = EGY_vic_increase_army_budget
		icon = GFX_goal_generic_allies_build_infantry
		cost = 140
		prerequisite = {
			focus = EGY_vic_begin_army_exspansion
		}
		prerequisite = {
			focus = EGY_vic_new_doctrines
		}
		x = 2
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			if = {
				limit = {
					has_idea = army_spending_level_2
				}
				swap_ideas={
					remove_idea = army_spending_level_2
					add_idea = army_spending_level_3
				}
			}
		}
	}
	focus = {
		id = EGY_vic_military_schools
		icon = GFX_goal_generic_cavalry
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_army_innovations
		}
		prerequisite = {
			focus = EGY_vic_new_doctrines
		}
		x = 4
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_tech_bonus = { bonus = 0.15 uses = 2 category = infantry_weapons }
		}
	}
	focus = {
		id = EGY_vic_military_production
		icon = GFX_goal_generic_construct_mil_factory
		cost = 140
		prerequisite = {
			focus = EGY_vic_increase_army_budget
			focus = EGY_vic_military_schools
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		x = 3
		y = 3
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			446 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_advances_in_the_army
		icon = GFX_Focus_Army_Reformed
		cost = 140
		prerequisite = {
			focus = EGY_vic_military_production
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		x = 3
		y = 4
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			swap_ideas = {
				add_idea = doctrine_napoleonic_army_1
				remove_idea = law_pre_industrial_army
			}
		}
	}
	focus = {
		id = EGY_vic_expanded_military_production
		icon = GFX_goal_generic_construct_mil_factory
		cost = 140
		prerequisite = {
			focus = EGY_vic_advances_in_the_army
		}
		mutually_exclusive = {
			focus = EGY_vic_expanded_military_production_overhaul
		}

		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}

		x = 2
		y = 5
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
			add_money_with_tooltip_effect = yes 
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_expanded_military_production_overhaul
		icon = GFX_goal_generic_construct_mil_factory
		cost = 175
		prerequisite = {
			focus = EGY_vic_advances_in_the_army
		}
		mutually_exclusive = {
			focus = EGY_vic_expanded_military_production
		}
		available = {
			set_temp_variable = { amount_of_money_to_check = 0.9 }
			has_specific_amount_of_money_with_inflation_included = yes
		}
		x = 4
		y = 5
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.9 }
			add_money_with_tooltip_effect = yes 
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_new_army_expansion
		icon = GFX_goal_generic_allies_build_infantry
		cost = 70
		prerequisite = {
			focus = EGY_vic_advances_in_the_army
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		available={
			OR={
				has_completed_focus = EGY_vic_reforms_of_ismail
				has_completed_focus = EGY_vic_reforms_of_ahmad
			}
		}
		x = 3
		y = 6
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_manpower = 25000
		}
	}
	focus = {
		id = EGY_vic_expand_military_training
		icon = GFX_focus_generic_little_entente
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_new_army_expansion
		}
		x = 4
		y = 7
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			army_experience = 10
		}
	}
	focus = {
		id = EGY_vic_plan_military_campaigns
		icon = GFX_Focus_Army_Napoleonic
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_new_army_expansion
		}
		x = 2
		y = 7
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			752 = {
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_abyssian_campaign
		icon = GFX_Focus_imperialism
		cost = 70
		prerequisite = {
			focus = EGY_vic_plan_military_campaigns
		}
		x = 2
		y = 8
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_war_support = 0.1
		}
	}
	focus = {
		id = EGY_vic_rally_the_men_against_ETH
		icon = GFX_focus_secret_rearmament
		cost = 70
		available = {
			custom_trigger_tooltip={
				tooltip = ETH_EGY_no_Ties_trigger
				NOT = { has_country_flag = ETH_EGY_Ties }
			}
		}
		prerequisite = {
			focus = EGY_vic_abyssian_campaign
		}
		mutually_exclusive = {
			focus = EGY_vic_rally_the_men_with_ETH
		}
		x = 1
		y = 9
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_opinion_modifier = {
				target = ETH
				modifier = small_decrease
			}
			ETH = {
				add_opinion_modifier = {
					target = ROOT
					modifier = small_decrease
				}
			}
			set_variable = { rival_country = ETH.id }
			ETH = { set_variable = { rival_country = EGY.id } }
			custom_effect_tooltip=EGY_rivals_ETH
			hidden_effect = {
				clr_country_flag = ETH_EGY_Ties
				ETH = { clr_country_flag = ETH_EGY_Ties }
				set_country_flag = ETH_EGY_Rivalry
				ETH = { set_country_flag = ETH_EGY_Rivalry }
			}
		}
	}
	focus = {
		id = EGY_vic_prepare_invasion_forces
		icon = GFX_Focus_Map_Gerrymandering
		cost = 70
		available = {
			custom_trigger_tooltip={
				tooltip = ETH_EGY_Rivalry_trigger
				has_country_flag = ETH_EGY_Rivalry
			}
		}
		prerequisite = {
			focus = EGY_vic_rally_the_men_against_ETH
		}
		x = 1
		y = 10
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_state_claim = 1295
		}
	}
	focus = {
		id = EGY_vic_declare_war_on_ETH
		icon = GFX_goal_generic_political_pressure
		cost = 70
		available = {
			custom_trigger_tooltip={
				tooltip = ETH_EGY_Rivalry_trigger
				has_country_flag = ETH_EGY_Rivalry
			}
		}
		prerequisite = {
			focus = EGY_vic_prepare_invasion_forces
		}
		will_lead_to_war_with = ETH
		x = 1
		y = 11
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			declare_war_on = {
				target = ETH
				type = take_claimed_state
			}
			activate_mission = EGY_ETH_war_for_gedaref
			hidden_effect = {
				set_country_flag = EGY_ETH_war
			}
		}
	}
	focus = {
		id = EGY_vic_rally_the_men_with_ETH
		icon = GFX_Focus_Diplomatic_Ally_ETH
		cost = 70
		available = {
			custom_trigger_tooltip={
				tooltip = ETH_EGY_no_Rivalry_trigger
				NOT = { has_country_flag = ETH_EGY_Rivalry }
			}
		}
		prerequisite = {
			focus = EGY_vic_abyssian_campaign
		}
		mutually_exclusive = {
			focus = EGY_vic_rally_the_men_against_ETH
		}
		x = 3
		y = 9
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_opinion_modifier = {
				target = ETH
				modifier = small_increase
			}
			ETH = {
				add_opinion_modifier = {
					target = ROOT
					modifier = small_increase
				}
			}
		}
	}
	focus = {
		id = EGY_vic_send_envoy_to_ETH
		icon = GFX_goal_generic_political_pressure
		cost = 70
		available = {
			custom_trigger_tooltip={
				tooltip = ETH_EGY_no_Rivalry_trigger
				NOT = { has_country_flag = ETH_EGY_Rivalry }
			}
		}
		prerequisite = {
			focus = EGY_vic_rally_the_men_with_ETH
		}
		x = 3
		y = 10
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			ETH = {
				country_event = {id = afr_EGY_vic.4}
			}
		}
	}
	focus = {
		id = EGY_vic_ETH_investments
		icon = GFX_Foreign_investments_focus
		cost = 140
		available = {
			custom_trigger_tooltip={
				tooltip = ETH_EGY_alliance_trigger
				has_country_flag = ETH_EGY_alliance
			}
		}
		prerequisite = {
			focus = EGY_vic_send_envoy_to_ETH
		}
		x = 3
		y = 11
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available={
			set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
		}
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			ETH = {
				add_opinion_modifier = {
					target = ROOT
					modifier = medium_increase
				}
				capital_scope = {
					add_extra_state_shared_building_slots = 1
						add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}
	focus = {
		id = EGY_vic_prepare_to_annex_south_sudan
		icon = GFX_Focus_Colonial_Troops
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_plan_military_campaigns
		}
		x = 0
		y = 8
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_state_claim = 834
			add_state_claim = 833
			add_state_claim = 845
		}
	}
	focus = {
		id = EGY_vic_remodel_the_customs_system
		icon = GFX_goal_generic_political_pressure
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_reforms_of_ismail
		}
		x = 6
		y = 6
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			swap_ideas={
				add_idea = export_focus
				remove_idea = limited_exports
			}
		}
	}
	focus = {
		id = EGY_vic_establish_the_egyptian_post_office
		icon = GFX_goal_generic_political_pressure
		cost = 70
		prerequisite = {
			focus = EGY_vic_remodel_the_customs_system
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		x = 6
		y = 7
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}

		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}

		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			add_ideas = {
				egy_vic_postal_service
			}
		}
	}
	focus = {
		id = EGY_vic_admin_reforms
		icon = GFX_Focus_Government_Reform
		cost = 70
		prerequisite = {
			focus = EGY_vic_reforms_of_ismail
		}
		x = 8
		y = 6
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		completion_reward = {
			add_political_power = 75
		}
	}
	focus = {
		id = EGY_vic_continue_admin_reforms
		icon = GFX_Focus_Government_Reform
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_admin_reforms
		}
		x = 8
		y = 7
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_political_power = 75
		}
	}
	focus = {
		id = EGY_vic_finish_admin_reforms
		icon = GFX_Focus_Government
		cost = 15
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_continue_admin_reforms
		}
		x = 8
		y = 8
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_stability = 0.125
			increase_ps_by_one = yes
		}
	}
	focus = {
		id = EGY_vic_import_european_tech
		icon = GFX_Focus_Trade_International
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_reforms_of_ismail
		}
		x = 10
		y = 6
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}

		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}

		completion_reward = {
			 set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes

			add_tech_bonus = {
				bonus = 0.25
				uses = 10
				category = mechanical_engineering_tech
				category = process_engineering_tech
				category = biochemistry_tech
				category = electronics_devices_tech
			}
		}
	}
	focus = {
		id = EGY_vic_expand_our_schooling_system
		icon = GFX_Focus_school_investment
		cost = 140
		prerequisite = {
			focus = EGY_vic_reforms_of_ahmad
		}
		x = 12
		y = 6
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}

		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			if={
				limit={has_idea = privileged_education}
				swap_ideas={
					add_idea=open_schools
					remove_idea = privileged_education
				}
			}
			else_if={
				limit={has_idea = open_schools}
				swap_ideas={
					add_idea=compulsory_education
					remove_idea = open_schools
				}
			}
			else={
				swap_ideas={
					add_idea=privileged_education
					remove_idea = oral_tradition
				}
			}
		}
	}
	focus = {
		id = EGY_vic_fund_a_national_research_group
		icon = GFX_focus_research
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_import_european_tech
			focus = EGY_vic_expand_our_schooling_system
		}
		x = 11
		y = 7
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			#add_research_slot = 1
		}
	}
	focus = {
		id = EGY_vic_administration_restructuring
		icon = GFX_Focus_Government_Reform
		cost = 140
		prerequisite = {
			focus = EGY_vic_reforms_of_ahmad
		}
		x = 14
		y = 6
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_stability = 0.05
		}
	}
	focus = {
		id = EGY_vic_reform_the_working_day
		icon = GFX_Focus_industrial_revolution
		cost = 140
		prerequisite = {
			focus = EGY_vic_reforms_of_ahmad
		}
		x = 16
		y = 6
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			#swap_ideas={
			#	add_idea=fourteen_hour_work_day
			#	remove_idea=unlimited_work_day
			#}
		}
	}
	focus = {
		id = EGY_vic_a_government_for_egyptians
		icon = GFX_Focus_Government
		cost = 70
		prerequisite = {
			focus = EGY_vic_reform_the_working_day
		}
		prerequisite = {
			focus = EGY_vic_administration_restructuring
		}
		prerequisite = {
			focus = EGY_vic_expand_our_schooling_system
		}
		x = 14
		y = 7
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_ideas={EGY_government_for_egyptians}
		}
	}
	focus = {
		id = EGY_vic_the_said_reforms
		icon = GFX_goal_generic_political_pressure
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		x = 14
		y = 0
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_political_power = 75
		}
	}
	focus = {
		id = EGY_vic_the_question_of_the_sudanese_slave_raids
		icon = GFX_focus_PIE_Casus_Belli
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_the_said_reforms
		}
		x = 15
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_stability = 0.025
		}
	}
	focus = {
		id = EGY_vic_the_welfare_of_the_fellahin
		icon = GFX_Focus_Economy_Increase_Wages
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_the_said_reforms
		}
		x = 13
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_stability = 0.025
		}
	}
	focus = {
		id = EGY_vic_enforce_the_ban
		icon = GFX_Focus_Slavery_freedom
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_the_question_of_the_sudanese_slave_raids
		}
		x = 15
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
			has_stability > 0.40
		}
		completion_reward = {
			if = {
				limit = {
					ETH = {
						has_completed_focus = ETH_our_neighbors
					}
				}
				ALZ = {
					add_opinion_modifier = {
						target = EGY
						modifier = large_increase
					}
				}
			}
			remove_ideas = {
				egy_sudan_slave_raids
			}
			swap_ideas={
				add_idea = segregation
				remove_idea = slavery_all_but_name
			}
		}
	}
	focus = {
		id = EGY_vic_promulgate_the_saidiyah
		icon = GFX_Focus_Freedom_Press_newspapers
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_the_welfare_of_the_fellahin
		}
		x = 13
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_stability = 0.10
		}
	}
	focus = {
		id = EGY_vic_expand_cairo
		icon = GFX_Focus_industrial_revolution
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_promulgate_the_saidiyah
		}
		prerequisite = {
			focus = EGY_vic_enforce_the_ban
		}
		x = 14
		y = 3
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			446 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_education_investments
		icon = GFX_Focus_school_investment
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_expand_cairo
		}
		x = 14
		y = 4
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			if={
				limit = {
					has_idea = privileged_education
				}
				swap_ideas = {
					add_idea = open_schools
					remove_idea = privileged_education
				}
			}
		}
	}
	focus = {
		id = EGY_vic_reforms_of_ismail
		icon = GFX_Focus_Government_Reform_Administration
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_education_investments
		}
		mutually_exclusive={
			focus = EGY_vic_reforms_of_ahmad
			focus = EGY_vic_under_the_cresant
		}
		x = 8
		y = 5
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
			has_country_leader = {
				name = "Isma'il Pasha"
				ruling_only = yes
			}
		}
		completion_reward = {
			add_stability = 0.05
			if={
				limit ={
					has_idea = pre_industrial_era
				}
				swap_ideas ={
					add_idea = victorian_era
					remove_idea =pre_industrial_era
				}
			}
			set_country_flag = afr_rrp_non_colonial_industrialization
			custom_effect_tooltip = afr_rrp_inspiration_to_africa
		}
	}

	focus = {
		id = EGY_vic_under_the_cresant
		icon = GFX_Focus_Government_Reform_Administration
		cost = 70
		prerequisite = {
			focus = EGY_vic_education_investments
		}
		mutually_exclusive={
			focus = EGY_vic_reforms_of_ahmad
			focus = EGY_vic_reforms_of_ismail
		}
		x = 20
		y = 5
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
			OR={
				has_country_leader = {
					name = "Abdülkerim Nadir Pasha"
					ruling_only = yes
				}
				has_country_leader = {
					name = "Antoni Aleksander Iliński"
					ruling_only = yes
				}
			}
		}
		completion_reward = {
			add_stability = 0.05
			if={
				limit ={
					has_idea = pre_industrial_era
				}
				swap_ideas ={
					add_idea = victorian_era
					remove_idea =pre_industrial_era
				}
			}
		}
	}
	focus = {
		id = EGY_vic_glorify_muhammed_ali
		icon = GFX_focus_EGY_coat_of_arms
		cost = 140
		x = 7
		y = 0
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_stability = 0.025
			FROM = {
				add_autonomy_ratio = {
					value = 0.05
				}
			}
		}
	}
	focus = {
		id = EGY_vic_accept_OTO
		icon = GFX_goal_egy_submit_to_oto
		cost = 140
		prerequisite = {
			focus = EGY_vic_glorify_muhammed_ali
		}
		mutually_exclusive = {
			focus = EGY_vic_request_more_automony
		}
		x = 8
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			FROM = {
				add_autonomy_ratio = {
					value = -0.25
					localization = EGY_alining_with_OTO
				}
			}
		}
	}
	focus = {
		id = EGY_vic_request_more_automony
		icon = GFX_goal_generic_political_pressure
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_glorify_muhammed_ali
		}
		mutually_exclusive = {
			focus = EGY_vic_accept_OTO
		}
		x = 6
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 5
		}
		completion_reward = {
			FROM = {
				add_autonomy_ratio = {
					value = 0.1
				}
			}
		}
	}
	focus = {
		id = EGY_vic_a_loyal_state
		icon = GFX_goal_egy_submit_to_oto
		cost = 70
		prerequisite = {
			focus = EGY_vic_accept_OTO
		}
		prerequisite = {
			focus = EGY_vic_request_firman_stab_succ
		}
		available = {
			date > 1867.1.1
		}
		x = 8
		y = 3
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			FROM = {
				add_autonomy_ratio = {
					value = -0.25
					localization = EGY_alining_with_OTO
				}
			}
		}
	}
	focus = {
		id = EGY_vic_bring_gov_into_line_with_OTO
		icon = GFX_goal_egypt_otto_chains
		cost = 70
		prerequisite = {
			focus = EGY_vic_a_loyal_state
		}
		available = {
			date > 1873.1.1
		}
		x = 8
		y = 4
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			FROM = {
				add_autonomy_ratio = {
					value = -0.1
				}
			}
			add_stability = 0.075
		}
	}
	focus = {
		id = EGY_vic_request_firman_stab_succ
		icon = GFX_goal_generic_neutrality_focus
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_request_more_automony
			focus = EGY_vic_accept_OTO
		}
		x = 7
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
			date > 1864.1.1
		}
		completion_reward = {
			#if = {
			#	limit = {
			#		has_idea = weak_heir
			#	}
			#	swap_ideas = {
			#		add_idea = has_heir
			#		remove_idea = weak_heir
			#	}
			#}
			#else_if = {
			#	limit = {
			#		has_idea = no_heir
			#	}
			#	swap_ideas = {
			#		add_idea = has_heir
			#		remove_idea = no_heir
			#	}
			#}
			#else={
			#	increase_ps_by_one = yes
			#}
			increase_ps_by_one = yes
		}
	}
	focus = {
		id = EGY_vic_firman_1867
		icon = GFX_Focus_Law_Vote_1
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_request_firman_stab_succ
		}
		prerequisite = {
			focus = EGY_vic_request_more_automony
		}
		x = 6
		y = 3
		available = {
			date > 1867.1.1
		}
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			OTO = {
				set_autonomy = {
					target = ROOT
					autonomy_state = autonomy_khedive
				}
			}
		}
	}
	focus = {
		id = EGY_vic_firman_1873
		icon = GFX_Focus_Law_Vote_1
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_firman_1867
		}
		available = {
			date > 1873.1.1
		}
		x = 6
		y = 4
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			OTO={
				set_autonomy = {
					target = EGY
					autonomy_state = autonomy_free
				}
			}
			custom_effect_tooltip = EDC_egypt_vic_age_of_egpyt
			hidden_effect={
				load_focus_tree = egypt_mac_ft
			}
			add_ideas ={EGY_independant_in_all_but_name_OTO}
		}
	}
	focus = {
		id = EGY_vic_reforms_of_ahmad
		icon = GFX_Focus_Government_Reform_Administration
		cost = 70
		prerequisite = {
			focus = EGY_vic_education_investments
		}
		mutually_exclusive={
			focus = EGY_vic_reforms_of_ismail
			focus = EGY_vic_under_the_cresant
		}
		x = 14
		y = 5
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
			has_country_leader = {
				name = "Ahmad Rifaat Pasha"
				ruling_only = yes
			}
		}
		completion_reward = {
			add_stability = 0.05
			if={
				limit ={
					has_idea = pre_industrial_era
				}
				swap_ideas ={
					add_idea = victorian_era
					remove_idea = pre_industrial_era
				}
			}
			set_country_flag = afr_rrp_non_colonial_industrialization
			custom_effect_tooltip = afr_rrp_inspiration_to_africa
		}
	}
	focus = {
		id = EGY_vic_egyptian_industry
		icon = GFX_goal_generic_construct_civ_factory
		cost = 210
		x = 21
		y = 0
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		available = {
			OR={
				has_completed_focus = EGY_vic_reforms_of_ismail
				has_completed_focus = EGY_vic_reforms_of_ahmad
			}
		}
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_develop_local_infrastucture
		icon = GFX_goal_generic_construct_infrastructure
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_egyptian_industry
		}
		x = 17
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			447={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			749={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
					}
			}
			452={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_start_construction_of_a_main_rail_line
		icon = GFX_Focus_transport_railroad_development
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_develop_local_infrastucture
		}
		x = 17
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
			OR = {
				any_country ={
					has_tech = steam_locomotive
					has_opinion = {
						target = ROOT
						value > 0
					}
					any_owned_state={
							is_capital = yes
							is_on_continent = europe
					}
				}
				AND = {
				has_tech = iron_railways
				has_tech = steam_engine
				}
			}
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			446={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			456={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_expand_the_rail_network
		icon = GFX_Focus_transport_war_gauges
		cost = 140
		prerequisite = {
			focus = EGY_vic_start_construction_of_a_main_rail_line
		}
		x = 17
		y = 3
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			457={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			749={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			452={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			752={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_local_branches
		icon = GFX_Focus_transport_railroad_development
		cost = 140
		prerequisite = {
			focus = EGY_vic_expand_the_rail_network
		}
		x = 17
		y = 4
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			549={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			551={
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_expand_the_cotton_industry
		icon = GFX_goal_anschluss
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_egyptian_industry
		}
		x = 19
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = cotton_farm
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = cotton_farm
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_resource = {
					type = cotton
					amount = 8
				}
			}
		}
	}
	focus = {
		id = EGY_vic_increase_cotton_investments
		icon = GFX_goal_anschluss
		cost = 140
		prerequisite = {
			focus = EGY_vic_egyptian_industry
		}
		x = 19
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 0
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = cotton_farm
						size > 0
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = cotton_farm
										size > 0
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_resource = {
					type = cotton
					amount = 12
				}
			}
		}
	}
	focus = {
		id = EGY_vic_found_fabric_mills
		icon = GFX_Focus_Production_Fabric
		cost = 140
		prerequisite = {
			focus = EGY_vic_increase_cotton_investments
		}
		x = 19
		y = 3
		available_if_capitulated = no
		ai_will_do = {
			factor = 0
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			446 = {
				add_building_construction = {
					type = fabric_weavery
					level = 1
					instant_build = yes
				}
			}
			add_resource = {
				type = fabric
				amount = 16
				state = 446
			}
		}
	}
	focus = {
		id = EGY_vic_encourage_industry_investments
		icon = GFX_goal_generic_construct_civ_factory
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_egyptian_industry
		}
		x = 21
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_increase_industry_investments
		icon = GFX_Focus_Industry_Construction_Support_Budget
		cost = 140
		prerequisite = {
			focus = EGY_vic_encourage_industry_investments
		}
		x = 21
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_major_industry_investments
		icon = GFX_Focus_Industry_Construction_Support_Budget
		cost = 140
		prerequisite = {
			focus = EGY_vic_increase_industry_investments
		}
		x = 21
		y = 3
		available_if_capitulated = no
		ai_will_do = {
			factor = 0
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 1
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 1
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = arms_factory
										size > 1
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_telegraph_investment
		icon = GFX_Focus_Telegraph_Lines
		cost = 140
		prerequisite = {
			focus = EGY_vic_egyptian_industry
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		x = 23
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
			AND = {
				OR = {
					any_country ={
						has_tech = electrical_telegraph
						has_opinion = {
							target = ROOT
							value > 0
						}
						custom_trigger_tooltip = {
							tooltip = afr_capital_is_in_europe
							any_owned_state={
								is_capital = yes
								is_on_continent = europe
							}
						}
					}
					AND = {
					has_tech = electrical_telegraph
					}
				}
				set_temp_variable = { amount_of_money_to_check = 0.5 }
        		has_specific_amount_of_money_with_inflation_included = yes
			}
		}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			if = {
				limit = {
					NOT = {has_tech = electrical_telegraph}
				}
				custom_effect_tooltip = afr_gains_telegraphs_1
				hidden_effect = {
					set_technology = {electrical_telegraph=1}
				}
			}
		}
	}
	focus = {
		id = EGY_vic_telegraph_expansion
		icon = GFX_Focus_Telegraph_Lines
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_telegraph_investment
		}
		x = 23
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
		}
	}
	focus = {
		id = EGY_vic_alexandrian_breakwaters
		icon = GFX_goal_generic_political_pressure
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_egyptian_industry
		}
		x = 25
		y = 1
		available = {
			owns_state = 447
		}
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
        	set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
    	}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			447={
				add_extra_state_shared_building_slots = 2
			}
		}
	}
	focus = {
		id = EGY_vic_suez_harbour_expansion
		icon = GFX_Focus_Suez_Canal
		cost = 140
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_alexandrian_breakwaters
		}
		x = 25
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		available = {
			owns_state = 749
			has_global_flag = SUEZ_CANAL_BUILT
			set_temp_variable = { amount_of_money_to_check = 0.5 }
        	has_specific_amount_of_money_with_inflation_included = yes
		}
		
		completion_reward = {
			set_temp_variable = { money_to_gain = -0.5 }
        	add_money_with_tooltip_effect = yes
			749={
				add_building_construction = {
					type = naval_base
					level = 2
					province = 12049
					instant_build = yes
				}
				add_building_construction = {
					type = naval_base
					level = 1
					province = 4073
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = EGY_vic_army_expansion
		icon = GFX_Focus_conscription
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		# prerequisite = {
			# focus = EGY_vic_increase_cotton_investments
		# }
		available={
			has_completed_focus = EGY_vic_new_army_expansion
		}
		x = 33
		y = 0
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.1
				uses = 1
				category = land_doctrine
			}
		}
	}
	focus = {
		id = EGY_vic_new_officer_corps
		icon = GFX_focus_generic_military_academy
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_army_expansion
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 30
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			army_experience = 20
		}
	}
	focus = {
		id = EGY_vic_follow_ottoman_exsample
		icon = GFX_goal_ottoman_army
		cost = 70
		prerequisite = {
			focus = EGY_vic_new_officer_corps
		}
		mutually_exclusive={
			focus = EGY_vic_follow_the_british
			focus = EGY_vic_new_times_old_tactics
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 30
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_political_power = 100
		}
	}
	focus = {
		id = EGY_vic_follow_the_british
		icon = GFX_Focus_Diplomatic_Ally_ENG
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_new_officer_corps
		}
		mutually_exclusive={
			focus = EGY_vic_follow_ottoman_exsample
			focus = EGY_vic_new_times_old_tactics
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 28
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.20
				uses = 2
				category = land_doctrine
			}
		}
	}
	focus = {
		id = EGY_vic_invest_in_artillary_designs
		icon = GFX_Goal_military_procurement_focus
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_follow_the_british
			focus = EGY_vic_follow_ottoman_exsample
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 29
		y = 3
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_tech_bonus = {
				bonus = 0.33
				uses = 2
				category = artillery
			}
		}
	}
	focus = {
		id = EGY_vic_purchase_british_arms
		icon = GFX_Focus_gun_sales_ENG
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_invest_in_artillary_designs
		}
		prerequisite = {
			focus = EGY_vic_follow_the_british
		}
		available={
			ENG={
				has_tech = rifle_equipment2
			}
		}
		x = 28
		y = 4
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_equipment_to_stockpile = {
				type = infantry_equipment_rifle_2
				amount = 500
				producer = ENG
			}
		}
	}
	focus = {
		id = EGY_vic_ENG_style_army
		icon = GFX_goal_focus_british_military_government
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_purchase_british_arms
		}
		available={
			ENG={
				has_tech = rifle_equipment2
			}
		}
		x = 28
		y = 5
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_ideas={ egy_ENG_style_army }
		}
	}
	focus = {
		id = EGY_vic_obtain_rifles
		icon = GFX_Focus_Diplomatic_foreign_military
		cost = 70
		prerequisite = {
			focus = EGY_vic_invest_in_artillary_designs
		}
		prerequisite = {
			focus = EGY_vic_follow_ottoman_exsample
		}
		available={
			OR={
				USA={
					has_tech = rifle_equipment2
				}
				FRA={
					has_tech = rifle_equipment2
				}
				PRS={
					has_tech = rifle_equipment2
				}
				AUS={
					has_tech = rifle_equipment2
				}
			}
		}
		x = 30
		y = 4
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			if={
				limit={
					PRS={
						has_tech = rifle_equipment2
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment_rifle_2
					amount = 200
					producer = PRS
				}
			}
			else_if={
				limit={
					FRA={
						has_tech = rifle_equipment2
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment_rifle_2
					amount = 200
					producer = FRA
				}
			}
			else_if={
				limit={
					AUS={
						has_tech = rifle_equipment2
					}
				}
				add_equipment_to_stockpile = {
					type = infantry_equipment_rifle_2
					amount = 200
					producer = AUS
				}
			}
			else={
				add_equipment_to_stockpile = {
					type = infantry_equipment_rifle_2
					amount = 200
					producer = USA
				}
			}
		}
	}
	focus = {
		id = EGY_vic_side_with_ottoman_training
		icon = GFX_goal_generic_military_sphere
		cost = 70
		prerequisite = {
			focus = EGY_vic_obtain_rifles
		}
		x = 30
		y = 5
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
		}
	}
	focus = {
		id = EGY_vic_new_times_old_tactics
		icon = GFX_focus_generic_little_entente
		cost = 70
		prerequisite = {
			focus = EGY_vic_new_officer_corps
		}
		mutually_exclusive={
			focus = EGY_vic_follow_ottoman_exsample
			focus = EGY_vic_follow_the_british
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 32
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_mastery = {
				amount = 10
				# FILTERS:
				folder = land
				grand_doctrine = grand_doctrine_napoleonic_era
				sub_doctrine = napoleonic_conservative_doctrine
				track = infantry
			}
		}
	}
	focus = {
		id = EGY_vic_conscript_beduoins
		icon = GFX_focus_RAJ_lions_of_the_great_war
		cost = 70
		prerequisite = {
			focus = EGY_vic_new_times_old_tactics
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 32
		y = 3
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_manpower = 10000
		}
	}
	focus = {
		id = EGY_vic_camel_cavalry
		icon = GFX_goal_generic_army_doctrines
		cost = 70
		prerequisite = {
			focus = EGY_vic_conscript_beduoins
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 32
		y = 4
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_ideas = {EGY_bedouin_cavalry}
		}
	}
	focus = {
		id = EGY_vic_naval_rebuilding
		icon = GFX_Focus_Production_Mass
		cost = 70
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_army_expansion
		}
		available={
			any_owned_state={
				is_coastal = yes
			}
		}
		x = 36
		y = 1
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			navy_experience = 10
		}
	}
	focus = {
		id = EGY_vic_alexandrian_dockyards
		icon = GFX_goal_generic_construct_naval_dockyard
		cost = 210
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		prerequisite = {
			focus = EGY_vic_naval_rebuilding
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 36
		y = 2
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			447 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = EGY_vic_naval_reconstruction
		icon = GFX_Focus_Production_Mass
		cost = 70
		prerequisite = {
			focus = EGY_vic_alexandrian_dockyards
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 36
		y = 3
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_timed_idea={
				idea = egy_naval_reconstruction
				days = 360
			}
		}
	}
	focus = {
		id = EGY_vic_modern_naval_designs
		icon = GFX_goal_generic_build_navy
		cost = 70
		prerequisite = {
			focus = EGY_vic_naval_reconstruction
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 36
		y = 4
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_tech_bonus = {
				bonus = 0.1
				uses = 5
				category = naval_equipment
			}
		}
	}
	focus = {
		id = EGY_vic_purchase_ironcads
		icon = GFX_Goal_ironclad_focus
		cost = 70
		prerequisite = {
			focus = EGY_vic_modern_naval_designs
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		x = 35
		y = 5
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_tech_bonus = {
				bonus = 1.2
				uses = 1
				technology = tech_naval_prototype_ironclad
			}
		}
	}
	focus = {
		id = EGY_vic_western_naval_methods
		icon = GFX_Focus_Navy_Restriction_1
		cost = 70
		prerequisite = {
			focus = EGY_vic_modern_naval_designs
		}
		search_filters = {
			FOCUS_FILTER_HISTORICAL
		}
		# available={
			# has_completed_focus = EGY_vic_new_army_expansion
		# }
		x = 37
		y = 5
		available_if_capitulated = no
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			add_doctrine_cost_reduction = {
				cost_reduction = 0.2
				uses = 2
				category = land_doctrine
			}
		}
	}
}
