###########################
# South Africa Shared Focus Tree
# By Thomahawk2k
###########################

shared_focus = {
	id = SAF_found_sabc
	icon = GFX_radiosouthafrica	
	x = 23	
	y = 0
	cost = 5

	ai_will_do = {
		factor = 80
	}
	
	offset = {
		x = -9
		y = 0
		trigger = {
			has_focus_tree = SFR_federation_focus
		}
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_found_sabc"
		add_political_power = 50
		add_ideas = SAF_sabc_idea
		if = {
			limit = { NOT = { has_tech = radio } }
			set_technology = { radio = 1 }
		}
	}
	search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_POLITICAL FOCUS_FILTER_RESEARCH FOCUS_FILTER_STABILITY }
}

shared_focus = {
	id = SAF_fund_stellenbosch
	icon = GFX_goal_BUL_university_sofia
	x = -1	
	y = 1
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_found_sabc
	}
	mutually_exclusive = {
		focus = SAF_fund_cape_town_uni
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_fund_stellenbosch"
		if = {
			limit = {
				NOT = { has_country_flag = SAF_flag_tree_sync }
			}
			add_research_slot_until_five = yes
			if = {
				limit = {
					has_government = national_populist
				}
				add_popularity = {
					ideology = national_populist
					popularity = 0.05
				}
			}
			else_if = {
				limit = {
					has_country_flag = saf_national_turned_pataut
				}
				add_popularity = {
					ideology = paternal_autocrat
					popularity = 0.05
				}
			}
			else = {
				add_popularity = {
					ideology = authoritarian_democrat
					popularity = 0.05
				}
			}
		}
	}
	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_RESEARCH }
}

shared_focus = {
	id = SAF_fund_cape_town_uni
	icon = GFX_goal_KTG_Bookstack
	x = 1	
	y = 1
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_found_sabc
	}
	mutually_exclusive = {
		focus = SAF_fund_stellenbosch
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_fund_cape_town_uni"
		if = {
			limit = {
				NOT = { has_country_flag = SAF_flag_tree_sync }
			}
			add_research_slot_until_five = yes
			if = {
				limit = {
					OR = {
						has_completed_focus = SAF_coloured_enfranchisement_act
						tag = SFR
					}
				}
				add_popularity = {
					ideology = social_liberal
					popularity = 0.05
				}
			}
			else = {
				add_popularity = {
					ideology = social_conservative
					popularity = 0.05
				}
			}
		}
	}
	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_RESEARCH }
}

shared_focus = {
	id = SAF_join_isac
	icon = GFX_goal_generic_scientific_exchange
	x = 0	
	y = 2
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_fund_cape_town_uni
		focus = SAF_fund_stellenbosch
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_join_isac"
		add_ideas = SAF_idea_sa_mathematical_society
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}

shared_focus = {
	id = SAF_focus_on_agricultural_expansion
	icon = GFX_goal_generic_agriculture2
	x = -1	
	y = 3
	cost = 5
	relative_position_id = SAF_found_sabc
	available = {
		OR = {
			has_completed_focus = SAF_complete_recovery
			custom_trigger_tooltip = {
				tooltip = SAF_tt_is_federation
				has_cosmetic_tag = SAF_federation
			}
			date > 1938.01.01
		}
		has_authoritarian_government = yes
	}

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_join_isac
	}
	mutually_exclusive = {
		focus = SAF_focus_on_manufacturing
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_focus_on_agricultural_expansion"
		add_ideas = SAF_idea_agrarian_focus
	}
	search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_ARMY_BONUS }
}

shared_focus = {
	id = SAF_subsidized_farming
	icon = GFX_USA_sweep_farm_tariffs
	x = -2
	y = 4
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_focus_on_agricultural_expansion
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_subsidized_farming"
		swap_ideas = { add_idea = SAF_idea_agrarian_focus_2 remove_idea = SAF_idea_agrarian_focus }
	}
}

shared_focus = {
	id = SAF_support_cape_wineries
	icon = GFX_goal_SAF_wine
	x = -3
	y = 5
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_subsidized_farming
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_support_cape_wineries"
		swap_ideas = { add_idea = SAF_idea_agrarian_focus_3 remove_idea = SAF_idea_agrarian_focus_2 }
	}
	search_filters = { FOCUS_FILTER_STABILITY }
}

