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

focus_tree = {
	id = SAF_socialist_focus

	country = {
		factor = 0

		modifier = {
			add = 5
			tag = SAF
		}
	}

	reset_on_civilwar = no
	default = no
	continuous_focus_position = { x = 100 y = 950 }

	focus = {
		id = SAF_johannesburg_convention
		icon = GFX_goal_USA_sabotabby
		x = 7
		y = 0
		cost = 5
		available = {
			controls_state = 275
		}
		ai_will_do = {
			factor = 100
		}
		select_effect = {
			country_event = { id = saf.108 days = 3}
		}
		bypass = {
			is_subject = yes
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_black_monday_crisis"
			custom_effect_tooltip = SAF_tt_ruling_party_elected
			hidden_effect = {
				country_event = { id = saf.112 }
				country_event = { id = saf.113 }
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SAF_segregation_question
		icon = GFX_extensivenativereform
		x = -3
		y = 1
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_johannesburg_convention
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_segregation_question"
			if = {
				limit = {
					has_idea = SAF_segregation_1
				}
				swap_ideas = { add_idea = SAF_de_facto_segregation remove_idea = SAF_segregation_1 }
			}
			else_if = {
				limit = {
					has_idea = SAF_segregation_2
				}
				swap_ideas = { add_idea = SAF_de_facto_segregation remove_idea = SAF_segregation_2 }
			}
			else_if = {
				limit = {
					has_idea = SAF_segregation_3
				}
				swap_ideas = { add_idea = SAF_de_facto_segregation remove_idea = SAF_segregation_3 }
			}
			else_if = {
				limit = {
					has_idea = SAF_segregation_4
				}
				swap_ideas = { add_idea = SAF_de_facto_segregation remove_idea = SAF_segregation_4 }
			}
			else = {
				swap_ideas = { add_idea = SAF_de_facto_segregation remove_idea = SAF_segregation_5 }
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
	}
	
	focus = {
		id = SAF_herald_syndicate_autonomy
		icon = GFX_workersuniteforawhitesouthafrica
		x = -5
		y = 2
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_segregation_question
		}
		mutually_exclusive = {
			focus = SAF_outlaw_colour_bars
		}
		available = {
			has_government = radical_socialist
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_herald_syndicate_autonomy"
			custom_effect_tooltip = SAF_tt_segregation_not_further_dismantled
			increase_ruling_party_popularity_by_5 = yes
			add_political_power = 100
			hidden_effect = {
				country_event = { id = saf.116 days = 10 }
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_la_guma_administration
		icon = GFX_goal_ideology_totalist
		x = -6
		y = 3
		cost = 0
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_herald_syndicate_autonomy
		}
		available = {
			has_government = totalist
		}
		bypass = {
			has_government = totalist
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_la_guma_administration"
			custom_effect_tooltip = SAF_tt_this_bypassed_if_totalist_takeover
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_land_restitution
		icon = GFX_goal_purge_opposition
		x = -7
		y = 4
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_la_guma_administration
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_land_restitution"
			country_event = { id = saf.157 }
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_native_empowerment_program
		icon = GFX_goal_MAF_African_Workers_Union
		x = -5
		y = 4
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_la_guma_administration
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_native_empowerment_program"
			add_manpower = 30000
			add_political_power = 100
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
	}
	
	focus = {
		id = SAF_native_republic
		icon = GFX_goal_HOL_council_communism
		x = -5
		y = 5
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_land_restitution
		}
		prerequisite = {
			focus = SAF_native_empowerment_program
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_native_empowerment_program"
			add_ideas = SAF_idea_native_republic
			if = {
				limit = {
					has_idea = SAF_de_facto_segregation
				}
				swap_ideas = { add_idea = SAF_de_facto_segregation_1 remove_idea = SAF_de_facto_segregation }
			}
			else = {
				remove_ideas = SAF_de_facto_segregation_1
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_outlaw_colour_bars
		icon = GFX_goal_production
		x = -3
		y = 2
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_segregation_question
		}
		mutually_exclusive = {
			focus = SAF_herald_syndicate_autonomy
		}
		available = {
			OR = {
				has_government = syndicalist
				has_government = totalist
			}
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_outlaw_colour_bars"
			swap_ideas = { add_idea = SAF_de_facto_segregation_1 remove_idea = SAF_de_facto_segregation }
			hidden_effect = { country_event = { id = saf.156 days = 14 } }
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
	}
	
	focus = {
		id = SAF_restrict_internal_migration
		icon = GFX_EGY_Palestine_Defence
		x = -4
		y = 3
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_herald_syndicate_autonomy
			focus = SAF_outlaw_colour_bars
		}
		mutually_exclusive = {
			focus = SAF_end_all_pass_laws
		}
		available = {
			NOT = {
				has_government = totalist
			}
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_restrict_internal_migration"
			custom_effect_tooltip = SAF_tt_segregation_not_further_dismantled
			custom_effect_tooltip = SAF_tt_urban_overpopulation_curtailed
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_end_all_pass_laws
		icon = GFX_goal_refugee_management
		x = -2
		y = 3
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_herald_syndicate_autonomy
			focus = SAF_outlaw_colour_bars
		}
		mutually_exclusive = {
			focus = SAF_restrict_internal_migration
		}
		available = {
			NOT = {
				has_government = radical_socialist
			}
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_end_all_pass_laws"
			if = {
				limit = {
					has_idea = SAF_de_facto_segregation
				}
				swap_ideas = { add_idea = SAF_de_facto_segregation_1 remove_idea = SAF_de_facto_segregation }
			}
			else = {
				remove_ideas = SAF_de_facto_segregation_1
			}
			swap_ideas = { remove_idea = SAF_idea_slum_formation add_idea = SAF_idea_slum_formation_2 }
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_urban_housing_program
		icon = GFX_collective_housing
		x = -3
		y = 4
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_end_all_pass_laws
			focus = SAF_restrict_internal_migration
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_urban_housing_program"
			unlock_decision_tooltip = SAF_decision_township_modernisation
		}
	}
	
	focus = {
		id = SAF_diversify_higher_education
		icon = GFX_focus_research2
		x = -3
		y = 5
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_urban_housing_program
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_diversify_higher_education"
			add_research_slot_until_five = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = SAF_revolution_in_practice
		icon = GFX_remembering1922
		x = 0
		y = 1
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_johannesburg_convention
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_revolution_in_practice"
			add_political_power = 100
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_curtail_counterrevolutionary_activity
		icon = GFX_Socialist_Law
		x = -1
		y = 2
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_revolution_in_practice
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_curtail_counterrevolutionary_activity"
			swap_ideas = { add_idea = SAF_idea_reactionary_activities_1 remove_idea = SAF_idea_reactionary_activities }
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}
	
	focus = {
		id = SAF_reform_south_african_police
		icon = GFX_goal_NOR_secret_police
		x = -1
		y = 4
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_curtail_counterrevolutionary_activity
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_reform_south_african_police"
			remove_ideas = SAF_idea_reactionary_activities_1
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}
	
	focus = {
		id = SAF_control_the_narrative
		icon = GFX_goal_generic_media_controls
		x = -1
		y = 5
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_reform_south_african_police
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_control_the_narrative"
			add_political_power = 100
			increase_ruling_party_popularity_by_10 = yes
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_seize_industrial_capital
		icon = GFX_goal_manage_industries
		x = 1
		y = 2
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_revolution_in_practice
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_seize_industrial_capital"
			if = {
				limit = {
					has_idea = SAF_black_monday_0
				}
				swap_ideas = { add_idea = SAF_idea_converting_to_socialism remove_idea = SAF_black_monday_0 }
			}
			else_if = {
				limit = {
					has_idea = SAF_black_monday_1
				}
				swap_ideas = { add_idea = SAF_idea_converting_to_socialism remove_idea = SAF_black_monday_1 }
			}
			else = {
				swap_ideas = { add_idea = SAF_idea_converting_to_socialism remove_idea = SAF_black_monday_2 }
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_tolerate_small_farming_enterprises
		icon = GFX_goal_agricultural_aid
		x = 0
		y = 3
		cost = 4
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_seize_industrial_capital
		}
		mutually_exclusive = {
			focus = SAF_nationalize_all_farms
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_tolerate_small_farming_enterprises"
			custom_effect_tooltip = SAF_tt_effects_socialisation_not_worse
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_nationalize_all_farms
		icon = GFX_goal_state_economy
		x = 2
		y = 3
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_seize_industrial_capital
		}
		mutually_exclusive = {
			focus = SAF_tolerate_small_farming_enterprises
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_nationalize_all_farms"
			swap_ideas = { add_idea = SAF_idea_converting_to_socialism_1 remove_idea = SAF_idea_converting_to_socialism }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_grab_the_mines
		icon = GFX_goal_generic_seize_money
		x = 1
		y = 4
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_nationalize_all_farms
			focus = SAF_tolerate_small_farming_enterprises
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_grab_the_mines"
			custom_effect_tooltip = SAF_tt_reenable_resource_exploitation
			if = {
				limit = {
					has_idea = SAF_idea_converting_to_socialism_1
				}
				swap_ideas = { add_idea = SAF_idea_converting_to_socialism_2 remove_idea = SAF_idea_converting_to_socialism_1 }
			}
			else = {
				swap_ideas = { add_idea = SAF_idea_converting_to_socialism_1 remove_idea = SAF_idea_converting_to_socialism }
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_divide_the_spoils
		icon = GFX_focus_usa_reestablish_the_gold_standard
		x = 1
		y = 5
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_grab_the_mines
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_divide_the_spoils"
			if = {
				limit = {
					has_completed_focus = SAF_tolerate_small_farming_enterprises
				}
				remove_ideas = SAF_idea_converting_to_socialism_1
			}
			else = {
				swap_ideas = { add_idea = SAF_idea_syndicalist_economy remove_idea = SAF_idea_converting_to_socialism_2 }
			}
			custom_effect_tooltip = SAF_tt_enables_economy_tree
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_i_see_you
		icon = GFX_goal_SAF_ICU
		x = 3
		y = 1
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_johannesburg_convention
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_i_see_you"
			swap_ideas = { add_idea = SAF_idea_low_participation_1 remove_idea = SAF_idea_low_participation }
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_organise_natives
		icon = GFX_goal_workers_rights
		x = 3
		y = 2
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_i_see_you
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_organise_natives"
			add_ideas = SAF_idea_native_trade_unions
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_encourage_communal_engagement
		icon = GFX_goal_generic_controlled_board
		x = 5
		y = 2
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_i_see_you
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_encourage_communal_engagement"
			add_political_power = 100
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}
	
	focus = {
		id = SAF_native_education_program
		icon = GFX_focus_generic_socialist_science
		x = 4
		y = 3
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_organise_natives
		}
		prerequisite = {
			focus = SAF_encourage_communal_engagement
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_native_education_program"
			add_ideas = SAF_idea_native_education
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = SAF_incorporate_saic
		icon = GFX_focus_RAJ_seek_help_from_soviet
		x = 3
		y = 4
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_native_education_program
		}
		mutually_exclusive = {
			focus = SAF_support_saic
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_incorporate_saic"
			increase_ruling_party_popularity_by_5 = yes
			add_political_power = 100
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_support_saic
		icon = GFX_focus_generic_diplomatic_treaty
		x = 5
		y = 4
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_native_education_program
		}
		mutually_exclusive = {
			focus = SAF_incorporate_saic
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_support_saic"
			add_stability = 0.05
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
	}
	
	focus = {
		id = SAF_full_participation_doctrine
		icon = GFX_goal_generic_national_unity
		x = 3
		y = 5
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_incorporate_saic
			focus = SAF_support_saic
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_full_participation_doctrine"
			remove_ideas = SAF_idea_low_participation_1
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}
	
	focus = {
		id = SAF_durban_convention
		icon = GFX_goal_commune_politics
		x = 0
		y = 6
		cost = 6
		relative_position_id = SAF_johannesburg_convention
		prerequisite = {
			focus = SAF_diversify_higher_education
		}
		prerequisite = {
			focus = SAF_control_the_narrative
		}
		prerequisite = {
			focus = SAF_divide_the_spoils
		}
		prerequisite = {
			focus = SAF_full_participation_doctrine
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_durban_convention"
			add_political_power = 100
			add_stability = 0.15
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}
	
	focus = {
		id = SAF_dethrone_the_paramount_chiefs
		icon = GFX_theparamountchiefs
		x = 14
		y = 0
		cost = 6

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_dethrone_the_paramount_chiefs"
			add_ideas = SAF_idea_dismantling_tribal_structures
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_found_bechuanaland_election_comm
		icon = GFX_goal_DOM_Call_Special_Election
		x = -1
		y = 1
		cost = 6
		relative_position_id = SAF_dethrone_the_paramount_chiefs
		prerequisite = {
			focus = SAF_dethrone_the_paramount_chiefs
		}
		available = {
			controls_state = 542
		}
		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_found_bechuanaland_election_comm"
			add_political_power = 100
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}
	
	focus = {
		id = SAF_annex_basutoland_and_swaziland
		icon = GFX_goal_tfv_saf_anti_colonialist_crusade
		x = 1
		y = 1
		cost = 6
		relative_position_id = SAF_dethrone_the_paramount_chiefs
		prerequisite = {
			focus = SAF_dethrone_the_paramount_chiefs
		}
		available = {
			controls_state = 85
		}
		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_annex_basutoland_and_swaziland"
			85 = {
				add_state_modifier = {
					modifier = {
						local_non_core_manpower = 0.5
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}
	
	focus = {
		id = SAF_protectorate_political_development
		icon = GFX_goal_generic_propaganda
		x = 0
		y = 2
		cost = 6
		relative_position_id = SAF_dethrone_the_paramount_chiefs
		prerequisite = {
			focus = SAF_found_bechuanaland_election_comm
		}
		prerequisite = {
			focus = SAF_annex_basutoland_and_swaziland
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_protectorate_political_development"
			add_political_power = 100
			add_stability = 0.05
			add_war_support = 0.05
			remove_ideas = SAF_idea_slavery
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT }
	}
	
	focus = {
		id = SAF_bechuanland_autonomous_commune
		icon = GFX_goal_syndicalism
		x = -1
		y = 3
		cost = 6
		relative_position_id = SAF_dethrone_the_paramount_chiefs
		prerequisite = {
			focus = SAF_found_bechuanaland_election_comm
		}
		prerequisite = {
			focus = SAF_protectorate_political_development
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_bechuanland_autonomous_commune"
			542 = {
				add_state_modifier = {
					modifier = {
						local_non_core_manpower = 0.5
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}
	
	focus = {
		id = SAF_extend_citizenship_to_swazi_sotho
		icon = GFX_goal_NOR_passport_convention
		x = 1
		y = 3
		cost = 6
		relative_position_id = SAF_dethrone_the_paramount_chiefs
		prerequisite = {
			focus = SAF_protectorate_political_development
		}
		prerequisite = {
			focus = SAF_annex_basutoland_and_swaziland
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_extend_citizenship_to_swazi_sotho"
			85 = {
				add_core_of = SAF
				hidden_effect = {
					add_state_modifier = {
						modifier = {
							local_non_core_manpower = -0.5
						}
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	focus = {
		id = SAF_ethnic_representation_councils
		icon = GFX_focus_generic_self_management
		x = 0
		y = 4
		cost = 6
		relative_position_id = SAF_dethrone_the_paramount_chiefs
		prerequisite = {
			focus = SAF_bechuanland_autonomous_commune
		}
		prerequisite = {
			focus = SAF_extend_citizenship_to_swazi_sotho
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_ethnic_representation_councils"
			add_ideas = SAF_idea_ethnic_rep_councils
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = SAF_develop_borderlands
		icon = GFX_goal_generic_soviet_construction
		x = -1
		y = 5
		cost = 6
		relative_position_id = SAF_dethrone_the_paramount_chiefs
		prerequisite = {
			focus = SAF_ethnic_representation_councils
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_develop_borderlands"
			unlock_decision_tooltip = SAF_develop_orange_free_state_steel_mines
			unlock_decision_tooltip = SAF_develop_rhodesia_steel_mines
			542 = {
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 2
			}
			545 = {
				add_building_construction = {
					type = infrastructure
					level = 2
					instant_build = yes
				}
				add_extra_state_shared_building_slots = 2
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_communal_defence_auxiliaries
		icon = GFX_goal_HOL_military_union
		x = 1
		y = 5
		cost = 6
		relative_position_id = SAF_dethrone_the_paramount_chiefs
		prerequisite = {
			focus = SAF_ethnic_representation_councils
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_communal_defence_auxiliaries"
			add_manpower = 15000
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT }
	}
	
	focus = {
		id = SAF_complete_the_integration
		icon = GFX_goal_generic_demand_territory
		x = 0
		y = 6
		cost = 6
		relative_position_id = SAF_dethrone_the_paramount_chiefs
		prerequisite = {
			focus = SAF_develop_borderlands
		}
		prerequisite = {
			focus = SAF_communal_defence_auxiliaries
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_complete_the_integration"
			if = {
				limit = {
					owns_state = 85
				}
				add_state_core = 85
			}
			if = {
				limit = {
					owns_state = 738
				}
				add_state_core = 738
			}
			if = {
				limit = {
					owns_state = 542
				}
				add_state_core = 542
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	
	focus = {
		id = SAF_SOC_join_isac
		icon = GFX_focus_generic_socialist_science
		x = 20	
		y = 0
		cost = 6
		available = {
			FRA = { has_completed_focus = FRA_Phalanstere_internationale }
			country_exists = INT
			NOT = { has_war_with = INT }
		}

		ai_will_do = {
			factor = 100
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_join_isac"
			add_political_power = 50
			add_to_tech_sharing_group = phalanstere_research
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = SAF_SOC_focus_on_agricultural_expansion
		icon = GFX_goal_agriculture2
		x = -1	
		y = 1
		cost = 6
		relative_position_id = SAF_SOC_join_isac
		available = {
			has_completed_focus = SAF_divide_the_spoils
			OR = {
				has_government = totalist
				has_country_leader = {
					ruling_only = yes
					name = "Moses Kotane"
				}
			}
		}

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_join_isac
		}
		mutually_exclusive = {
			focus = SAF_SOC_focus_on_manufacturing
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_focus_on_agricultural_expansion"
			add_ideas = SAF_idea_agrarian_focus
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_ARMY_BONUS }
	}
	
	focus = {
		id = SAF_SOC_subsidized_farming
		icon = GFX_focus_prc_agrarian_socialism
		x = -2
		y = 2
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_focus_on_agricultural_expansion
		}

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

	focus = {
		id = SAF_SOC_support_cape_wineries
		icon = GFX_goal_GEO_wine
		x = -3
		y = 3
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_subsidized_farming
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_support_cape_wineries"
			swap_ideas = { add_idea = SAF_idea_agrarian_focus_3 remove_idea = SAF_idea_agrarian_focus_2 }
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}
	
	focus = {
		id = SAF_SOC_encourage_sharecropping
		icon = GFX_goal_agrarian_reform
		x = -3
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_support_cape_wineries
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_encourage_sharecropping"
			swap_ideas = { add_idea = SAF_idea_agrarian_focus_4 remove_idea = SAF_idea_agrarian_focus_3 }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_SOC_agricultural_innovation
		icon = GFX_goal_great_science
		x = -3
		y = 5
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_encourage_sharecropping
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_agricultural_innovation"
			add_research_slot_until_five = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SAF_SOC_help_small_farming_communities
		icon = GFX_goal_Workers_Paradise
		x = -1
		y = 3
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_subsidized_farming
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_help_small_farming_communities"
			add_political_power = 100
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}
	
	focus = {
		id = SAF_SOC_industrial_farming_equipment
		icon = GFX_goal_generic_construct_civilian
		x = -1
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_help_small_farming_communities
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_industrial_farming_equipment"
			add_ideas = SAF_industrial_farming
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_SOC_granary_of_africa
		icon = GFX_focus_AUS_agriculture
		x = -1
		y = 5
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_industrial_farming_equipment
		}
		prerequisite = {
			focus = SAF_SOC_encourage_sharecropping
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_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 }
	}
	
	focus = {
		id = SAF_SOC_south_african_gold
		icon = GFX_focus_usa_reestablish_the_gold_standard
		x = 0
		y = 2
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_focus_on_agricultural_expansion
			focus = SAF_SOC_focus_on_manufacturing
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_south_african_gold"
			add_ideas = SAF_african_gold_idea
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_SOC_focus_on_manufacturing
		icon = GFX_goal_generic_production2
		x = 1	
		y = 1
		cost = 6
		relative_position_id = SAF_SOC_join_isac
		available = {
			has_completed_focus = SAF_divide_the_spoils
		}

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_join_isac
		}
		mutually_exclusive = {
			focus = SAF_SOC_focus_on_agricultural_expansion
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_focus_on_manufacturing"
			add_ideas = SAF_idea_industrial_focus
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_SOC_director_general_van_der_bijl
		icon = GFX_goal_syndicalist_workers
		x = 2	
		y = 2
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_focus_on_manufacturing
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_director_general_van_der_bijl"
			add_ideas = SAF_idea_expanded_manufacturing
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_SOC_form_idc_of_south_africa
		icon = GFX_goal_generic_construction
		x = 1	
		y = 3
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_director_general_van_der_bijl
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_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
			add_tech_bonus = {
				name = SAF_SOC_form_idc_of_south_africa
				bonus = 0.5
				uses = 1
				category = industry
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = SAF_SOC_recruit_native_labour
		icon = GFX_goal_step_on_skull
		x = 1	
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_form_idc_of_south_africa
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_recruit_native_labour"
			swap_ideas = { add_idea = SAF_idea_industrial_focus_1 remove_idea = SAF_idea_industrial_focus }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_SOC_great_repairshop
		icon = GFX_goal_generic_construct_civ_factory
		x = 1	
		y = 5
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_recruit_native_labour
		}
		prerequisite = {
			focus = SAF_SOC_vanderbijlparks_steelworks
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_great_repairshop"
			swap_ideas = { add_idea = SAF_idea_great_repairshop remove_idea = SAF_idea_industrial_focus_1 }
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_SOC_support_iscor_expansion
		icon = GFX_goal_economic_control
		x = 3	
		y = 3
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_director_general_van_der_bijl
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_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
			add_tech_bonus = {
				name = SAF_SOC_support_iscor_expansion
				bonus = 0.75
				uses = 1
				category = cat_production
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = SAF_SOC_vanderbijlparks_steelworks
		icon = GFX_focus_generic_steel
		x = 3	
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_support_iscor_expansion
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_vanderbijlparks_steelworks"
			unlock_decision_tooltip = SAF_expand_vanderbijlspark
			add_resource = {
				type = steel
				amount = 15
				state = 275
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	
	focus = {
		id = SAF_SOC_industrial_innovation
		icon = GFX_goal_great_science
		x = 3	
		y = 5
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_vanderbijlparks_steelworks
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_industrial_innovation"
			add_research_slot_until_five = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = SAF_SOC_post_war_boom
		icon = GFX_focus_mex_privatisation
		x = 0
		y = 6
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_granary_of_africa
			focus = SAF_SOC_great_repairshop
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_post_war_boom"
			add_ideas = SAF_idea_economic_boom
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
#Military 
	focus = {
		id = SAF_SOC_purge
		icon = GFX_ITA_syndicalist_unite
		x = 12
		y = 0
		cost = 6
		relative_position_id = SAF_SOC_join_isac

		ai_will_do = {
			factor = 100
		}

		available = {
			has_war = no
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_purge"
			add_political_power = -50
			add_stability = 0.05
			add_ideas = SAF_SOC_purge_idea_1
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = SAF_SOC_repeal
		icon = GFX_goal_generic_media_controls
		x = -1	
		y = 1
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_purge
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_repeal"
			add_stability = 0.02
			swap_ideas = {
				remove_idea = SAF_SOC_purge_idea_1
				add_idea = SAF_SOC_purge_idea_2
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = SAF_SOC_abolish
		icon = GFX_focus_SAF_colonialist_crusade2
		x = 1
		y = 1
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_purge
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_abolish"
			add_political_power = 25
			country_event = saf.321
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = SAF_SOC_choose_your_destiny
		icon = GFX_goal_FRA_Internationale_Congress
		x = 0
		y = 2
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_abolish
		}
		prerequisite = {
			focus = SAF_SOC_repeal
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_choose_your_destiny"
			country_event = saf.240
		}
	}
	focus = {
		id = SAF_SOC_ti_equip
		icon = GFX_goal_generic_support_equipment
		x = 0
		y = 3
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_choose_your_destiny
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_ti_equip"
			add_political_power = 50
			add_equipment_to_stockpile = {
				type = support_equipment
				amount = 75
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = SAF_SOC_british_dev
		icon = GFX_goal_social_reforms
		x = 0
		y = 5
		cost = 8
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_ti_equip
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_british_dev"
			946 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	focus = {
		id = SAF_SOC_self
		icon = GFX_goal_munitions_factories
		x = 0
		y = 6
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_british_dev
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_self"
			add_ideas = SAF_idea_syndicalist_arms_unions
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}	
	focus = {
		id = SAF_SOC_navy_esb
		icon = GFX_goal_navy_hat_ships
		x = -2
		y = 3
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_choose_your_destiny
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_navy_esb"
			navy_experience = 25
			add_doctrine_cost_reduction = {
				name = naval_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = naval_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS }
	}
	focus = {
		id = SAF_SOC_navy_des
		icon = GFX_focus_generic_destroyer
		x = -3
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_navy_esb
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_navy_des"
			add_tech_bonus = {
				name = SAF_SOC_navy_des
				bonus = 1
				uses = 1
				category = dd_tech
			}
			add_ideas = SAF_idea_syndicalist_navy_build_1	
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_navy_mf
		icon = GFX_goal_generic_positive_trade_relations_gold
		x = -1
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_navy_esb
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_navy_des"
			add_equipment_to_stockpile = { type = convoy_1 amount = 75 }
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS }
	}
	focus = {
		id = SAF_SOC_navy_cru
		icon = GFX_goal_generic_coastal_navy2
		x = -2
		y = 5
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_navy_mf
		}
		prerequisite = {
			focus = SAF_SOC_navy_des
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_navy_cru"
			add_tech_bonus = {
				name = SAF_SOC_navy_cru
				bonus = 1
				uses = 2
				category = ca_tech
			}
		swap_ideas = {
			remove_idea = SAF_idea_syndicalist_navy_build_1
			add_idea = SAF_idea_syndicalist_navy_build_2
			}	
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_navy_port
		icon = GFX_goal_generic_shipyard
		x = -2
		y = 6
		cost = 8
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_navy_cru
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_navy_port"
			681 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			719  = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	focus = {
		id = SAF_SOC_navy_coast
		icon = GFX_goal_generic_coastal_navy
		x = -1
		y = 7
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_navy_port
		}
		prerequisite = {
			focus = SAF_SOC_self
		}		
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_navy_coast"
			add_ideas = SAF_idea_syndicalist_coast_guard
			
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS }
	}
	focus = {
		id = SAF_SOC_cof_advisors
		icon = GFX_NATFRA_conscription
		x = 6
		y = 3
		cost = 6
		relative_position_id = SAF_SOC_purge
		
		available = {
			custom_trigger_tooltip = {
			tooltip = SAF_SOC_FRENCH_ADVISOR_UNLOCK_TT_1
			has_country_flag = SAF_SOC_French_Advisor_Inv
			}
		}

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_choose_your_destiny
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_cof_advisors"
			swap_ideas = {
				remove_idea = SAF_SOC_purge_idea_2
				add_idea = SAF_SOC_purge_idea_cof_1
			}	
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}
	focus = {
		id = SAF_SOC_cof_invesment
		icon = GFX_goal_FRA_develop
		x = 5
		y = 4
		cost = 8
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_cof_advisors
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_cof_invesment"
			719 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}	
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	focus = {
		id = SAF_SOC_cof_officer
		icon = GFX_goal_Desert_Officers_2
		x = 7
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_purge

		available = {
		custom_trigger_tooltip = {
			tooltip = SAF_SOC_FRENCH_ADVISOR_UNLOCK_TT_2
			has_country_flag = SAF_SOC_French_Language
			}
		}
		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_cof_advisors
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_cof_officer"
			add_ideas = SAF_SOC_purge_idea_cof_off
		}
	}
	focus = {
		id = SAF_SOC_cof_red_africa
		icon = GFX_goal_africa_flames
		x = 6
		y = 5
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_cof_invesment
		}
		prerequisite = {
			focus = SAF_SOC_cof_officer
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_cof_red_africa"
			add_doctrine_cost_reduction = {
				name = land_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_cof_para
		icon = GFX_focus_generic_paratrooper
		x = 4
		y = 6
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SAF_SOC_FRENCH_ADVISOR_UNLOCK_TT_4
				has_country_flag = SAF_SOC_French_para
				}
		}	
		
		prerequisite = {
			focus = SAF_SOC_cof_red_africa
		}
		prerequisite = {
			focus = SAF_SOC_sri_cas
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_cof_para"
			add_tech_bonus = {
				name = SAF_SOC_cof_para
				bonus = 1
				uses = 1
				category = para_tech
			}
			swap_ideas = {
				remove_idea = SAF_SOC_purge_idea_cof_off
				add_idea = SAF_SOC_purge_idea_cof_para
			}		
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}
	focus = {
		id = SAF_SOC_cof_export_rev
		icon = GFX_goal_syndicalist_workers
		x = 6
		y = 6
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_cof_red_africa
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_cof_export_rev"
			if = {
				limit = { 
					NOT = { has_tech = tech_maintenance_company }
				}	
				set_technology = { tech_maintenance_company = 1 }
			}
			else = {
				add_tech_bonus = {
					name = SAF_SOC_cof_export_rev
					bonus = 1
					uses = 1
					category = maintenance_company_tech
				}
				
			}			
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}	
	focus = {
		id = SAF_SOC_cof_tank
		icon = GFX_goal_generic_army_tanks3
		x = 8
		y = 6
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_cof_red_africa
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_cof_tank"
			add_tech_bonus = {
				name = SAF_SOC_cof_tank	
				category = cat_medium_armor
				uses = 2
				bonus = 1
			}
			swap_ideas = {
				remove_idea = SAF_SOC_purge_idea_cof_1
				add_idea = SAF_SOC_purge_idea_cof_2
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_cof_mobile_warfare
		icon = GFX_EGY_Operation_Abu
		x = 6
		y = 7
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		available = {
			custom_trigger_tooltip = {
			tooltip = SAF_SOC_FRENCH_ADVISOR_UNLOCK_TT_3
			has_country_flag = SAF_SOC_French_NCO
			}
		}
		prerequisite = {
			focus = SAF_SOC_cof_para
		}
		prerequisite = {
			focus = SAF_SOC_cof_export_rev
		}
		prerequisite = {
			focus = SAF_SOC_cof_tank
		}		
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_cof_mobile_warfare"
			swap_ideas = {
				remove_idea = SAF_SOC_purge_idea_cof_2
				add_idea = SAF_SOC_purge_idea_cof_3
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_saf_red_force
		icon = GFX_goal_SAF_socialist_party
		x = 0
		y = 8
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_cof_mobile_warfare
			focus = SAF_SOC_uob_saf_army
		}
		prerequisite = {
			focus = SAF_SOC_navy_coast
		}		
		prerequisite = {
			focus = SAF_SOC_research
		}		
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_saf_red_force"
			add_stability = 0.15
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
	}		
	focus = {
		id = SAF_SOC_sri_aero
		icon = GFX_goal_air_red
		x = 2
		y = 3
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_choose_your_destiny
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_sri_aero"
			air_experience = 25
		}
		search_filters = { FOCUS_FILTER_AIRFORCE_BONUS }
	}
	focus = {
		id = SAF_SOC_sri_red_gift
		icon = GFX_goal_ELS_Plane_Lease
		x = 1
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_sri_aero
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_sri_red_gift"
			add_equipment_to_stockpile = {
				type = small_plane_airframe
				amount = 75
				producer = SRI
			}
			add_equipment_to_stockpile = {
				type = small_plane_airframe
				amount = 50
				producer = SRI
			}
			add_equipment_to_stockpile = {
			type = small_plane_cas_airframe
				amount = 75
				producer = SRI
			}
		}
		search_filters = { FOCUS_FILTER_AIRFORCE_BONUS }
	}
	focus = {
		id = SAF_SOC_sri_new_pilot
		icon = GFX_goal_ELS_Basic_Fighter_Development
		x = 3
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_sri_aero
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_sri_new_pilot"
			add_doctrine_cost_reduction = {
				name = air_doc_bonus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_sri_cas
		icon = GFX_focus_usa_escort_fighters
		x = 2
		y = 5
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_sri_new_pilot
		}
		prerequisite = {
			focus = SAF_SOC_sri_red_gift
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_sri_cas"
			add_tech_bonus = {
				name = SAF_SOC_sri_cas
				bonus = 1
				uses = 1
				category = cas_bomber
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_radar
		icon = GFX_EGY_Radio_Free_Cairo
		x = 2
		y = 6
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_sri_cas
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_radar"
			if = {
				limit = { has_tech = radio_detection }
				add_tech_bonus = {
					name = SAF_SOC_radar
					bonus = 1
					uses = 1
					category = radar_tech
				}
			}
			else = {
				if = {
					limit = { NOT = { is_special_project_completed = sp:sp_air_radar } }
					complete_special_project = sp:sp_air_radar
				}
			}
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.25
			}
			if = {
				limit = {
					945 = { is_owned_and_controlled_by = SAF }
				}
				945 = {
					add_building_construction = {
						type = radar_station
						level = 1
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					545 = { is_owned_and_controlled_by = SAF }
				}
				545 = {
					add_building_construction = {
						type = radar_station
						level = 1
						instant_build = yes
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_research
		icon = GFX_goal_double_research
		x = 1
		y = 7
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_radar
		}
		prerequisite = {
			focus = SAF_SOC_self
		}		
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_research"
			add_ideas = SAF_SOC_RND
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}	
	focus = {
		id = SAF_SOC_uob_advisors
		icon = GFX_UOB_red
		x = -6
		y = 3
		cost = 6
		relative_position_id = SAF_SOC_purge
	
		available = {
			custom_trigger_tooltip = {
				tooltip = SAF_SOC_BRITISH_ADVISOR_UNLOCK_TT_1
				has_country_flag = SAF_SOC_Men_In_RED
				}
			}	

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_choose_your_destiny
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_uob_advisors"
			country_event = saf.243
			army_experience = 20
			add_doctrine_cost_reduction = {
				name = SAF_SOC_uob_advisors
				cost_reduction = 0.5
				uses = 2
				category = land_doctrine
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_uob_militia
		icon = GFX_goal_integrate_the_militia
		x = -7
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_uob_advisors
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_uob_militia"
			swap_ideas = { 
				remove_idea = SAF_SOC_purge_idea_2
				add_idea = SAF_SOC_purge_idea_uob_1  				
			} 
		}
	}
	focus = {
		id = SAF_SOC_uob_arms
		icon = GFX_goal_HOL_military_union
		x = -5
		y = 4
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_uob_advisors
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_uob_arms"
			add_ideas = SAF_SOC_BRIT_ARMS
		}
	}	
	focus = {
		id = SAF_SOC_uob_officer
		icon = GFX_goal_uobritain
		x = -6
		y = 5
		cost = 6
		relative_position_id = SAF_SOC_purge
		available = {
			custom_trigger_tooltip = {
				tooltip = SAF_SOC_BRITISH_ADVISOR_UNLOCK_TT_2
				has_country_flag = SAF_SOC_FRC
				}
		}	
		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_uob_arms
		}
		prerequisite = {
			focus = SAF_SOC_uob_militia
		}
		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_uob_officer"
			add_tech_bonus = {
				name = SAF_SOC_uob_officer
				bonus = 0.5
				uses = 1
				category = land_doctrine
			}		
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_uob_red_guard
		icon = GFX_goal_reform_socialist_army
		x = -6
		y = 6
		cost = 6
		relative_position_id = SAF_SOC_purge
		available = {
			custom_trigger_tooltip = {
				tooltip = SAF_SOC_BRITISH_ADVISOR_UNLOCK_TT_3
				has_country_flag = SAF_SOC_Dismember_Mil
			}
		}
		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_uob_officer
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_uob_red_guard"
				swap_ideas = {
				remove_idea = SAF_SOC_purge_idea_uob_1
				add_idea = SAF_SOC_purge_idea_uob_2
			}	
		}
	}
	focus = {
		id = SAF_SOC_uob_armour
		icon = GFX_goal_light_tanks
		x = -8
		y = 6
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_uob_officer
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_uob_armour"
			add_tech_bonus = {
				name = SAF_SOC_uob_armour
				category = cat_light_armor
				uses = 2
				bonus = 1
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = SAF_SOC_uob_saf_army
		icon = GFX_socialist_constitution
		x = -6
		y = 7
		cost = 6
		relative_position_id = SAF_SOC_purge
		available = {
			custom_trigger_tooltip = {
				tooltip = SAF_SOC_BRITISH_ADVISOR_UNLOCK_TT_4
				has_country_flag = SAF_SOC_SAF_RED_ID
			}
		}
		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_uob_marine
		}
		prerequisite = {
			focus = SAF_SOC_uob_red_guard
		}
		prerequisite = {
			focus = SAF_SOC_uob_armour
		}

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_uob_saf_army"
			swap_ideas = {
				remove_idea = SAF_SOC_purge_idea_uob_2
				add_idea = SAF_SOC_purge_idea_uob_3
			}	
		}
	}	
	focus = {
		id = SAF_SOC_uob_marine
		icon = GFX_goal_generic_amphibious_assault
		x = -4
		y = 6
		cost = 6
		relative_position_id = SAF_SOC_purge

		ai_will_do = {
			factor = 100
		}
		prerequisite = {
			focus = SAF_SOC_uob_officer
		}
		prerequisite = {
			focus = SAF_SOC_navy_cru
		}	

		completion_reward = {
			log = "[GetDateText]: [Root.GetName]: Focus SAF_SOC_uob_marine"
			add_ideas = SAF_SOC_purge_idea_uob_marine
			add_tech_bonus = {
				name = SAF_SOC_uob_marine
				bonus = 1
				uses = 1
				category = marine_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}	
}

