##############################
# Sarawak Focus Tree         #
# By Cazadorian              #
##############################

focus_tree = {
	id = sarawak_focus

	country = {
		factor = 0
		modifier = {
			add = 50
			tag = SAR
		}
	}
	default = no
	continuous_focus_position = { x = 1000 y = 1300 }

	focus = {
		id = SAR_reign_of_the_rajahs
		icon = GFX_SAR_kingdom
		cost = 7

		x = 6
		y = 0

		ai_will_do = { factor = 100 }

		available = {
			has_socialist_government = no
		}

		mutually_exclusive = {
			focus = SAR_native_led_future
			focus = SAR_three_stars_of_sarawak
		}

		on_uncomplete = {
			remove_ideas = SAR_white_rajahs_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_reign_of_the_rajahs"
			add_ideas = SAR_white_rajahs_idea
			create_country_leader = { #
				name = "Charles Vyner Brooke"
				picture = "gfx/leaders/AST/Portrait_AST_Charles_Vyner_Brooke.png"
				expire = "1.1.1"
				ideology = natpop_agrarianism_subtype
				traits = { CAN_smooth_talking_charmer }
			}
			create_country_leader = { #
				name = "Charles Vyner Brooke"
				picture = "gfx/leaders/AST/Portrait_AST_Charles_Vyner_Brooke.png"
				expire = "1.1.1"
				ideology = absolute_monarchy_subtype
				traits = { CAN_smooth_talking_charmer }
			}
			create_country_leader = { #
				name = "Charles Vyner Brooke"
				picture = "gfx/leaders/AST/Portrait_AST_Charles_Vyner_Brooke.png"
				expire = "1.1.1"
				ideology = prussian_constitutionalism_subtype
				traits = { CAN_smooth_talking_charmer }
			}
			create_country_leader = { #
				name = "Charles Vyner Brooke"
				picture = "gfx/leaders/AST/Portrait_AST_Charles_Vyner_Brooke.png"
				expire = "1.1.1"
				ideology = soccon_prussian_constitutionalism_subtype
				traits = { CAN_smooth_talking_charmer }
			}
			create_country_leader = { #
				name = "Charles Vyner Brooke"
				picture = "gfx/leaders/AST/Portrait_AST_Charles_Vyner_Brooke.png"
				expire = "1.1.1"
				ideology = marlib_centrist_subtype
				traits = { CAN_smooth_talking_charmer }
			}
			create_country_leader = { #
				name = "Charles Vyner Brooke"
				picture = "gfx/leaders/AST/Portrait_AST_Charles_Vyner_Brooke.png"
				expire = "1.1.1"
				ideology = centrist_subtype
				traits = { CAN_smooth_talking_charmer }
			}
			create_country_leader = { #
				name = "Charles Vyner Brooke"
				picture = "gfx/leaders/AST/Portrait_AST_Charles_Vyner_Brooke.png"
				expire = "1.1.1"
				ideology = socdem_agrarianism_subtype
				traits = { CAN_smooth_talking_charmer }
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SAR_reaffirm_vyners_rule
		icon = GFX_focus_generic_monarchy_2
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = -1
		y = 1

		ai_will_do = { factor = 50 }

		available = {
			has_country_leader = { name = "Charles Vyner Brooke" }
		}

		prerequisite = {
			focus = SAR_reign_of_the_rajahs
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_reaffirm_vyners_rule"
			add_political_power = 50
			set_temp_variable = { ideology_change_var = 0.05 }
			change_ruling_party_popularity = yes
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SAR_enforce_the_abdication
		icon = GFX_Focus_Generic_Press_Liberalization
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = 1
		y = 1

		ai_will_do = { factor = 100 }

		available = {
			has_country_leader = { name = "Charles Vyner Brooke" }
		}

		prerequisite = {
			focus = SAR_reign_of_the_rajahs
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_enforce_the_abdication"
			add_stability = 0.05
			increase_ruling_party_popularity_by_5 = yes
			if = {
				limit = { is_subject = yes is_ai = yes }
				overlord = { country_event = sarawak.1 }
			}
			else = {
				country_event = sarawak.1
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SAR_sarawakian_oligarchy
		icon = GFX_focus_generic_monarchy_1
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = -2
		y = 2

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_reaffirm_vyners_rule
			focus = SAR_enforce_the_abdication
		}
		available = {
			has_country_leader = { name = "Charles Vyner Brooke" }
			has_authoritarian_government = yes
		}

		mutually_exclusive = {
			focus = SAR_the_democratic_transition
		}

		on_uncomplete = {
			remove_ideas = SAR_white_rajahs_oligarchy_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_sarawakian_oligarchy"
			swap_ideas = {
				add_idea = SAR_white_rajahs_oligarchy_idea
				remove_idea = SAR_white_rajahs_idea
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SAR_reform_the_division_system
		icon = GFX_focus_generic_self_management
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = -3
		y = 3

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_sarawakian_oligarchy
		}

		available = {
			controls_state = 333
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_reform_the_division_system"
			333 = { increase_state_category_by_one_level = yes }
			add_political_power = 25
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_residential_patronage
		icon = GFX_goal_collaborate_local_elites
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = -2
		y = 4

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_reform_the_division_system
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_white_rajahs_oligarchy_rajahrole_idea
				SAR_white_rajahs_oligarchy_combined_idea
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_residential_patronage"
			if = {
				limit = { has_idea = SAR_white_rajahs_oligarchy_rajahrole_idea }
				swap_ideas = {
					add_idea = SAR_white_rajahs_oligarchy_combined_idea
					remove_idea = SAR_white_rajahs_oligarchy_rajahrole_idea
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_white_rajahs_oligarchy_rajahrole_idea
					remove_idea = SAR_white_rajahs_oligarchy_idea
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SAR_expand_the_rajahs_role
		icon = GFX_GRE_empower_monarchy
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = -1
		y = 3

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_sarawakian_oligarchy
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_white_rajahs_oligarchy_combined_idea
				SAR_white_rajahs_oligarchy_division_idea
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_expand_the_rajahs_role"
			if = {
				limit = { has_idea = SAR_white_rajahs_oligarchy_division_idea }
				swap_ideas = {
					add_idea = SAR_white_rajahs_oligarchy_combined_idea
					remove_idea = SAR_white_rajahs_oligarchy_division_idea
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_white_rajahs_oligarchy_division_idea
					remove_idea = SAR_white_rajahs_oligarchy_idea
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_codifying_the_succession_laws
		icon = GFX_goal_civil_service
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = 0
		y = 4

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_sarawakian_oligarchy
			focus = SAR_the_democratic_transition
		}
		available = {
			has_country_leader = { name = "Charles Vyner Brooke" }
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_codifying_the_succession_laws"
			add_stability = 0.05
			set_temp_variable = { ideology_change_var = 0.025 }
			change_ruling_party_popularity = yes
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SAR_the_democratic_transition
		icon = GFX_focus_ETH_re-convene_the_parliament
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = 2
		y = 2

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_reaffirm_vyners_rule
			focus = SAR_enforce_the_abdication
			focus = SAR_the_perlembagaan_rakyat
		}
		available = {
			NOT = {
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}

		mutually_exclusive = {
			focus = SAR_sarawakian_oligarchy
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_white_rajahs_democratic_idea
				SAR_perlembagaan_rakyat_democratic_idea
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_the_democratic_transition"
			if = {
				limit = { has_idea = SAR_white_rajahs_idea }
				swap_ideas = {
					add_idea = SAR_white_rajahs_democratic_idea
					remove_idea = SAR_white_rajahs_idea
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_perlembagaan_rakyat_democratic_idea
					remove_idea = SAR_perlembagaan_rakyat_idea
				}
			}
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SAR_reforming_the_resident_system
		icon = GFX_goal_OTT_Land_Reform
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = 2
		y = 3

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_the_democratic_transition
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_white_rajahs_democratic_resident_idea
				SAR_white_rajahs_democratic_combined_idea
				SAR_perlembagaan_rakyat_democratic_combined_idea
				SAR_perlembagaan_rakyat_democratic_resident_idea
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_reforming_the_resident_system"
			if = {
				limit = { has_idea = SAR_white_rajahs_democratic_idea }
				swap_ideas = {
					add_idea = SAR_white_rajahs_democratic_resident_idea
					remove_idea = SAR_white_rajahs_democratic_idea
				}
			}
			else_if = {
				limit = { has_idea = SAR_white_rajahs_democratic_franchise_idea }
				swap_ideas = {
					add_idea = SAR_white_rajahs_democratic_combined_idea
					remove_idea = SAR_white_rajahs_democratic_franchise_idea
				}
			}
			else_if = {
				limit = { has_idea = SAR_perlembagaan_rakyat_democratic_franchise_idea }
				swap_ideas = {
					add_idea = SAR_perlembagaan_rakyat_democratic_combined_idea
					remove_idea = SAR_perlembagaan_rakyat_democratic_franchise_idea
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_perlembagaan_rakyat_democratic_resident_idea
					remove_idea = SAR_perlembagaan_rakyat_democratic_idea
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_constituent_autonomies
		icon = GFX_goal_GER_Fundamental_Rights
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = 3
		y = 4

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_the_democratic_transition
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_constituent_autonomies"
			random_owned_controlled_state = {
				prioritize = { 333 }
				limit = {
					impassable = no
					is_core_of = ROOT
				}
				add_extra_state_shared_building_slots = 1
			}
			random_owned_controlled_state = {
				prioritize = { 828 }
				limit = {
					impassable = no
					is_core_of = ROOT
				}
				add_extra_state_shared_building_slots = 1
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_extending_the_franchise
		icon = GFX_goal_SAF_reform_voting_law
		cost = 7

		relative_position_id = SAR_reign_of_the_rajahs
		x = 4
		y = 3

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_the_democratic_transition
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_white_rajahs_democratic_franchise_idea
				SAR_white_rajahs_democratic_combined_idea
				SAR_perlembagaan_rakyat_democratic_combined_idea
				SAR_perlembagaan_rakyat_democratic_franchise_idea
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_extending_the_franchise"
			if = {
				limit = { has_idea = SAR_white_rajahs_democratic_idea }
				swap_ideas = {
					add_idea = SAR_white_rajahs_democratic_franchise_idea
					remove_idea = SAR_white_rajahs_democratic_idea
				}
			}
			else_if = {
				limit = { has_idea = SAR_white_rajahs_democratic_resident_idea }
				swap_ideas = {
					add_idea = SAR_white_rajahs_democratic_combined_idea
					remove_idea = SAR_white_rajahs_democratic_resident_idea
				}
			}
			else_if = {
				limit = { has_idea = SAR_perlembagaan_rakyat_democratic_resident_idea }
				swap_ideas = {
					add_idea = SAR_perlembagaan_rakyat_democratic_combined_idea
					remove_idea = SAR_perlembagaan_rakyat_democratic_resident_idea
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_perlembagaan_rakyat_democratic_franchise_idea
					remove_idea = SAR_perlembagaan_rakyat_democratic_idea
				}
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = SAR_native_led_future
		icon = GFX_conquerednolonger
		cost = 7

		x = 11
		y = 0

		ai_will_do = { factor = 100 }

		mutually_exclusive = {
			focus = SAR_reign_of_the_rajahs
			focus = SAR_three_stars_of_sarawak
		}
		available = {
			has_socialist_government = no
			NOT = {
				has_country_leader = { name = "Charles Vyner Brooke" }
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_native_led_future"
			add_war_support = 0.05
			add_political_power = 75
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = SAR_the_perlembagaan_rakyat
		icon = GFX_goal_constitutional_guarantees
		cost = 7

		relative_position_id = SAR_native_led_future
		x = -2
		y = 1

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_native_led_future
		}
		available = {
			has_elected_government = yes
		}

		on_uncomplete = {
			remove_ideas = SAR_perlembagaan_rakyat_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_the_perlembagaan_rakyat"
			add_ideas = SAR_perlembagaan_rakyat_idea
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SAR_fostering_native_democracy
		icon = GFX_goal_support_democracy
		cost = 7

		relative_position_id = SAR_native_led_future
		x = -1
		y = 2

		ai_will_do = { factor = 100 }

		prerequisite = {
			focus = SAR_the_perlembagaan_rakyat
		}

		on_uncomplete = {
			remove_ideas = SAR_birth_of_a_republic_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_fostering_native_democracy"
			add_timed_idea = {
				idea = SAR_birth_of_a_republic_idea
				days = 365
			}
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SAR_strengthening_the_executive
		icon = GFX_focus_generic_authoritarian_government
		cost = 7

		relative_position_id = SAR_native_led_future
		x = 2
		y = 1

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_native_led_future
		}
		available = {
			has_authoritarian_government = yes
		}

		on_uncomplete = {
			remove_ideas = SAR_executive_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_strengthening_the_executive"
			add_ideas = SAR_executive_idea
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SAR_ketuanan_melayu
		icon = GFX_goal_ideology_national_populist
		cost = 7

		relative_position_id = SAR_native_led_future
		x = 1
		y = 2

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_strengthening_the_executive
		}
		available = {
			has_government = national_populist
		}

		on_uncomplete = {
			remove_ideas = SAR_ketuanan_melayu_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_ketuanan_melayu"
			swap_ideas = {
				add_idea = SAR_ketuanan_melayu_idea
				remove_idea = SAR_executive_idea
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = SAR_malay_only_government
		icon = GFX_goal_DEI_focus_disband_volksraad
		cost = 7

		relative_position_id = SAR_native_led_future
		x = 0
		y = 4

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_ketuanan_melayu
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_ketuanan_melayu_combined_idea
				SAR_ketuanan_melayu_government_idea
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_malay_only_government"
			if = {
				limit = { has_idea = SAR_ketuanan_melayu_citizenship_idea }
				swap_ideas = {
					add_idea = SAR_ketuanan_melayu_combined_idea
					remove_idea = SAR_ketuanan_melayu_citizenship_idea
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_ketuanan_melayu_government_idea
					remove_idea = SAR_ketuanan_melayu_idea
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_PRODUCTION }
	}

	focus = {
		id = SAR_limit_foreign_citizenship
		icon = GFX_goal_generic_suspend_constitution
		cost = 7

		relative_position_id = SAR_native_led_future
		x = 1
		y = 3

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_ketuanan_melayu
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_ketuanan_melayu_combined_idea
				SAR_ketuanan_melayu_citizenship_idea
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_limit_foreign_citizenship"
			if = {
				limit = { has_idea = SAR_ketuanan_melayu_government_idea }
				swap_ideas = {
					add_idea = SAR_ketuanan_melayu_combined_idea
					remove_idea = SAR_ketuanan_melayu_government_idea
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_ketuanan_melayu_citizenship_idea
					remove_idea = SAR_ketuanan_melayu_idea
				}
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = SAR_expropriation_of_colonial_assets
		icon = GFX_goal_generic_seize_money
		cost = 7

		relative_position_id = SAR_native_led_future
		x = 2
		y = 4

		ai_will_do = { factor = 50 }

		bypass = {
			NOT = { has_idea = SAR_nbcc_influence }
		}

		prerequisite = {
			focus = SAR_ketuanan_melayu
			focus = SAR_reign_of_the_datu_patinggi
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_expropriation_of_colonial_assets"
			add_political_power = 50
			remove_ideas = SAR_nbcc_influence
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_PRODUCTION }
	}

	focus = {
		id = SAR_revitalise_the_ummah
		icon = GFX_focus_TUR_loosen_the_laws_on_secularism
		cost = 7

		relative_position_id = SAR_native_led_future
		x = 3
		y = 3

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_ketuanan_melayu
			focus = SAR_reign_of_the_datu_patinggi
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_revitalise_the_ummah"
			add_stability = 0.025
			add_war_support = 0.025
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SAR_reign_of_the_datu_patinggi
		icon = GFX_goal_ideology_authoritarian_democrat
		cost = 7

		relative_position_id = SAR_native_led_future
		x = 4
		y = 2

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_strengthening_the_executive
		}
		available = {
			NOT = { has_government = national_populist }
		}

		on_uncomplete = {
			remove_ideas = SAR_datu_patinggi_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_reign_of_the_datu_patinggi"
			swap_ideas = {
				add_idea = SAR_datu_patinggi_idea
				remove_idea = SAR_executive_idea
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = SAR_nativise_the_resident_system
		icon = GFX_focus_SAF_colonialist_crusade2
		cost = 7

		relative_position_id = SAR_native_led_future
		x = 5
		y = 3

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_reign_of_the_datu_patinggi
		}

		on_uncomplete = {
			remove_ideas = SAR_datu_patinggi_resident_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_nativise_the_resident_system"
			swap_ideas = {
				add_idea = SAR_datu_patinggi_resident_idea
				remove_idea = SAR_datu_patinggi_idea
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_counteract_the_anglo_dominance
		icon = GFX_goal_MAF_Stomp_Anglos
		cost = 7

		relative_position_id = SAR_native_led_future
		x = 5
		y = 4

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_nativise_the_resident_system
		}

		on_uncomplete = {
			remove_ideas = SAR_datu_patinggi_combined_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_counteract_the_anglo_dominance"
			swap_ideas = {
				add_idea = SAR_datu_patinggi_combined_idea
				remove_idea = SAR_datu_patinggi_resident_idea
			}
		}
		search_filters = { FOCUS_FILTER_PRODUCTION }
	}

	focus = {
		id = SAR_three_stars_of_sarawak
		icon = GFX_dualadministration
		cost = 7

		x = 19
		y = 0

		ai_will_do = { factor = 100 }

		mutually_exclusive = {
			focus = SAR_reign_of_the_rajahs
			focus = SAR_native_led_future
		}
		available = {
			has_socialist_government = yes
		}

		on_uncomplete = {
			remove_ideas = SAR_three_stars_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_three_stars_of_sarawak"
			add_ideas = SAR_three_stars_idea
			if = {
				limit = { has_idea = SAR_nbcc_influence }
	
				remove_ideas = SAR_nbcc_influence
			}
			else = {
				add_political_power = 25
			}
		}
		search_filters = { FOCUS_FILTER_PRODUCTION FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_ousting_the_landlords
		icon = GFX_collective_housing
		cost = 7

		relative_position_id = SAR_three_stars_of_sarawak
		x = 1
		y = 1

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_three_stars_of_sarawak
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_ousting_the_landlords"
			add_one_random_infrastructure = yes
			set_temp_variable = { ideology_change_var = 0.025 }
			change_ruling_party_popularity = yes
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_protecting_the_rights_of_labourers
		icon = GFX_goal_workers_rights
		cost = 7

		relative_position_id = SAR_three_stars_of_sarawak
		x = 2
		y = 2

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_ousting_the_landlords
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_three_stars_wealth_idea
				SAR_three_stars_labour_idea
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_protecting_the_rights_of_labourers"
			if = {
				limit = { has_idea = SAR_three_stars_wealth_idea }
				swap_ideas = {
					add_idea = SAR_three_stars_combined_idea
					remove_idea = SAR_three_stars_wealth_idea
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_three_stars_labour_idea
					remove_idea = SAR_three_stars_idea
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_PRODUCTION }
	}

	focus = {
		id = SAR_redistribute_noble_wealth
		icon = GFX_goal_generic_land_reform
		cost = 7

		relative_position_id = SAR_three_stars_of_sarawak
		x = 1
		y = 3

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_ousting_the_landlords
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_three_stars_combined_idea
				SAR_three_stars_labour_idea
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_redistribute_noble_wealth"
			if = {
				limit = { has_idea = SAR_three_stars_labour_idea }
				swap_ideas = {
					add_idea = SAR_three_stars_combined_idea
					remove_idea = SAR_three_stars_labour_idea
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_three_stars_wealth_idea
					remove_idea = SAR_three_stars_idea
				}
			}
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_PRODUCTION }
	}

	focus = {
		id = SAR_pursuit_of_industrialisation
		icon = GFX_goal_generic_soviet_construction
		cost = 7

		relative_position_id = SAR_three_stars_of_sarawak
		x = -3
		y = 1

		ai_will_do = { factor = 50 }

		prerequisite = {
			focus = SAR_three_stars_of_sarawak
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_pursuit_of_industrialisation"
			add_one_random_civilian_factory = yes
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_encouraging_multiethnic_harmony
		icon = GFX_truthandreconciliationcommittee
		cost = 7

		relative_position_id = SAR_three_stars_of_sarawak
		x = -1
		y = 1

		ai_will_do = { factor = 75 }

		prerequisite = {
			focus = SAR_three_stars_of_sarawak
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_encouraging_multiethnic_harmony"
			add_political_power = 75
			add_stability = 0.05
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SAR_three_stars_three_principles
		icon = GFX_anofficiallanguage
		cost = 7

		relative_position_id = SAR_three_stars_of_sarawak
		x = -2
		y = 2

		ai_will_do = { factor = 75 }

		prerequisite = {
			focus = SAR_encouraging_multiethnic_harmony
		}

		mutually_exclusive = {
			focus = SAR_nusantara_socialism
		}

		on_uncomplete = {
			remove_ideas = SAR_three_stars_three_principles_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_three_stars_three_principles"
			add_ideas = SAR_three_stars_three_principles_idea
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_nusantara_socialism
		icon = GFX_goal_INS_focus_nusantara_communes
		cost = 7

		relative_position_id = SAR_three_stars_of_sarawak
		x = 0
		y = 2

		ai_will_do = { factor = 75 }

		prerequisite = {
			focus = SAR_encouraging_multiethnic_harmony
		}

		mutually_exclusive = {
			focus = SAR_three_stars_three_principles
		}

		on_uncomplete = {
			remove_ideas = SAR_nusantara_socialism_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_nusantara_socialism"
			add_ideas = SAR_nusantara_socialism_idea
		}
		search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = SAR_developing_kuching
		icon = GFX_zanzibarcitydevelopmentscheme
		cost = 7

		x = 22
		y = 5

		ai_will_do = { factor = 40 }

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_developing_kuching"
			333 = { prioritize_state = yes }
			add_one_random_civilian_factory = yes
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_beginning_the_bornean_highway
		icon = GFX_lowlandroadgrants
		cost = 7

		relative_position_id = SAR_developing_kuching
		x = -2
		y = 1

		ai_will_do = { factor = 40 }

		prerequisite = {
			focus = SAR_developing_kuching
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_beginning_the_bornean_highway"
			random_owned_controlled_state = {
				prioritize = { 333 }
				limit = {
					is_core_of = ROOT
					impassable = no
					free_building_slots = { building = infrastructure size > 0 }
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 828 }
				limit = {
					is_core_of = ROOT
					impassable = no
					free_building_slots = { building = infrastructure size > 0 }
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_brooke_dockyard_refurbishment
		icon = GFX_focus_POL_develop_polish_shipbuilding
		cost = 7

		relative_position_id = SAR_developing_kuching
		x = 0
		y = 1

		ai_will_do = { factor = 40 }

		prerequisite = {
			focus = SAR_developing_kuching
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_brooke_dockyard_refurbishment"
			333 = { prioritize_state = yes }
			add_one_random_dockyard = yes
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS }
	}

	focus = {
		id = SAR_black_gold_of_brunei
		icon = GFX_goal_further_oil
		cost = 7

		relative_position_id = SAR_developing_kuching
		x = -1
		y = 2

		ai_will_do = { factor = 60 }

		prerequisite = {
			focus = SAR_beginning_the_bornean_highway
			focus = SAR_brooke_dockyard_refurbishment
		}
		available = {
			controls_state = 333
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_black_gold_of_brunei"
			add_resource = {
				type = oil
				amount = 6
				state = 333
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_subsidisation_of_forestry
		icon = GFX_Goal_generic_woodcutting
		cost = 7

		relative_position_id = SAR_developing_kuching
		x = 2
		y = 1

		ai_will_do = { factor = 40 }

		prerequisite = {
			focus = SAR_developing_kuching
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_subsidisation_of_forestry"
			add_tech_bonus = {
				name = SAR_subsidisation_of_forestry
				bonus = 0.5
				uses = 1
				category = industry
			}
			add_tech_bonus = {
				name = SAR_subsidisation_of_forestry
				bonus = 0.5
				uses = 1
				category = excavation_tech
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SAR_sabah_steelworks
		icon = GFX_focus_generic_steel
		cost = 7

		relative_position_id = SAR_developing_kuching
		x = 2
		y = 2

		ai_will_do = { factor = 40 }

		prerequisite = {
			focus = SAR_subsidisation_of_forestry
		}
		available = {
			controls_state = 828
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_sabah_steelworks"
			add_resource = {
				type = steel
				amount = 4
				state = 828
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = SAR_restructure_the_paramilitaries
		icon = GFX_SAR_army
		cost = 7

		x = 7
		y = 5

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		mutually_exclusive = {
			focus = SAR_tear_out_the_rot
		}
		available = {
			has_socialist_government = no
			OR = {
				NOT = { has_government = national_populist }
				has_country_leader = { name = "Charles Vyner Brooke" }
			}
		}

		on_uncomplete = {
			remove_ideas = SAR_paramilitary1
			add_ideas = SAR_paramilitary0
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_restructure_the_paramilitaries"
			swap_ideas = {
				add_idea = SAR_paramilitary1
				remove_idea = SAR_paramilitary0
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = SAR_inviting_foreign_experts
		icon = GFX_goal_generic_officer
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = -2
		y = 1

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_restructure_the_paramilitaries
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_inviting_foreign_experts"
			add_tech_bonus = {
				name = generic_equipment_effort
				bonus = 1
				uses = 1
				category = infantry_weapons
				category = artillery
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SAR_kuching_military_academy
		icon = GFX_focus_generic_military_academy
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = -1
		y = 2

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_inviting_foreign_experts
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_kuching_military_academy"
			add_research_slot_until_five = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SAR_tackling_corruption_in_the_forces
		icon = GFX_goal_generic_tackle_corruption
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = 0
		y = 1

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_restructure_the_paramilitaries
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_paramilitary_constabulary_corrupt
				SAR_paramilitary_volunteers_corrupt
				SAR_paramilitary_corruption
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_tackling_corruption_in_the_forces"
			if = {
				limit = { has_idea = SAR_paramilitary_constabulary }
				swap_ideas = {
					add_idea = SAR_paramilitary_constabulary_corrupt
					remove_idea = SAR_paramilitary_constabulary
				}
			}
			else_if = {
				limit = { has_idea = SAR_paramilitary_volunteers }
				swap_ideas = {
					add_idea = SAR_paramilitary_volunteers_corrupt
					remove_idea = SAR_paramilitary_volunteers
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_paramilitary_corruption
					remove_idea = SAR_paramilitary1
				}
			}
			add_political_power = -50
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SAR_ranger_heritage
		icon = GFX_goal_generic_special_forces
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = 1
		y = 2

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_restructure_the_paramilitaries
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_ranger_heritage"
			add_tech_bonus = {
				name = SAR_ranger_heritage
				bonus = 0.5
				uses = 2
				category = cat_special_forces_generic
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = SAR_militarising_the_constabulary
		icon = GFX_goal_enlist_the_police
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = 2
		y = 1

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_restructure_the_paramilitaries
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_paramilitary_constabulary_corrupt
				SAR_paramilitary_constabulary
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_militarising_the_constabulary"
			if = {
				limit = { has_idea = SAR_paramilitary_corruption }
				swap_ideas = {
					add_idea = SAR_paramilitary_constabulary_corrupt
					remove_idea = SAR_paramilitary_corruption
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_paramilitary_constabulary
					remove_idea = SAR_paramilitary1
				}
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = SAR_expanding_the_volunteers
		icon = GFX_goal_mass_concentration_of_army
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = 2
		y = 3

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_ranger_heritage
		}
		prerequisite = {
			focus = SAR_militarising_the_constabulary
		}

		on_uncomplete = {
			remove_ideas = {
				SAR_paramilitary_volunteers
				SAR_paramilitary_volunteers_corrupt
			}
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_expanding_the_volunteers"
			if = {
				limit = { has_idea = SAR_paramilitary_constabulary }
				swap_ideas = {
					add_idea = SAR_paramilitary_volunteers
					remove_idea = SAR_paramilitary_constabulary
				}
			}
			else = {
				swap_ideas = {
					add_idea = SAR_paramilitary_volunteers_corrupt
					remove_idea = SAR_paramilitary_constabulary_corrupt
				}
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = SAR_centralising_the_command
		icon = GFX_goal_generic_army_high_command
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = 0
		y = 4

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_kuching_military_academy
		}
		prerequisite = {
			focus = SAR_tackling_corruption_in_the_forces
		}
		prerequisite = {
			focus = SAR_expanding_the_volunteers
		}

		on_uncomplete = {
			remove_ideas = SAR_paramilitary_combined
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_centralising_the_command"
			swap_ideas = {
				add_idea = SAR_paramilitary_combined
				remove_idea = SAR_paramilitary_volunteers_corrupt
			}
			add_command_power = 50
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = SAR_tear_out_the_rot
		icon = GFX_reassessdistrictcouncils
		cost = 7

		x = 17
		y = 5

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		mutually_exclusive = {
			focus = SAR_restructure_the_paramilitaries
		}
		available = {
			OR = {
				has_socialist_government = yes
				has_government = national_populist
			}
			NOT = { has_country_leader = { name = "Charles Vyner Brooke" } }
		}

		on_uncomplete = {
			remove_ideas = SAR_army_idea
			add_ideas = SAR_paramilitary0
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_tear_out_the_rot"
			remove_ideas = SAR_paramilitary0

			add_ideas = SAR_army_idea
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_PRODUCTION }
	}

	focus = {
		id = SAR_constructing_a_loyal_officer_corp
		icon = GFX_goal_officers
		cost = 7

		relative_position_id = SAR_tear_out_the_rot
		x = -2
		y = 1

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_tear_out_the_rot
		}

		on_uncomplete = {
			remove_ideas = SAR_army_officer_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_constructing_a_loyal_officer_corp"
			swap_ideas = {
				add_idea = SAR_army_officer_idea
				remove_idea = SAR_army_idea
			}
			set_temp_variable = { ideology_change_var = 0.025 }
			change_ruling_party_popularity = yes
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = SAR_jungle_training
		icon = GFX_SIA_jungletraining
		cost = 7

		relative_position_id = SAR_tear_out_the_rot
		x = -3
		y = 2

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		bypass = {
			has_tech = jungle_warfare
		}

		prerequisite = {
			focus = SAR_constructing_a_loyal_officer_corp
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_jungle_training"
			custom_effect_tooltip = jungle_warfare_effect
			hidden_effect = {
				set_technology = { jungle_warfare = 1 popup = no }
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = SAR_mandated_army_party_membership
		icon = GFX_goal_HOL_ban_paramilitary
		cost = 7

		relative_position_id = SAR_tear_out_the_rot
		x = -2
		y = 3

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_constructing_a_loyal_officer_corp
		}

		on_uncomplete = {
			remove_ideas = SAR_army_membership_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_mandated_army_party_membership"
			swap_ideas = {
				add_idea = SAR_army_membership_idea
				remove_idea = SAR_army_officer_idea
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = SAR_the_sarawak_doctrine
		icon = GFX_goal_generic_intense_warfare
		cost = 7

		relative_position_id = SAR_tear_out_the_rot
		x = 0
		y = 1

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_tear_out_the_rot
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_the_sarawak_doctrine"
			add_doctrine_cost_reduction = {
				name = SAR_the_sarawak_doctrine
				cost_reduction = 0.25
				uses = 1
				category = land_doctrine
			}
			add_tech_bonus = {
				name = SAR_the_sarawak_doctrine
				bonus = 0.25
				uses = 1
				category = cat_special_forces_generic
			}
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SAR_homegrown_expertise
		icon = GFX_goal_KTG_Educate_natives
		cost = 7

		relative_position_id = SAR_tear_out_the_rot
		x = -1
		y = 2

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_the_sarawak_doctrine
		}
		prerequisite = {
			focus = SAR_constructing_a_loyal_officer_corp
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_homegrown_expertise"
			add_research_slot_until_five = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SAR_mass_recruitment_campaigns
		icon = GFX_goal_conscription
		cost = 7

		relative_position_id = SAR_tear_out_the_rot
		x = 1
		y = 2

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_tear_out_the_rot
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_mass_recruitment_campaigns"
			add_manpower = 10000
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = SAR_communal_militia_inspiration
		icon = GFX_goal_integrate_the_militia
		cost = 7

		relative_position_id = SAR_tear_out_the_rot
		x = 0
		y = 3

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_mass_recruitment_campaigns
		}
		available = {
			has_socialist_government = yes
		}

		mutually_exclusive = {
			focus = SAR_look_to_the_svobodniks
		}

		on_uncomplete = {
			remove_ideas = SAR_communal_militias_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_communal_militia_inspiration"
			add_ideas = SAR_communal_militias_idea
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = SAR_look_to_the_svobodniks
		icon = GFX_goal_RUS_white_legacy
		cost = 7

		relative_position_id = SAR_tear_out_the_rot
		x = 2
		y = 3

		ai_will_do = {
			factor = 35
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_mass_recruitment_campaigns
		}
		available = {
			has_government = national_populist
		}

		mutually_exclusive = {
			focus = SAR_communal_militia_inspiration
		}

		on_uncomplete = {
			remove_ideas = SAR_svobodniks_idea
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_look_to_the_svobodniks"
			add_ideas = SAR_svobodniks_idea
		}
		search_filters = { FOCUS_FILTER_ARMY_BONUS }
	}

	focus = {
		id = SAR_sarawakian_coast_guard
		icon = GFX_SAR_navy
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = 4
		y = 1

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_restructure_the_paramilitaries
			focus = SAR_tear_out_the_rot
		}

		available = {
			naval_base > 0
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_sarawakian_coast_guard"
			if = {
				limit = { has_dlc_mtg = yes }
				if = {
					limit = { NOT = { has_tech = early_ship_hull_light } }
					set_technology = { early_ship_hull_light = 1 popup = no }
				}
				if = {
					limit = { NOT = { has_tech = basic_battery } }
					set_technology = { basic_battery = 1 popup = no }
				}
				if = {
					limit = { NOT = { has_tech = basic_torpedo } }
					set_technology = { basic_torpedo = 1 popup = no }
				}
				create_equipment_variant = {
					name = "Pulau class"
					type = ship_hull_light_1
					parent_version = 0
					modules = {
						fixed_ship_battery_slot = ship_light_battery_1
						fixed_ship_fire_control_system_slot = ship_fire_control_system_0
						fixed_ship_engine_slot = light_ship_engine_1
						fixed_ship_torpedo_slot = ship_torpedo_1
					}
				}
				create_ship = { type = ship_hull_light_1 equipment_variant = "Pulau class" name = "SCG Patrol 1" }
				create_ship = { type = ship_hull_light_1 equipment_variant = "Pulau class" name = "SCG Patrol 2" }
			}
			else = {
				if = {
					limit = { NOT = { has_tech = early_destroyer } }
					set_technology = { early_destroyer = 1 popup = no }
				}
				create_ship = { type = ship_hull_light_1 equipment_variant = "Weltkrieg Destroyer" name = "SCG Patrol 1" }
				create_ship = { type = ship_hull_light_1 equipment_variant = "Weltkrieg Destroyer" name = "SCG Patrol 2" }
			}
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS }
	}

	focus = {
		id = SAR_protecting_oil_exports
		icon = GFX_focus_generic_merchant_fleet
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = 4
		y = 3

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_sarawakian_coast_guard
		}

		available = {
			naval_base > 0
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_protecting_oil_exports"
			add_tech_bonus = {
				name = SAR_sarawakian_coast_guard
				bonus = 1
				uses = 1
				category = dd_tech
			}
			add_equipment_to_stockpile = {
				type = convoy
				amount = 50
			}
		}
		search_filters = { FOCUS_FILTER_NAVY_BONUS FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = SAR_bukit_stabar_airstrip
		icon = GFX_goal_generic_airports
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = 6
		y = 1

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_restructure_the_paramilitaries
			focus = SAR_tear_out_the_rot
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_bukit_stabar_airstrip"
			random_owned_controlled_state = {
				prioritize = { 333 }
				limit = {
					is_core_of = ROOT
					impassable = no
					free_building_slots = { building = air_base size > 1 }
				}
				add_building_construction = {
					type = air_base
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_AIRFORCE_BONUS }
	}

	focus = {
		id = SAR_establishing_a_native_airforce
		icon = GFX_SAR_airforce
		cost = 7

		relative_position_id = SAR_restructure_the_paramilitaries
		x = 5
		y = 2

		ai_will_do = {
			factor = 25
			modifier = {
				factor = 2
				has_war = yes
			}
		}

		prerequisite = {
			focus = SAR_restructure_the_paramilitaries
			focus = SAR_tear_out_the_rot
		}

		completion_reward = {
			log = "[GetLogRoot]: Focus Completed SAR_establishing_a_native_airforce"
			add_tech_bonus = {
				name = SAR_establishing_a_native_airforce
				bonus = 1
				uses = 2
				category = light_fighter
				category = cat_heavy_fighter
			}
		}
		search_filters = { FOCUS_FILTER_AIRFORCE_BONUS FOCUS_FILTER_RESEARCH }
	}

}