shared_focus = {
	id = SAF_encourage_sharecropping
	icon = GFX_goal_TEX_Power_to_Farmers
	x = -3
	y = 6
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_support_cape_wineries
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_encourage_sharecropping"
		swap_ideas = { add_idea = SAF_idea_agrarian_focus_4 remove_idea = SAF_idea_agrarian_focus_3 }
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

shared_focus = {
	id = SAF_agricultural_innovation
	icon = GFX_goal_great_science
	x = -3
	y = 7
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_encourage_sharecropping
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_agricultural_innovation"
		if = {
			limit = {
				NOT = { has_country_flag = SAF_flag_tree_sync }
			}
			add_research_slot_until_five = yes
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}

shared_focus = {
	id = SAF_help_small_farming_communities
	icon = GFX_goal_agricultural_aid
	x = -1
	y = 5
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_subsidized_farming
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_help_small_farming_communities"
		add_political_power = 100
		add_stability = 0.1
	}
	search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
}

shared_focus = {
	id = SAF_industrial_farming_equipment
	icon = GFX_goal_generic_mechanisation
	x = -1
	y = 6
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_help_small_farming_communities
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_industrial_farming_equipment"
		add_ideas = SAF_industrial_farming
	}
	search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
}

shared_focus = {
	id = SAF_granary_of_africa
	icon = GFX_focus_AUS_agriculture
	x = -1
	y = 7
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_industrial_farming_equipment
	}
	prerequisite = {
		focus = SAF_encourage_sharecropping
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_granary_of_africa"
		swap_ideas = { add_idea = SAF_idea_granary_of_africa remove_idea = SAF_idea_agrarian_focus_4 }
	}
	search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
}

