###########################
# Germany in Exile Focus Tree
# Originally By Indyclone and Zarasophos
# Revised by Idlemancer
###########################

########################
### Our Darkest Hour ###
########################

	shared_focus = {
		id = GEX_darkest_hour
		icon = GFX_BBR_crush_old_imperialists
		x = 27
		y = 9
		
		offset = {
			x = 40
			y = -9
			trigger = { tag = GEA }
		}
		
		offset = {
			x = -14
			y = 5
			trigger = { tag = LEP }
		}
		
		offset = {
			x = 19
			y = -3
			trigger = {
				tag = MAF
				has_focus_tree = MAF-RFG
			}
		}

		offset = {
			x = 12
			y = 0
			trigger = { tag = TXS }
		}
		
		offset = {
			x = -44
			y = 12
			trigger = {
				tag = CEA
			}
		}
		
		available = {
			custom_trigger_tooltip = {
				tooltip = GEX_fled_to_us_tooltip
				GEX_fled_to_us = yes
			}
			OR = {
				GEA = { exists = no }
				has_global_flag = GEX_boo_hoo_no_asia
				has_completed_focus = GEX_japan_wins_waaah
				has_completed_focus = GEX_kill_japan
			}
		}

		allow_branch = {
			tag = event_target:current_german_exile_government
			has_global_flag = GER_became_GEX
		}

		cost = 6

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_darkest_hour"
			add_stability = 0.05
			add_war_support = 0.05
			if = {
				limit = { has_idea = MAF_Colonial_Nation }
				remove_ideas = MAF_Colonial_Nation
			}
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY }
	}

	shared_focus = {
		id = GEX_kili
		icon = GFX_goal_generic_secret_weapon
		prerequisite = { focus = GEX_darkest_hour }
		x = -2
		y = 1
		relative_position_id = GEX_darkest_hour
		cost = 8
		
		allow_branch = {
			tag = event_target:Mittelafrika_Target
			tag = event_target:current_german_exile_government
			has_global_flag = GER_became_GEX
		}

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_kili"
			if = {
				limit = {
					NOT = { has_tech = atomic_research }
					NOT = { is_researching_technology = atomic_research }
				}
				add_tech_bonus = {
					bonus = 0.5
					uses = 1
					technology = atomic_research
				}
			}
			else = {
				add_breakthrough_progress = {
					specialization = specialization_nuclear
					value = 0.5
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	shared_focus = {
		id = GEX_air
		icon = GFX_goal_GER_Pilots
		prerequisite = { focus = GEX_darkest_hour }
		x = 2
		y = 1
		relative_position_id = GEX_darkest_hour
		
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_air"
			add_tech_bonus = {
				name = GEX_air
				bonus = 1
				uses = 2
				category = air_equipment
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	shared_focus = {
		id = GEX_exiled_eco
		icon = GFX_goal_generic_german_construction
		prerequisite = { focus = GEX_darkest_hour }
		x = -5
		y = 1
		relative_position_id = GEX_darkest_hour
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_exiled_eco"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 3
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 3
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = industrial_complex
					level = 3
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	shared_focus = {
		id = GEX_exiled_mil
		icon = GFX_MAF_african_war_industries
		prerequisite = { focus = GEX_exiled_eco }
		x = -2
		y = 1
		relative_position_id = GEX_exiled_eco
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_exiled_mil"
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = arms_factory
					level = 3
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	shared_focus = {
		id = GEX_exiled_eco2
		icon = GFX_MAF_vereinigte_stahlwerke_ag_congo
		prerequisite = { focus = GEX_exiled_eco }
		x = 0
		y = 1
		relative_position_id = GEX_exiled_eco
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_exiled_eco2"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 3
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 2
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = industrial_complex
					level = 3
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	shared_focus = {
		id = GEX_exiled_infra
		icon = GFX_goal_generic_seize_railway
		prerequisite = { focus = GEX_exiled_eco }
		x = 2
		y = 1
		relative_position_id = GEX_exiled_eco
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_exiled_infra"
			every_owned_state = {
				limit = {
					free_building_slots = {
						building = infrastructure
						size > 0
						
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = infrastructure
										size > 0
										
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	shared_focus = {
		id = GEX_exiled_total
		icon = GFX_MAF_luluaburg
		prerequisite = { focus = GEX_exiled_mil }
		prerequisite = { focus = GEX_exiled_eco2 }
		prerequisite = { focus = GEX_exiled_infra }
		x = 0
		y = 2
		relative_position_id = GEX_exiled_eco
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_exiled_total"
			random_owned_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 3
						include_locked = yes
					}
					OR = {
						is_in_home_area = yes
						NOT = {
							owner = {
								any_owned_state = {
									free_building_slots = {
										building = industrial_complex
										size > 2
										include_locked = yes
									}
									is_in_home_area = yes
								}
							}
						}
					}
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = industrial_complex
					level = 3
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = arms_factory
					level = 3
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	shared_focus = {
		id = GEX_army_of_exile
		icon = GFX_goal_Deutsches_Heer
		prerequisite = { focus = GEX_darkest_hour }
		x = 0
		y = 1
		relative_position_id = GEX_darkest_hour
		cost = 8
		ai_will_do = {
			factor = 10
		}
		
		allow_branch = {
			NOT = {
				tag = GEA
				tag = LEP
			}
			tag = event_target:current_german_exile_government
			has_global_flag = GER_became_GEX
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_afrikakorps"
			add_manpower = 50000
			army_experience = 100
			navy_experience = 50
			air_experience = 50
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	shared_focus = {
		id = GEX_afrikakorps2
		icon = GFX_goal_ARM_seize_stockpiles
		prerequisite = { focus = GEX_army_of_exile }
		x = 0
		y = 2
		relative_position_id = GEX_darkest_hour
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_afrikakorps2"
			add_war_support = 0.10
			add_equipment_to_stockpile = {
				type = infantry_equipment_1 amount = 5000 producer = GER
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	shared_focus = {
		id = GEX_german_elites_2
		icon = GFX_goal_German_Staff
		prerequisite = { focus = GEX_afrikakorps2 }
		mutually_exclusive = { focus = GEX_kaisers_own_men_2 }
		x = -1
		y = 3
		relative_position_id = GEX_darkest_hour
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_afrikakorps3_1"
			add_ideas = GEX_exilewaffen_idea
			add_manpower = 50000
			add_war_support = 0.10
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	shared_focus = {
		id = GEX_kaisers_own_men_2
		icon = GFX_germanprimacy
		prerequisite = { focus = GEX_afrikakorps2 }
		mutually_exclusive = { focus = GEX_german_elites_2 }
		x = 1
		y = 3
		relative_position_id = GEX_darkest_hour
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_afrikakorps3_2"
			add_ideas = GEX_kaisers_own_idea
			army_experience = 50
			add_stability = 0.10
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}
	
	shared_focus = {
		id = GEX_retvrn_home
		icon = GFX_BAT_germanisation
		prerequisite = { focus = GEX_darkest_hour }
		mutually_exclusive = { focus = GEX_doomer }
		x = 4
		y = 1
		relative_position_id = GEX_darkest_hour
		
		offset = {
			x = 4
			y = 0
			trigger = {
				NOT = {
					tag = LEP
					tag = GEA
				}
			}
		}
		
		cost = 8
		available = {
			is_subject = no
			OR = {
				has_global_flag = JAP_Fading_Sun
				NOT = { country_exists = JAP }
				has_global_flag = GEX_treaty_done
			}
		}

		ai_will_do = {
			factor = 99
			modifier = {
				factor = 0
				has_game_rule = {
					rule = GEX_home
					option = GEX_HOME_SCALTINOF
				}
			}
		}

		completion_reward = {
			if = {
				limit = {
					NOT = { tag = event_target:Mittelafrika_Target }
					event_target:Mittelafrika_Target = {
						exists = yes
						NOT = {
							has_war_with = GEX
							has_country_flag = GEX_rejected_exiles
						}
					}
				}
				event_target:Mittelafrika_Target = { country_event = GEX_foreign.1 }
			}
			every_state = {
				limit = { is_core_of = GER }
				add_core_of = GEX
			}
		}
	}
	
	shared_focus = {
		id = GEX_reclaim_the_birthright
		icon = GFX_BEL_Reclaim_France
		prerequisite = { focus = GEX_retvrn_home }
		x = 0
		y = 1
		relative_position_id = GEX_retvrn_home
		cost = 5

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened = yes
					FRA = { default_attack_AI_trigger_FROM = yes }
				}
			}
		}
		will_lead_to_war_with = FRA

		bypass = {
			OR = {
				NOT = { country_exists = FRA }
				has_war_with = FRA
				country_exists = GER
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_reclaim_the_birthright"
			create_wargoal = {
				type = annex_everything
				target = FRA
			}
			every_state = {
				limit = {
					is_core_of = GER
				}
				owner = {
					GEX = {
						create_wargoal = {
							type = annex_everything
							target = FRA
						}
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	shared_focus = {
		id = GEX_the_way_home
		icon = GFX_goal_MAF_Schutzmarine
		prerequisite = { focus = GEX_retvrn_home }
		x = -5
		y = 1
		relative_position_id = GEX_retvrn_home
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_the_way_home"
			add_ideas = GEX_way_home_idea
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	shared_focus = {
		id = GEX_walking_over_water
		icon = GFX_goal_generic_amphibious_assault
		prerequisite = { focus = GEX_the_way_home }
		x = 0
		y = 1
		relative_position_id = GEX_the_way_home
		cost = 8

		ai_will_do = {
			factor = 10
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_walking_over_water"
			add_equipment_to_stockpile = { type = convoy_1 amount = 200 producer = GER }
		}
	}
	
	shared_focus = {
		id = GEX_old_enemies_new_allies
		icon = GFX_goal_canada
		prerequisite = { focus = GEX_retvrn_home }
		mutually_exclusive = { focus = GEX_reichspakt_revival }
		bypass = {
			is_in_faction_with = ENT
		}
		x = -3
		y = 2
		relative_position_id = GEX_retvrn_home
		cost = 5
		available = {
			is_subject = no
			ENT = {
				is_faction_leader = yes
				OR = {
					has_war_with = FRA
					has_war_with = RUS
					has_war_with = TRM
					has_war_with = GRU
					has_war_with = BAY
					has_war_with = WGR
					has_war_with = DDR
				}
				NOT = {
					has_war_with = GEX
					is_in_faction_with = RUS
					is_in_faction_with = TRM	
					is_in_faction_with = GRU
					is_in_faction_with = BAY
					is_in_faction_with = WGR
					is_in_faction_with = DDR
				}
			}
			NOT = {
				any_state = {
					is_core_of = GER
					owner = {
						is_in_faction_with = ENT
					}
				}
			}
		}

		ai_will_do = {
			factor = 99
			modifier = {
				factor = 0
				has_game_rule = {
					rule = GEX_home
					option = GEX_HOME_RETVRN
				}
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_old_enemies_new_allies"
			every_other_country = {
				limit = { is_in_faction_with = GEX }
				set_country_flag = IS_IN_MITTEL
			}
			ENT = {
				add_opinion_modifier = { target = ROOT modifier = GER_asked_join_entente }
				country_event = gerfor.67
			}
			custom_effect_tooltip = GEX_Invite_Country_tt
		}
	}
	
	shared_focus = {
		id = GEX_entente_naval_cooperation
		icon = GFX_GBR_royal_navy
		prerequisite = { focus = GEX_old_enemies_new_allies }
		x = 0
		y = 1
		relative_position_id = GEX_old_enemies_new_allies
		cost = 5
		available = {
			is_in_faction_with = ENT
		}

		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_entente_naval_cooperation"
			ENT = { navy_experience = 50 }
			add_doctrine_cost_reduction = {
				name = naval_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
		}
	}
	
	shared_focus = {
		id = GEX_entente_propaganda
		icon = GFX_ITA_syndie_laws
		prerequisite = { focus = GEX_entente_naval_cooperation }
		x = 0
		y = 2
		relative_position_id = GEX_old_enemies_new_allies
		cost = 5

		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_entente_naval_cooperation"
			every_country = {
				limit = { 
					is_in_faction_with = GEX
				}
				add_stability = 0.05
				add_war_support = 0.05
			}
			add_political_power = 100
		}
	}
	
	shared_focus = {
		id = GEX_reichspakt_revival
		icon = GFX_focus_ger_revive_kaiserreich
		prerequisite = { focus = GEX_retvrn_home }
		mutually_exclusive = { focus = GEX_old_enemies_new_allies }
		x = 3
		y = 2
		relative_position_id = GEX_retvrn_home
		cost = 5

		ai_will_do = {
			factor = 99
			modifier = {
				factor = 0
				has_game_rule = {
					rule = GEX_home
					option = GEX_HOME_RETVRN_ENTENTE
				}
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_reichspakt_revival"
			if = {
				limit = { is_faction_leader = yes }
				set_faction_name = Mittelmacht
			}
			else = { create_faction = "Mittelmacht" }
			add_political_power = 100
			custom_effect_tooltip = GEX_Invite_Country_tt
			custom_effect_tooltip = GEX_Invite_Country_tt2
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	#MAF Expansion
	
	shared_focus = {
		id = GEX_our_continent
		icon = GFX_goal_our_continent
		prerequisite = { focus = GEX_reichspakt_revival }
		x = 0
		y = 1
		relative_position_id = GEX_reichspakt_revival
		cost = 5
		
		allow_branch = {
			tag = event_target:Mittelafrika_Target
			tag = event_target:current_german_exile_government
			has_global_flag = GER_became_GEX
		}

		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_our_continent"
			custom_effect_tooltip = GEX_conquer_africa
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	shared_focus = {
		id = GEX_crush_france
		icon = GFX_focus_attack_france
		prerequisite = { focus = GEX_our_continent }
		x = 0
		y = 2
		relative_position_id = GEX_reichspakt_revival
		available = {
			can_declare_war_on = NFA
			OR = {
				NFA = { NOT = { is_in_faction_with = ENT }  }
				NOT = { has_completed_focus = GEX_entente_economic_ties }
			}
		}
		cost = 5

		ai_will_do = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened = yes
					ENT = { is_stronger_than_ROOT_and_not_vulnerable = yes }
					NFA = { is_stronger_than_ROOT_and_not_vulnerable = yes }
					NFA = { overlord_is_stronger_than_ROOT_and_not_vulnerable = yes }
					NFA = { faction_leader_is_stronger_than_ROOT_and_not_vulnerable = yes }
				}
			}
		}
		will_lead_to_war_with = NFA

		bypass = {
			OR = {
				NOT = { country_exists = NFA }
				has_war_with = NFA
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_crush_france"
			create_wargoal = {
				type = annex_everything
				target = NFA
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	shared_focus = {
		id = GEX_kill_egypt
		icon = GFX_goal_EGY_nile_proc
		prerequisite = { focus = GEX_our_continent }
		x = 2
		y = 2
		relative_position_id = GEX_reichspakt_revival
		available = {
			can_declare_war_on = EGY
			OR = {
				EGY = { NOT = { is_in_faction_with = ENT }  }
				NOT = { has_completed_focus = GEX_entente_economic_ties }
			}
		}
		cost = 5

		ai_will_do = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened = yes
					EGY = { dont_start_major_faction_wars = yes }
					EGY = { is_stronger_than_ROOT_and_not_vulnerable = yes }
					EGY = { overlord_is_stronger_than_ROOT_and_not_vulnerable = yes }
					EGY = { faction_leader_is_stronger_than_ROOT_and_not_vulnerable = yes }
				}
			}
		}
		will_lead_to_war_with = EGY

		bypass = {
			OR = {
				NOT = { country_exists = EGY }
				has_war_with = EGY
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_crush_france"
			446 = {
				owner = {
					ROOT = {
						declare_war_on = {
							target = PREV
							type = annex_everything
						}
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	#GEA Expansion
	
	shared_focus = {
		id = GEX_our_continent_gea
		icon = GFX_focus_usa_focus_on_asia
		prerequisite = { focus = GEX_reichspakt_revival }
		x = 0
		y = 1
		relative_position_id = GEX_reichspakt_revival
		cost = 5
		
		allow_branch = {
			tag = GEA
			tag = event_target:current_german_exile_government
			has_global_flag = GER_became_GEX
		}

		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_our_continent"
			custom_effect_tooltip = GEX_conquer_asia
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	shared_focus = {
		id = GEX_seize_the_straits
		icon = GFX_goal_JAP_target_indonesia
		prerequisite = { focus = GEX_our_continent_gea }
		x = 0
		y = 2
		relative_position_id = GEX_reichspakt_revival
		available = {
			OR = {
				can_declare_war_on = DEI
				NOT = { country_exists = DEI }
			}
			OR = {
				can_declare_war_on = INS
				NOT = { country_exists = INS }
			}
			OR = {
				DEI = {
					OR = {
						NOT = { has_country_flag = former_reichspakt_member }
						has_country_flag = GEX_rejected_exiles
					}
				}
				INS = {
					OR = {
						NOT = { has_country_flag = former_reichspakt_member }
						has_country_flag = GEX_rejected_exiles
					}
				}
			}
			AND = {
				OR = {
					INS = { NOT = { is_in_faction_with = ENT }  }
					NOT = { has_completed_focus = GEX_entente_economic_ties }
				}
				OR = {
					DEI = { NOT = { is_in_faction_with = ENT }  }
					NOT = { has_completed_focus = GEX_entente_economic_ties }
				}
			}
		}
		cost = 5

		ai_will_do = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened = yes
					var:335.owner = { dont_start_major_faction_wars = yes }
					var:335.owner = { is_stronger_than_ROOT_and_not_vulnerable = yes }
					var:335.owner = { overlord_is_stronger_than_ROOT_and_not_vulnerable = yes }
					var:335.owner = { faction_leader_is_stronger_than_ROOT_and_not_vulnerable = yes }
				}
			}
		}
		will_lead_to_war_with = DEI
		will_lead_to_war_with = INS

		bypass = {
			OR = {
				NOT = { country_exists = DEI }
				has_war_with = DEI
			}
			OR = {
				NOT = { country_exists = INS }
				has_war_with = INS
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_seize_the_straits"
			declare_war_on = {
				type = annex_everything
				target = 335.owner
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	shared_focus = {
		id = GEX_dominate_oceania
		icon = GFX_goal_JAP_target_australasia
		prerequisite = { focus = GEX_our_continent_gea }
		x = 2
		y = 2
		relative_position_id = GEX_reichspakt_revival
		available = {
			can_declare_war_on = AST
			AST = {
				OR = {
					NOT = { has_country_flag = former_reichspakt_member }
					has_country_flag = GEX_rejected_exiles
				}
			}
			OR = {
				AST = { NOT = { is_in_faction_with = ENT }  }
				NOT = { has_completed_focus = GEX_entente_economic_ties }
			}
		}
		cost = 5

		ai_will_do = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened = yes
					AST = { default_attack_AI_trigger_FROM = yes }
				}
			}
		}
		will_lead_to_war_with = AST

		bypass = {
			OR = {
				NOT = { country_exists = AST }
				has_war_with = AST
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_dominate_oceania"
			declare_war_on = {
				target = AST	
				type = annex_everything
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	#AOG Expansion
	
	shared_focus = {
		id = GEX_our_continent_aog
		icon = GFX_focus_usa_focus_on_asia
		prerequisite = { focus = GEX_reichspakt_revival }
		x = 0
		y = 1
		relative_position_id = GEX_reichspakt_revival
		cost = 5
		
		allow_branch = {
			tag = LEP
			tag = event_target:current_german_exile_government
			has_global_flag = GER_became_GEX
		}

		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_our_continent"
			custom_effect_tooltip = GEX_conquer_china
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	shared_focus = {
		id = GEX_claim_china
		icon = GFX_focus_rus_transamur_war
		prerequisite = { focus = GEX_our_continent_aog }
		x = 0
		y = 2
		relative_position_id = GEX_reichspakt_revival
		available = {
			408 = {
				owner = {
					LEP = {
						can_declare_war_on = PREV
					}
					is_neighbor_of = LEP
				}
			}
		}
		cost = 5

		ai_will_do = {
			factor = 50
		}

		bypass = {
			owns_state = 561
			owns_state = 560
			owns_state = 657
			owns_state = 409
			owns_state = 408
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_claim_china"
			408 = {
				owner = {
					country_event = {
						id = GEXAOG.101
						days = 1
					}
				}
			}
			add_state_claim = 561
			add_state_claim = 560
			add_state_claim = 657
			add_state_claim = 409
			add_state_claim = 408
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	shared_focus = {
		id = GEX_kill_lec
		icon = GFX_MON_burn_EAF
		prerequisite = { focus = GEX_our_continent_aog }
		x = 2
		y = 2
		relative_position_id = GEX_reichspakt_revival
		available = {
			can_declare_war_on = LEC
			LEC = {
				OR = {
					NOT = { has_country_flag = former_reichspakt_member }
					has_country_flag = GEX_rejected_exiles
				}
			}
			OR = {
				LEC = { NOT = { is_in_faction_with = ENT }  }
				NOT = { has_completed_focus = GEX_entente_economic_ties }
			}
		}
		cost = 5

		ai_will_do = {
			factor = 50
			modifier = {
				factor = 0
				ROOT_is_threatened = yes
			}
			modifier = {
				factor = 0
				LEC = { dont_start_major_faction_wars = yes }
			}
			modifier = {
				factor = 0
				LEC = { default_attack_AI_trigger_FROM = yes }
			}
		}
		will_lead_to_war_with = LEC

		bypass = {
			OR = {
				NOT = { country_exists = LEC }
				has_war_with = LEC
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_kill_lec"
			LEC = {
				country_event = {
					id = GEXAOG.104
					days = 1
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	#OTT Expansion
	
	shared_focus = {
		id = GEX_our_continent_ott
		icon = GFX_goal_OTT_germany_of_mideast
		prerequisite = { focus = GEX_reichspakt_revival }
		x = 0
		y = 1
		relative_position_id = GEX_reichspakt_revival
		cost = 5
		
		allow_branch = {
			tag = TUR
			tag = event_target:current_german_exile_government
			has_global_flag = GER_became_GEX
		}

		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_our_continent"
			custom_effect_tooltip = GEX_conquer_balkans
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	shared_focus = {
		id = GEX_invade_caucasus
		icon = GFX_MON_strike_at_the_caucassus
		prerequisite = { focus = GEX_our_continent_ott }
		x = 0
		y = 2
		relative_position_id = GEX_reichspakt_revival
		available = {
			can_declare_war_on = NFA
		}
		cost = 5

		ai_will_do = {
			factor = 50
		}

		bypass = {
			OR = {
				NOT = { country_exists = NFA }
				has_war_with = NFA
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_invade_caucasus"
			custom_effect_tooltip = GEX_conquer_caucasus
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	shared_focus = {
		id = GEX_invite_austria
		icon = GFX_goal_austria
		prerequisite = { focus = GEX_our_continent_ott }
		mutually_exclusive = { focus = GEX_brothers_wars_ree }
		x = -1
		y = 3
		relative_position_id = GEX_reichspakt_revival
		available = {
			can_declare_war_on = AUS
		}
		cost = 5

		ai_will_do = {
			factor = 50
		}

		bypass = {
			OR = {
				NOT = { country_exists = AUS }
				has_war_with = AUS
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_invite_austria"
			AUS = {
				country_event = GEX_foreign.1
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	shared_focus = {
		id = GEX_brothers_wars_ree
		icon = GFX_goal_Austrian_Occupation
		prerequisite = { focus = GEX_our_continent_ott }
		mutually_exclusive = { focus = GEX_invite_austria }
		x = 1
		y = 3
		relative_position_id = GEX_reichspakt_revival
		available = {
			country_exists = AUS
			NOT = {
				64 = {
					owner = {
						OR = {
							tag = AUS
							is_in_faction_with = AUS
						}
					}
				}
			}
		}
		cost = 5

		ai_will_do = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened = yes
					AUS = { default_attack_AI_trigger_FROM = yes }
				}
			}
		}
		will_lead_to_war_with = AUS

		bypass = {
			OR = {
				NOT = { country_exists = AUS }
				has_war_with = AUS
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_brothers_wars_ree"
			declare_war_on = {
				target = AUS	
				type = annex_everything
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	#TXS Expansion
	
	shared_focus = {
		id = GEX_our_continent_txs
		icon = GFX_goal_COS_puerto_rico
		prerequisite = { focus = GEX_reichspakt_revival }
		x = 0
		y = 1
		relative_position_id = GEX_reichspakt_revival
		cost = 5
		
		allow_branch = {
			tag = TXS
			tag = event_target:current_german_exile_government
			has_global_flag = GER_became_GEX
		}

		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_our_continent_txs"
			custom_effect_tooltip = GEX_conquer_carribean
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	shared_focus = {
		id = GEX_alamo
		icon = GFX_TXS_Alamo
		prerequisite = { focus = GEX_our_continent_txs }
		x = 0
		y = 2
		relative_position_id = GEX_reichspakt_revival
		available = {
			can_declare_war_on = MEX
			MEX = {
				OR = {
					NOT = { has_country_flag = former_reichspakt_member }
					has_country_flag = GEX_rejected_exiles
				}
			}
			OR = {
				MEX = { NOT = { is_in_faction_with = ENT }  }
				NOT = { has_completed_focus = GEX_entente_economic_ties }
			}
		}
		cost = 5

		ai_will_do = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened = yes
					MEX = { dont_start_major_faction_wars = yes }
					MEX = { is_stronger_than_ROOT_and_not_vulnerable = yes }
					MEX = { overlord_is_stronger_than_ROOT_and_not_vulnerable = yes }
					MEX = { faction_leader_is_stronger_than_ROOT_and_not_vulnerable = yes }
				}
			}
		}
		will_lead_to_war_with = MEX

		bypass = {
			OR = {
				NOT = { country_exists = MEX }
				has_war_with = MEX
			}
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_alamo"
			declare_war_on = {
				type = annex_everything
				target = MEX
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	shared_focus = {
		id = GEX_freedom_wars
		icon = GFX_goal_COS_eat_ven
		prerequisite = { focus = GEX_our_continent_txs }
		x = 2
		y = 2
		relative_position_id = GEX_reichspakt_revival
		available = {
			can_declare_war_on = VEN
			849 = {
				owner = {
					OR = {
						NOT = { has_country_flag = former_reichspakt_member }
						has_country_flag = GEX_rejected_exiles
					}
				}
			}
			OR = {
				849 = { owner = { NOT = { is_in_faction_with = ENT } } }
				NOT = { has_completed_focus = GEX_entente_economic_ties }
			}
		}
		cost = 5

		ai_will_do = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened = yes
					VEN = { dont_start_major_faction_wars = yes }
					VEN = { is_stronger_than_ROOT_and_not_vulnerable = yes }
					VEN = { overlord_is_stronger_than_ROOT_and_not_vulnerable = yes }
					VEN = { faction_leader_is_stronger_than_ROOT_and_not_vulnerable = yes }
				}
			}
		}
		will_lead_to_war_with = VEN

		bypass = {
			has_war_with = VEN
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_freedom_wars"
			849 = {
				owner = {
					ROOT = {
						declare_war_on = {
							target = PREV
							type = annex_everything
						}
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	#
	
	shared_focus = {
		id = GEX_entente_economic_ties
		icon = GFX_goal_CAN_isac
		prerequisite = { focus = GEX_old_enemies_new_allies focus = GEX_reichspakt_revival }
		x = 2
		y = 1
		relative_position_id = GEX_old_enemies_new_allies
		cost = 5
		available = {
			NOT = {
				has_war_with = ENT
			}
		}

		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_entente_naval_cooperation"
			if = {
				limit = {
					is_in_tech_sharing_group = entente_research
				}
				add_ideas = GEX_ent_economy
				ENT = { add_ideas = GEX_ent_economy_inverse }
			}
			else = {
				add_to_tech_sharing_group = entente_research
				diplomatic_relation = {
					country = ENT
					relation = non_aggression_pact
					active = yes
				}
			}
		}
	}
	
	shared_focus = {
		id = GEX_entente_joint_exercises
		icon = GFX_goal_generic_army_cooperation
		prerequisite = { focus = GEX_old_enemies_new_allies focus = GEX_reichspakt_revival }
		x = 2
		y = 2
		relative_position_id = GEX_old_enemies_new_allies
		cost = 5
		available = {
			NOT = {
				has_war_with = ENT
			}
		}

		ai_will_do = {
			factor = 50
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_entente_joint_exercises"
			if = {
				limit = {
					is_in_faction_with = ENT
				}
				every_country = {
					limit = { 
						is_in_faction_with = GEX
					}
					army_experience = 50
					add_command_power = 100
				}
				navy_experience = 50
				air_experience = 50
			}
			else = {
				every_country = {
					limit = { 
						is_in_faction_with = GEX
					}
					army_experience = 30
					add_command_power = 100
				}
				every_country = {
					limit = { 
						is_in_faction_with = ENT
					}
					add_command_power = 100
				}
				navy_experience = 30
				air_experience = 30
			}
		}
	}
	
	shared_focus = {
		id = GEX_copium
		icon = GFX_goal_kill_syndies
		prerequisite = { focus = GEX_old_enemies_new_allies focus = GEX_reichspakt_revival }
		x = -2
		y = 1
		relative_position_id = GEX_reichspakt_revival
		cost = 5

		ai_will_do = {
			factor = 99
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_copium"
			add_ideas = GEX_copium_idea
		}
	}
	
	shared_focus = {
		id = GEX_angery
		icon = GFX_focus_rus_teutonic
		prerequisite = { focus = GEX_copium }
		x = -2
		y = 2
		relative_position_id = GEX_reichspakt_revival
		cost = 5

		ai_will_do = {
			factor = 99
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus GEX_angery"
			swap_ideas = {
				remove_idea = GEX_copium_idea
				add_idea = GEX_copium_redux
			}
		}
	}
	
	shared_focus = {
		id = GEX_doomer
		icon = GFX_HON_peace_in_our_time
		prerequisite = { focus = GEX_darkest_hour }
		mutually_exclusive = { focus = GEX_retvrn_home }
		x = 12
		y = 1
		relative_position_id = GEX_darkest_hour
		
		offset = {
			x = 4
			y = 0
			trigger = {
				NOT = {
					tag = LEP
					tag = GEA
				}
			}
		}
		
		cost = 8
		available = {
			is_subject = no
			NOT = { is_neighbor_of = CSA }
			OR = {
				has_global_flag = JAP_Fading_Sun
				NOT = { country_exists = JAP }
				has_global_flag = GEX_treaty_done
			}
		}
		
		allow_branch = {
			OR = {
				tag = TXS
				tag = LEP
			}
			tag = event_target:current_german_exile_government
			has_global_flag = GER_became_GEX
		}

		ai_will_do = {
			factor = 99
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = GEX_home
						option = GEX_HOME_RETVRN
					}
					has_game_rule = {
						rule = GEX_home
						option = GEX_HOME_RETVRN_ENTENTE
					}
				}
			}
		}

		completion_reward = {
			swap_ideas = {
				remove_idea = GEX_trauma
				add_idea = GEX_grief
			}
			add_political_power = 150
			add_stability = 0.05
			add_war_support = -0.05
		}
	}
	
	shared_focus = {
		id = GEX_bring_them_home
		icon = GFX_goal_conspiracy
		prerequisite = { focus = GEX_doomer }
		x = -2
		y = 1
		relative_position_id = GEX_doomer
		cost = 8

		ai_will_do = {
			factor = 99
		}

		completion_reward = {
			add_stability = 0.10
			capital_scope = {
				add_manpower = 1000000
			}
			add_manpower = 25000
		}
	}
	
	shared_focus = {
		id = GEX_secure_ourselves
		icon = GFX_goal_generic_drafted_army
		prerequisite = { focus = GEX_doomer }
		x = 0
		y = 1
		relative_position_id = GEX_doomer
		cost = 8

		ai_will_do = {
			factor = 99
		}

		completion_reward = {
			add_ideas = GEX_secure
			add_offsite_building = { type = arms_factory level = 2 }
		}
	}
	
	shared_focus = {
		id = GEX_brot
		icon = GFX_goal_COR_bbbb
		prerequisite = { focus = GEX_doomer }
		x = 2
		y = 1
		relative_position_id = GEX_doomer
		cost = 8

		ai_will_do = {
			factor = 99
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
		}
	}
	
	shared_focus = {
		id = GEX_neutrality
		icon = GFX_goal_demobilization
		prerequisite = { focus = GEX_bring_them_home }
		prerequisite = { focus = GEX_secure_ourselves }
		prerequisite = { focus = GEX_brot }
		x = 0
		y = 2
		relative_position_id = GEX_doomer
		cost = 8

		ai_will_do = {
			factor = 99
		}

		completion_reward = {
			swap_ideas = {
				remove_idea = GEX_grief
				add_idea = GEX_acceptance
			}
			add_stability = 0.30
		}
	}
	
	shared_focus = {
		id = GEX_ghetto_patrol
		icon = GFX_goal_generic_navy_cruiser
		prerequisite = { focus = GEX_neutrality }
		x = -1
		y = 3
		relative_position_id = GEX_doomer
		cost = 8

		ai_will_do = {
			factor = 99
		}

		completion_reward = {
			add_ideas = GEX_ghetto_patrol_idea
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
	}
	
	shared_focus = {
		id = GEX_swiss_larp
		icon = GFX_goal_bag_of_money
		prerequisite = { focus = GEX_neutrality }
		x = 1
		y = 3
		relative_position_id = GEX_doomer
		cost = 8

		ai_will_do = {
			factor = 99
		}

		completion_reward = {
			add_ideas = GEX_swiss_larp_idea
			every_country = {
				limit = {
					NOT = {
						has_war_with = GEX
						any_country = {
							is_in_faction_with = PREV
							any_owned_state = {
								is_core_of = GER
							}
						}
					}
					exists = yes
					is_subject = no
					OR = {
						tag = ENT
						tag = AUS
						tag = TUR
						tag = USA
						tag = CAL
						tag = NEE
						tag = TEX
						tag = COR
						tag = WCC
						tag = BRA
					}
				}
				country_event = GEX_foreign.8
			}
		}
	}