###########################
# Yemen Focus Tree
# By Raptor_Jesus feat. Beelzebub
###########################

focus_tree = {
	id = yemen_focus

	country = {
		factor = 0

		modifier = {
			add = 20
			tag = YEM
		}
	}

	default = no
	continuous_focus_position = { x = 1900 y = 900 }

	############# 17
	###### Puppet Politics
	#############

	focus = {
		id = YEM_My_Clay
		icon = GFX_goal_OTT_Yemeni_Question
		x = 4
		y = 0
		cost = 5.8
		available = {
			is_subject_of = TUR
		}
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_My_Clay"
			add_stability = 0.1
			add_ideas = YEM_disloyal_vassal
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Consolidate_Hinterlands
		icon = GFX_goal_SZC_improvised_farming_machinery
		relative_position_id = YEM_My_Clay
		x = -2
		y = 1
		cost = 5.8
		available = {
			controls_state = 982
		}
		prerequisite = { focus = YEM_My_Clay }
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Consolidate_Hinterlands"
			982 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Rally_The_Tribesmen
		icon = GFX_goal_SIC_Arabs_and_parthians
		relative_position_id = YEM_Consolidate_Hinterlands
		x = 1
		y = 1
		cost = 5.8

		prerequisite = { focus = YEM_Consolidate_Hinterlands }
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Rally_The_Tribesmen"
			add_war_support = 0.05
			increase_conscription = yes
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = YEM_Minorities_Census
		icon = GFX_goal_OTT_Integrate_Yemen
		relative_position_id = YEM_Consolidate_Hinterlands
		x = -1
		y = 1
		cost = 5.8
		prerequisite = {
			focus = YEM_Consolidate_Hinterlands
		}
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Minorities_Census"
			add_stability = 0.05
			swap_ideas = {
				remove_idea = YEM_Anarchy
				add_idea = YEM_Anarchy_2
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Live_and_let_live
		icon = GFX_goal_OTT_caliph
		mutually_exclusive = {
			focus = YEM_Support_Zaydi
		}
		relative_position_id = YEM_Minorities_Census
		x = -1
		y = 1
		cost = 5.8

		prerequisite = { focus = YEM_Minorities_Census }
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Live_and_let_live"
			add_war_support = 0.15
			increase_ruling_party_popularity_by_5 = yes
			add_stability = -0.02
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Support_Zaydi
		icon = GFX_AFG_islam_number_one
		mutually_exclusive = {
			focus = YEM_Live_and_let_live
		}
		relative_position_id = YEM_Minorities_Census
		x = 1
		y = 1
		cost = 5.8

		prerequisite = { focus = YEM_Minorities_Census }
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Support_Zaydi"
			add_stability = 0.05
			add_war_support = -0.05
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY }
	}


	focus = {
		id = YEM_Reform_the_Imamate
		icon = GFX_preventionofintimidationact
		relative_position_id = YEM_Minorities_Census
		x = 0
		y = 2
		cost = 5.8

		prerequisite = { focus = YEM_Live_and_let_live focus = YEM_Support_Zaydi }
		prerequisite = { focus = YEM_Teaboo_Problems_commith }
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Support_Zaydi"
			country_event = yemen.48
			add_stability = 0.05
			increase_ruling_party_popularity_by_5 = yes
		}
		search_filters = {  FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Steal_Ottoman_Jobs
		icon = GFX_goal_OTT_Sublime_Porte
		relative_position_id = YEM_My_Clay
		x = 2
		y = 1
		cost = 5.8
		available = {
			is_subject_of = TUR
		}
		prerequisite = { focus = YEM_My_Clay }
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Steal_Ottoman_Jobs"
			add_war_support = 0.05
			swap_ideas = {
				remove_idea = YEM_Ottoman_Rule
				add_idea = YEM_Ottoman_Rule_weak
			}
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = YEM_Expand_Post_Services
		icon = GFX_goal_big_news
		relative_position_id = YEM_Steal_Ottoman_Jobs
		x = 1
		y = 1
		cost = 5.8

		prerequisite = { focus = YEM_Steal_Ottoman_Jobs }
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Expand_Post_Services"
			add_ideas = YEM_PostalService
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = YEM_Push_Revanchism
		icon = GFX_renegotiatekagera
		relative_position_id = YEM_Steal_Ottoman_Jobs
		x = 1
		y = 2
		cost = 5.8
		available = {
			DJI = {
				owns_state = 659
			}
		}
		prerequisite = { focus = YEM_Expand_Post_Services }
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Expand_Post_Services"
			add_war_support = 0.05
			add_manpower = 5000
			increase_ruling_party_popularity_by_5 = yes
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = YEM_Protecc_Imam
		icon = GFX_goal_OTT_gendarmerie
		relative_position_id = YEM_Steal_Ottoman_Jobs
		x = -1
		y = 1
		cost = 5.8
		available = {
			is_subject_of = TUR
		}
		prerequisite = { focus = YEM_Steal_Ottoman_Jobs }
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Protecc_Imam"
			add_ideas = YEM_Gendarmes
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_RESISTANCE }
	}

	focus = {
		id = YEM_Teaboo_Problems_commith
		icon = GFX_goal_COR_purge_jacob
		relative_position_id = YEM_Protecc_Imam
		x = 0
		y = 1
		cost = 5.8
		available = {
			is_subject_of = TUR
		}
		prerequisite = { focus = YEM_Rally_The_Tribesmen }
		prerequisite = { focus = YEM_Protecc_Imam }
		ai_will_do = {
			factor = 150
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Teaboo_Problems_commith"
			country_event = yemen.3
		}
	}

	focus = {
		id = YEM_Every_Yemen_a_Kingdom
		icon = GFX_restoreruleinzanzibar
		relative_position_id = YEM_My_Clay
		x = 0
		y = 4
		cost = 1
		available = {
			is_subject_of = TUR
		}
		mutually_exclusive = {
			focus = YEM_An_Early_Uprising
		}
		bypass = {
			NOT = {
				has_idea = YEM_NiceGuy
				has_idea = YEM_ToughGuy
				has_idea = YEM_Ottoman_Rule_Split
				has_idea = YEM_Ottoman_Rule_weak
				has_idea = YEM_Ottoman_Rule
				has_idea = YEM_Anarchy
				is_subject_of = TUR
			}
		}
		prerequisite = { focus = YEM_Teaboo_Problems_commith }
		ai_will_do = {
			factor = 150
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Every_Yemen_a_Kingdom"
			set_cosmetic_tag = YEM_IMA
			unlock_decision_category_tooltip = YEM_rebel_category
		}
	}

	focus = {
		id = YEM_An_Early_Uprising
		icon = GFX_goal_generic_barricades
		relative_position_id = YEM_My_Clay
		x = 2
		y = 4
		cost = 1
		available = {
			is_subject_of = TUR
		}
		mutually_exclusive = {
			focus = YEM_Every_Yemen_a_Kingdom
		}
		bypass = {
			NOT = {
				has_idea = YEM_NiceGuy
				has_idea = YEM_ToughGuy
				has_idea = YEM_Ottoman_Rule_Split
				has_idea = YEM_Ottoman_Rule_weak
				has_idea = YEM_Ottoman_Rule
				has_idea = YEM_Anarchy
				is_subject_of = TUR
			}
		}
		prerequisite = { focus = YEM_Teaboo_Problems_commith }
		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			set_cosmetic_tag = YEM_IMA
			unlock_decision_category_tooltip = YEM_rebel_category
			add_named_threat = { 
				threat = 1
				name = earlyyemenuprising
			}
		}
	}
	
	#############
	###### Economics
	#############

	focus = {
		id = YEM_Modern_Construction
		icon = GFX_goal_generic_lightbulb
		x = 11
		y = 0
		cost = 5.8
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 2
				has_idea = YEM_black_monday
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Modern_Construction"
			add_tech_bonus = {
				name = YEM_Modern_Construction
				bonus = 1
				uses = 1
				technology = construction1
				technology = construction2
				technology = construction3
				technology = construction4
				technology = construction5
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Update_Aden_Rail
		icon = GFX_focusonthedreyfusline
		relative_position_id = YEM_Modern_Construction
		x = 1
		y = 1
		cost = 5.8
		prerequisite = { focus = YEM_Modern_Construction }
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Update_Aden_Rail"
			add_stability = 0.05
			293 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = YEM_Research
		icon = GFX_focus_research
		relative_position_id = YEM_Modern_Construction
		x = 3
		y = 1
		cost = 5.8

		prerequisite = { focus = YEM_Modern_Construction }
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Research"
			add_research_slot_until_five = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Western_Yemen_Infra
		icon = GFX_goal_generic_railway_construction
		relative_position_id = YEM_Modern_Construction
		x = 0
		y = 2
		cost = 5.8
		prerequisite = { focus = YEM_Update_Aden_Rail }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Western_Yemen_Infra"
			982 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			build_railway = {
				start_province = 1920
				target_province = 1923
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Hinterlands_Settling
		icon = GFX_goal_generic_build_housing
		relative_position_id = YEM_Modern_Construction
		x = 2
		y = 2
		cost = 5.8
		prerequisite = { focus = YEM_Update_Aden_Rail }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Hinterlands_Settling"
			add_manpower = 8725
			add_stability = 0.1
			add_political_power = -30
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = YEM_Aden_Trade
		icon = GFX_diversificationefforts
		relative_position_id = YEM_Modern_Construction
		x = 2
		y = 3
		cost = 5.8
		prerequisite = { focus = YEM_Hinterlands_Settling }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Aden_Trade"
			add_stability = 0.01
			add_offsite_building = { type = industrial_complex level = 1 }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Aden_Goods
		icon = GFX_expandheavyindustry
		relative_position_id = YEM_Modern_Construction
		x = 3
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Aden_Trade }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Aden_Goods"
			293 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_New_Oasis_Hunt
		icon = GFX_goal_JAP_industry
		relative_position_id = YEM_Modern_Construction
		x = 0
		y = 3
		cost = 5.8
		prerequisite = { focus = YEM_Western_Yemen_Infra }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_New_Oasis_Hunt"
			add_political_power = 35
			add_tech_bonus = {
				name = YEM_New_Oasis_Hunt
				bonus = 1
				uses = 1
				category = industry
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Start_Recovery
		icon = GFX_goal_generic_cash_stimulus_plan
		relative_position_id = YEM_Modern_Construction
		x = -2
		y = 1
		cost = 5.8
		prerequisite = { focus = YEM_Modern_Construction }
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 2
				has_idea = YEM_black_monday
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Start_Recovery"
			remove_ideas = YEM_black_monday
			add_offsite_building = { type = industrial_complex level = 1 }
		}
	}

	focus = {
		id = YEM_Arable_Land_Reforms
		icon = GFX_goal_BUL_mechanize_farming
		relative_position_id = YEM_Modern_Construction
		x = -2
		y = 2
		cost = 5.8
		prerequisite = { focus = YEM_Start_Recovery }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Arable_Land_Reforms"
			add_tech_bonus = {
				name = YEM_Arable_Land_Reforms
				bonus = 1
				uses = 1
				category = industry
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Oil_Prospects
		icon = GFX_goal_oil_derrick
		relative_position_id = YEM_Modern_Construction
		x = -2
		y = 3
		cost = 5.8
		available = {
			controls_state = 982
		}
		prerequisite = { focus = YEM_Arable_Land_Reforms }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Oil_Prospects"
			add_resource = {
				type = oil
				amount = 8
				state = 982
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Big_Farma
		icon = GFX_smallholdingfocus
		relative_position_id = YEM_Modern_Construction
		x = -1
		y = 4
		cost = 5.8
		available = {
			controls_state = 293
			controls_state = 982
		}
		prerequisite = { focus = YEM_Oil_Prospects }
		prerequisite = { focus = YEM_New_Oasis_Hunt }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Big_Farma"
			293 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			982 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Modern_Economy
		icon = GFX_goal_generic_industrial_planning
		relative_position_id = YEM_Modern_Construction
		x = -1
		y = 5
		cost = 5.8
		prerequisite = { focus = YEM_Big_Farma }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Modern_Economy"
			add_ideas = YEM_Modern_Eco
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	#############
	###### Military
	#############

	focus = {
		id = YEM_Officers_Come_Home
		icon = GFX_goal_YEM_Army
		x = 17
		y = 0
		cost = 5.8
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Officers_Come_Home"
			add_war_support = 0.1
			army_experience = 50
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = YEM_Modern_Naval_Transports
		icon = GFX_goal_generic_naval_industry
		relative_position_id = YEM_Officers_Come_Home
		x = -1
		y = 1
		cost = 5.8
		prerequisite = { focus = YEM_Officers_Come_Home }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Modern_Naval_Transports"
			add_tech_bonus = {
				name = YEM_Modern_Naval_Transports
				bonus = 1
				uses = 1
				category = tp_tech
			}
			navy_experience = 20
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Merchant_Marine
		icon = GFX_goal_YEM_Navy
		relative_position_id = YEM_Officers_Come_Home
		x = -1
		y = 2
		cost = 5.8
		prerequisite = { focus = YEM_Modern_Naval_Transports }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Merchant_Marine"
			add_equipment_to_stockpile = { type = convoy_1 amount = 50 producer = YEM }
			add_ideas = YEM_Merchant_Fleet
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Trade_Protection
		icon = GFX_goal_NFA_merchant_marine
		relative_position_id = YEM_Officers_Come_Home
		x = -1
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Merchant_Marine }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Trade_Protection"
			add_tech_bonus = {
				name = YEM_Trade_Protection
				bonus = 1
				uses = 1
				category = dd_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Aden_Ports
		icon = GFX_USA_ports_atlantic
		relative_position_id = YEM_Officers_Come_Home
		x = -1
		y = 5
		cost = 5.8
		prerequisite = { focus = YEM_Trade_Protection }
		prerequisite = { focus = YEM_Aden_Goods }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Aden_Ports"
			293 = {
				add_building_construction = {
					type = naval_base
					province = 10840
					level = 3
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Ship_Commission
		icon = GFX_goal_NIC_buy_ship
		relative_position_id = YEM_Officers_Come_Home
		x = -1
		y = 6
		cost = 5.8
		prerequisite = { focus = YEM_Aden_Ports }
		available = {
			country_exists = GER
		}
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Ship_Commission"
			GER = {
				country_event = {
					id = yemen.38 days = 1
				}
			}
		}
	}

	focus = {
		id = YEM_This_Is_My_Boomstick
		icon = GFX_BRY_Every_Hand_A_Rifle
		relative_position_id = YEM_Officers_Come_Home
		x = 2
		y = 1
		cost = 5.8
		prerequisite = { focus = YEM_Officers_Come_Home }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_This_Is_My_Boomstick"
			add_tech_bonus = {
				name = YEM_This_Is_My_Boomstick
				bonus = 1
				uses = 1
				category = infantry_weapons
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Bigger_Boom
		icon = GFX_developartillery
		relative_position_id = YEM_Officers_Come_Home
		x = 2
		y = 2
		cost = 5.8
		prerequisite = { focus = YEM_This_Is_My_Boomstick }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Bigger_Boom"
			add_tech_bonus = {
				name = YEM_Bigger_Boom
				bonus = 1
				uses = 1
				category = artillery
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Fortify_To_Protecc
		icon = GFX_garrisontowns
		relative_position_id = YEM_Officers_Come_Home
		x = 2
		y = 3
		cost = 5.8
		prerequisite = { focus = YEM_Bigger_Boom }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Fortify_To_Protecc"
				982 = {
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province = 13664
					}
					add_building_construction = {
						type = bunker
						level = 2
						instant_build = yes
						province = 8073
					}
				}
			add_ideas = YEM_forts
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Mountain_Warriors
		icon = GFX_goal_generic_mountain_warfare
		relative_position_id = YEM_Officers_Come_Home
		x = 2
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Fortify_To_Protecc }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Mountain_Warriors"
			add_tech_bonus = {
				name = YEM_Mountain_Warriors
				bonus = 1
				uses = 1
				technology = tech_mountaineers
				technology = tech_mountaineers2
				technology = tech_mountaineers3
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Arabian_Knights
		icon = GFX_HUN_fleet_horse
		relative_position_id = YEM_Officers_Come_Home
		x = 4
		y = 1
		cost = 5.8
		prerequisite = { focus = YEM_Officers_Come_Home }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Arabian_Knights"
			add_ideas = YEM_HorsieBoyes
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = YEM_Better_Shovels
		icon = GFX_goal_generic_support_equipment
		relative_position_id = YEM_Officers_Come_Home
		x = 6
		y = 1
		cost = 5.8
		prerequisite = { focus = YEM_Officers_Come_Home }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Better_Shovels"
			add_tech_bonus = {
				name = YEM_Better_Shovels
				bonus = 1
				uses = 2
				category = support_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Trench_War
		icon = GFX_goal_generic_army_grand_battleplan
		relative_position_id = YEM_Officers_Come_Home
		x = 5
		y = 2
		cost = 5.8
		prerequisite = { focus = YEM_Better_Shovels }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Trench_War"
			add_tech_bonus = {
				name = YEM_Trench_War
				bonus = 1
				uses = 1
				category = cat_grand_battle_plan
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Scouts
		icon = GFX_EGY_Palestine_Defence
		relative_position_id = YEM_Officers_Come_Home
		x = 4
		y = 3
		cost = 5.8
		prerequisite = { focus = YEM_Trench_War }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Scouts"
			add_tech_bonus = {
				name = YEM_Scouts
				bonus = 1
				uses = 1
				category = engineers_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Hold_The_Line
		icon = GFX_goal_planning_bonus
		relative_position_id = YEM_Officers_Come_Home
		x = 4
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Scouts }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Hold_The_Line"
			add_tech_bonus = {
				name = YEM_Hold_The_Line
				bonus = 1
				uses = 1
				category = cat_grand_battle_plan
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Rifle_Guilds
		icon = GFX_goal_generic_design_equipment_standards
		relative_position_id = YEM_Officers_Come_Home
		x = 6
		y = 3
		cost = 5.8
		prerequisite = { focus = YEM_Better_Shovels }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Rifle_Guilds"
			add_ideas = YEM_Rifle_Guilds_Temp
		}
	}

	focus = {
		id = YEM_Taiz_Arsenal
		icon = GFX_goal_ZAM_arms_factory
		relative_position_id = YEM_Officers_Come_Home
		x = 6
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Rifle_Guilds }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Taiz_Arsenal"
			293 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Modern_Army
		icon = GFX_goal_FNG_Army_Modern
		relative_position_id = YEM_Officers_Come_Home
		x = 3
		y = 5
		cost = 5.8
		prerequisite = { focus = YEM_Taiz_Arsenal focus = YEM_Hold_The_Line focus = YEM_Mountain_Warriors }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Modern_Army"
			swap_ideas = {
				remove_idea = YEM_Old_Army
				add_idea = YEM_Modern_Plans
			}
			add_equipment_to_stockpile = { type = fighter_equipment_0 amount = 10 producer = EGY }	
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = YEM_Military_Science
		icon = GFX_goal_military_research_2
		relative_position_id = YEM_Officers_Come_Home
		x = 5
		y = 5
		cost = 5.8
		prerequisite = { focus = YEM_Taiz_Arsenal focus = YEM_Hold_The_Line focus = YEM_Mountain_Warriors }
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Military_Science"
			add_research_slot_until_five = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	#############
	###### Free Politics
	#############

	focus = {
		id = YEM_Free_Kingdom
		icon = GFX_goal_LIB_star_of_liberty
		x = 14
		y = 8
		cost = 0
		available = {
			hidden_trigger = { always = no }
		}
		ai_will_do = {
			factor = 50
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Free_Kingdom"
			custom_effect_tooltip = unlock_focuses
		}
	}

	focus = {
		id = YEM_Retake_Aden
		icon = GFX_MAF_westafrikanische_polizeitruppen
		relative_position_id = YEM_Free_Kingdom
		x = 1
		y = 3
		cost = 5.8
		prerequisite = { focus = YEM_Chaos_In_The_Cities }
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				has_idea = YEM_Yemen_On_Fire
			}
			modifier = {
				factor = 0
				has_war = yes
			}
		}
		bypass = {
			owns_state = 659
		}
		available = {
		is_subject = no
		can_declare_war_on = 659.owner
		controls_all_owned_states = yes
		NOT = {
			owns_state = 659
			}
		}
		will_lead_to_war_with = DJI
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Claim_Dhofar"
			declare_war_on = {
				target = "659.owner"
				type = annex_everything
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	focus = {
		id = YEM_Claim_Dhofar
		icon = GFX_goal_OMA_Army
		relative_position_id = YEM_Free_Kingdom
		x = 3
		y = 3
		cost = 5.8
		prerequisite = { focus = YEM_Chaos_In_The_Cities }
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				has_idea = YEM_Yemen_On_Fire
			}
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = OMA ratio < 1 }
			}
			modifier = {
				factor = 0
				OMA = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				OMA = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
		available = {
			is_subject = no
			owns_state = 752
			can_declare_war_on = 1024.owner
			controls_all_owned_states = yes
		}
		will_lead_to_war_with = OMA
		bypass = {
			owns_state = 1024
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Claim_Dhofar"
			1024 = {
				add_claim_by = YEM
			}
			declare_war_on = {
				target = "1024.owner"
				type = annex_everything
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	
	focus = {
		id = YEM_Seize_the_Holy_Cities
		icon = GFX_goal_generic_sneaky
		relative_position_id = YEM_Free_Kingdom
		x = 1
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Claim_Dhofar focus = YEM_Retake_Aden }
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = HEJ ratio < 1 }
			}
			modifier = {
				factor = 0
				HEJ = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				HEJ = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
		available = {
			is_subject = no
			owns_state = 982
			owns_state = 659
			can_declare_war_on = 679.owner
			controls_all_owned_states = yes
		}
		will_lead_to_war_with = HEJ
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Claim_Dhofar"
			679 = {
				add_claim_by = YEM
			}
			declare_war_on = {
				target = "679.owner"
				type = annex_everything
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	focus = {
		id = YEM_Take_The_Interior
		icon = GFX_goal_OTT_Land_Reform
		relative_position_id = YEM_Free_Kingdom
		x = 3
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Claim_Dhofar focus = YEM_Retake_Aden }
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = JBS ratio < 1 }
			}
			modifier = {
				factor = 0
				JBS = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				JBS = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				strength_ratio = { tag = SAU ratio < 1 }
			}
			modifier = {
				factor = 0
				SAU = {
					is_in_faction = yes
					any_allied_country = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
			modifier = {
				factor = 0
				SAU = {
					is_subject = yes
					overlord = {
						strength_ratio = { tag = ROOT ratio > 0.8 }
					}
				}
			}
		}
		available = {
			is_subject = no
			owns_state = 982
			owns_state = 659
			can_declare_war_on = 292.owner
			controls_all_owned_states = yes
		}
		will_lead_to_war_with = JBS
		will_lead_to_war_with = SAU
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Claim_Dhofar"
			292 = {
				add_claim_by = YEM
			}
			declare_war_on = {
				target = "292.owner"
				type = annex_everything
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = YEM_Chaos_In_The_Cities
		icon = GFX_Focus_Peasant_Rebellion
		relative_position_id = YEM_Free_Kingdom
		x = 0
		y = 2
		cost = 2
		prerequisite = { focus = YEM_Free_Kingdom }
		available = {
			NOT = {
				has_war_with = TUR
			}
		}
		ai_will_do = {
			factor = 500
		}
		select_effect = {
			country_event = {
				id = yemen.49
				days = 7
			}
		}
		cancelable = no
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Chaos_In_The_Cities"
			add_war_support = 0.05
			hidden_effect = {
				YEM = {
					country_event = {
						id = yemen.12 days = 5
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Rebels_Crushed
		icon = GFX_goal_MEX_Only_Removed_by_the_Monarch
		relative_position_id = YEM_Free_Kingdom
		x = -3
		y = 3
		cost = 0
		prerequisite = { focus = YEM_Chaos_In_The_Cities }
		available = {
			hidden_trigger = { always = no }
		}
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Rebels_Crushed"
			custom_effect_tooltip = unlock_focuses
		}
	}

	focus = {
		id = YEM_Nepotism
		icon = GFX_focus_generic_authoritarian_government
		relative_position_id = YEM_Free_Kingdom
		x = -5
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Rebels_Crushed }
		ai_will_do = {
			factor = 150
		}
		available = {
			OR = {
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Nepotism"
			if = {
				limit = {
					NOT = {
						has_cosmetic_tag = YEM_ARA
						}
					}
				set_cosmetic_tag = YEM_KING
			}
			swap_ideas = {
				remove_idea = YEM_Yemen_On_Fire
				add_idea = YEM_Nepotism
			}
		}
		search_filters = { FOCUS_FILTER_RESISTANCE FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = YEM_Efficient_Rule
		icon = GFX_goal_generic_stable_government
		relative_position_id = YEM_Free_Kingdom
		x = -5
		y = 5
		cost = 5.8
		prerequisite = { focus = YEM_Nepotism }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Efficient_Rule"
			add_war_support = 0.05
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Devoted_Sovereign
		icon = GFX_goal_NGR_at_islam
		relative_position_id = YEM_Free_Kingdom
		x = -5
		y = 6
		cost = 5.8
		prerequisite = { focus = YEM_Efficient_Rule }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Devoted_Sovereign"
			swap_ideas = {
				remove_idea = YEM_Nepotism
				add_idea = YEM_Devotion
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESISTANCE FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Humane_And_Just
		icon = GFX_goal_HON_Humanist_Charity
		relative_position_id = YEM_Free_Kingdom
		x = -5
		y = 7
		cost = 5.8
		prerequisite = { focus = YEM_Devoted_Sovereign }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Humane_And_Just"
			add_stability = 0.01
			swap_ideas = {
				remove_idea = YEM_Devotion
				add_idea = YEM_Humane
			}
			hidden_effect = {
				country_event = {
					id = yemen.35 days = 7
				}
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Troop_Passage
		icon = GFX_focus_rus_motorised
		relative_position_id = YEM_Free_Kingdom
		x = -2
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Rebels_Crushed }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Troop_Passage"
			add_ideas = YEM_Troop_Movement
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = YEM_All_Roads_To_Sanaa
		icon = GFX_lowlandroadgrants
		relative_position_id = YEM_Free_Kingdom
		x = -3
		y = 5
		cost = 5.8
		prerequisite = { focus = YEM_Troop_Passage }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_All_Roads_To_Sanaa"
			293 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Unified_Economy
		icon = GFX_Generic_Industrial_Complexes
		relative_position_id = YEM_Free_Kingdom
		x = -3
		y = 6
		cost = 5.8
		prerequisite = { focus = YEM_All_Roads_To_Sanaa }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Unified_Economy"
			add_ideas = YEM_Unified_Eco
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Advanced_Comms
		icon = GFX_EGY_Radio_Free_Cairo
		relative_position_id = YEM_Free_Kingdom
		x = -1
		y = 5
		cost = 5.8
		prerequisite = { focus = YEM_Troop_Passage }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Advanced_Comms"
			add_tech_bonus = {
				name = YEM_Advanced_Comms
				bonus = 1
				uses = 1
				category = radar_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Prepared_Army
		icon = GFX_goal_Desert_Officers_2
		relative_position_id = YEM_Free_Kingdom
		x = -1
		y = 6
		cost = 5.8
		prerequisite = { focus = YEM_Advanced_Comms }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Prepared_Army"
			add_ideas = YEM_Prepared_Army
			293 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
	}


	focus = {
		id = YEM_Centralize_Power
		icon = GFX_goal_authoritarian
		relative_position_id = YEM_Free_Kingdom
		x = -2
		y = 7
		cost = 5.8
		prerequisite = { focus = YEM_Prepared_Army }
		prerequisite = { focus = YEM_Unified_Economy }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Centralize_Power"
			add_stability = 0.01
			add_ideas = YEM_Eternal_Saana
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}


	focus = {
		id = YEM_Remove_Imam
		icon = GFX_allkingsunderone
		relative_position_id = YEM_Free_Kingdom
		x = 6
		y = 3
		cost = 0
		prerequisite = { focus = YEM_Chaos_In_The_Cities }
		available = {
			hidden_trigger = { always = no }
		}
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Remove_Imam"
			custom_effect_tooltip = unlock_focuses
		}
	}

	focus = {
		id = YEM_Hold_Elections
		icon = GFX_goal_generic_elections
		relative_position_id = YEM_Free_Kingdom
		x = 6
		y = 4
		cost = 3
		prerequisite = { focus = YEM_Remove_Imam }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Hold_Elections"
			add_stability = 0.1
			set_cosmetic_tag = YEM_REP
			hidden_effect = {
				YEM = {
					country_event = {
						id = yemen.20 days = 2
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Soc_Cons
		icon = GFX_goal_ideology_social_conservative
		mutually_exclusive = {
			focus = YEM_Soc_Libs
		}
		relative_position_id = YEM_Free_Kingdom
		x = 3
		y = 5
		cost = 1
		prerequisite = { focus = YEM_Hold_Elections }
		available = {
			hidden_trigger = { always = no }
		}
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Soc_Cons"
			custom_effect_tooltip = unlock_focuses
		}
	}

	focus = {
		id = YEM_Reaffirm_Common_Law
		icon = GFX_lessonslearned
		relative_position_id = YEM_Free_Kingdom
		x = 2
		y = 6
		cost = 5.8
		prerequisite = { focus = YEM_Soc_Cons }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_right_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Reaffirm_Common_Law"
			swap_ideas = {
				remove_idea = YEM_Yemen_On_Fire
				add_idea = YEM_Common_Law
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Presidential_Powers
		icon = GFX_goal_NIC_Strong_Presidency
		relative_position_id = YEM_Free_Kingdom
		x = 1
		y = 7
		cost = 5.8
		prerequisite = { focus = YEM_Reaffirm_Common_Law }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_right_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Presidential_Powers"
			swap_ideas = {
				remove_idea = YEM_Common_Law
				add_idea = YEM_President
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Qat_And_Coffee
		icon = GFX_goal_coffee_exports
		relative_position_id = YEM_Free_Kingdom
		x = 3
		y = 7
		cost = 5.8
		prerequisite = { focus = YEM_Reaffirm_Common_Law }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_right_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Qat_And_Coffee"
			add_stability = 0.1
			add_ideas = YEM_Farm_boye
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Red_Sea_Trade
		icon = GFX_goal_CAL_trade_fleet
		relative_position_id = YEM_Free_Kingdom
		x = 3
		y = 8
		cost = 5.8
		prerequisite = { focus = YEM_Qat_And_Coffee }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_right_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Red_Sea_Trade"
			293 = {
				add_building_construction = {
					type = naval_base
					province = 5074
					level = 1
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			293 = {
				add_building_construction = {
					type = naval_base
					province = 10840
					level = 1
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Trade_With_Europe
		icon = GFX_goal_collaborate_local_elites
		relative_position_id = YEM_Free_Kingdom
		x = 2
		y = 9
		cost = 5.8
		prerequisite = { focus = YEM_Red_Sea_Trade }
		prerequisite = { focus = YEM_Presidential_Powers }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_right_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Trade_With_Europe"
			swap_ideas = {
				remove_idea = YEM_President
				add_idea = YEM_Euro_Zone
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Soc_Libs
		icon = GFX_goal_ideology_social_liberal
		mutually_exclusive = {
			focus = YEM_Soc_Cons
		}
		relative_position_id = YEM_Free_Kingdom
		x = 9
		y = 5
		cost = 1
		prerequisite = { focus = YEM_Hold_Elections }
		available = {
			hidden_trigger = { always = no }
		}
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Soc_Libs"
			custom_effect_tooltip = unlock_focuses
			hidden_effect = {
				country_event = {
					id = yemen.32 days = 12
				}
			}
		}
	}

	focus = {
		id = YEM_Modernize_laws
		icon = GFX_goal_NFA_A_New_Constitution
		relative_position_id = YEM_Free_Kingdom
		x = 10
		y = 6
		cost = 5.8
		prerequisite = { focus = YEM_Soc_Libs }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_left_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Modernize_laws"
			swap_ideas = {
				remove_idea = YEM_Yemen_On_Fire
				add_idea = YEM_New_Laws
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Regional_Rulers
		icon = GFX_RUS_Lower_Local_Parliaments
		relative_position_id = YEM_Free_Kingdom
		x = 9
		y = 7
		cost = 5.8
		prerequisite = { focus = YEM_Modernize_laws }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_left_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Regional_Rulers"
			swap_ideas = {
				remove_idea = YEM_New_Laws
				add_idea = YEM_Local
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Electrification
		icon = GFX_kafuedam
		relative_position_id = YEM_Free_Kingdom
		x = 11
		y = 7
		cost = 5.8
		prerequisite = { focus = YEM_Modernize_laws }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_left_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Electrification"
			982 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			981 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_New_Development
		icon = GFX_goal_construction
		relative_position_id = YEM_Free_Kingdom
		x = 11
		y = 8
		cost = 5.8
		prerequisite = { focus = YEM_Electrification }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_left_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_New_Development"
			982 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			293 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Begin_Industrialization
		icon = GFX_goal_NFA_industrial_push_command
		relative_position_id = YEM_Free_Kingdom
		x = 10
		y = 9
		cost = 5.8
		prerequisite = { focus = YEM_New_Development }
		prerequisite = { focus = YEM_Regional_Rulers }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_left_democratic_government = yes
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Begin_Industrialization"
			swap_ideas = {
				remove_idea = YEM_Local
				add_idea = YEM_Pol_Indust
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = YEM_Islamic_Constitution
		icon = GFX_BBR_islamic_education
		relative_position_id = YEM_Free_Kingdom
		x = 6
		y = 6
		cost = 5.8
		prerequisite = { focus = YEM_Soc_Cons focus = YEM_Soc_Libs }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_left_democratic_government = yes
				has_right_democratic_government = yes
			}
		}
		bypass = {
			OR = {
				has_left_democratic_government = yes
				has_right_democratic_government = yes
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Islamic_Constitution"
		}
	}

	focus = {
		id = YEM_Local_Representation
		icon = GFX_aconfederation
		relative_position_id = YEM_Free_Kingdom
		x = 5
		y = 7
		cost = 5.8
		prerequisite = { focus = YEM_Islamic_Constitution }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_left_democratic_government = yes
				has_right_democratic_government = yes
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Local_Representation"
			add_ideas = YEM_local_admin
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Welcome_Intellectuals
		icon = GFX_ITA_science
		relative_position_id = YEM_Free_Kingdom
		x = 5
		y = 8
		cost = 5.8
		prerequisite = { focus = YEM_Local_Representation }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_left_democratic_government = yes
				has_right_democratic_government = yes
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Welcome_Intellectuals"
			add_research_slot_until_five = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = YEM_Begin_Nahda
		icon = GFX_Generic_Desert_Warfare
		relative_position_id = YEM_Free_Kingdom
		x = 7
		y = 7
		cost = 5.8
		prerequisite = { focus = YEM_Islamic_Constitution }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_left_democratic_government = yes
				has_right_democratic_government = yes
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Begin_Nahda"
			add_ideas = YEM_embrace_nahda
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = YEM_Political_Liberties
		icon = GFX_goal_liberty
		relative_position_id = YEM_Free_Kingdom
		x = 7
		y = 8
		cost = 5.8
		prerequisite = { focus = YEM_Begin_Nahda }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_left_democratic_government = yes
				has_right_democratic_government = yes
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Political_Liberties"
			add_stability = .2
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Pan_Arabist_Thought
		icon = GFX_goal_United_Arab_Emirates
		relative_position_id = YEM_Free_Kingdom
		x = 6
		y = 9
		cost = 5.8
		prerequisite = { focus = YEM_Political_Liberties }
		prerequisite = {focus = YEM_Welcome_Intellectuals }
		ai_will_do = {
			factor = 100
		}
		available = {
			OR = {
				has_left_democratic_government = yes
				has_right_democratic_government = yes
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Pan_Arabist_Thought"
			remove_ideas = YEM_embrace_nahda
			remove_ideas = YEM_local_admin
			add_ideas = YEM_pan_arab_thot
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	#############
	###### Arabia
	#############

	focus = {
		id = YEM_Rassid_Arabia
		icon = GFX_goal_Unite_Arabia
		x = 3
		y = 8
		cost = 1
		available = {
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}

		ai_will_do = {
			factor = 1000
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Rassid_Arabia"
			if = {
				limit = {
					NOT = {
						has_completed_focus = YEM_Remove_Imam
						}
					}
				set_cosmetic_tag = YEM_ARA
			}
			if = {
				limit = {
						has_completed_focus = YEM_Remove_Imam
					}
				set_cosmetic_tag = YEM_ARAREP
			}
			add_political_power = 50
			increase_ruling_party_popularity_by_5 = yes
		}
	}

	focus = {
		id = YEM_Damage_Control
		icon = GFX_regulariseugandanborder
		relative_position_id = YEM_Rassid_Arabia
		x = -1
		y = 1
		cost = 5.8
		prerequisite = { focus = YEM_Rassid_Arabia }
		ai_will_do = {
			factor = 100
		}
		available = {
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Damage_Control"
			add_stability = 0.1
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Rebuild_and_Heal
		icon = GFX_reviewarticlefour
		relative_position_id = YEM_Rassid_Arabia
		x = -2
		y = 2
		cost = 5.8
		prerequisite = { focus = YEM_Damage_Control }
		ai_will_do = {
			factor = 100
		}
		available = {
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Rebuild_and_Heal"
			swap_ideas = {
				add_idea = YEM_arabian_integration_rebuild
				remove_idea = YEM_arabian_integration
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Mobilize_Military_As_Police
		icon = GFX_goal_NYC_cops_beating_down_on_hippie_scum_at_the_1968_democratic_national_convention
		relative_position_id = YEM_Rassid_Arabia
		x = 1
		y = 1
		cost = 5.8
		prerequisite = { focus = YEM_Rassid_Arabia }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_completed_focus = YEM_Rebuild_and_Heal
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Mobilize_Military_As_Police"
			add_war_support = -0.02
			add_stability = 0.02
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Crackdown_On_Dissent
		icon = GFX_emergencyprotocols
		relative_position_id = YEM_Rassid_Arabia
		x = 2
		y = 2
		cost = 5.8
		prerequisite = { focus = YEM_Mobilize_Military_As_Police }
		ai_will_do = {
			factor = 100
		}
		available = {
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Crackdown_On_Dissent"
			swap_ideas = {
				add_idea = YEM_arabian_integration_dissent
				remove_idea = YEM_arabian_integration_rebuild
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Appease_Tribes
		icon = GFX_focus_generic_arab_deal
		relative_position_id = YEM_Rassid_Arabia
		x = 0
		y = 2
		cost = 5.8
		prerequisite = { focus = YEM_Rassid_Arabia }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_completed_focus = YEM_Crackdown_On_Dissent
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Appease_Tribes"
			swap_ideas = {
				add_idea = YEM_arabian_integration_2
				remove_idea = YEM_arabian_integration_dissent
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Purge_Saudis
		icon = GFX_goal_hunt_down_saudis
		relative_position_id = YEM_Rassid_Arabia
		x = 1
		y = 3
		cost = 5.8
		prerequisite = { focus = YEM_Appease_Tribes }
		prerequisite = { focus = YEM_Crackdown_On_Dissent }
		ai_will_do = {
			factor = 100
		}
		available = {
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Purge_Saudis"
			add_stability = 0.1
			country_event = yemen.33
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Give_Religious_Freedom
		icon = GFX_goal_Pan_Arabism
		relative_position_id = YEM_Rassid_Arabia
		x = -1
		y = 3
		cost = 5.8
		prerequisite = { focus = YEM_Appease_Tribes }
		prerequisite = { focus = YEM_Rebuild_and_Heal }
		ai_will_do = {
			factor = 100
		}
		available = {
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Give_Religious_Freedom"
			add_stability = 0.03
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Begin_Integration
		icon = GFX_goal_HON_Humanist_Charity
		relative_position_id = YEM_Rassid_Arabia
		x = -2
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Give_Religious_Freedom }
		prerequisite = { focus = YEM_Purge_Saudis }
		ai_will_do = {
			factor = 100
		}
		available = {
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Begin_Integration"
			678 = {
				add_core_of = YEM
			}
			995 = {
				add_core_of = YEM
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = YEM_New_Administration
		icon = GFX_preventionofintimidationact
		relative_position_id = YEM_Rassid_Arabia
		x = 0
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Give_Religious_Freedom }
		prerequisite = { focus = YEM_Purge_Saudis }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_completed_focus = YEM_Begin_Integration
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_New_Administration"
			swap_ideas = {
				add_idea = YEM_arabian_integration_administration
				remove_idea = YEM_arabian_integration_2
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Welcome_Rashids_Back
		icon = GFX_goal_Elect_a_Rashidi
		relative_position_id = YEM_Rassid_Arabia
		x = 2
		y = 4
		cost = 5.8
		prerequisite = { focus = YEM_Give_Religious_Freedom }
		prerequisite = { focus = YEM_Purge_Saudis }
		ai_will_do = {
			factor = 100
		}
		available = {
			has_completed_focus = YEM_New_Administration
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		bypass = {
			OR = {
				has_right_democratic_government = yes
				has_left_democratic_government = yes
			}
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Welcome_Rashids_Back"
			swap_ideas = {
				add_idea = YEM_arabian_integration_rashids
				remove_idea = YEM_arabian_integration_administration
			}
			country_event = yemen.34
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = YEM_Complete_Integration
		icon = GFX_goal_generic_council
		relative_position_id = YEM_Rassid_Arabia
		x = 0
		y = 5
		cost = 5.8
		prerequisite = { focus = YEM_New_Administration }
		prerequisite = { focus = YEM_Welcome_Rashids_Back }
		prerequisite = { focus = YEM_Begin_Integration }
		ai_will_do = {
			factor = 100
		}
		available = {
			owns_state = 292 #Nejd
			JBS = {
				exists = no
			}
			SAU = {
				exists = no
			}
			is_subject = no
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus YEM_Complete_Integration"
			if = {
				limit = {
					has_idea = YEM_arabian_integration_arabian_spirit
				}
				swap_ideas = {
					add_idea = YEM_arabian_integration_arabian_spirit
					remove_idea = YEM_arabian_integration_rashids
				}
			}

			if = {
				limit = {
					has_idea = YEM_arabian_integration_administration
				}
				swap_ideas = {
					add_idea = YEM_arabian_integration_arabian_spirit
					remove_idea = YEM_arabian_integration_administration
				}
			}
			every_state = {
				limit = {
					is_core_of = SAU
				}
				add_core_of = YEM
			}
			every_state = {
				limit = {
					is_core_of = JBS
				}
				add_core_of = YEM
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_STABILITY FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL }
	}
}
