focus_tree = {
	id = tripolitania_focus
	country = {
		factor = 0
		modifier = {
			add = 10
			tag = TRP
		}
	}
	default = no
	continuous_focus_position = { x = 50 y = 1000 }

	focus = {
		id = TRP_Republic_Tripolitania2
		icon = GFX_goal_TRP_Republic_Tripolitania

		cost = 7
		x = 4
		y = 0

		ai_will_do = {
			factor = 250
		}
		available = {
			NOT = {
				has_war_with = TUR
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Republic_Tripolitania2"
			country_event = {
				id = trp.10
			}
			add_stability = 0.05
			remove_ideas = TRP_Decentralised_Disorder
		}
	}

	focus = {
		id = TRP_Paramilitary_Youth_Organisation
		icon = GFX_goal_HON_Social_Youth

		cost = 7

		prerequisite = {
			focus = TRP_Republic_Tripolitania2
		}

		available = {
			has_socialist_government = yes
		}

		x = -5
		y = 1
		relative_position_id = TRP_Republic_Tripolitania2

		ai_will_do = {
			factor = 100
		}
		
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNAL_AFFAIRS }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Paramilitary_Youth_Organisation"
			add_manpower = 500
			add_ideas = TRP_Youth_Paramilitaries
		}
	}

	focus = {
		id = TRP_Anti_Confessionalist_Agenda
		icon = GFX_BBR_purge_radicals

		cost = 7

		prerequisite = {
			focus = TRP_Republic_Tripolitania2
		}

		available = {
			OR = {
				has_socialist_government = yes
				has_government = authoritarian_democrat
			}
		}

		mutually_exclusive = {
			focus = TRP_Maintain_Sectarian_Characteristics
		}

		x = -3
		y = 1
		relative_position_id = TRP_Republic_Tripolitania2

		ai_will_do = {
			factor = 50
		}


		
		search_filters = { FOCUS_FILTER_STABILITY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Anti_Confessionalist_Agenda"
			add_ideas = TRP_Anti_Confessionalism
		}
	}

	focus = {
		id = TRP_Dismantle_Zawiyas
		icon = GFX_goal_SOM_Hangash_Privileges

		cost = 7

		prerequisite = {
			focus = TRP_Anti_Confessionalist_Agenda
		}

		available = {
			has_idea = TRP_Anti_Confessionalism
			OR = {
				has_socialist_government = yes
				has_government = authoritarian_democrat
			}
		}

		x = 0
		y = 1
		relative_position_id = TRP_Anti_Confessionalist_Agenda

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_PRODUCTION }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Dismantle_Zawiyas"
			add_opinion_modifier = {
				target = LBA
				modifier = large_decrease
			}
			LBA = {
				add_opinion_modifier = {
					target = TRP
					modifier = large_decrease
				}
			}
			custom_effect_tooltip = tooltip_white_line
			swap_ideas = {
				remove_idea = TRP_Anti_Confessionalism
				add_idea = TRP_Anti_Confessionalism2
			}
			448 = {
				custom_effect_tooltip = lba_blocked_destroyed_tt
				clr_state_flag = lba_zawiya_1
				clr_state_flag = lba_zawiya_2
			}
			273 = {
				custom_effect_tooltip = lba_blocked_destroyed_tt
				clr_state_flag = lba_zawiya_1
				clr_state_flag = lba_zawiya_2
				set_state_flag = blocked_caravan
			}
			LBA = {
				lba_evaluate_volunteers = yes
				lba_recalculate_caravan_total = yes
			}
		}
	}

	focus = {
		id = TRP_Maintain_Sectarian_Characteristics
		icon = GFX_goal_SOM_Unity_And_Progress

		cost = 7

		prerequisite = {
			focus = TRP_Republic_Tripolitania2
		}

		available = {
			OR = {
				has_government = social_conservative
				has_government = authoritarian_democrat
			}
		}

		mutually_exclusive = {
			focus = TRP_Anti_Confessionalist_Agenda
		}

		x = -1
		y = 1
		relative_position_id = TRP_Republic_Tripolitania2

		ai_will_do = {
			factor = 50
		}


		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_INTERNAL_AFFAIRS }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Maintain_Sectarian_Characteristics"
			add_ideas = TRP_Islamic_Constitution
		}
	}

	focus = {
		id = TRP_Inter_Tribal_Dialogue
		icon = GFX_goal_NFE_conquer_tripolitania

		cost = 7

		prerequisite = {
			focus = TRP_Maintain_Sectarian_Characteristics
		}

		available = {
			has_idea = TRP_Islamic_Constitution
			OR = {
				has_government = social_conservative
				has_government = authoritarian_democrat
			}
		}

		x = 0
		y = 1
		relative_position_id = TRP_Maintain_Sectarian_Characteristics

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_INTERNAL_AFFAIRS }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Inter_Tribal_Dialogue"
			swap_ideas = {
				remove_idea = TRP_Islamic_Constitution
				add_idea = TRP_Islamic_Constitution2
			}
		}
	}

	focus = {
		id = TRP_Arabisation_Administration
		icon = GFX_goal_SOM_Pious_State

		cost = 7

		prerequisite = {
			focus = TRP_Republic_Tripolitania2
		}



		x = 1
		y = 1
		relative_position_id = TRP_Republic_Tripolitania2

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNAL_AFFAIRS }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Arabisation_Administration"
			add_political_power = 100
			increase_ruling_party_popularity_by_5 = yes
		}
	}

	focus = {
		id = TRP_Regulate_Bureau_Immigration
		icon = GFX_goal_PAL_Closed_Immigration

		cost = 7

		prerequisite = {
			focus = TRP_Arabisation_Administration
		}



		x = 1
		y = 1
		relative_position_id = TRP_Arabisation_Administration

		ai_will_do = {
			factor = 20
		}


		
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Regulate_Bureau_Immigration"
			add_ideas = TRP_Immigration_Bureau
		}
	}

	focus = {
		id = TRP_State_Building
		icon = GFX_goal_KIV_solid

		cost = 7

		prerequisite = {
			focus = TRP_Arabisation_Administration
		}



		x = 0
		y = 2
		relative_position_id = TRP_Arabisation_Administration

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_PRODUCTION }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_State_Building"
			add_ideas = TRP_State_Building
		}
	}

	focus = {
		id = TRP_Curb_Regional_Authority
		icon = GFX_RUS_Lower_Local_Parliaments

		cost = 7

		prerequisite = {
			focus = TRP_State_Building
		}



		x = -2
		y = 1
		relative_position_id = TRP_State_Building

		ai_will_do = {
			factor = 50
		}


		
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Curb_Regional_Authority"
			add_stability = -0.05
			if = {
				limit = {
					has_idea = TRP_State_Building1
				}
				swap_ideas = {
					remove_idea = TRP_State_Building1
					add_idea = TRP_State_Building2
				}
			}
			else_if = {
				limit = {
					has_idea = TRP_State_Building2
				}
				swap_ideas = {
					remove_idea = TRP_State_Building2
					add_idea = TRP_State_Building3
				}
			}
			else = {
				swap_ideas = {
					remove_idea = TRP_State_Building
					add_idea = TRP_State_Building1
				}
			}
		}
	}

	focus = {
		id = TRP_Diminish_Misrata_Influence
		icon = GFX_goal_CAN_Curb_Senate_Influence

		cost = 7

		prerequisite = {
			focus = TRP_State_Building
		}



		x = 0
		y = 1
		relative_position_id = TRP_State_Building

		ai_will_do = {
			factor = 50
		}


		
		search_filters = { FOCUS_FILTER_INTERNAL_AFFAIRS FOCUS_FILTER_POLITICAL }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Diminish_Misrata_Influence"
			increase_ruling_party_popularity_by_10 = yes
			if = {
				limit = {
					has_idea = TRP_State_Building1
				}
				swap_ideas = {
					remove_idea = TRP_State_Building1
					add_idea = TRP_State_Building2
				}
			}
			else_if = {
				limit = {
					has_idea = TRP_State_Building2
				}
				swap_ideas = {
					remove_idea = TRP_State_Building2
					add_idea = TRP_State_Building3
				}
			}
			else = {
				swap_ideas = {
					remove_idea = TRP_State_Building
					add_idea = TRP_State_Building1
				}
			}
		}
	}

	focus = {
		id = TRP_Abolish_Fezzani_Autonomy
		icon = GFX_goal_HON_Rewrite_Constitution

		cost = 7

		prerequisite = {
			focus = TRP_State_Building
		}

		x = 2
		y = 1
		relative_position_id = TRP_State_Building

		ai_will_do = {
			factor = 60
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Abolish_Fezzani_Autonomy"
			273 = {
				add_extra_state_shared_building_slots = 1
			}
			if = {
				limit = {
					has_idea = TRP_State_Building1
				}
				swap_ideas = {
					remove_idea = TRP_State_Building1
					add_idea = TRP_State_Building2
				}
			}
			else_if = {
				limit = {
					has_idea = TRP_State_Building2
				}
				swap_ideas = {
					remove_idea = TRP_State_Building2
					add_idea = TRP_State_Building3
				}
			}
			else = {
				swap_ideas = {
					remove_idea = TRP_State_Building
					add_idea = TRP_State_Building1
				}
			}
		}
	}

	focus = {
		id = TRP_Development_Bank_Tripoli
		icon = GFX_goal_TEX_banks_for_america

		cost = 7

		prerequisite = {
			focus = TRP_Republic_Tripolitania2
		}



		x = 4
		y = 1
		relative_position_id = TRP_Republic_Tripolitania2

		ai_will_do = {
			factor = 150
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Development_Bank_Tripoli"
			add_tech_bonus = {
				name = TRP_Development_Bank_Tripoli
				category = excavation_tech
				bonus = 0.5
				uses = 1
			}
			add_tech_bonus = {
				name = TRP_Development_Bank_Tripoli
				category = industry
				bonus = 0.5
				uses = 2
			}
		}
	}

	focus = {
		id = TRP_Irrigation_Jabal
		icon = GFX_CRM_Water

		cost = 7

		prerequisite = {
			focus = TRP_Development_Bank_Tripoli
		}



		x = 0
		y = 1
		relative_position_id = TRP_Development_Bank_Tripoli

		ai_will_do = {
			factor = 150
		}


		
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Irrigation_Jabal"
			add_stability = 0.05
			448 = {
				add_extra_state_shared_building_slots = 1
			}
		}
	}

	focus = {
		id = TRP_Agricultural_Processing_Industry
		icon = GFX_goal_AUS_recovery_food

		cost = 7

		prerequisite = {
			focus = TRP_Irrigation_Jabal
		}



		x = 0
		y = 2
		relative_position_id = TRP_Development_Bank_Tripoli

		ai_will_do = {
			factor = 300
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Agricultural_Processing_Industry"
			448 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
				}
			}
		}
	}

	focus = {
		id = TRP_Misrata_Munition_Factory
		icon = GFX_goal_POL_Munitions_Districts

		cost = 7

		prerequisite = {
			focus = TRP_Development_Bank_Tripoli
		}
		prerequisite = {
			focus = TRP_Shuffle_Military_Cabinet
		}



		x = 2
		y = 1
		relative_position_id = TRP_Development_Bank_Tripoli

		ai_will_do = {
			factor = 300
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Misrata_Munition_Factory"
			448 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
				}
			}
		}
	}

	focus = {
		id = TRP_Standardise_Equipment
		icon = GFX_goal_OTT_arms_purchase

		cost = 7

		prerequisite = {
			focus = TRP_Misrata_Munition_Factory
		}



		x = 0
		y = 1
		relative_position_id = TRP_Misrata_Munition_Factory

		ai_will_do = {
			factor = 30
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Standardise_Equipment"
			add_tech_bonus = {
				name = TRP_Standardise_Equipment
				category = infantry_weapons
				bonus = 1
				uses = 1
			}
		}
	}

	focus = {
		id = TRP_Shuffle_Military_Cabinet
		icon = GFX_goal_generic_army_high_command

		cost = 7
		x = 11
		y = 0

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_ARMY_BONUS }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Shuffle_Military_Cabinet"
			army_experience = 50
			custom_effect_tooltip = trp_general_shuffle
			hidden_effect = {
				create_corps_commander = { #Auto-Generated
					name = "Salim B. Abd al-Nabi"
					portrait_path = "gfx/leaders/LBA/Portrait_LBA_Yousaf_Borahil_Al_Msmare.png"
					traits = {
						guerilla_fighter
						desert_fox
					}
					skill = 2
					attack_skill = 3
					defense_skill = 1
					planning_skill = 1
					logistics_skill = 2
				}
			}
		}
	}

	focus = {
		id = TRP_Limited_Conscription
		icon = GFX_goal_LPD_black_conscription

		cost = 7

		prerequisite = {
			focus = TRP_Shuffle_Military_Cabinet
		}

		x = 0
		y = 1
		relative_position_id = TRP_Shuffle_Military_Cabinet

		ai_will_do = {
			factor = 50
		}


		
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_PRODUCTION }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Limited_Conscription"
			add_manpower = 10000
			add_equipment_to_stockpile = {
				type = infantry_equipment_0
				amount = 1000
				producer = TUR
			}
			increase_conscription = yes
		}
	}

	focus = {
		id = TRP_Ottoman_Military_Doctrine
		icon = GFX_goal_OTT_hunting

		cost = 7

		prerequisite = {
			focus = TRP_Shuffle_Military_Cabinet
		}



		x = 1
		y = 2
		relative_position_id = TRP_Shuffle_Military_Cabinet

		ai_will_do = {
			factor = 30
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Ottoman_Military_Doctrine"
			add_tech_bonus = {
				name = TRP_Ottoman_Military_Doctrine
				category = land_doctrine
				bonus = 1
				uses = 2
			}
		}
	}

	focus = {
		id = TRP_Strengthen_Turkish_Ties
		icon = GFX_goal_ottoman

		cost = 7

		available = {
			has_government = authoritarian_democrat
			is_subject = no
			NOT = { has_war_with = TUR }
			TUR = { is_subject = no }
		}

		mutually_exclusive = {
			focus = TRP_Anti_Colonial_Committee
		}
		mutually_exclusive = {
			focus = TRP_Tide_Pan_Arabism
		}

		x = 15
		y = 0

		ai_will_do = {
			factor = 300
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_PRODUCTION }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Strengthen_Turkish_Ties"
			TUR = {
				country_event = trp.1
				add_opinion_modifier = {
					target = TRP
					modifier = small_increase
				}
			}
			if = {
				limit = {
					TUR = {
						is_ai = yes
						owns_state = 450
					}
				}
				transfer_state = 450
			}
			custom_effect_tooltip = tooltip_white_line
			add_tech_bonus = {
				name = TRP_Strengthen_Turkish_Ties
				category = infantry_weapons
				bonus = 1
				uses = 2
			}
			add_tech_bonus = {
				name = TRP_Strengthen_Turkish_Ties
				category = land_doctrine
				bonus = 1.5
				uses = 2
			}
			custom_effect_tooltip = tooltip_white_line
			add_equipment_to_stockpile = {
				type = infantry_equipment_0
				amount = 1000
				producer = TUR
			}
			add_equipment_to_stockpile = {
				type = artillery_equipment_1
				amount = 150
				producer = TUR
			}
			add_equipment_to_stockpile = {
				type = small_plane_airframe
				amount = 10
				producer = TUR
			}
		}
	}

	focus = {
		id = TRP_Kouloughli_Cultural_Program
		icon = GFX_goal_SOM_Anti_Tribalism

		cost = 7

		prerequisite = {
			focus = TRP_Strengthen_Turkish_Ties
		}

		available = {
			has_government = authoritarian_democrat
		}

		x = -1
		y = 1
		relative_position_id = TRP_Strengthen_Turkish_Ties

		ai_will_do = {
			factor = 50
		}


		
		search_filters = { FOCUS_FILTER_STABILITY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Kouloughli_Cultural_Program"
			add_stability = 0.05
			add_research_slot_until_five = yes
		}
	}

	focus = {
		id = TRP_Military_Mission
		icon = GFX_goal_AFG_ottoman_ex_caucasus_war

		cost = 7

		prerequisite = {
			focus = TRP_Strengthen_Turkish_Ties
		}

		available = {
			has_government = authoritarian_democrat
			NOT = { has_war_with = TUR }
			TUR = { is_subject = no }
		}

		x = 1
		y = 1
		relative_position_id = TRP_Strengthen_Turkish_Ties

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_ARMY_BONUS }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Military_Mission"
			add_ideas = ott_army_training
		}
	}

	focus = {
		id = TRP_Turko-Tripolitanian_Economic_Union
		icon = GFX_goal_OTT_Years_of_Progress

		cost = 7

		prerequisite = {
			focus = TRP_Strengthen_Turkish_Ties
		}

		available = {
			has_government = authoritarian_democrat
			NOT = { has_war_with = TUR }
			TUR = { is_subject = no }
		}

		x = 0
		y = 2
		relative_position_id = TRP_Strengthen_Turkish_Ties

		ai_will_do = {
			factor = 300
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_PRODUCTION FOCUS_FILTER_RESEARCH }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Turko-Tripolitanian_Economic_Union"
			add_ideas = TRP_Economic_Union
			custom_effect_tooltip = tooltip_white_line
			TUR = {
				country_event = trp.2
				add_ideas = TRP_Economic_Union_ott
			}
		}
	}

	focus = {
		id = TRP_Anti_Colonial_Committee
		icon = GFX_goal_INS_focus_islamic_socialism

		cost = 7

		available = {
			NOT = {
				has_war_with = TUR
			}
			has_socialist_government = yes
			FRA = {
				has_completed_focus = FRA_arab_committee
			}
		}

		mutually_exclusive = {
			focus = TRP_Strengthen_Turkish_Ties
		}
		mutually_exclusive = {
			focus = TRP_Tide_Pan_Arabism
		}

		x = 18
		y = 0

		ai_will_do = {
			factor = 1000
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_PRODUCTION }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Anti_Colonial_Committee"
			every_country = {
				limit = {
					is_in_faction_with = FRA
				}
				country_event = trp.3
				add_opinion_modifier = {
					target = TRP
					modifier = small_increase
				}
			}
			custom_effect_tooltip = tooltip_white_line
			add_tech_bonus = {
				name = TRP_Anti_Colonial_Committee
				category = air_equipment
				bonus = 1
				uses = 2
			}
			add_tech_bonus = {
				name = TRP_Anti_Colonial_Committee
				category = land_doctrine
				bonus = 1.5
				uses = 2
			}
			custom_effect_tooltip = tooltip_white_line
			add_equipment_to_stockpile = {
				type = infantry_equipment_0
				amount = 2000
				producer = FRA
			}
			add_equipment_to_stockpile = {
				type = light_tank_equipment_1
				amount = 100
				producer = FRA
			}
			add_equipment_to_stockpile = {
				type = small_plane_airframe
				amount = 75
				producer = FRA
			}
		}
	}

	focus = {
		id = TRP_Phalanstere
		icon = GFX_RUS_Internationalists

		cost = 7

		prerequisite = {
			focus = TRP_Anti_Colonial_Committee
		}

		available = {
			has_socialist_government = yes
		}

		x = 0
		y = 1
		relative_position_id = TRP_Anti_Colonial_Committee

		ai_will_do = {
			factor = 1000
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Phalanstere"
			add_research_slot = 1
			FRA = {
				country_event = trp.4
			}
		}
	}

	focus = {
		id = TRP_Industrial_Assistance
		icon = GFX_RUS_Cautious_Industrialization

		cost = 7

		prerequisite = {
			focus = TRP_Phalanstere
		}

		available = {
			has_socialist_government = yes
			
		}

		x = -1
		y = 1
		relative_position_id = TRP_Phalanstere

		ai_will_do = {
			factor = 1000
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Industrial_Assistance"
			448 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
				}
			}
		}
	}

	focus = {
		id = TRP_Tripolitanian_Railroads
		icon = GFX_thenorthernraillink

		cost = 7

		prerequisite = {
			focus = TRP_Industrial_Assistance
		}

		available = {
			has_socialist_government = yes
			
		}

		x = -1
		y = 3
		relative_position_id = TRP_Phalanstere

		ai_will_do = {
			factor = 30
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Tripolitanian_Railroads"
			448 = {
				add_building_construction = {
					type = infrastructure
					level = 2
				}
			}
			build_railway = {
				path = { 1149 1189 12039 }
			}
		}
	}

	focus = {
		id = TRP_Arms_Acquisition
		icon = GFX_goal_FRA_syndicalistmilitarism

		cost = 7

		prerequisite = {
			focus = TRP_Phalanstere
		}

		available = {
			has_socialist_government = yes
		}

		x = 1
		y = 1
		relative_position_id = TRP_Phalanstere

		ai_will_do = {
			factor = 1000
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Arms_Acquisition"
			add_offsite_building = {
				type = arms_factory
				level = 2
			}
		}
	}

	focus = {
		id = TRP_Join_Internationale
		icon = GFX_goal_AUS_paris_london_envoy

		cost = 7

		prerequisite = {
			focus = TRP_Phalanstere
		}

		available = {
			has_socialist_government = yes
			NOT = {
				is_in_faction = yes
			}
			FRA = {
				has_socialist_government = yes
				is_faction_leader = yes
				NOT = {
					has_war_with = TRP
				}
			}
		}

		x = 0
		y = 2
		relative_position_id = TRP_Phalanstere

		ai_will_do = {
			factor = 1000
		}



		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Join_Internationale"
			FRA = {
				country_event = trp.5
			}
		}
		bypass = {
			is_in_faction_with = FRA
		}
	}

	focus = {
		id = TRP_Tide_Pan_Arabism
		icon = GFX_goal_Unite_Arabia

		cost = 7

		available = {
			NOT = {
				has_war_with = TUR
			}
			is_subject = no
			has_socialist_government = no
		}

		mutually_exclusive = {
			focus = TRP_Strengthen_Turkish_Ties
		}
		mutually_exclusive = {
			focus = TRP_Anti_Colonial_Committee
		}

		x = 21
		y = 0

		ai_will_do = {
			factor = 500
			modifier = {
				factor = 0.1
				has_socialist_government = yes
			}
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_PRODUCTION }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Tide_Pan_Arabism"
			every_country = {
				limit = {
					OR = {
						is_in_faction_with = EGY
						tag = EGY
					}
				}
				add_opinion_modifier = {
					target = TRP
					modifier = small_increase
				}
			}
			custom_effect_tooltip = tooltip_white_line
			add_tech_bonus = {
				name = TRP_Tide_Pan_Arabism
				category = infantry_weapons
				bonus = 1
				uses = 2
			}
			add_tech_bonus = {
				name = TRP_Tide_Pan_Arabism
				category = land_doctrine
				bonus = 1.5
				uses = 2
			}
			custom_effect_tooltip = tooltip_white_line
			add_equipment_to_stockpile = {
				type = infantry_equipment_0
				amount = 1000
				producer = EGY
			}
			add_equipment_to_stockpile = {
				type = armored_car_equipment_1
				amount = 150
				producer = EGY
			}
			add_equipment_to_stockpile = {
				type = small_plane_airframe
				amount = 10
				producer = EGY
			}
		}
	}

	focus = {
		id = TRP_Arab_Educators
		icon = GFX_goal_OTT_Islamic_Education

		cost = 7

		prerequisite = {
			focus = TRP_Tide_Pan_Arabism
		}



		x = -1
		y = 1
		relative_position_id = TRP_Tide_Pan_Arabism

		ai_will_do = {
			factor = 200
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Arab_Educators"
			add_research_slot = 1
		}
	}

	focus = {
		id = TRP_Cyrenaican_Cooperation
		icon = GFX_EGY_Liberate_Tripolitania

		cost = 7

		prerequisite = {
			focus = TRP_Tide_Pan_Arabism
		}

		available = {
			NOT = {
				has_completed_focus = TRP_Anti_Confessionalist_Agenda
			}
		}

		x = 1
		y = 1
		relative_position_id = TRP_Tide_Pan_Arabism

		ai_will_do = {
			factor = 500
		}


		
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_RESISTANCE }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Cyrenaican_Cooperation"
			LBA = {
				add_opinion_modifier = {
					target = TRP
					modifier = large_increase
				}
			}
			custom_effect_tooltip = tooltip_white_line
			add_ideas = TRP_Cooperation_Senussi
		}
	}

	focus = {
		id = TRP_Join_Cairo_Pact
		icon = GFX_EGY_Third_Arab_Congress

		cost = 7

		prerequisite = {
			focus = TRP_Cyrenaican_Cooperation
		}

		available = {
			NOT = {
				is_in_faction = yes
			}
			EGY = {
				NOT = {
					has_war_with = TRP
				}
				is_faction_leader = yes
			}
		}

		x = 0
		y = 2
		relative_position_id = TRP_Tide_Pan_Arabism

		ai_will_do = {
			factor = 500
		}



		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Join_Cairo_Pact"
			EGY = {
				country_event = trp.7
			}
		}
		bypass = {
			is_in_faction_with = EGY
		}
	}

	focus = {
		id = TRP_Egyptian_Libyan_Union
		icon = GFX_goal_TRP_Egyptian_Union

		cost = 7

		prerequisite = {
			focus = TRP_Join_Cairo_Pact
		}

		available = {
			has_government = national_populist
			EGY = {
				NOT = {
					has_war_with = TRP
				}
				is_subject = no
			}
		}

		x = 0
		y = 3
		relative_position_id = TRP_Tide_Pan_Arabism

		ai_will_do = {
			factor = 1000
		}



		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Egyptian_Libyan_Union"
			EGY = {
				country_event = trp.9
			}
		}
	}

	focus = {
		id = TRP_Trans_Saharan_Trade
		icon = GFX_goal_OTT_camels

		cost = 7

		prerequisite = {
			focus = TRP_Cyrenaican_Cooperation
		}

		available = {
			LBA = {
				has_opinion = {
					target = TRP
					value > 30
				}
				has_war = no
			}
		}

		x = 2
		y = 2
		relative_position_id = TRP_Tide_Pan_Arabism

		ai_will_do = {
			factor = 200
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Trans_Saharan_Trade"
			add_offsite_building = {
				type = industrial_complex
				level = 1
			}
			add_offsite_building = {
				type = arms_factory
				level = 1
			}
		}
	}

	#################
	# Post-War Tree #
	#################

	focus = {
		id = TRP_Unification_Libya
		icon = GFX_EGY_Liberate_Tripolitania

		cost = 2

		available = {
			is_subject = no
			can_declare_war_on = 451.owner
			controls_all_owned_states = yes
			NOT = {
				owns_state = 451
			}
		}

		x = 19
		y = 5

		will_lead_to_war_with = LBA
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 10
				has_war = yes
			}
		}
		bypass = {
			owns_state = 451
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Unification_Libya"
			declare_war_on = { type = annex_everything target = 451.owner }
			if = {
				limit = {
					NOT = {
						450 = {
							is_core_of = ROOT
						}
					}
				}
				450 = { add_core_of = ROOT }
			}
			if = {
				limit = {
					NOT = {
						451 = {
							is_core_of = ROOT
						}
					}
				}
				451 = { add_core_of = ROOT }
			}
			if = {
				limit = {
					NOT = {
						663 = {
							is_core_of = ROOT
						}
					}
				}
				663 = { add_core_of = ROOT }
			}
			if = {
				limit = {
					NOT = {
						1009 = {
							is_core_of = ROOT
						}
					}
				}
				1009 = { add_core_of = ROOT }
			}
		}
	}

	focus = {
		id = TRP_Maintain_Tribal_Organisation
		icon = GFX_goal_SOM_Clan_Conservatism

		cost = 7

		prerequisite = {
			focus = TRP_Federation
		}



		mutually_exclusive = {
			focus = TRP_Libyan_Army
		}

		x = -1
		y = 2
		relative_position_id = TRP_Unification_Libya

		ai_will_do = {
			factor = 100
		}
		
		search_filters = { FOCUS_FILTER_ARMY_BONUS }



		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Maintain_Tribal_Organisation"
			add_ideas = LBA_tribal_organisation
			add_war_support = 0.05
		}
	}

	focus = {
		id = TRP_Libyan_Army
		icon = GFX_goal_AFG_ottoman_ex_caucasus_war

		cost = 7

		prerequisite = {
			focus = TRP_Unitary_State
		}



		mutually_exclusive = {
			focus = TRP_Maintain_Tribal_Organisation
		}

		x = 1
		y = 2
		relative_position_id = TRP_Unification_Libya

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Libyan_Army"
			add_doctrine_cost_reduction = {
				name = LBA_Libyan_Army
				cost_reduction = 1
				uses = 2
				category = land_doctrine
			}
			add_tech_bonus = {
				name = LBA_Libyan_Army
				category = motorized_equipment
				bonus = 1
				uses = 1
			}
			add_tech_bonus = {
				name = LBA_Libyan_Army
				category = air_equipment
				bonus = 0.5
				uses = 2
			}
		}
	}

	focus = {
		id = TRP_Redistribute_Ottoman_Equipment
		icon = GFX_goal_OTT_arms_purchase

		cost = 7

		prerequisite = {
			focus = TRP_Maintain_Tribal_Organisation
			focus = TRP_Libyan_Army
		}



		x = 1
		y = 1
		relative_position_id = TRP_Maintain_Tribal_Organisation

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_PRODUCTION }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Redistribute_Ottoman_Equipment"
			add_equipment_to_stockpile = {
				type = infantry_equipment_0
				amount = 3000
				producer = TUR
			}
			add_equipment_to_stockpile = {
				type = artillery_equipment_1
				amount = 200
				producer = TUR
			}
			add_equipment_to_stockpile = {
				type = support_equipment_1
				amount = 300
				producer = TUR
			}
			add_equipment_to_stockpile = {
				type = small_plane_airframe
				amount = 10
				producer = TUR
			}
		}
	}

	focus = {
		id = TRP_Expand_Zawiya_Network
		icon = GFX_goal_SOM_True_Islamic_Republicanism

		cost = 7

		prerequisite = {
			focus = TRP_Redistribute_Ottoman_Equipment
		}



		x = 1
		y = 2
		relative_position_id = TRP_Maintain_Tribal_Organisation

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Expand_Zawiya_Network"
			add_war_support = 0.10
			WAD = {
				add_offsite_building = {
					type = arms_factory
					level = 1
				}
			}
			TUA = {
				add_offsite_building = {
					type = arms_factory
					level = 1
				}
			}
			TUN = {
				add_offsite_building = {
					type = arms_factory
					level = 1
				}
			}
		}
	}

	focus = {
		id = TRP_Federation
		icon = GFX_SAF_race_council

		cost = 7

		prerequisite = {
			focus = TRP_Unification_Libya
		}

		available = {
			controls_all_owned_states = yes
			owns_state = 448
			owns_state = 273
			owns_state = 450
		}

		mutually_exclusive = {
			focus = TRP_Unitary_State
		}

		x = -4
		y = 1
		relative_position_id = TRP_Unification_Libya

		ai_will_do = {
			factor = 100
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Federation"
			add_ideas = LBA_federation
			if = {
				limit = {
					NOT = {
						has_cosmetic_tag = LBA_SENUSSY
					}
				}
				set_cosmetic_tag = LBA_libya_federation
			}
			ROOT = {
				every_owned_state = {
					limit = {
						is_claimed_by = LBA
					}
					remove_claim_by = LBA
				}
				every_owned_state = {
					limit = {
						is_core_of = LBA
					}
					remove_core_of = LBA
				}
			}
		}
	}

	focus = {
		id = TRP_Legislative_Councils_of_the_Provinces
		icon = GFX_goal_PRU_legislative_palace

		cost = 7

		prerequisite = {
			focus = TRP_Federation
		}

		available = {
			has_idea = LBA_federation
		}

		x = -1
		y = 1
		relative_position_id = TRP_Federation

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_POLITICAL }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Legislative_Councils_of_the_Provinces"
			swap_ideas = {
				remove_idea = LBA_federation
				add_idea = LBA_federation2
			}
			add_research_slot = 1
		}
	}

	focus = {
		id = TRP_Province_Fezzan
		icon = GFX_CRM_Fruit

		cost = 7

		prerequisite = {
			focus = TRP_Legislative_Councils_of_the_Provinces
		}

		x = -3
		y = 2
		relative_position_id = TRP_Federation

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Province_Fezzan"
			273 = {
				add_extra_state_shared_building_slots = 1
			}
		}
	}

	focus = {
		id = TRP_Republic_Tripolitania
		icon = GFX_goal_USA_Wealth_Ceiling

		cost = 7

		prerequisite = {
			focus = TRP_Legislative_Councils_of_the_Provinces
		}

		x = -1
		y = 2
		relative_position_id = TRP_Federation

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Republic_Tripolitania"
			448 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
				}
			}
		}
	}

	focus = {
		id = TRP_Emirate_Cyrenaica
		icon = GFX_goal_SOM_Clan_Amends

		cost = 7

		prerequisite = {
			focus = TRP_Legislative_Councils_of_the_Provinces
		}

		x = 1
		y = 2
		relative_position_id = TRP_Federation

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_MANPOWER }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Emirate_Cyrenaica"
			army_experience = 30
			add_manpower = 15000
		}
	}

	focus = {
		id = TRP_Curb_Federal_Excecutive_Power
		icon = GFX_goal_MEX_Maintain_the_3_branches

		cost = 7

		prerequisite = {
			focus = TRP_Province_Fezzan
		}
		prerequisite = {
			focus = TRP_Republic_Tripolitania
		}
		prerequisite = {
			focus = TRP_Emirate_Cyrenaica
		}



		x = -1
		y = 3
		relative_position_id = TRP_Federation

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_STABILITY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Curb_Federal_Excecutive_Power"
			swap_ideas = {
				remove_idea = LBA_federation2
				add_idea = LBA_federation3
			}
		}
	}

	focus = {
		id = TRP_Enforce_Regionalism
		icon = GFX_RUS_Decentralize_Power

		cost = 7

		prerequisite = {
			focus = TRP_Federation
		}



		x = 1
		y = 1
		relative_position_id = TRP_Federation

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_STABILITY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Enforce_Regionalism"
			add_stability = 0.05
		}
	}

	focus = {
		id = TRP_Unitary_State
		icon = GFX_goal_CZE_unite_the_right

		cost = 7

		prerequisite = {
			focus = TRP_Unification_Libya
		}

		available = {
			controls_all_owned_states = yes
			owns_state = 448
			owns_state = 273
			owns_state = 450
		}

		mutually_exclusive = {
			focus = TRP_Federation
		}

		x = 4
		y = 1
		relative_position_id = TRP_Unification_Libya

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Unitary_State"
			add_ideas = LBA_unitary
			if = {
				limit = {
					NOT = {
						has_cosmetic_tag = LBA_SENUSSY
					}
				}
				set_cosmetic_tag = LBA_libya_state
			}
		}
	}

	focus = {
		id = TRP_Strengthen_Diwan
		icon = GFX_goal_NFA_empower_parliament

		cost = 7

		prerequisite = {
			focus = TRP_Unitary_State
		}



		x = -1
		y = 1
		relative_position_id = TRP_Unitary_State

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_INTERNAL_AFFAIRS }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Strengthen_Diwan"
			increase_ruling_party_popularity_by_10 = yes
			add_war_support = 0.05
		}
	}

	focus = {
		id = TRP_Libyan_National_Congress
		icon = GFX_goal_CAL_council

		cost = 7

		prerequisite = {
			focus = TRP_Unitary_State
		}



		x = 1
		y = 1
		relative_position_id = TRP_Unitary_State

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_STABILITY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Libyan_National_Congress"
			swap_ideas = {
				remove_idea = LBA_unitary
				add_idea = LBA_unitary2
			}
		}
	}

	focus = {
		id = TRP_Redraw_Provincial_Borders
		icon = GFX_goal_NFA_Empire_Provinces_Not_Departments

		cost = 7

		prerequisite = {
			focus = TRP_Libyan_National_Congress
		}

		x = 2
		y = 2
		relative_position_id = TRP_Unitary_State

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Redraw_Provincial_Borders"
			swap_ideas = {
				remove_idea = LBA_unitary2
				add_idea = LBA_unitary3
			}
		}
	}

	focus = {
		id = TRP_Bank_of_Tripoli
		icon = GFX_goal_TEX_banks_for_america

		cost = 7

		prerequisite = {
			focus = TRP_Libyan_National_Congress
		}

		x = 0
		y = 2
		relative_position_id = TRP_Unitary_State

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Bank_of_Tripoli"
			add_tech_bonus = {
				name = LBA_Bank_of_Tripoli
				category = construction_tech
				bonus = 1
				uses = 1
			}
			448 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
				}
			}
		}
	}

	focus = {
		id = TRP_Reinvigorate_Tripolitanian_Construction
		icon = GFX_BBR_build_industries

		cost = 7

		prerequisite = {
			focus = TRP_Bank_of_Tripoli
		}

		x = 1
		y = 3
		relative_position_id = TRP_Unitary_State

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Reinvigorate_Tripolitanian_Construction"
			448 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
				}
				add_building_construction = {
					type = infrastructure
					level = 1
				}
			}
		}
	}

	focus = {
		id = TRP_Combat_Illiteracy
		icon = GFX_goal_HON_Education_Research

		cost = 7

		prerequisite = {
			focus = TRP_Bank_of_Tripoli
		}
		prerequisite = {
			focus = TRP_Strengthen_Diwan
		}

		x = -1
		y = 3
		relative_position_id = TRP_Unitary_State

		ai_will_do = {
			factor = 100
		}


		
		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus TRP_Combat_Illiteracy"
			add_research_slot = 1
		}
	}
	
}