shared_focus = {
	id = SAF_south_african_gold
	icon = GFX_focus_usa_reestablish_the_gold_standard
	x = 0
	y = 4
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_focus_on_agricultural_expansion
		focus = SAF_focus_on_manufacturing
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_south_african_gold"
		add_ideas = SAF_african_gold_idea
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

shared_focus = {
	id = SAF_focus_on_manufacturing
	icon = GFX_goal_factory_complex
	x = 1	
	y = 3
	cost = 5
	relative_position_id = SAF_found_sabc
	available = {
		OR = {
			has_completed_focus = SAF_complete_recovery
			custom_trigger_tooltip = {
				tooltip = SAF_tt_is_federation
				has_cosmetic_tag = SAF_federation
			}
			date > 1938.01.01
		}
		OR = {
			AND = {
				has_country_flag = SAF_fusion
				has_government = authoritarian_democrat
			}
			has_democratic_government = yes
		}
	}

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_join_isac
	}
	mutually_exclusive = {
		focus = SAF_focus_on_agricultural_expansion
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_focus_on_manufacturing"
		add_ideas = SAF_idea_industrial_focus
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

shared_focus = {
	id = SAF_director_general_van_der_bijl
	icon = GFX_goal_SAF_Van_Der_Bijl
	x = 2	
	y = 4
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_focus_on_manufacturing
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_director_general_van_der_bijl"
		add_ideas = SAF_idea_Hendrik_van_der_Bijl
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

shared_focus = {
	id = SAF_form_idc_of_south_africa
	icon = GFX_goal_generic_construction
	x = 1	
	y = 5
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_director_general_van_der_bijl
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_form_idc_of_south_africa"
		unlock_decision_tooltip = SAF_establish_idc_factory_cape_town
		unlock_decision_tooltip = SAF_establish_idc_factory_durban
		unlock_decision_tooltip = SAF_establish_idc_factory_johannesburg
		unlock_decision_tooltip = SAF_establish_idc_factory_salisbury
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_tech_bonus = {
				name = SAF_form_idc_of_south_africa
				bonus = 0.5
				uses = 1
				category = industry
			}
		}
	}
	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
}

shared_focus = {
	id = SAF_recruit_native_labour
	icon = GFX_goal_LPD_be_nice_to_natives
	x = 1	
	y = 6
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_form_idc_of_south_africa
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_recruit_native_labour"
		swap_ideas = { add_idea = SAF_idea_industrial_focus_1 remove_idea = SAF_idea_industrial_focus }
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

shared_focus = {
	id = SAF_great_repairshop
	icon = GFX_goal_generic_construct_civ_factory
	x = 1	
	y = 7
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_recruit_native_labour
	}
	prerequisite = {
		focus = SAF_vanderbijlparks_steelworks
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_great_repairshop"
		swap_ideas = { add_idea = SAF_idea_great_repairshop remove_idea = SAF_idea_industrial_focus_1 }
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

shared_focus = {
	id = SAF_support_iscor_expansion
	icon = GFX_steel_and_gold
	x = 3	
	y = 5
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_director_general_van_der_bijl
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_support_iscor_expansion"
		unlock_decision_tooltip = SAF_develop_northern_cape_steel_mines
		unlock_decision_tooltip = SAF_develop_transvaal_steel_mines
		unlock_decision_tooltip = SAF_invest_cape_town
		unlock_decision_tooltip = SAF_invest_durban
		unlock_decision_tooltip = SAF_invest_witwatersrand
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_tech_bonus = {
				name = SAF_support_iscor_expansion
				bonus = 0.75
				uses = 1
				category = cat_production
			}
		}
	}
	search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
}

shared_focus = {
	id = SAF_vanderbijlparks_steelworks
	icon = GFX_vanderbijlparkindustrialcomplex
	x = 3	
	y = 6
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	available = {
		has_full_control_of_state = 275
	}
	bypass = {
		NOT = {
			owns_state = 275
		}
	}
	prerequisite = {
		focus = SAF_support_iscor_expansion
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_vanderbijlparks_steelworks"
		unlock_decision_tooltip = SAF_expand_vanderbijlspark
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_resource = {
				type = steel
				amount = 15
				state = 275
			}
		}
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}

shared_focus = {
	id = SAF_industrial_innovation
	icon = GFX_goal_great_science
	x = 3	
	y = 7
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_vanderbijlparks_steelworks
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_industrial_innovation"
		if = {
			limit = {
				NOT = { has_country_flag = SAF_flag_tree_sync }
			}
			add_research_slot_until_five = yes
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}

shared_focus = {
	id = SAF_post_war_boom
	icon = GFX_therandlordssolution
	x = 0
	y = 8
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_granary_of_africa
		focus = SAF_great_repairshop
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_post_war_boom"
		add_ideas = SAF_idea_economic_boom
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}
#Military 	
shared_focus = {
	id = SAF_New_Rifles
	icon = GFX_goal_SAF_army
	x = 11
	y = 0
	cost = 5
	relative_position_id = SAF_found_sabc

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_New_Rifles"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			country_event = saf.200
		}
	}
}
shared_focus = {
	id = SAF_Engineer_Corps
	icon = GFX_aroyalcommission
	x = -2
	y = 1
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_New_Rifles
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Engineer_Corps"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_tech_bonus = {
				name = SAF_Engineer_Corps
				bonus = 2
				uses = 2
				technology = tech_engineers2
				technology = tech_engineers3
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_Reform_SAF_Ord_Corp
	icon = GFX_goal_munitions_factories
	x = 2
	y = 1
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_New_Rifles
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Reform_SAF_Ord_Corp"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_tech_bonus = {
				name = SAF_Reform_SAF_Ord_Corp
				bonus = 1
				uses = 1
				category = electronics
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_Defence_HQ
	icon = GFX_exunitatevires
	x = 0
	y = 1
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_New_Rifles
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Defence_HQ"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_Perm_Force
	icon = GFX_usethesapolice
	x = 0
	y = 2
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Defence_HQ
	}
	prerequisite = {
		focus =  SAF_Reform_SAF_Ord_Corp	
	}	
	prerequisite = {
		focus =  SAF_Engineer_Corps	
	}	
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Perm_Force"
		add_ideas = SAF_army_1
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS }
}
shared_focus = {
	id = SAF_Smuts_Ref
	icon = GFX_ministerofdefensejanchristiaansmuts
	x = -2
	y = 3
	cost = 5
	relative_position_id = SAF_New_Rifles
	available = {
		OR = {
			AND = {
				OR = {
					has_government = social_liberal
					has_government = market_liberal
					has_government = social_conservative
					AND = {
						has_country_flag = SAF_fusion
						has_government = authoritarian_democrat
					}
				}
				date > 1938.01.01
				has_country_flag = saf_flag_elections_held
			}
			custom_trigger_tooltip = {
				tooltip = SAF_tt_is_federation
				has_cosmetic_tag = SAF_federation
			}
		}
	}

	mutually_exclusive = {
		focus = SAF_Pirow
	}
	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Perm_Force
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Smuts_Ref"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			country_event = saf.202
		}
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS }
}
shared_focus = {
	id = SAF_Cape_Corp
	icon = GFX_goal_SAF_native_1
	x = -4
	y = 4
	cost = 5
	relative_position_id = SAF_New_Rifles
	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Smuts_Ref
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Cape_Corp"
		swap_ideas = {
				remove_idea = SAF_army_2jan
				add_idea = SAF_army_3jan
		}
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_MANPOWER }
}
shared_focus = {
	id = SAF_sol_pay
	icon = GFX_goal_KSV_pay_men
	x = -2
	y = 4
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Smuts_Ref
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_sol_pay"
		add_ideas = SAF_army_stipends
	}
	search_filters = { FOCUS_FILTER_MANPOWER }
}
shared_focus = {
	id = SAF_enlist_nat_ind
	icon = GFX_goal_SAF_native_2
	x = -5
	y = 5
	cost = 5
	relative_position_id = SAF_New_Rifles
	
	available = {
		has_country_flag = saf_aux_completed
	}

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Cape_Corp
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_enlist_nat_ind"
		swap_ideas = {
			remove_idea = SAF_army_3jan
			add_idea = SAF_army_4jan
		}
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_MANPOWER }
}
shared_focus = {
	id = SAF_call_recruits
	icon = GFX_africamustbesecured
	x = -3
	y = 5
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Cape_Corp
	}
	prerequisite = {
		focus =  SAF_sol_pay
	}	

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_call_recruits"	
		swap_ideas = {
			remove_idea = SAF_army_stipends
			add_idea = SAF_army_call
		}	
	}
	search_filters = { FOCUS_FILTER_MANPOWER }
}
shared_focus = {
	id = SAF_medics
	icon = GFX_goal_FIN_promote_the_red_cross
	x = -4
	y = 6
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_call_recruits
	}
	prerequisite = {
		focus =  SAF_enlist_nat_ind
	}	

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_medics"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			custom_effect_tooltip = saf_medic_tech_tt
			hidden_effect = {
				set_technology = { improved_field_hospitals = 1 }
			}
			custom_effect_tooltip = saf_medic_tech_effect
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_armoured_crop
	icon = GFX_goal_generic_army_tanks3
	x = -4
	y = 7
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_medics
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_armoured_crop"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_tech_bonus = {
					name = SAF_armoured_crop
					bonus = 1
					uses = 2
					category = armor
			}
			custom_effect_tooltip = SAF_Armoured_Corp_tt
		}
		set_country_flag = SAF_armoured_efforts_tt
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = { #Modified Tank Designs
	id = SAF_mod_armour
	icon = GFX_IRE_medium_industry
	x = -3
	y = 8
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	available = {
		has_country_flag = SAF_armoured_complete
	}
	prerequisite = {
		focus =  SAF_armoured_crop
	}
	prerequisite = {
		focus =  SAF_supply_control
	}	

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_mod_armour"
		add_ideas = SAF_armour_production_idea
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS }
}
shared_focus = {
	id = SAF_savanna_log
	icon = GFX_feed_the_troops
	x = 0
	y = 8
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_supply_control
	}
	prerequisite = {
		focus =  SAF_est_com
	}	

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_savanna_log"
		add_ideas = SAF_army_focus
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS }
}

