focus_tree = {
	id = MAG_focus
	country = {
		factor = 0
		modifier = {
			add = 10
			tag = MAG
		}
	}
	continuous_focus_position = { x = 225 y = 1 }
	#Focus for The Model Colony
	focus = {
		id = MAG_themodelcolony
		icon = GFX_themodelcolony
		x = 15
		y = 0
		cost = 5.8
		available_if_capitulated = no
		ai_will_do = {
			factor = 250
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_themodelcolony"
			add_stability = 0.1
			country_event = mag.26
			hidden_effect = {
				MAF = {
					country_event = mag.26
				}
				GER = {
					country_event = mag.26
				}
			}
		}
	}

	#Focus for The General-gouverneur Departs
	focus = {
		id = MAG_thegeneralgouverneurdeparts
		icon = GFX_thegeneralgouverneurdeparts
		x = 7
		y = 1
		available = {
			custom_trigger_tooltip = {
				tooltip = MAG_Heydrich_is_gone
				OR = {
					MAF = {
						has_completed_focus = MAF_theendofheydrich
					}
					has_global_flag = MAF_collapse
					MAF = {
						has_country_leader = {
							name = "Reinhard Heydrich"
							ruling_only = yes
						}
					}
				}
			}
			NOT = {
				has_completed_focus = MAG_the_coup
			}
		}
		cost = 1
		available_if_capitulated = no
		prerequisite = { focus = MAG_themodelcolony }
		ai_will_do = {
			factor = 1000
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_thegeneralgouverneurdeparts"
			country_event = mag.1
		}
	}

	focus = {
		id = MAG_riceproduction
		icon = GFX_expandriceproduction
		x = 10
		y = 1

		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_themodelcolony }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_restorecotiers"
			1178 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}			
		}
	}
	
	focus = {
		id = MAG_restorecotiers
		icon = GFX_Generic_Checkmate
		x = 12
		y = 1

		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_themodelcolony }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_restorecotiers"
			add_war_support = 0.05
			add_stability = 0.05
		}
	}
	
	focus = {
		id = MAG_isleeparses
		icon = GFX_lakeinfrastructure
		x = 14
		y = 1

		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_themodelcolony }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_isleeparses"
			add_stability = 0.03
			navy_experience = 20
		}
	}
	
	focus = {
		id = MAG_raildev
		icon = GFX_focusonthedreyfusline
		x = 16
		y = 1

		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_themodelcolony }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_raildev"
			build_railway = {
				level = 2
				start_province = 14365
				target_province = 14376
			}
			add_stability = 0.02
				add_tech_bonus = {
				bonus = 0.5
				uses = 2
				category = excavation_tech
			}	
		}
	}

	
	focus = {
		id = MAG_develop_toliara_facilities
		icon = GFX_Focus_Cruiseliner
		x = 15
		y = 2

		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_isleeparses focus = MAG_raildev }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_develop_toliara_facilities"
			add_tech_bonus = {
				name = MAG_develop_toliara_facilities
				bonus = 0.5
				uses = 2
				category = industry
			}
			2200 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = naval_base
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
		id = MAG_sisalproduction
		icon = GFX_acreageexpansion
		x = 13
		y = 2

		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_restorecotiers focus = MAG_isleeparses }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_sisalproduction"
			add_offsite_building = { type = industrial_complex level = 1 }
			add_offsite_building = { type = industrial_complex level = 1 }
		}
	}

	focus = {
		id = MAG_complete_pangalanes
		icon = GFX_Expand_Trade_Fleet
		x = 9
		y = 2

		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_riceproduction focus = MAG_restorecotiers}
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_sisalproduction"
			country_event = magfla.21
			1178 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			hidden_effect = {
				MAF = {
					country_event = magfla.21
				}
				GER = {
					country_event = magfla.21
				}
			}
		}
	}
	
	focus = {
		id = MAG_potemkin_unions
		icon = GFX_demandcompaniesonshore
		x = 11
		y = 2
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_riceproduction focus = MAG_restorecotiers}
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_potemkin_unions"
			add_stability = 0.05
			add_war_support = 0.05
		}
	}
	
	#Focus for The Future Frozen
	focus = {
		id = MAG_thefuturefrozen
		icon = GFX_thefuturefrozen
		x = 7
		y = 2
		cost = 2
		available = {
			has_global_flag = MAF_collapse
			NOT = {
				has_completed_focus = MAG_the_coup
			}
		}
		available_if_capitulated = no
		prerequisite = { focus = MAG_thegeneralgouverneurdeparts }
		ai_will_do = {
			factor = 1000
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_thefuturefrozen"
			country_event = mag.3
		}
	}
	#Focus for The Solution of Aron
	focus = {
		id = MAG_thesolutionofaron
		icon = GFX_thesolutionofaron
		x = 10
		y = 3
		available = {
			custom_trigger_tooltip = {
				always = no
				tooltip = MAG_unlock_tooltip
			}
		}
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_thefuturefrozen focus = MAG_the_coup }
		mutually_exclusive = { 
			focus = MAG_theauspiceofrabearivelo 
		}
		mutually_exclusive = { 
			focus = MAG_thestrengthofdelarocque 
		}
		
		mutually_exclusive = { 
			focus = MAG_thepanicofmaurice 
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_thesolutionofaron"
			hidden_effect = {
				create_country_leader = {
					name = "Raymond Aron"
					desc = "POLITICS_ARON_DESC"
					picture = "gfx/leaders/MAG/MAG_Raymond_Aron.png"
					expire = "1.1.1"
					ideology = moderate_authoritarianism_subtype
		
				}
				set_cosmetic_tag = MAG_Israel
			}
		custom_effect_tooltip = MAG_Israel_tt
		}
		ai_will_do = {
			factor = 100
		}
	}
	
	#Focus for The Madagaskar Plan
	focus = {
		id = MAG_themadagaskarplan
		icon = GFX_themadagaskarplan
		x = 10
		y = 6
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_anewbeginning }
		prerequisite = { focus = MAG_findpeaceinzion }
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_themadagaskarplan"
			swap_ideas = {
				remove_idea = MAG_Jewish_Settlement
				add_idea = MAG_Jewish_Homeland
			}
			country_event = mag.15
			load_focus_tree = African_Generic_Democracy
		}
	}
	
	#Focus for Find Peace in Zion
	focus = {
		id = MAG_findpeaceinzion
		icon = GFX_findpeaceinzion
		x = 11
		y = 5
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_unitethesettlers }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_findpeaceinzion"
			add_stability = 0.1
			add_war_support = 0.05
			country_event = mag.14
		}
	}

	#Focus for Unite the Settlers
	focus = {
		id = MAG_unitethesettlers
		icon = GFX_unitethesettlers
		x = 11
		y = 4
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_thesolutionofaron }
		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_unitethesettlers"
			remove_ideas = MAG_Massive_Disunity
			add_popularity = {
				popularity = 0.1
				ideology = social_conservative
			}
		}
	}
	
	focus = {
		id = MAG_europeanties
		icon = GFX_enshrinebatakarights
		x = 9
		y = 4
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_thesolutionofaron }
		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_europeanties"
			add_stability = 0.05
			add_war_support = 0.1
		}
	}
	
	
	focus = {
		id = MAG_anewbeginning
		icon = GFX_improvethegreateastroad
		x = 9
		y = 5
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_europeanties }
		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_unitethesettlers"
			543 = {
			add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			add_political_power = 30
		}
	}
	
	#Focus for The Panic of Maurice
	focus = {
		id = MAG_thepanicofmaurice
		icon = GFX_thepanicofmaurice
		x = 14
		y = 3
		cost = 5.8
		available = {
			custom_trigger_tooltip = {
				always = no
				tooltip = MAG_unlock_tooltip
			}
		}
		available_if_capitulated = no
		prerequisite = { focus = MAG_thefuturefrozen }
		mutually_exclusive = { 
			focus = MAG_thestrengthofdelarocque 
		}
		mutually_exclusive = { 
			focus = MAG_theauspiceofrabearivelo 
		}
		mutually_exclusive = { 
			focus = MAG_thesolutionofaron 
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_thesolutionofaron"
			custom_effect_tooltip = MAG_Maurice_tt
			country_event = mag.16
		}
		ai_will_do = {
			factor = 100
		}
	}

	#Focus for Unite the Schutztruppen
	focus = {
		id = MAG_unitetheschutztruppen
		icon = GFX_unitetheschutztruppen
		x = 13
		y = 4
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_thepanicofmaurice }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_unitetheschutztruppen"
			remove_ideas = MAG_Massive_Disunity
			add_political_power = 30
		}
	}
	
	focus = {
		id = MAG_maroantsetra
		icon = GFX_expandheavyindustry
		x = 15
		y = 4
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_thepanicofmaurice }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_maroantsetra"
			543 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			add_stability = -0.02
		}
	}
	
	focus = {
		id = MAG_military_reforms
		icon = GFX_cooptnativeassociations
		x = 15
		y = 5
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_maroantsetra }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_unitetheschutztruppen"
			add_stability = 0.1
			increase_ruling_party_popularity_by_5 = yes
		}
	}

	#Focus for Approach all Parties
	focus = {
		id = MAG_approachallparties
		icon = GFX_approachallparties
		x = 13
		y = 5
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_unitetheschutztruppen }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_approachallparties"
			add_stability = 0.1
			add_political_power = 50
		}
	}

	#Focus for O Heydrich Where Art Thou
	focus = {
		id = MAG_oheydrichwhereartthou
		icon = GFX_oheydrichwhereartthou
		x = 14
		y = 6
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_approachallparties }
		prerequisite = { focus = MAG_military_reforms }
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_approachallparties"
			add_popularity = {
				ideology = social_conservative
				popularity = 0.15
			}
			country_event = {
				id = east_africa_war.16
				days = 5
			}
			country_event = {
				id = mag.17
				days = 12
			}
			load_focus_tree = African_Generic_Democracy
			custom_effect_tooltip = MAG_kill_heydrich
		}
	}
	
	focus = {
		id = MAG_the_coup
		icon = GFX_enhancedlabourmeasures
		x = -3
		y = 2
		cost = 5.8
		available_if_capitulated = no
		available = {
			custom_trigger_tooltip = {
				always = no
				tooltip = MAG_unlock_tooltip
			}
		}
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_the_coup"
			custom_effect_tooltip = unlock_focuses
		}
	}
	
	focus = {
		id = MAG_call_up_reserves
		icon = GFX_Focus_Peasant_Rebellion
		x = -3
		y = 3
		cost = 5
		available_if_capitulated = no
		prerequisite = { focus = MAG_the_coup }
		available = {
			OR = {
				has_war_with = GER
				has_war_with = MAF
			}
		}
		ai_will_do = {
			factor = 500
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_call_up_reserves"
			add_war_support = 0.1
			hidden_effect = {
				load_oob = MAG_rising
			}
			custom_effect_tooltip = mag_rising_tooltip
		}
	}
	
	focus = {
		id = MAG_training_up
		icon = GFX_Focus_Examine_Foreign_Small_Arms
		x = -3
		y = 4
		cost = 5
		available_if_capitulated = no
		prerequisite = { focus = MAG_call_up_reserves }
		available = {
			has_war = yes
		}
		ai_will_do = {
			factor = 500
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_training_up"
			add_doctrine_cost_reduction = {
				name = MAG_training_up
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			add_tech_bonus = {
				name = MAG_training_up
				bonus = 1
				uses = 1
				category = mountaineers_tech
			}
			add_war_support = 0.05
		}
	}
	
	focus = {
		id = MAG_guerilla_warfare
		icon = GFX_reformthenativerentsordnance
		x = -3
		y = 5
		cost = 5
		available_if_capitulated = no
		prerequisite = { focus = MAG_training_up }
		available = {
			has_war = yes
		}
		ai_will_do = {
			factor = 500
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_call_up_reserves"
			add_ideas = MAG_guerillafighting
			add_war_support = 0.05
		}
	}
	
	#Focus for The Auspice of Rabearivelo
	focus = {
		id = MAG_theauspiceofrabearivelo
		icon = GFX_theauspiceofrabearivelo
		x = 0
		y = 3
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_thefuturefrozen focus = MAG_the_coup }
		mutually_exclusive = { 
			focus = MAG_thestrengthofdelarocque 
		}
		mutually_exclusive = { 
			focus = MAG_thesolutionofaron 
		}
		mutually_exclusive = { 
			focus = MAG_thepanicofmaurice 
		}
		available = {
			custom_trigger_tooltip = {
				always = no
				tooltip = MAG_unlock_tooltip
			}
		}
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_thesolutionofaron"
			custom_effect_tooltip = MAG_AF_tt
		}
	}

	#Focus for Unite the Natives
	focus = {
		id = MAG_unitethenatives
		icon = GFX_unitethenatives
		x = -1
		y = 4
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_theauspiceofrabearivelo }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_unitethenatives"
			remove_ideas = MAG_Massive_Disunity
			country_event = mag.18
			add_popularity = {
				popularity = 0.1
				ideology = national_populist
			}
		}
	}
	
	focus = {
		id = MAG_restoreprotestantism
		icon = GFX_supportthefaith
		x = 1
		y = 4
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_theauspiceofrabearivelo }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_restoreprotestantism"
			add_stability = 0.05
			add_popularity = {
				popularity = 0.05
				ideology = national_populist
			}
		}
	}
	
	focus = {
		id = MAG_fanampoana
		icon = GFX_Goal_generic_monarchism
		x = 1
		y = 5
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_restoreprotestantism }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_unitethenatives"
			add_war_support = 0.1
			add_manpower = 8700
			add_political_power = 30
		}
	}
	
	#Focus for Make Contacts in Algiers
	focus = {
		id = MAG_makecontactsinalgiers
		icon = GFX_makecontactsinalgiers
		x = -1
		y = 5
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_unitethenatives }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_makecontactsinalgiers"
			country_event = mag.19
			add_opinion_modifier = {
				target = NFA
				modifier = large_increase
			}
			add_offsite_building = { type = industrial_complex level = 2 }
		}
	}
	
	#Focus for Traduit de la nuit
	focus = {
		id = MAG_traduitdelanuit
		icon = GFX_traduitdelanuit
		x = 0
		y = 6
		cost = 10
		available_if_capitulated = no
		prerequisite = { focus = MAG_makecontactsinalgiers }
		prerequisite = { focus = MAG_fanampoana }
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_traduitdelanuit"
				create_country_leader = {
					name = "Razafinkeriefo I"
					desc = "POLITICS_RAZAFINKERIEFO_DESC"
					picture = "gfx/leaders/MAG/MAG_Marie-Louise_Razafinkeriefo.png"
					expire = "1.1.1"
					ideology = maurrassism_subtype
		
				}
			set_cosmetic_tag = MAG_MON
			load_focus_tree = african_monarchy
			unlock_decision_tooltip = AFR_form_maf
		}
		ai_will_do = {
			factor = 1
		}
	}

	#Focus for The Strength of de La Rocque
	focus = {
		id = MAG_thestrengthofdelarocque
		icon = GFX_thestrengthofdelarocque
		x = 4
		y = 3
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_thefuturefrozen focus = MAG_the_coup }
		available = {
			custom_trigger_tooltip = {
				always = no
				tooltip = MAG_unlock_tooltip
			}
		}
		mutually_exclusive = { 
			focus = MAG_theauspiceofrabearivelo 
		}
		mutually_exclusive = { 
			focus = MAG_thesolutionofaron 
		}
		mutually_exclusive = { 
			focus = MAG_thepanicofmaurice 
		}
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_thesolutionofaron"
			custom_effect_tooltip = MAG_ORA_tt
		}
	}

	#Focus for Unite the Right
	focus = {
		id = MAG_unitetheright
		icon = GFX_unitetheright
		x = 3
		y = 4
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_thestrengthofdelarocque }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_unitetheright"
			remove_ideas = MAG_Massive_Disunity
			increase_ruling_party_popularity_by_10 = yes
			country_event = mag.21
		}
	}

	focus = {
		id = MAG_civilcode
		icon = GFX_Goal_generic_control_judiciary
		x = 5
		y = 4
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_thestrengthofdelarocque }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_civilcode"
			add_stability = 0.1
		}
	}
	
	focus = {
		id = MAG_degermanise
		icon = GFX_seekmittelafrikanbacking
		x = 7
		y = 4
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_theauspiceofrabearivelo focus = MAG_thestrengthofdelarocque focus = MAG_thesolutionofaron }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_degermanise"
			add_stability = 0.05
			increase_ruling_party_popularity_by_15 = yes
			add_popularity = {
				ideology = authoritarian_democrat
				popularity = -0.1
			}
		}
	}
	
	focus = {
		id = MAG_distribute_the_spoils
		icon = GFX_goal_generic_infrastructure_control
		x = 7
		y = 5
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_degermanise }
		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_distribute_the_spoils"
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1
				uses = 2
				category = industry
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 0
										include_locked = yes
									}
								is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			increase_ruling_party_popularity_by_5 = yes
		}
	}
	
	focus = {
		id = MAG_build_institutions
		icon = GFX_aconfederation
		x = 7
		y = 6
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_distribute_the_spoils }
		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_distribute_the_spoils"
			add_ideas = MAG_reconstituted_government
			add_war_support = 0.05
		}
	}
	
	focus = {
		id = MAG_fides
		icon = GFX_limitgovernmentcontrols
		x = 5
		y = 5
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_civilcode }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_fides"
			add_offsite_building = { type = industrial_complex level = 1 }
			add_stability = 0.05
		}
	}
	
	#Focus for Neutralise the Natives
	focus = {
		id = MAG_neutralisethenatives
		icon = GFX_MAF_corporate_economics
		x = 3
		y = 5
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_unitetheright }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_unitetheright"
			add_stability = 0.05
			add_political_power = 20
			add_command_power = 20
			random_owned_state = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			add_popularity = {
				popularity = 0.02
				ideology = national_populist
			}
			add_popularity = {
				popularity = 0.02
				ideology = market_liberal
			}
			add_popularity = {
				popularity = 0.1
				ideology = paternal_autocrat
			}
		}
	}

	#Focus for La Croix de Feu
	focus = {
		id = MAG_lacroixdefeu
		icon = GFX_lacroixdefeu
		x = 4
		y = 6
		cost = 5.8
		available_if_capitulated = no
		prerequisite = { focus = MAG_neutralisethenatives }
		prerequisite = { focus = MAG_fides }
		ai_will_do = {
			factor = 1
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_unitetheright"
			add_political_power = 50
			add_popularity = {
				popularity = 0.1
				ideology = paternal_autocrat
			}
			country_event = mag.22
			load_focus_tree = african_republic_authoritarian
		}
	}
	## Heydrich's Tree ##
	focus = {
		id = MAG_reign_of_heydrich
		icon = GFX_goal_MAG_reign_of_heydrich
		x = 20.5
		y = 1
		cost = 5.8
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		prerequisite = { focus = MAG_themodelcolony }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_reign_of_heydrich"
			add_ideas = MAG_Heydrich_Projects
		}
	}
	focus = {
		id = MAG_export_processing
		icon = GFX_developmombasadocks
		x = -3
		y = 1

		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_reign_of_heydrich }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_fleet_hub"
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}			
		}
	}
	focus = {
		id = MAG_soldier_labourers
		icon = GFX_Focus_German_Soldiers_03
		x = 3
		y = 1

		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_reign_of_heydrich }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_fleet_hub"
			add_stability = 0.1
			add_war_support = -0.02
			add_political_power = -50
		}
	}
	focus = {
		id = MAG_fleet_hub
		icon = GFX_MAG_hub_of_MAF_navy
		x = -1
		y = 1
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_reign_of_heydrich }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_fleet_hub"
			swap_ideas = {
				remove_idea = MAG_Mittelafrikan_Fleet
				add_idea = MAG_Mittelafrikan_Fleet2
			}
			random_owned_state = {
				limit = {
					is_coastal = yes
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}			
		}
	}
	focus = {
		id = MAG_at_any_cost
		icon = GFX_wesailforprofit
		x = -1
		y = 2
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_fleet_hub }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_at_any_cost"
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			swap_ideas = {
				remove_idea = MAG_Heydrich_Projects
				add_idea = MAG_Heydrich_Projects2
			}
		}
	}
	focus = {
		id = MAG_aquire_funds
		icon = GFX_goal_MAG_acquire_funds
		x = -1
		y = 3
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_at_any_cost }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_aquire_funds"
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = MAG_enforce_german_beuracracy
		icon = GFX_MAF_anti_french_pact
		x = -3
		y = 2
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_fleet_hub }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_enforce_german_beuracracy"
			add_political_power = 50
			add_stability = 0.1
			country_event = {
				id = mag.10
				days = 1
			}
		}
	}
	focus = {
		id = MAG_relocate_the_natives
		icon = GFX_MAF_regionalburo_fur_arbeitskrafte
		x = -3
		y = 3
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_enforce_german_beuracracy }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_relocate_the_natives"
			random_owned_state = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_manpower = -2500
			}
			
		}
	}
	focus = {
		id = MAG_work_harder
		icon = GFX_goal_MAG_work_harder
		x = -2
		y = 4
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_aquire_funds }
		prerequisite = { focus = MAG_relocate_the_natives }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_work_harder"
			swap_ideas = {
				remove_idea = MAG_Heydrich_Projects2
				add_idea = MAG_Heydrich_Projects3
			}
		}
	}
	focus = {
		id = MAG_the_beast_of_madagascar
		icon = GFX_colonialreformdrive
		x = 0
		y = 4
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_aquire_funds }
		prerequisite = { focus = MAG_one_giant_base }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_the_beast_of_madagascar"
			add_country_leader_trait = MAG_blonde_beast
		}
	}
	focus = {
		id = MAG_wir_lagen_vor_madagascar
		icon = GFX_MAF_wir_lagen_vor_madagaskar
		x = 0
		y = 5
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_the_beast_of_madagascar }
		prerequisite = { focus = MAG_turn_watchdogs_away }
		prerequisite = { focus = MAG_work_harder }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_wir_lagen_vor_madagascar"
			random_owned_state = {
			add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = MAG_5_year_plan
		icon = GFX_MAG_Heydrich_5_year_plan
		x = 1
		y = 1
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_reign_of_heydrich }
		available_if_capitulated = no
		ai_will_do = {
			factor = 300
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_5_year_plan"
			add_ideas = MAG_Heydrich_5YearPlan
			country_event = {
				id = mag.8
				days = 1
			}
			hidden_effect = {
				MAF = {
					country_event = {
						id = mag.8
						days = 1
					}
				}
				GER = {
					country_event = {
						id = mag.8
						days = 1
					}
				}
			}
		}
	}
	focus = {
		id = MAG_cater_to_saliors
		icon = GFX_goal_MAG_cater_to_sailors
		x = 1
		y = 2
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_5_year_plan }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_cater_to_saliors"
			every_owned_state = {
				add_manpower = 1500
			}
			add_war_support = 0.1
		}
	}
	focus = {
		id = MAG_one_giant_base
		icon = GFX_MAF_sailing_with_kaiserliche_marine
		x = 1
		y = 3
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_cater_to_saliors }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_one_giant_base"
			10993 = {
				add_building_construction = {
					type = naval_base
					level = 2
					instant_build = yes
				}
			}
			14336 = {
				add_building_construction = {
					type = naval_base
					level = 2
					instant_build = yes
				}
			}
		}
	}
	focus = {
		id = MAG_put_the_settlers_to_work
		icon = GFX_Focus_Generic_Labour_Camps
		x = 3
		y = 2
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_5_year_plan }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_put_the_settlers_to_work"
			swap_ideas = {
				remove_idea = MAG_Heydrich_5YearPlan
				add_idea = MAG_Heydrich_5YearPlan2
			}
		}
	}
	focus = {
		id = MAG_penal_labour
		icon = GFX_goal_MAG_penal_labor
		x = 3
		y = 3
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_put_the_settlers_to_work }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_penal_labour"
			swap_ideas = {
				remove_idea = MAG_Heydrich_5YearPlan2
				add_idea = MAG_Heydrich_5YearPlan3
			}
		}
	}
	focus = {
		id = MAG_turn_watchdogs_away
		icon = GFX_goal_MAG_turn_away_watchdogs
		x = 2
		y = 4
		available = {
			has_country_leader = {
				name = "Reinhard Heydrich"
				ruling_only = yes
			}
		}
		relative_position_id = MAG_reign_of_heydrich
		cost = 5.8
		prerequisite = { focus = MAG_penal_labour }
		prerequisite = { focus = MAG_one_giant_base }
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_turn_watchdogs_away"
			swap_ideas = {
				remove_idea = MAG_Heydrich_5YearPlan3
				add_idea = MAG_Heydrich_5YearPlan4
			}
			custom_effect_tooltip = MAG_Heydrich_can_not_be_fired
		}
	}
	
	### Military Tree ###
	focus = {
		id = MAG_Military
		icon = GFX_goal_MAG_Navy_with_a_colony
		x = 30
		y = 0
		cost = 5.8
		
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_Military"
			add_command_power = 100
		}
	}	
	
	### Navy ###
	
	focus = {
		id = MAG_navy
		icon = GFX_MAG_pride_of_navy
		x = 0
		y = 1
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_Military }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_navy"
			navy_experience = 50
		}
	}
	
	focus = {
		id = MAG_independent_fleet_arm
		icon = GFX_MAF_continue_heydrich_reforms
		x = -1
		y = 2
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_navy }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_independent_fleet_arm"
			add_tech_bonus = {
				name = MAG_independent_fleet_arm
				bonus = 1
				uses = 1
				category = bb_tech
			}
		}
	}
	
	focus = {
		id = MAG_local_production
		icon = GFX_MAF_finalize_heydrich_reforms
		x = 1
		y = 2
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_navy }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_local_production"
			random_owned_state = {
			add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			add_equipment_to_stockpile = {
				type = convoy
				amount = 500
				producer = MAG
			}
		}
	}
	
	focus = {
		id = MAG_naval_research
		icon = GFX_goal_MAG_naval_research_department
		x = 0
		y = 3
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_local_production }
		prerequisite = { focus = MAG_independent_fleet_arm }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_naval_research"
			add_doctrine_cost_reduction = {
			name = naval_doc_bonus
			cost_reduction = 0.5
			uses = 1
			category = naval_doctrine
			}
		}
	}

	focus = {
		id = MAG_import_aircraft
		icon = GFX_developndoloairbase
		x = 2
		y = 3
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = MAG_antsiranana_arsenal
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_naval_defences"
			14412 = {
				add_building_construction = {
					type = air_base
					level = 1
					instant_build = yes
				}
			}
			add_equipment_to_stockpile = { type = fighter_equipment_0 amount = 40 producer = GER }	
		}
	}
	focus = {
		id = MAG_naval_defences
		icon = GFX_garrisontowns
		x = -2
		y = 3
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = MAG_steel
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_naval_defences"
				add_tech_bonus = {
				name = MAG_naval_defences
					bonus = 0.75
					uses = 1
					category = land_doctrine
				}
				5222 = {
				add_building_construction = {
					type = bunker
					level = 1
					instant_build = yes
				}
			}
			5222 = {
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
				}
			}
				14412 = {
				add_building_construction = {
					type = bunker
					level = 1
					instant_build = yes
				}
			}
			2200 = {
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
				}
			}
			2200 = {
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
				}
			}
			5185 = {
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
				}
			}
			5185 = {
				add_building_construction = {
					type = coastal_bunker
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	### Army ###
	
	focus = {
		id = MAG_army
		icon = GFX_MAG_navy_on_land
		x = -4
		y = 1
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_Military }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_army"
			army_experience = 25
			add_war_support = 0.05
		}
	}
	
	focus = {
		id = MAG_steel
		icon = GFX_PB_Generic_Mining_Industry
		x = -2
		y = 1
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_Military }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_steel"
				1178 = { 
					add_resource = {
						type = steel
						amount = 7
						}
					}
			1178 = { 
				add_resource = {
					type = aluminium
					amount = 2
				}
			}
		}
	}
	focus = {
		id = MAG_antsiranana_arsenal
		icon = GFX_redevelopfortjameson
		x = 2
		y = 1
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_Military }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_steel"
			add_offsite_building = { type = arms_factory level = 1 }
		}
	}
	
	focus = {
		id = MAG_conscript_settlers
		icon = GFX_MAF_madagascar_fatherland_plan
		x = -1
		y = 1
		cost = 5.8
		relative_position_id = MAG_army
		available_if_capitulated = no

		prerequisite = { focus = MAG_army }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_conscript_settlers"
			increase_conscription = yes
		}
	}
	
	focus = {
		id = MAG_cheap_guns
		icon = GFX_goldcoastguns
		x = 1
		y = 1
		cost = 5.8
		relative_position_id = MAG_army
		available_if_capitulated = no
		prerequisite = { focus = MAG_army }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_cheap_guns"
			add_equipment_to_stockpile = {
				type = infantry_equipment
				amount = 1100
				producer = GER
			}
			add_tech_bonus = {
				name = infantry_bonus
				bonus = 0.5
				uses = 1
				category = infantry_weapons
			}
		}
	}
	
	focus = {
		id = MAG_madagaskar_garrison
		icon = GFX_goal_MAG_madagascar_garrison
		x = 0
		y = 2
		cost = 5.8
		relative_position_id = MAG_army
		available_if_capitulated = no
		prerequisite = { focus = MAG_conscript_settlers }
		prerequisite = { focus = MAG_cheap_guns }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_madagaskar_garrison"
			division_template = {
				name = "Madagaskar Garrison"
				division_names_group = GER_GAR_01

				regiments = {
					infantry = { x = 0 y = 0 }
					infantry = { x = 0 y = 1 }
					infantry = { x = 0 y = 2 }
					infantry = { x = 1 y = 0 }
					infantry = { x = 1 y = 1 }
					infantry = { x = 1 y = 2 }
				}
				priority = 0
			}
			random_owned_controlled_state = {
				create_unit = {
					division = "division_template = \"Madagaskar Garrison\" start_experience_factor = 0.1"
					owner = ROOT
				}
			}
		}
	}
	
	### Air Force ###
	
	focus = {
		id = MAG_airforce
		icon = GFX_MAG_navy_in_air
		x = 4
		y = 1
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_Military }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_airforce"
			air_experience = 50
		}
	}
	
	focus = {
		id = MAG_naval_aviation_branch
		icon = GFX_MAF_naval_aerial_observation
		x = -1
		y = 1
		cost = 5.8
		relative_position_id = MAG_airforce
		available_if_capitulated = no
		prerequisite = { focus = MAG_airforce }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_naval_aviation_branch"
			add_tech_bonus = {
				name = MAG_naval_aviation_branch
				bonus = 1
				uses = 1
				category = naval_bomber
			}
		}
	}
	
	focus = {
		id = MAG_copy_german_airforce
		icon = GFX_MAF_sailing_with_kaiserliche_marine
		x = 1
		y = 1
		cost = 5.8
		relative_position_id = MAG_airforce
		available_if_capitulated = no
		prerequisite = { focus = MAG_airforce }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_navy"
			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
	}
	
	focus = {
		id = MAG_home_airports
		icon = GFX_MAF_the_base
		x = 0
		y = 2
		cost = 5.8
		relative_position_id = MAG_airforce
		available_if_capitulated = no
		prerequisite = { focus = MAG_copy_german_airforce }
		prerequisite = { focus = MAG_naval_aviation_branch }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_home_airports"
			every_owned_state = {
				add_building_construction = {
					type = air_base
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	### Post MAF Collapse ###

	focus = {
		id = MAG_develop_orstom
		icon = GFX_foundinac
		x = -3
		y = 4
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_home_airports focus = MAG_madagaskar_garrison focus = MAG_naval_research }

		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_cast_afloat"
			add_research_slot_until_five = yes
		}
	}

	focus = {
		id = MAG_arms_imports
		icon = GFX_expandkaisersafricanrifles
		x = 3
		y = 4
		available = {
			has_government = authoritarian_democrat
		}
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_home_airports focus = MAG_madagaskar_garrison focus = MAG_naval_research }

		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_cast_afloat"
			add_offsite_building = { type = industrial_complex level = 1 }
			add_offsite_building = { type = arms_factory level = 1 }
		}
	}
	
	focus = {
		id = MAG_cast_afloat
		icon = GFX_goal_MAG_cast_afloat
		x = 0
		y = 4
		available = {
			custom_trigger_tooltip = {
				tooltip = unlock_focuses
				always = no
			}
		}
		bypass = {
			has_global_flag = MAF_collapse
		}
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_home_airports }
		prerequisite = { focus = MAG_madagaskar_garrison }
		prerequisite = { focus = MAG_naval_research }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_cast_afloat"
			custom_effect_tooltip = MAG_deal_with_MAF_collapse_tt
		}
	}
	focus = {
		id = MAG_alternative_means
		icon = GFX_goal_MAG_kidnap_foreign_ships
		x = -1
		y = 5
		cost = 5.8
		relative_position_id = MAG_Military
		prerequisite = { focus = MAG_cast_afloat }
		mutually_exclusive = { focus = MAG_free_port }
		ai_will_do = {
			factor = 0
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_alternative_means"
			add_ideas = MAG_Piracy
			country_event = {
				id = mag.23
				days = 1
			}
		}
	}
	
	focus = {
		id = MAG_free_port
		icon = GFX_goal_MAG_open_port_for_all
		x = 1
		y = 5
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		mutually_exclusive = { focus = MAG_alternative_means }
		prerequisite = { focus = MAG_cast_afloat }
		ai_will_do = {
			factor = 1000
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_free_port"
			add_ideas = MAG_free_port
			country_event = {
				id = mag.24
				days = 1
			}
		}
	}
	
	focus = {
		id = MAG_encourage_tourism
		icon = GFX_MAG_tourism
		x = 0
		y = 6
		cost = 5.8
		relative_position_id = MAG_Military
		available_if_capitulated = no
		prerequisite = { focus = MAG_free_port  focus = MAG_alternative_means }
		ai_will_do = {
			factor = 100
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus MAG_encourage_tourism"
			add_ideas = MAG_Tourist_Economy
			country_event = {
				id = mag.25
				days = 1
			}
		}
	}

#End of focuses 
 }