shared_focus = {#Environment-Adjusted Forces
	id = SAF_environ_force
	icon = GFX_goal_Desert_Officers_2
	x = 3
	y = 8
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =	SAF_Pirow_Hit
	}
	prerequisite = {
		focus =  SAF_est_com
	}	

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_environ_force"
		add_ideas = SAF_eviron_idea
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS }
}

shared_focus = {
	id = SAF_Army_Renewed
	icon = GFX_grand_army
	x = 0
	y = 9
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_mod_armour
		focus = SAF_environ_force
	}
	prerequisite = {
		focus = SAF_savanna_log
	}	

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Army_Renewed"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			army_experience = 50
		}
		add_war_support = 0.05
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_WAR_SUPPORT }
}
shared_focus = {
	id = SAF_coastal_corp
	icon = GFX_coastalfortifications
	x = 0
	y = 4
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Perm_Force
	}
	prerequisite = {
		focus =  SAF_Smuts_Ref
		focus =  SAF_Pirow
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_coastal_corp"
		add_political_power = -50
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_manpower = 10000
			719 = {
				add_building_construction = {
					type = coastal_bunker
					province = 1468
					level = 2
					instant_build = yes
				}
			}
			946 = {
				add_building_construction = {
					type = coastal_bunker
					province = 4696
					level = 2
					instant_build = yes
				}
			}
			681 = {
				add_building_construction = {
					type = coastal_bunker
					province = 12589
					level = 2
					instant_build = yes
				}
			}
		}
	}
	search_filters = { FOCUS_FILTER_MANPOWER }
}	
shared_focus = {
	id = SAF_Modern_Artillery
	icon = GFX_goal_national_artillery
	x = 0
	y = 5
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_coastal_corp
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Modern_Artillery"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_tech_bonus = {
				name = SAF_Modern_Artillery
				bonus = 1
				uses = 2
				category = artillery
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_Army_College
	icon = GFX_southafricanmilitarycollege
	x = 0
	y = 6
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Modern_Artillery
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Army_College"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			army_experience = 50
		}
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_RESEARCH }
}

shared_focus = {#Form the Directorate of Supplies
	id = SAF_supply_control
	icon = GFX_african_logistics
	x = -1
	y = 7
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Army_College
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_supply_control"
		if = {
			limit = { 
				NOT = { has_tech = tech_logistics_company } 
			}
			set_technology = { tech_logistics_company = 1 }
		}
		else = {
			add_political_power = 100
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_POLITICAL }
}

shared_focus = {#Establish the Reconnaissance Commando
	id = SAF_est_com
	icon = GFX_focus_generic_paratrooper
	x = 1
	y = 7
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Army_College
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_est_com"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_tech_bonus = {
					name = SAF_est_com
					bonus = 1
					uses = 2
					category = para_tech
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}	
shared_focus = {
	id = SAF_Pirow
	icon = GFX_goal_agrarian_soldiers
	x = 2
	y = 3
	cost = 5
	relative_position_id = SAF_New_Rifles
	available = {
		OR = {
			has_government = authoritarian_democrat
			has_government = paternal_autocrat
			has_government = national_populist
		}
		NOT = {
			has_country_flag = SAF_fusion
		}
		date > 1938.01.01
		has_country_flag = saf_flag_elections_held
	}

	mutually_exclusive = {
		focus = SAF_Smuts_Ref
	}

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Perm_Force
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Pirow"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			country_event = saf.220
		}
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS }
}
shared_focus = {
	id = SAF_Pirow_SSB
	icon = GFX_thesasf
	x = 2
	y = 4
	cost = 5
	relative_position_id = SAF_New_Rifles

	available = {
	}
	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Pirow
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Pirow_SSB"
		swap_ideas = { 
			remove_idea = SAF_SSB_formed 
			add_idea = SAF_SSB_expanded
		}
	}
	search_filters = { FOCUS_FILTER_MANPOWER }
}
shared_focus = {
	id = SAF_Pirow_Lessons
	icon = GFX_steedsgetrouopdiepad
	x = 4
	y = 4
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Pirow
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Pirow_Lessons"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_Pirow_Kommando
	icon = GFX_focus_prc_infiltration
	x = 3
	y = 5
	cost = 5
	relative_position_id = SAF_New_Rifles
	
	available = {
	}

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Pirow_Lessons
	}
	prerequisite = {
		focus =  SAF_Pirow_SSB
	}	

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Pirow_Kommando"
			custom_effect_tooltip = SAF_Kommando_reactivated
			add_political_power = 25
	}
	search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_POLITICAL FOCUS_FILTER_ARMY_BONUS }
}
shared_focus = {
	id = SAF_Pirow_Mobility_Focus
	icon = GFX_goal_generic_armored_cars
	x = 5
	y = 5
	cost = 5
	relative_position_id = SAF_New_Rifles

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Pirow_Lessons
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Pirow_Mobility_Focus"	
		add_ideas = SAF_army_pirow_mob_foc		
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS }
}
shared_focus = {
	id = SAF_Pirow_Mech
	icon = GFX_mechanisedsupport
	x = 4
	y = 6
	cost = 5
	relative_position_id = SAF_New_Rifles
	available = {
		custom_trigger_tooltip = {
			tooltip = SAF_kommando_formalised
			has_idea = SAF_army_3pir 
		}
	}
	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Pirow_Kommando
	}
	prerequisite = {
		focus =  SAF_Pirow_Mobility_Focus
	}	

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Pirow_Mech"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_tech_bonus = {
				name = SAF_Pirow_Mech
					bonus = 2
					category = cat_mechanized_equipment
					uses = 1
			}
			add_equipment_to_stockpile = {
				type = motorized_equipment
				amount = 350
				producer = SAF
			}
			add_equipment_to_stockpile = {
				type = mechanized_equipment_1
				amount = 150
				producer = SAF
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_Pirow_Hit
	icon = GFX_goal_split_helmet
	x = 4
	y = 7
	cost = 5
	relative_position_id = SAF_New_Rifles
	available = {
		custom_trigger_tooltip = {
			tooltip = SAF_kommando_tactics
			has_idea = SAF_army_4pir 
		}
	}
	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus =  SAF_Pirow_Mech
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Pirow_Hit"
		add_ideas = SAF_Pirow_harry
	}
	search_filters = { FOCUS_FILTER_ARMY_BONUS }
}
shared_focus = {
	id = SAF_Expand_Branches
	icon = GFX_new_ports
	x = 18 #-8
	y = -9 #1
	cost = 5
	relative_position_id = SAF_Army_Renewed

	ai_will_do = {
		factor = 80
	}
	available = {

	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Expand_Branches"
		air_experience = 35
		navy_experience = 35
	}
	search_filters = { FOCUS_FILTER_NAVY_BONUS FOCUS_FILTER_AIRFORCE_BONUS }
}
shared_focus = {
	id = SAF_Naval_Vol
	icon = GFX_seawarddefenceforce
	x = -2
	y = 1
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Expand_Branches
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Naval_Vol"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_doctrine_cost_reduction = {
				name = naval_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_Avation_Corp
	icon = GFX_theschoolofaviation
	x = 2
	y = 1
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Expand_Branches
	}

	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Avation_Corp"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_For_Aid
	icon = GFX_goal_SWI_international_aid
	x = 0
	y = 2
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Naval_Vol
	}
	prerequisite = {
		focus = SAF_Avation_Corp
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_For_Aid"
		add_research_slot_until_five = yes
		add_political_power = 50
	}
	search_filters = { FOCUS_FILTER_POLITICAL }
}
shared_focus = {
	id = SAF_Can_Aid
	icon = GFX_goal_entente_arms_trade
	x = -6
	y = 3
	cost = 5
	relative_position_id = SAF_Expand_Branches
	available = {
		has_completed_focus = SAF_Smuts_Ref
	}
	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_For_Aid
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Can_Aid"
		add_political_power = 25
		add_war_support = -0.05
	}
	search_filters = { FOCUS_FILTER_POLITICAL }
}
shared_focus = {
	id = SAF_Imperial_Gift
	icon = GFX_thequeenscharity
	x = -9
	y = 4
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Can_Aid
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Imperial_Gift"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_equipment_to_stockpile = {
				type = small_plane_airframe
				amount = 100
				producer = CAN
			}
			add_equipment_to_stockpile = {
				type = small_plane_cas_airframe
				amount = 50
				producer = CAN
			}
		}
	}
	search_filters = { FOCUS_FILTER_AIRFORCE_BONUS }
}
shared_focus = {
	id = SAF_Plane_Fact
	icon = GFX_MON_improve_airbases_in_mongolia
	x = -8
	y = 5
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Imperial_Gift
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Plane_Fact"
		add_ideas = SAF_local_aviation_idea
	}
	search_filters = { FOCUS_FILTER_AIRFORCE_BONUS }
}
shared_focus = {
	id = SAF_Can_Pilot_Training
	icon = GFX_exercises_in_the_sky
	x = -10
	y = 5
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Imperial_Gift
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Can_Pilot_Training"
		add_ideas = SAF_Can_Pilot_Training_idea
	}
	search_filters = { FOCUS_FILTER_AIRFORCE_BONUS }
}
shared_focus = {
	id = SAF_SAAF
	icon = GFX_goal_SAF_airforce
	x = -9
	y = 6
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Plane_Fact
	}
	prerequisite = {
		focus = SAF_Can_Pilot_Training
	}	
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_SAAF"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_Recall_Halifax
	icon = GFX_goal_CAN_navy
	x = -3
	y = 4
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Can_Aid
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Recall_Halifax"
		add_ideas = SAF_Halifax_Navy
	}
	search_filters = { FOCUS_FILTER_NAVY_BONUS }
}
shared_focus = {
	id = SAF_Wolf_Pack
	icon = GFX_goal_generic_wolf_pack
	x = -4
	y = 5
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Recall_Halifax
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Wolf_Pack"
		swap_ideas = {
			remove_idea = SAF_Halifax_Navy
			add_idea = SAF_Sea_Wolves
		}
	}
	search_filters = { FOCUS_FILTER_NAVY_BONUS }
}
shared_focus = {
	id = SAF_Con_Navy
	icon = GFX_goal_NFA_merchant_marine
	x = -2
	y = 5
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Recall_Halifax
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Con_Navy"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_equipment_to_stockpile = {
				type = convoy_1
				amount = 75
				producer = SAF
			}
		}
	}
}
shared_focus = {
	id = SAF_Royal_Navy
	icon = GFX_goal_SAF_navy
	x = -3
	y = 6
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Wolf_Pack
	}
	prerequisite = {
		focus = SAF_Con_Navy
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Royal_Navy"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_doctrine_cost_reduction = {
				name = naval_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_Can_Develop_Naval
	icon = GFX_goal_USA_reconcile_canada
	x = -6
	y = 4
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Can_Aid
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Can_Develop_Naval"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			681 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = naval_base
					level = 2
					province = 12589
					instant_build = yes
				}			
			}
			946 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = naval_base
					level = 2
					province = 4696
					instant_build = yes
				}			
			}
		}
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}
shared_focus = {
	id = SAF_Expand_Fort
	icon = GFX_goal_generic_airports
	x = -6
	y = 6
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Can_Develop_Naval
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Expand_Fort"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			if = {
				limit = { has_tech = radio_detection }
				add_tech_bonus = {
					name = SAF_Expand_Fort
					bonus = 1
					uses = 1
					category = radar_tech
				}
			}
			else = {
				set_technology = { radio_detection = 1 }
			}
			if = {
				limit = {
					681 = { is_owned_and_controlled_by = SAF }
				}
				681 = {
					add_building_construction = {
						type = radar_station
						level = 1
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					275 = { is_owned_and_controlled_by = SAF }
				}
				275 = {
					add_building_construction = {
						type = radar_station
						level = 1
						instant_build = yes
					}
				}
			}		
			681 = {
				add_building_construction = {
					type = air_base
					level = 3
					instant_build = yes
				}
			}	
			275 = {
				add_building_construction = {
					type = air_base
					level = 3
					instant_build = yes
				}				
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}	
shared_focus = {
	id = SAF_Home_Isles_Invasion
	icon = GFX_commit_to_liberation
	x = -6
	y = 7
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Expand_Fort
	}
	prerequisite = {
		focus = SAF_SAAF
	}
	prerequisite = {
		focus = SAF_Royal_Navy
	}	
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Home_Isles_Invasion"
		add_ideas = SAF_Great_Crusade
	}
	search_filters = { FOCUS_FILTER_WAR_SUPPORT }
}
shared_focus = {
	id = SAF_Non_Can_Aid
	icon = GFX_opportunistic_alliance
	x = 6
	y = 3
	cost = 5
	relative_position_id = SAF_Expand_Branches
	available = {
		has_completed_focus = SAF_Pirow
	}
	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_For_Aid
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Non_Can_Aid"
		add_political_power = -25
		add_war_support = 0.05
	}
	search_filters = { FOCUS_FILTER_WAR_SUPPORT }
}
shared_focus = {
	id = SAF_Dutch_Connection
	icon = GFX_goal_HOL_friendship_with_the_boers
	x = 3
	y = 4
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Non_Can_Aid
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Dutch_Connection"
		add_ideas = SAF_Dutch_Love
	}
	search_filters = { FOCUS_FILTER_AIRFORCE_BONUS }
}
shared_focus = {
	id = SAF_Dutch_Aircraft
	icon = GFX_focus_hol_fokker
	x = 2
	y = 5
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Dutch_Connection
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Dutch_Aircraft"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_equipment_to_stockpile = {
				type = small_plane_airframe
				amount = 50
				producer = HOL
			}
			add_equipment_to_stockpile = {
				type = medium_plane_airframe
				amount = 25
				producer = SAF
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_Dutch_Training
	icon = GFX_goal_MAF_white_phosphorus
	x = 4
	y = 5
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Dutch_Connection
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Dutch_Training"
		add_ideas = MAF_white_phosphorus_idea
	}
	search_filters = { FOCUS_FILTER_AIRFORCE_BONUS }
}
shared_focus = {
	id = SAF_SALM
	icon = GFX_ruletheskies
	x = 3
	y = 6
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Dutch_Training
	}
	prerequisite = {
		focus = SAF_Dutch_Aircraft
	}	
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_SALM"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_GER_Mil_Invest
	icon = GFX_goal_German_Investements
	x = 6
	y = 4
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Non_Can_Aid
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_GER_Mil_Invest"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			945 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = naval_base
					level = 3
					province = 4528
					instant_build = yes
				}
			}
			275 = {
					add_building_construction = {
						type = infrastructure
						level = 2
						instant_build = yes
				}
			}
			542 = {
					add_building_construction = {
						type = infrastructure
						level = 3
						instant_build = yes
				}
			}
		}
	}
	search_filters = { FOCUS_FILTER_INDUSTRY }
}
shared_focus = {
	id = SAF_GER_AAA
	icon = GFX_grantthembasingrights
	x = 6
	y = 6
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_GER_Mil_Invest
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_GER_AAA"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			if = {
				limit = { has_tech = radio_detection }
				add_tech_bonus = {
					name = SAF_GER_AAA
					bonus = 1
					uses = 1
					category = radar_tech
				}
			}
				else = {
					set_technology = { radio_detection = 1 }
				}
			if = {
				limit = {
					275 = { is_owned_and_controlled_by = SAF }
				}
				275 = {
					add_building_construction = {
						type = radar_station
						level = 1
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					945 = { is_owned_and_controlled_by = SAF }
				}
				945 = {
					add_building_construction = {
						type = radar_station
						level = 1
						instant_build = yes
					}
				}
			}		
			275 = {
				add_building_construction = {
					type = air_base
					level = 3
					instant_build = yes
				}
			}	
			945 = {
				add_building_construction = {
					type = air_base
					level = 3
					instant_build = yes
				}				
			}		
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_GER_Naval_Advis
	icon = GFX_goal_Marineakademie
	x = 9
	y = 4	
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_Non_Can_Aid
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_GER_Naval_Advis"
		add_ideas = SAF_GER_Navy_Advisors
	}
	search_filters = { FOCUS_FILTER_NAVY_BONUS }
}
shared_focus = {
	id = SAF_GER_Naval_Lessons
	icon = GFX_MAG_pride_of_navy
	x = 8
	y = 5
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_GER_Naval_Advis
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_GER_Naval_Lessons"
		swap_ideas = {
			remove_idea = SAF_GER_Navy_Advisors
			add_idea = SAF_GER_Navy_Advisors_1
		}		
	}
	search_filters = { FOCUS_FILTER_NAVY_BONUS }
}
shared_focus = {
	id = SAF_GER_Navy_Ships
	icon = GFX_goal_MAG_Navy_with_a_colony
	x = 10
	y = 5
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_GER_Naval_Advis
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_GER_Navy_Ships"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_tech_bonus = {
				name = SAF_GER_Navy_Ships
				bonus = 1
				uses = 2
				category = ca_tech
			}
			add_tech_bonus = {
				name = SAF_GER_Navy_Ships
				bonus = 1
				uses = 2 				
				category = dd_tech
			}			
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_GER_Navy
	icon = GFX_goal_SAF_Afrikaner_Navy
	x = 9
	y = 6
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_GER_Navy_Ships
	}
	prerequisite = {
		focus = SAF_GER_Naval_Lessons
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_GER_Navy"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			add_doctrine_cost_reduction = {
				name = naval_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
		}
	}
	search_filters = { FOCUS_FILTER_RESEARCH }
}
shared_focus = {
	id = SAF_War_Policy
	icon = GFX_wheredowegofromhere
	x = 6
	y = 7
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_GER_Navy
	}
	prerequisite = {
		focus = SAF_GER_AAA
	}
	prerequisite = {
		focus = SAF_SALM
	}	
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_War_Policy"
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_flag_tree_sync
				}
			}
			country_event = saf.225
		}
	}
	search_filters = { FOCUS_FILTER_POLITICAL }
}
shared_focus = {
	id = SAF_Anti_Syndie
	icon = GFX_tablethesurpressionofsyndicalismact
	x = 0
	y = 8
	cost = 5
	relative_position_id = SAF_Expand_Branches

	ai_will_do = {
		factor = 80
	}
	prerequisite = {
		focus = SAF_War_Policy
		focus = SAF_Home_Isles_Invasion
	}
	completion_reward = {
		log = "[GetDateText]: [Root.GetName]: Focus SAF_Anti_Syndie"
		add_war_support = 0.20
		add_manpower = 10000
	}
	search_filters = { FOCUS_FILTER_WAR_SUPPORT }
}