# South Africa decisions

political_actions = {
	SAF_core_south_west = {
		icon = GFX_decision_generic_nationalism
		
		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}
		
		highlight_states = { 
			highlight_provinces = {
				2207 2229 4879 5154 5189 7605 7770 10957 10963
				4051 8136 9977 10978 12519 12921 13549
			}
		}

		available = {
			541 = {
				is_fully_controlled_by = ROOT
				compliance > 80
			}
		}

		visible = {
			541 = {
				is_controlled_by = ROOT
				NOT = { is_core_of = ROOT }
			}
			964 = {
				is_controlled_by = ROOT
				NOT = { is_core_of = ROOT }
			}
		}

		cost = 25
		fire_only_once = yes

		ai_will_do = {
			factor = 10
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_core_south_west"
			add_state_core = 541
			add_state_core = 964
			hidden_effect = { country_event = { id = saf.314 days = 90 random = 30 } }
		}
	}
	
	SAF_core_mozambique = {
		icon = GFX_decision_generic_nationalism
		
		allowed = {
			tag = SAF
		}
		
		highlight_states = { 
			highlight_provinces = {
				2120 2193 5155 5177 5212 8245 12935
			}
		}

		available = {
			950 = {
				is_fully_controlled_by = ROOT
				compliance > 95
			}
		}

		visible = {
			controls_state = 950
		}

		cost = 25
		fire_only_once = yes

		ai_will_do = {
			factor = 10
			modifier = { #Nationalists don't want to grant citizenship to the local population
				factor = 0
				OR = {
					has_government = authoritarian_democrat
					has_government = paternal_autocrat
					has_government = national_populist
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_core_mozambique"
			950 = {
				set_state_name = "South East Africa"
				add_core_of = SAF
			}
			hidden_effect = { country_event = { id = saf.313 days = 90 random = 30 } }
		}
	}
	
	SAF_decision_township_modernisation = {
		icon = GFX_decision_generic_construction
		
		allowed = {
			tag = SAF
		}

		available = {
			has_completed_focus = SAF_urban_housing_program
		}

		visible = {
			OR = {
				has_idea = SAF_idea_slum_formation
				has_idea = SAF_idea_slum_formation_2
			}
		}

		cost = 100

		ai_will_do = {
			factor = 10
		}

		modifier = {
			civilian_factory_use = 3
			political_power_gain = -0.05
		}
		
		days_re_enable = 30
		days_remove = 365

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_decision_township_modernisation"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_decision_township_modernisation"
			if = {
				limit = {
					has_idea = SAF_idea_slum_formation
				}
				remove_ideas = SAF_idea_slum_formation
			}
			else = {
				swap_ideas = {
					remove_idea = SAF_idea_slum_formation_2
					add_idea = SAF_idea_slum_formation
				}
			}
		}
	}
}

SAF_geopolitical_actions = {
	SAF_join_reichspakt = {
		icon = generic_political_discourse
		allowed = {
			original_tag = SAF
		}
		available = {
			has_completed_focus = SAF_independent_perspective
			OR = {
				has_war = no
				custom_trigger_tooltip = {
					tooltip = GRE_same_wars_as_germany
					has_war = yes
					NOT = {
						any_enemy_country = {
							NOT = { has_war_with = GER }
						}
					}
				}
			}
			NOT = {
				has_global_flag = saf_boer_war
			}
		}
		visible = {
			is_subject = no
			is_in_faction = no
			has_authoritarian_government = yes
			FROM = {
				exists = yes
				is_faction_leader = yes
				has_socialist_government = no
				NOT = { has_war_with = ROOT }
			}
		}

		target_root_trigger = { is_in_faction = no }
		
		targets = { GER }

		target_trigger = {
			FROM = {
				is_faction_leader = yes
				has_socialist_government = no
			}
		}		
		
		fire_only_once = yes
		cost = 0

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				FROM = {
					any_owned_state = { is_claim_or_core_of_ROOT = yes }
				}
			}
			modifier = {
				factor = 0
				FROM = {
					is_faction_leader = yes
					has_war = yes
					surrender_progress > 0.10
				}
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_join_reichspakt"
			FROM = { country_event = { id = saf.32 } }
		}
	}
	
	SAF_join_internationale = {
		icon = generic_political_discourse
		allowed = {
			original_tag = SAF
		}
		available = {
			date > 1937.1.1
			OR = {
				has_war = no
				custom_trigger_tooltip = {
					tooltip = GRE_same_wars_as_intl
					has_war = yes
					any_enemy_country = { has_war_with = INT }
				}
			}
		}
		visible = {
			is_in_faction = no
			is_subject = no
			has_socialist_government = yes
			INT = {
				exists = yes
				is_faction_leader = yes
				has_socialist_government = yes
				NOT = { has_war_with = ROOT }
			}
		}
		
		target_root_trigger = { is_in_faction = no }
		
		targets = { INT }

		target_trigger = {
			FROM = {
				is_faction_leader = yes
				has_socialist_government = yes
			}
		}
		
		fire_only_once = yes
		cost = 0
		
		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				FROM = {
					any_owned_state = { is_claim_or_core_of_ROOT = yes }
				}
			}
			modifier = {
				factor = 0
				FROM = {
					is_faction_leader = yes
					has_war = yes
					surrender_progress > 0.10
				}
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision saf_join_internationale"
			FROM = { country_event = { id = saf.159 } }
		}
	}
	
	SAF_SOC_defend_South_Africa_mission = {
		icon = generic_tank

		available = {
			surrender_progress > 0.4
		}

		cancel_trigger = {
			NOT = { has_war_with = ENT }
		}

		days_mission_timeout = 180
		is_good = yes
		fire_only_once = yes

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete SAF_SOC_defend_South_Africa_mission"
			custom_effect_tooltip = dei_tt_the_timer_will_be_reset
		}

		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout SAF_SOC_defend_South_Africa_mission"
			ENT = { country_event = saf.174 } #Peace with ENT
			set_country_flag = saf_mission_completed
		}
	}

	ENT_SOC_defend_South_Africa_mission = {
		icon = generic_tank

		icon = generic_tank
		allowed = { always = no }	#Activated by saf.176

		available = {
			SAF = { surrender_progress > 0.4 }
		}

		cancel_trigger = {
			NOT = { has_war_with = SAF }
		}

		days_mission_timeout = 180
		is_good = no
		fire_only_once = yes

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete ENT_SOC_defend_South_Africa_mission"
			custom_effect_tooltip = dei_tt_the_timer_will_be_reset
		}

		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout ENT_SOC_defend_South_Africa_mission"
			effect_tooltip = {
				ENT = { country_event = saf.174 } #Peace with SAF
			}
			set_country_flag = saf_mission_completed
		}
	}
}

SAF_fix_black_monday_category = {
	SAF_print_extra_money = {
		icon = ger_mefo_bills
		allowed = {
			original_tag = SAF
		}
		days_re_enable = 1
		days_remove = 5
		cost = 0
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_print_extra_money"
			custom_effect_tooltip = SAF_tt_print_extra_money
			add_to_variable = { var = saf_var_budget value = 2 }
			if = {
				limit = {
					check_variable = {
						var = saf_var_inflation
						value = 0.06
						compare = less_than
					}
				}
				add_to_variable = { var = saf_var_inflation value = 0.03 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = saf_var_inflation
						value = 0.12
						compare = less_than
					}
				}
				add_to_variable = { var = saf_var_inflation value = 0.06 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = saf_var_inflation
						value = 0.24
						compare = less_than
					}
				}
				add_to_variable = { var = saf_var_inflation value = 0.12 }
			}
			else_if = {
				limit = {
					check_variable = {
						var = saf_var_inflation
						value = 0.48
						compare = less_than
					}
				}
				add_to_variable = { var = saf_var_inflation value = 0.24 }
			}
			else = {
				add_to_variable = { var = saf_var_inflation value = 0.48 }
			}
			SAF_inflation_events = yes
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = {
					var = saf_var_inflation
					value = 0.12
					compare = greater_than_or_equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_idea = SAF_black_monday_0
					has_idea = SAF_black_monday_1
					has_idea = SAF_black_monday_2
				}
			}
		}
	}

	SAF_counter_inflation = {
		icon = ger_mefo_bills
		allowed = {
			original_tag = SAF
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SWE_tt_more_than_two_percent_inflation
				check_variable = {
					var = saf_var_inflation
					value = 0.05
					compare = greater_than_or_equals
				}
			}
		}
		days_re_enable = 1
		days_remove = 5
		cost = 25
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_counter_inflation"
			custom_effect_tooltip = SWE_tt_lower_inflation
			subtract_from_variable = { var = saf_var_inflation value = 0.05 }
			SAF_inflation_events = yes
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = {
					var = saf_var_inflation
					value = 0.12
					compare = less_than_or_equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_idea = SAF_black_monday_0
					has_idea = SAF_black_monday_1
					has_idea = SAF_black_monday_2
				}
			}
		}
	}

	SAF_take_a_loan = {
		icon = generic_decision
		allowed = {
			original_tag = SAF
		}
		available = {
			NOT = {
				has_country_flag = SWE_no_more_loans
			}
		}
		cost = 0
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_take_a_loan"
			custom_effect_tooltip = SAF_tt_loan_money
			add_to_variable = { var = saf_var_debt value = 2 }
			add_to_variable = { var = saf_var_budget value = 2 }
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = {
					var = saf_var_debt
					value = 10
					compare = greater_than_or_equals
				}
			}
			modifier = {
				factor = 0
				NOT = {
					has_idea = SAF_black_monday_0
					has_idea = SAF_black_monday_1
					has_idea = SAF_black_monday_2
				}
			}
		}
	}

	SAF_repay_a_loan = {
		icon = generic_decision
		allowed = {
			original_tag = SAF
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SAF_tt_can_pay_off_debt
				check_variable = {
					var = saf_var_budget
					value = 2
					compare = greater_than_or_equals
				}
			}
		}
		visible = {
			check_variable = {
				var = saf_var_debt
				value = 2
				compare = greater_than_or_equals
			}
		}
		cost = 0
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_repay_a_loan"
			custom_effect_tooltip = SAF_tt_pays_off_debt
			subtract_from_variable = { var = saf_var_debt value = 2 }
			subtract_from_variable = { var = saf_var_budget value = 2 }
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				NOT = {
					check_variable = {
						var = saf_var_debt
						value = 10
						compare = greater_than_or_equals
					}
				}
			}
			modifier = {
				factor = 10
				NOT = {
					has_idea = SAF_black_monday_0
					has_idea = SAF_black_monday_1
					has_idea = SAF_black_monday_2
				}
			}
		}
	}

	SAF_repay_leftovers = {
		icon = generic_decision
		allowed = {
			original_tag = SAF
		}
		available = {
			custom_trigger_tooltip = {
				tooltip = SAF_tt_can_pay_off_leftovers
				check_variable = {
					var = saf_var_budget
					value = saf_var_debt
					compare = greater_than_or_equals
				}
			}
		}
		visible = {
			check_variable = {
				var = saf_var_debt
				value = 2
				compare = less_than
			}
			check_variable = {
				var = saf_var_debt
				value = 0
				compare = greater_than
			}
		}
		cost = 0
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_repay_leftovers"
			custom_effect_tooltip = SAF_tt_pays_off_leftovers
			subtract_from_variable = { var = saf_var_debt value = saf_var_debt }
			subtract_from_variable = { var = saf_var_budget value = saf_var_debt }
		}
	}

	SAF_cut_funding_on_military = {
		icon = ger_military_buildup
		allowed = {
			original_tag = SAF
		}
		available = {
			NOT = {
				has_government = social_liberal
				has_government = social_conservative
			}
		}
		days_re_enable = 1
		days_remove = 365

		modifier = {
			production_factory_max_efficiency_factor  = -0.25
			army_org_Factor = -0.1
		}
		cost = 25
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_cut_funding_on_military"
			custom_effect_tooltip = SAF_tt_saved_money_goes_to_free_budget
			add_to_variable = { var = saf_var_budget value = 5 }
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				NOT = {
					has_idea = SAF_black_monday_0
					has_idea = SAF_black_monday_1
					has_idea = SAF_black_monday_2
				}
			}
		}
	}

	SAF_raise_taxes = {
		icon = oppression
		allowed = {
			original_tag = SAF
		}
		days_re_enable = 1
		days_remove = 365

		modifier = {
			production_speed_buildings_factor = -0.25
			consumer_goods_factor = 0.05
		}
		cost = 25
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_raise_taxes"
			custom_effect_tooltip = SAF_tt_earned_money_goes_to_free_budget
			add_to_variable = { var = saf_var_budget value = 2 }
			if = {
				limit = {
					has_government = market_liberal
				}
				add_popularity = { ideology = market_liberal popularity = -0.05 }
			}
			if = {
				limit = {
					check_variable = {
						var = saf_var_inflation
						value = 0.01
						compare = greater_than_or_equals
					}
				}
				custom_effect_tooltip = SWE_tt_inflation_reduced_by_one
				add_to_variable = { var = saf_var_inflation value = -0.01 }
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				check_variable = {
					var = saf_var_inflation
					value = 0.08
					compare = less_than
				}
			}
		}
	}

	SAF_cut_welfare = {
		icon = generic_break_treaty
		allowed = {
			original_tag = SAF
		}
		available = {
			NOT = {
				has_government = social_democrat
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
			}
		}
		days_re_enable = 1
		days_remove = 365

		modifier = {
			stability_factor = -0.25
			MONTHLY_POPULATION = -0.1
		}
		cost = 25
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_cut_welfare"
			custom_effect_tooltip = SAF_tt_saved_money_goes_to_free_budget_welfare
			add_to_variable = { var = saf_var_budget value = 5 }
			if = {
				limit = {
					has_government = market_liberal
				}
				add_popularity = { ideology = market_liberal popularity = -0.05 }
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				NOT = {
					has_idea = SAF_black_monday_0
					has_idea = SAF_black_monday_1
					has_idea = SAF_black_monday_2
				}
			}
		}
	}

	SAF_public_work_program = {
		icon = generic_construction
		allowed = {
			original_tag = SAF
		}
		available = {
			has_completed_focus = SAF_establish_work_programs
		}
		days_re_enable = 1
		days_remove = 150

		modifier = {
			consumer_goods_factor = 0.1
		}
		cost = 0
		custom_cost_trigger = {
			check_variable = {
				var = saf_var_budget
				value = 3
				compare = greater_than_or_equals
			}
		}

		custom_cost_text = SAF_tt_three_million_kronor
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_public_work_program"
			#custom_effect_tooltip = SWE_tt_two_million_kronor_spent
			add_to_variable = { var = saf_var_budget value = -3 }
			custom_effect_tooltip = SWE_tt_unemployment_lowered_three_percent
			add_to_variable = { var = saf_var_unemployment value = -0.03 }
			if = {
				limit = {
					check_variable = {
						var = saf_var_unemployment
						value = 0
						compare = less_than
					}
				}
				set_variable = { saf_var_unemployment = 0 }
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_public_work_program"
			custom_effect_tooltip = SWE_tt_unemployment_lowered_two_percent
			add_to_variable = { var = saf_var_unemployment value = -0.02 }
			if = {
				limit = {
					check_variable = {
						var = saf_var_unemployment
						value = 0
						compare = less_than
					}
				}
				set_variable = { saf_var_unemployment = 0 }
			}
			random_owned_controlled_state = {
				limit = {
					infrastructure < 5
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				NOT = {
					has_idea = SAF_black_monday_0
					has_idea = SAF_black_monday_1
					has_idea = SAF_black_monday_2
				}
			}
		}
	}

	SAF_subsidize_resource_exports = {
		icon = tungsten
		allowed = {
			original_tag = SAF
		}
		days_re_enable = 1
		days_remove = 150

		modifier = {
			local_resources_factor = 0.10
			min_export = 0.2
		}
		cost = 0
		custom_cost_trigger = {
			check_variable = {
				var = saf_var_budget
				value = 2
				compare = greater_than_or_equals
			}
		}

		custom_cost_text = SAF_tt_two_million_kronor
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_subsidize_resource_exports"
			add_to_variable = { var = saf_var_budget value = -2 }
			custom_effect_tooltip = SWE_tt_unemployment_lowered_two_percent
			add_to_variable = { var = saf_var_unemployment value = -0.02 }
			if = {
				limit = {
					check_variable = {
						var = saf_var_unemployment
						value = 0
						compare = less_than
					}
				}
				set_variable = { saf_var_unemployment = 0 }
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_subsidize_resource_exports"
			custom_effect_tooltip = SWE_tt_unemployment_lowered_two_percent
			add_to_variable = { var = saf_var_unemployment value = -0.02 }
			if = {
				limit = {
					check_variable = {
						var = saf_var_unemployment
						value = 0
						compare = less_than
					}
				}
				set_variable = { saf_var_unemployment = 0 }
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				NOT = {
					has_idea = SAF_black_monday_0
					has_idea = SAF_black_monday_1
					has_idea = SAF_black_monday_2
				}
			}
		}
	}

	SAF_nationalize_company = {
		icon = generic_industry
		allowed = {
			original_tag = SAF
		}
		available = {
			OR = {
				has_government = social_democrat
				has_government = authoritarian_democrat
				has_government = paternal_autocrat
			}
		}
		days_re_enable = 60
		days_remove = 2

		cost = 0
		custom_cost_trigger = {
			check_variable = {
				var = saf_var_budget
				value = 5
				compare = greater_than_or_equals
			}
		}

		custom_cost_text = SAF_tt_five_million_kronor
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_nationalize_company"
			add_to_variable = { var = saf_var_budget value = -5 }
			custom_effect_tooltip = SWE_tt_unemployment_lowered_two_percent
			add_to_variable = { var = saf_var_unemployment value = -0.02 }
			if = {
				limit = {
					check_variable = {
						var = saf_var_unemployment
						value = 0
						compare = less_than
					}
				}
				set_variable = { saf_var_unemployment = 0 }
			}
		}
		ai_will_do = {
			base = 10
			modifier = {
				factor = 0
				NOT = {
					has_idea = SAF_black_monday_0
					has_idea = SAF_black_monday_1
					has_idea = SAF_black_monday_2
				}
			}
		}
	}

	SAF_implement_tariffs = {
		icon = generic_break_treaty
		allowed = {
			original_tag = SAF
		}
		modifier = {
			trade_opinion_factor = -0.25
		}
		days_remove = 365
		fire_only_once = yes

		cost = 0

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_implement_tariffs"
			custom_effect_tooltip = SAF_tt_receive_million_kronor
			add_to_variable = { var = saf_var_budget value = 2 }
			custom_effect_tooltip = SWE_tt_unemployment_lowered_two_percent
			add_to_variable = { var = saf_var_unemployment value = -0.02 }
			if = {
				limit = {
					check_variable = {
						var = saf_var_unemployment
						value = 0
						compare = less_than
					}
				}
				set_variable = { saf_var_unemployment = 0 }
			}
		}
		ai_will_do = {
			base = 10
		}
	}
	
	SAF_soften_the_colour_bar = {
		icon = GFX_decision_generic_independence
		allowed = {
			original_tag = SAF
		}
		available = {
			has_completed_focus = SAF_repeal_industrial_conciliation_act
		}
		modifier = {
			political_power_gain = -0.25
		}
		
		days_remove = 365

		cost = 50

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_implement_tariffs"
			custom_effect_tooltip = SWE_tt_unemployment_lowered_two_percent
			add_to_variable = { var = saf_var_unemployment value = -0.02 }
			if = {
				limit = {
					check_variable = {
						var = saf_var_unemployment
						value = 0
						compare = less_than
					}
				}
				set_variable = { saf_var_unemployment = 0 }
			}
		}
		ai_will_do = {
			base = 10
		}
	}
}

SAF_Decision_Group_Nuweveld = {
	SAF_campaign_against_tswana_insurgents = {
		icon = generic_prepare_civil_war

		allowed = {
			original_tag = SAF
		}

		available = {
			542 = {
				has_active_resistance = yes
			}
		}

		custom_cost_trigger = {
			command_power > 25
		}
		custom_cost_text = SAF_pp_10_cp_25

		ai_will_do = {
			factor = 10
		}
		
		modifier = {
			political_power_gain = -0.15
			conscription_factor = -0.1
			army_morale_factor = -0.1
		}
		
		days_re_enable = 50
		days_remove = 50
		
		remove_effect = {
			custom_effect_tooltip = SAF_tt_weaken_insurgency
			542 = {
				add_resistance = -10
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_campaign_against_tswana_insurgents"
			hidden_effect = {
				add_political_power = -10
				add_command_power = -25
			}
		}
	}
	
	SAF_increase_settler_attraction = {
		icon = generic_political_discourse

		allowed = {
			original_tag = SAF
		}

		cost = 20

		ai_will_do = {
			factor = 10
		}
		
		modifier = {
			political_power_gain = -0.1
			consumer_goods_factor = 0.05
			MONTHLY_POPULATION = -0.2
		}
		
		days_re_enable = 70
		days_remove = 35
		
		remove_effect = {
			custom_effect_tooltip = SAF_tt_settling_attractiveness_increased_2
			add_to_variable = { SAF_settling_attractiveness = 0.02 }
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_increase_settler_attraction"
			if = {
				limit = {
					check_variable = { SAF_tswana_insurgency > 0 }
				}
				custom_effect_tooltip = SAF_tt_tswana_insurgency_stronger_slighty
				542 = {
					add_resistance = 5
				}
			}
		}
	}
	
	SAF_ask_for_permission_to_recruit_settlers = {
		icon = generic_agreement

		allowed = {
			original_tag = SAF
		}
		
		visible = {
			has_completed_focus = SAF_establish_nuweveld
			FROM = {
				exists = yes
				has_socialist_government = no
				NOT = {
					has_country_flag = SAF_can_recruit_settlers
					has_war_with = ROOT
				}
			}
		}
		
		targets = { HOL FLN MAF NMB }
		target_root_trigger = {
			has_completed_focus = SAF_establish_nuweveld
		}
		target_trigger = {
			FROM = {
				NOT = { has_country_flag = SAF_can_recruit_settlers }
				has_socialist_government = no
			}
		}

		fire_only_once = yes
		cost = 20

		ai_will_do = {
			factor = 10
		}
		
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_increase_settler_attraction"
			FROM = { country_event = saf.57 }
		}
	}
	
	SAF_recruit_settlers_from_from = {
		icon = generic_political_discourse

		allowed = {
			original_tag = SAF
		}
		visible = {
			has_completed_focus = SAF_establish_nuweveld
			FROM = {
				exists = yes
				has_country_flag = SAF_can_recruit_settlers
				has_socialist_government = no
				NOT = { has_war_with = ROOT }
			}
		}
		
		targets = { HOL FLN MAF NMB }
		target_root_trigger = {
			has_completed_focus = SAF_establish_nuweveld
		}
		target_trigger = {
			FROM = {
				has_country_flag = SAF_can_recruit_settlers
				has_socialist_government = no
			}
		}
		
		modifier = {
			consumer_goods_factor = 0.05
		}
		
		days_re_enable = 75
		days_remove = 50

		cost = 20

		ai_will_do = {
			factor = 10
		}
		
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_increase_settler_attraction"
			if = {
				limit = {
					FROM = {
						tag = HOL
					}
				}
				custom_effect_tooltip = SAF_tt_settling_attractiveness_increased_2
				add_to_variable = { SAF_settling_attractiveness = 0.02 }
			}
			else = {
				custom_effect_tooltip = SAF_tt_settling_attractiveness_increased_half
				add_to_variable = { SAF_settling_attractiveness = 0.005 }
			}
		}
		
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_increase_settler_attraction"
			if = {
				limit = {
					check_variable = { SAF_tswana_insurgency > 0 }
				}
				custom_effect_tooltip = SAF_tt_tswana_insurgency_stronger_slighty
				542 = {
					add_resistance = 5
				}
			}
			if = {
				limit = {
					FROM = {
						tag = HOL
					}
				}
				hidden_effect = {
					FROM = {
						add_timed_idea = {
							idea = SAF_idea_settler_recruitment
							days = 50
						}
					}
				}
			}
			else = {
				hidden_effect = {
					FROM = {
						add_timed_idea = {
							idea = SAF_idea_settler_recruitment
							days = 25
						}
					}
				}
			}
		}
	}
	
	SAF_control_the_tswana_insurgency = {
		icon = oppression
		
		allowed = { tag = SAF }

		available = {
			542 = { resistance < 30 }
		}

		activation = {
			542 = { resistance > 30 }
		}

		is_good = no
		fixed_random_seed = no
		days_mission_timeout = 60

		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout SAF_increase_settler_attraction"
			if = {
				limit = {
					542 = { resistance < 60 }
				}
				random_list = {
					4 = {
						custom_effect_tooltip = SAF_tt_tswana_insurgents_kill_settlers
						subtract_from_variable = { var = SAF_whites_in_botswana value = 30 }
						subtract_from_variable = { var = SAF_settling_attractiveness value = -0.05 }
					}
					16 = {
						custom_effect_tooltip = SAF_tt_tswana_insurgents_damage_infrastructure
						542 = {
							damage_building = {
								type = infrastructure
								damage = 1
							}
						}
						subtract_from_variable = { var = SAF_settling_attractiveness value = -0.02 }
					}
					30 = {
						custom_effect_tooltip = SAF_tt_tswana_insurgency_stronger
						542 = { add_resistance = 10 }
					}
					50 = { }
				}
			}
			else_if = {
				limit = {
					542 = {
						resistance > 60
						resistance < 90
					}
				}
				random_list = {
					6 = {
						custom_effect_tooltip = SAF_tt_tswana_insurgents_kill_settlers
						subtract_from_variable = { var = SAF_whites_in_botswana value = 30 }
						subtract_from_variable = { var = SAF_settling_attractiveness value = -0.05 }
					}
					24 = {
						custom_effect_tooltip = SAF_tt_tswana_insurgents_damage_infrastructure
						542 = {
							damage_building = {
								type = infrastructure
								damage = 1
							}
						}
						subtract_from_variable = { var = SAF_settling_attractiveness value = -0.02 }
					}
					45 = {
						custom_effect_tooltip = SAF_tt_tswana_insurgency_stronger
						542 = { add_resistance = 10 }
					}
					25 = { }
				}
			}
			else = {
				country_event = saf.62
			}
		}
	}
	
	SAF_yearly_nuweveld_report = {
		
		allowed = { always = no } #manually activated

		available = {
			hidden_trigger = { always = no }
		}
		
		cancel_trigger = {
			has_completed_focus = SAF_stellaland_affairs_act
		}

		is_good = yes
		days_mission_timeout = 365

		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout SAF_yearly_nuweveld_report"
			country_event = saf.60
			hidden_effect = {
				activate_mission = SAF_yearly_nuweveld_report
			}
		}
	}
}

SAF_internal_resistance = {
	SAF_suppress_ob = {
		icon = eng_blackshirt_march

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = saf_tt_ob_stronger_than_zero
				check_variable = { saf_ob_strength > 0 }
			}
		}

		cost = 25
		days_remove = 30

		modifier = {
			weekly_manpower = -20
		}

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_suppress_ob"
			if = {
				limit = {
					check_variable = {
						var = saf_var_ob_suppression_effectiveness
						value = 0
						compare = greater_than
					}
				}
				custom_effect_tooltip = SAF_tt_ob_lowered_by_20
				subtract_from_variable = { var = saf_ob_strength value = 0.2 }
				if = {
					limit = {
						check_variable = { saf_ob_strength < 0 }
					}
					set_variable = { saf_ob_strength = 0 }
				}
				add_to_variable = {
					var = saf_var_ob_suppression_effectiveness
					value = -1
				}
			}
			else = {
				custom_effect_tooltip = SAF_tt_ob_lowered_by_10
				subtract_from_variable = { var = saf_ob_strength value = 0.1 }
				if = {
					limit = {
						check_variable = { saf_ob_strength < 0 }
					}
					set_variable = { saf_ob_strength = 0 }
				}
			}
			custom_effect_tooltip = SAF_tt_strain_on_detention_centers_increased
			add_to_variable = { var = SAF_var_detention_cap value = 5 }
		}
	}
	
	SAF_suppress_icu = {
		icon = eng_blackshirt_march

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		available = {
			custom_trigger_tooltip = {
				tooltip = saf_tt_icu_stronger_than_zero
				check_variable = { saf_icu_strength > 0 }
			}
		}

		cost = 25
		days_remove = 30

		modifier = {
			weekly_manpower = -20
		}

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_suppress_icu"
			custom_effect_tooltip = SAF_tt_icu_lowered_by_10
			subtract_from_variable = { var = saf_icu_strength value = 0.1 }
			if = {
				limit = {
					check_variable = { saf_icu_strength < 0 }
				}
				set_variable = { saf_icu_strength = 0 }
			}
			custom_effect_tooltip = SAF_tt_strain_on_detention_centers_increased
			add_to_variable = { var = SAF_var_detention_cap value = 5 }
		}
	}
	
	SAF_control_the_ob = {
		icon = oppression
		
		allowed = { always = no } #manually activated

		available = {
			custom_trigger_tooltip = {
				tooltip = SAF_tt_ob_active
				NOT = {
					has_country_flag = SAF_internal_resistance_enebled
					has_country_flag = SAF_ossewabrandwag_founded
				}
			}
		}

		is_good = no
		fixed_random_seed = no

		days_mission_timeout = 30

		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout SAF_control_the_ob"
			if = {
				limit = {
					saf_trigger_ob_anti_war = yes
					check_variable = { saf_ob_strength > 0 }
				}
				random_list = {
					20 = {
						custom_effect_tooltip = SAF_tt_ossewa_nerds_harass_servicemen
						add_timed_idea = {
							idea = SAF_idea_harassed_army_personnel
							days = 30
						}
					}
					10 = {
						custom_effect_tooltip = SAF_tt_ossewa_nerds_blow_railway_line
						random_owned_controlled_state = {
							limit = {
								is_core_of = ROOT
							}
							damage_building = {
								type = infrastructure
								damage = 0.7
							}
						}
					}
					10 = {
						custom_effect_tooltip = SAF_tt_ossewa_nerds_share_confidential_information_with_enemy
						add_timed_idea = {
							idea = SAF_idea_compromised_intelligence
							days = 30
						}
					}
					10 = {
						custom_effect_tooltip = SAF_tt_ossewa_nerds_convince_afrikaners_war_bad
						add_war_support = -0.03
					}
					25 = {
						modifier = {
							factor = 2
							check_variable = { saf_ob_strength < 0.5 }
						}
						modifier = {
							factor = 2
							check_variable = { saf_ob_strength < 0.25 }
						}
						modifier = {
							factor = 2
							check_variable = { saf_ob_strength < 0.1 }
						}
						#custom_effect_tooltip = no_effect
					}
				}
			}
			else_if = {
				limit = {
					saf_trigger_ob_neutral = yes
					check_variable = { saf_ob_strength > 0 }
				}
				custom_effect_tooltip = SAF_tt_ob_neutral_will_not_act
			}
			else_if = {
				limit = {
					saf_trigger_ob_prowar = yes
					check_variable = { saf_ob_strength > 0 }
				}
				random_list = {
					20 = {
						custom_effect_tooltip = SAF_tt_ossewa_nerds_attack_icu
						subtract_from_variable = { var = saf_icu_strength value = -0.1 }
						if = {
							limit = {
								check_variable = { saf_icu_strength < 0 }
							}
							set_variable = { saf_icu_strength = 0 }
						}
					}
					10 = {
						custom_effect_tooltip = SAF_tt_ossewa_nerds_start_recruitment_drive
						add_timed_idea = {
							idea = SAF_idea_ossewa_recruitment_drive
							days = 30
						}
					}
					10 = {
						custom_effect_tooltip = SAF_tt_ossewa_nerds_lynch_foreign_citizens
						add_stability = -0.03
					}
					10 = {
						custom_effect_tooltip = SAF_tt_ossewa_nerds_convince_afrikaners_war_good
						add_war_support = 0.03
					}
					25 = {
						modifier = {
							factor = 2
							check_variable = { saf_ob_strength < 0.5 }
						}
						modifier = {
							factor = 2
							check_variable = { saf_ob_strength < 0.25 }
						}
						modifier = {
							factor = 2
							check_variable = { saf_ob_strength < 0.1 }
						}
						#custom_effect_tooltip = no_effect
					}
				}
			}
			else = {
				custom_effect_tooltip = SAF_tt_ob_weak_will_not_act
			}
			hidden_effect = {
				random_list = {
					45 = {
						add_to_variable = { var = saf_ob_strength value = 0.05 }
						if = {
							limit = {
								check_variable = { saf_ob_strength > 1 }
							}
							set_variable = { saf_ob_strength = 1 }
						}
					}
					55 = {
						#no effect
					}
				}
				activate_mission = SAF_control_the_ob
			}
		}
	}
	
	SAF_control_the_icu = {
		icon = oppression
		
		allowed = { always = no } #manually activated

		available = {
			custom_trigger_tooltip = {
				tooltip = SAF_tt_icu_active
				NOT = {
					has_country_flag = SAF_internal_resistance_enebled
				}
			}
		}

		is_good = no
		fixed_random_seed = no

		days_mission_timeout = 30

		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout SAF_control_the_icu"
			if = {
				limit = {
					saf_trigger_icu_anti_war = yes
					check_variable = { saf_icu_strength > 0 }
				}
				random_list = {
					10 = {
						custom_effect_tooltip = SAF_tt_icu_organises_strikes
						add_timed_idea = {
							idea = SAF_idea_industrial_strikes
							days = 30
						}
					}
					10 = {
						custom_effect_tooltip = SAF_tt_icu_organises_mining_strikes
						add_timed_idea = {
							idea = SAF_idea_mining_strikes
							days = 30
						}
					}
					5 = {
						custom_effect_tooltip = SAF_tt_icu_sabotages_factory
						random_controlled_state = {
							limit = {
								arms_factory > 0
							}
							damage_building = {
								type = arms_factory
								damage = 0.7
							}
						}
					}
					5 = {
						custom_effect_tooltip = SAF_tt_icu_sabotages_civ_factory
						random_controlled_state = {
							limit = {
								industrial_complex > 0
							}
							damage_building = {
								type = industrial_complex
								damage = 0.7
							}
						}
					}
					10 = {
						custom_effect_tooltip = SAF_tt_icu_shares_confidential_information_with_enemy
						add_timed_idea = {
							idea = SAF_idea_compromised_intelligence
							days = 30
						}
					}
					10 = {
						custom_effect_tooltip = SAF_tt_icu_convince_natives_war_bad
						add_war_support = -0.03
					}
					25 = {
						modifier = {
							factor = 2
							check_variable = { saf_icu_strength < 0.5 }
						}
						modifier = {
							factor = 2
							check_variable = { saf_icu_strength < 0.25 }
						}
						modifier = {
							factor = 2
							check_variable = { saf_icu_strength < 0.1 }
						}
						#custom_effect_tooltip = no_effect
					}
				}
			}
			else_if = {
				limit = {
					saf_trigger_icu_neutral = yes
					check_variable = { saf_icu_strength > 0 }
				}
				custom_effect_tooltip = SAF_tt_icu_neutral_will_not_act
			}
			else_if = {
				limit = {
					saf_trigger_icu_prowar = yes
					check_variable = { saf_icu_strength > 0 }
				}
				random_list = {
					20 = {
						custom_effect_tooltip = SAF_tt_icu_report_weapon_hideout
						add_to_variable = {
							var = saf_var_ob_suppression_effectiveness
							value = 1
						}
					}
					10 = {
						custom_effect_tooltip = SAF_tt_icu_suspends_peaceful_resistance
						add_timed_idea = {
							idea = SAF_idea_less_nonviolent_resistance
							days = 30
						}
					}
					10 = {
						custom_effect_tooltip = SAF_tt_icu_calls_for_native_recruitment
						add_stability = -0.03
					}
					10 = {
						custom_effect_tooltip = SAF_tt_icu_convince_natives_war_good
						add_war_support = 0.03
					}
					25 = {
						modifier = {
							factor = 2
							check_variable = { saf_icu_strength < 0.5 }
						}
						modifier = {
							factor = 2
							check_variable = { saf_icu_strength < 0.25 }
						}
						modifier = {
							factor = 2
							check_variable = { saf_icu_strength < 0.1 }
						}
						#custom_effect_tooltip = no_effect
					}
				}
			}
			else = {
				custom_effect_tooltip = SAF_tt_icu_weak_will_not_act
			}
			hidden_effect = {
				random_list = {
					45 = {
						add_to_variable = { var = saf_icu_strength value = 0.05 }
						if = {
							limit = {
								check_variable = { saf_icu_strength > 1 }
							}
							set_variable = { saf_icu_strength = 1 }
						}
					}
					55 = {
						#no effect
					}
				}
				activate_mission = SAF_control_the_icu
			}
		}
	}
	
	SAF_construct_detention_camps = {
		icon = generic_construction

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		available = {
			num_of_civilian_factories_available_for_projects > 2
		}

		fire_only_once = yes

		cost = 50
		days_remove = 60

		modifier = {
			civilian_factory_use = 2
		}

		ai_will_do = {
			factor = 1
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_construct_detention_camps"
			custom_effect_tooltip = SAF_tt_no_trouble_with_detention_camps
			set_country_flag = saf_detention_camps
			add_stability = -0.1
		}
	}
}

SAF_SMUT_ENT = {
	SAF_Mil_Army_1= { #Native NCO
		icon = decision_soldierly_discipline
		allowed = {
			tag = SAF
		}
		available = {
			OR = {
				has_completed_focus = SAF_coloured_enfranchisement_act
				AND = {
					has_completed_focus = SAF_native_representation_act
					has_country_flag = SAF_fusion
				}	
			}	
		}
		visible = {
			has_completed_focus = SAF_Smuts_Ref
		}
		fire_only_once = yes
		cost = 40
		days_remove = 30
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Mil_Army_1"
			add_stability = -0.05
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_1"
			custom_effect_tooltip = SAF_Level_1
			set_country_flag = SAF_Nat_Nco_cf
		}	
	}

	SAF_Mil_Army_2= { #Native Military Corps
		icon = decision_generic_prepare_civil_war
		allowed = {
			tag = SAF
		}
		visible = {
			has_completed_focus = SAF_Smuts_Ref
		}
		fire_only_once = yes
		cost = 30
		days_remove = 21
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Mil_Army_2"
			add_stability = -0.025
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_2"
			custom_effect_tooltip = SAF_Level_1
			set_country_flag = SAF_Nat_Mil_Corp_cf
		}		
	}

	SAF_Mil_Army_3= { #Native Expanded Roles
		icon = decision_generic_prepare_civil_war
		available = {
			has_completed_focus = SAF_coloured_enfranchisement_act
		}
		visible = {
			has_country_flag = SAF_Nat_Mil_Corp_cf
			has_country_flag = SAF_Nat_Nco_cf
		}	
		fire_only_once = yes
		cost = 20
		days_remove = 14
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Mil_Army_3"
			add_stability = -0.025
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_2"
			custom_effect_tooltip = SAF_Level_1
			set_country_flag = SAF_Nat_Exp_Roles_cf
		}	
	}

	SAF_Mil_Army_10 = { #Native Reforms Completed
		icon = decision_generic_decision
		allowed = {
		tag = SAF
		}
		visible = {
			has_country_flag = SAF_Nat_Mil_Corp_cf
			has_country_flag = SAF_Nat_Exp_Roles_cf
			has_country_flag = SAF_Nat_Nco_cf
		}
		fire_only_once = yes
		cost = 20
		days_remove = 14
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Mil_Army_10"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_2"
			custom_effect_tooltip = SAF_Level_2
			set_country_flag = SAF_Nat_Redefined
		}		
	}

	SAF_Mil_Army_4 = { #Coloured Auxiliaries
		icon = decision_eng_blackshirt_march
		allowed = {
			tag = SAF
		}
		visible = {
			has_completed_focus = SAF_Cape_Corp
		}
		fire_only_once = yes
		cost = 25
		days_remove = 21
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Mil_Army_4"
			custom_effect_tooltip = SAF_Level_3
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_4"
			add_stability = -0.025
			set_country_flag = SAF_Coloured_Aux
		}	
	}

	SAF_Mil_Army_5 = { #Indian Auxiliaries
		icon = decision_eng_blackshirt_march
		allowed = {
			tag = SAF
		}
		visible = {
			has_completed_focus = SAF_Cape_Corp
		}
		fire_only_once = yes
		cost = 40
		days_remove = 21
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Mil_Army_5"
			add_stability = -0.05
			custom_effect_tooltip = SAF_Level_3
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_5"
			set_country_flag = SAF_Indian_Aux
		}	
	}

	SAF_Mil_Army_11 = { #Auxiliaries Redefined
		icon = decision_eng_trade_unions_support
		allowed = {
			tag = SAF
		}
		visible = {
			has_completed_focus = SAF_Cape_Corp
			has_country_flag = SAF_Indian_Aux
			has_country_flag = SAF_Coloured_Aux
		}
		fire_only_once = yes
		cost = 40
		days_remove = 7
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_11"
			set_country_flag = saf_aux_completed
		}		
	}		

	SAF_Mil_Army_6= { #South African Armoured Car
		icon = decision_generic_tank
		allowed = {
			tag = SAF
		}
		visible = {
			has_country_flag = SAF_armoured_efforts_tt
		}
		fire_only_once = yes
		cost = 50
		days_remove = 70
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_6"
			add_ideas = SAF_armoured_car
			set_country_flag = SAF_armoured_car_tt
		}	
	}	

	SAF_Mil_Army_7 = { #Secure the Means..
		icon = decision_hol_attract_foreign_investors
		allowed = {
			tag = SAF
		}
		visible = {
			has_country_flag = SAF_armoured_efforts_tt
		}
		fire_only_once = yes
		cost = 50
		days_remove = 45
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_7"
			if = {
				limit = {
					NOT = { has_dlc = "No Step Back" }
				}
				add_equipment_to_stockpile = {
					type = light_tank_equipment_1
					amount = 100
					producer = CAN
				}
			}
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				add_equipment_to_stockpile = {
					type = light_tank_chassis
					amount = 100
					producer = CAN
				}
			}
			
			add_equipment_to_stockpile = {
				type = motorized_equipment
				amount = 200
				producer = CAN
			}
			set_country_flag = SAF_secure_means_arm_tt	
		}
	}

	SAF_Mil_Army_8 = { #Promote Armour Innovations
		icon = decision_generic_construction
		allowed = {
			tag = SAF
		}
		visible = {
			has_country_flag = SAF_armoured_car_tt
			has_country_flag = SAF_secure_means_arm_tt
		}
		fire_only_once = yes
		cost = 20
		days_remove = 21
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_8"
			set_country_flag = SAF_armoured_complete
		}	
	}

	SAF_Mil_Army_9 = { #Expand Coastal Defence Force
		icon = decision_generic_political_discourse
		allowed = {
			tag = SAF
		}
		visible = {
			has_idea = extensive_conscription			
		}
		fire_only_once = yes
		cost = 20
		days_remove = 60
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Mil_Army_9"
			add_manpower = 10000
		}		
	}	
}

SAF_Decision_Group_Smuts_Doctrine = {
	SAF_intervene_kenya = {
		icon = generic_prepare_civil_war

		available = {
			OR = {
				is_neighbor_of = FROM
				FROM = {
					any_owned_state = { is_coastal = yes }
				}
			}
		}

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			can_declare_war_on = FROM
			is_subject = no
		}

		cost = 0
		days_remove = SAF_invade_kenya_time?0
		war_with_target_on_remove = yes
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		targets = { KEN }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = { 
				factor = 0
				OR = {
					NOT = { is_neighbor_of = FROM }
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_intervene_kenya"
			if = {
				limit = { is_ai = yes }
				set_country_flag = { flag = SAF_impending_war days = 31 value = 1 }
				set_variable = { SAF_invade_kenya_time = 30 }
				setup_decision_attack_AI = yes
			}
			else = {
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_intervene_kenya"
			if = {
				limit = { is_ai = yes }
				clear_variable = SAF_invade_kenya_time
				clear_decision_attack_AI = yes
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}
	}
	
	SAF_intervene_mozambique = {
		icon = generic_prepare_civil_war

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			can_declare_war_on = FROM
			is_subject = no
		}

		cost = 0
		days_remove = SAF_invade_mozambique_time?0
		war_with_target_on_remove = yes
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		targets = { MZB }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = { 
				factor = 0
				OR = {
					NOT = { is_neighbor_of = FROM }
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_intervene_mozambique"
			if = {
				limit = { is_ai = yes }
				set_country_flag = { flag = SAF_impending_war days = 31 value = 1 }
				set_variable = { SAF_invade_mozambique_time = 30 }
				setup_decision_attack_AI = yes
				add_state_claim = 544
				add_state_claim = 950
				add_state_claim = 954
			}
			else = {
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_intervene_mozambique"
			if = {
				limit = { is_ai = yes }
				clear_variable = SAF_invade_mozambique_time
				clear_decision_attack_AI = yes
				add_state_claim = 544
				add_state_claim = 950
				add_state_claim = 954
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}
	}
	
	SAF_intervene_northern_rhodesia = {
		icon = generic_prepare_civil_war

		available = {
			FROM = {
				any_neighbor_country = {
					custom_trigger_tooltip = {
						tooltip = is_ally_of_ROOT
						is_ally_of_ROOT = yes
					}
				}
			}
		}

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			can_declare_war_on = FROM
			is_subject = no
		}

		cost = 0
		days_remove = SAF_invade_north_rhodesia_time?0
		war_with_target_on_remove = yes
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		targets = { ZAM BRT }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
					FROM = { is_ai = no }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_intervene_northern_rhodesia"
			if = {
				limit = { is_ai = yes }
				set_country_flag = { flag = SAF_impending_war days = 31 value = 1 }
				set_variable = { SAF_invade_north_rhodesia_time = 30 }
				setup_decision_attack_AI = yes
			}
			else = {
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_intervene_northern_rhodesia"
			if = {
				limit = { is_ai = yes }
				clear_variable = SAF_invade_north_rhodesia_time
				clear_decision_attack_AI = yes
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}
	}
	
	SAF_intervene_nyasaland = {
		icon = generic_prepare_civil_war

		available = {
			FROM = {
				any_neighbor_country = {
					custom_trigger_tooltip = {
						tooltip = is_ally_of_ROOT
						is_ally_of_ROOT = yes
					}
				}
			}
		}

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			can_declare_war_on = FROM
			is_subject = no
		}

		cost = 0
		days_remove = SAF_invade_nyasaland_time?0
		war_with_target_on_remove = yes
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		targets = { MLW }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
					FROM = { is_ai = no }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_intervene_nyasaland"
			if = {
				limit = { is_ai = yes }
				set_country_flag = { flag = SAF_impending_war days = 31 value = 1 }
				set_variable = { SAF_invade_nyasaland_time = 30 }
				setup_decision_attack_AI = yes
			}
			else = {
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_intervene_nyasaland"
			if = {
				limit = { is_ai = yes }
				clear_variable = SAF_invade_nyasaland_time
				clear_decision_attack_AI = yes
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}
	}
	
	SAF_intervene_south_west = {
		icon = generic_prepare_civil_war

		available = {
			FROM = {
				NOT = { is_in_faction_with = GER }
			}
		}

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			can_declare_war_on = FROM
			is_subject = no
		}

		cost = 0
		days_remove = SAF_invade_swa_time?0
		war_with_target_on_remove = yes
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		targets = { NMB }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = {
				factor = 0
				OR = {
					NOT = { #AI democratic SAF should only intervene if Südwest is already out of the picture, though Dominionist SAF doesn't care
						has_government = paternal_autocrat
						country_exists = NMB
					}
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
					FROM = { is_ai = no }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_intervene_south_west"
			if = {
				limit = { is_ai = yes }
				set_country_flag = { flag = SAF_impending_war days = 31 value = 1 }
				set_variable = { SAF_invade_swa_time = 30 }
				setup_decision_attack_AI = yes
			}
			else = {
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_intervene_south_west"
			if = {
				limit = { is_ai = yes }
				clear_variable = SAF_invade_swa_time
				clear_decision_attack_AI = yes
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}
	}
	
	SAF_intervene_taganyika = {
		icon = generic_prepare_civil_war

		available = {
			FROM = {
				any_neighbor_country = {
					custom_trigger_tooltip = {
						tooltip = is_ally_of_ROOT
						is_ally_of_ROOT = yes
					}
				}
			}
		}

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			can_declare_war_on = FROM
			is_subject = no
		}

		cost = 0
		days_remove = SAF_invade_taganyika_time?0
		war_with_target_on_remove = yes
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		targets = { TZN }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = { 
				factor = 0
				OR = {
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
					FROM = { is_ai = no }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_intervene_taganyika"
			if = {
				limit = { is_ai = yes }
				set_country_flag = { flag = SAF_impending_war days = 31 value = 1 }
				set_variable = { SAF_invade_taganyika_time = 30 }
				setup_decision_attack_AI = yes
			}
			else = {
				546 = {
					add_claim_by = ROOT
					set_state_flag = SAF_the_empire_strikes_back
				}
				899 = {
					add_claim_by = ROOT
					set_state_flag = SAF_the_empire_strikes_back
				}
				918 = {
					add_claim_by = ROOT
					set_state_flag = SAF_the_empire_strikes_back
				}
				965 = {
					add_claim_by = ROOT
					set_state_flag = SAF_the_empire_strikes_back
				}
				1032 = {
					add_claim_by = ROOT
					set_state_flag = SAF_the_empire_strikes_back
				}
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}
		
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_intervene_taganyika"
			if = {
				limit = { is_ai = yes }
				clear_variable = SAF_invade_taganyika_time
				clear_decision_attack_AI = yes
				546 = {
					add_claim_by = ROOT
					set_state_flag = SAF_the_empire_strikes_back
				}
				899 = {
					add_claim_by = ROOT
					set_state_flag = SAF_the_empire_strikes_back
				}
				918 = {
					add_claim_by = ROOT
					set_state_flag = SAF_the_empire_strikes_back
				}
				965 = {
					add_claim_by = ROOT
					set_state_flag = SAF_the_empire_strikes_back
				}
				1032 = {
					add_claim_by = ROOT
					set_state_flag = SAF_the_empire_strikes_back
				}
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}
	}
	
	SAF_intervene_uganda = {
		icon = generic_prepare_civil_war

		available = {
			FROM = {
				any_neighbor_country = {
					custom_trigger_tooltip = {
						tooltip = is_ally_of_ROOT
						is_ally_of_ROOT = yes
					}
				}
			}
		}

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			can_declare_war_on = FROM
			is_subject = no
		}

		cost = 0
		days_remove = SAF_invade_uganda_time?0
		war_with_target_on_remove = yes
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		targets = { UGA }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = { 
				factor = 0
				OR = {
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
					FROM = { is_ai = no }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_intervene_uganda"
			if = {
				limit = { is_ai = yes }
				set_country_flag = { flag = SAF_impending_war days = 31 value = 1 }
				set_variable = { SAF_invade_uganda_time = 30 }
				setup_decision_attack_AI = yes
			}
			else = {
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_intervene_uganda"
			if = {
				limit = { is_ai = yes }
				clear_variable = SAF_invade_uganda_time
				clear_decision_attack_AI = yes
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}
	}
	
	SAF_intervene_zanzibar = {
		icon = generic_prepare_civil_war

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			can_declare_war_on = FROM
			is_subject = no
		}

		cost = 0
		days_remove = SAF_invade_zanzibar_time?0
		war_with_target_on_remove = yes
		cancel_if_not_visible = yes
		fire_only_once = yes
		
		targets = { ZZB }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = { 
				factor = 0
				OR = {
					NOT = {
						controls_state = 965
						controls_state = 970
					}
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
					FROM = { is_ai = no }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_intervene_zanzibar"
			if = {
				limit = { is_ai = yes }
				set_country_flag = { flag = SAF_impending_war days = 31 value = 1 }
				set_variable = { SAF_invade_zanzibar_time = 30 }
				setup_decision_attack_AI = yes
			}
			else = {
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_intervene_zanzibar"
			if = {
				limit = { is_ai = yes }
				clear_variable = SAF_invade_zanzibar_time
				clear_decision_attack_AI = yes
				declare_war_on = {
					target = FROM
					type = annex_everything
				}
			}
		}
	}
	
	SAF_demand_katanga_pulls_back = {
		icon = eng_trade_unions_demand

		available = {
			is_neighbor_of = FROM
		}

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			is_subject = no
			can_declare_war_on = FROM
			FROM = {
				any_owned_state = {
					OR = {
						is_core_of = ZAM
						is_core_of = MLW
					}
					is_fully_controlled_by = PREV
				}
			}
		}

		cost = 0
		days_remove = 10
		fire_only_once = yes
		
		targets = { COG }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
			FROM = {
				any_owned_state = {
					OR = {
						is_core_of = ZAM
						is_core_of = MLW
					}
					is_fully_controlled_by = PREV
				}
			}
		}

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = { 
				factor = 0
				OR = {
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_demand_katanga_pulls_back"
			set_country_flag = { flag = SAF_impending_war days = 11 value = 1 }
			setup_decision_attack_AI = yes
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_demand_katanga_pulls_back"
			clear_decision_attack_AI = yes
			if = {
				limit = {
					FROM = { is_subject = yes }
				}
				var:FROM.overlord = { country_event = saf.128 }
			}
			else = {
				FROM = { country_event = saf.128 }
			}
		}
	}
	
	SAF_demand_kivu_pulls_back = {
		icon = eng_trade_unions_demand

		available = {
			is_neighbor_of = FROM
		}

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			is_subject = no
			can_declare_war_on = FROM
			FROM = {
				any_owned_state = {
					OR = {
						is_core_of = KEN
						is_core_of = UGA
					}
					is_fully_controlled_by = PREV
				}
			}
		}
		
		targets = { KIV }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
			FROM = {
				any_owned_state = {
					OR = {
						is_core_of = KEN
						is_core_of = UGA
					}
					is_fully_controlled_by = PREV
				}
			}
		}

		cost = 0
		days_remove = 10
		fire_only_once = yes

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = { 
				factor = 0
				OR = {
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_demand_kivu_pulls_back"
			set_country_flag = { flag = SAF_impending_war days = 11 value = 1 }
			setup_decision_attack_AI = yes
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_demand_kivu_pulls_back"
			clear_decision_attack_AI = yes
			if = {
				limit = {
					FROM = { is_subject = yes }
				}
				var:FROM.overlord = { country_event = saf.131 }
			}
			else = {
				FROM = { country_event = saf.131 }
			}
		}
	}
	
	SAF_demand_somalia_pulls_back = {
		icon = eng_trade_unions_demand
		
		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		available = {
			controls_state = 925
		}

		visible = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
			is_subject = no
			can_declare_war_on = FROM
			FROM = {
				any_owned_state = {
					is_core_of = KEN
					is_fully_controlled_by = PREV
				}
			}
		}
		
		targets = { SOM }
		target_root_trigger = {
			has_completed_focus = SAF_enact_smuts_doctrine
			has_global_flag = MAF_collapse
			NOT = { has_cosmetic_tag = SAF_republic }
		}
		target_trigger = {
			can_declare_war_on = FROM
			FROM = {
				any_owned_state = {
					is_core_of = KEN
					is_fully_controlled_by = PREV
				}
			}
		}

		cost = 0
		days_remove = 10
		fire_only_once = yes

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_country_flag = SAF_impending_war
			}
			modifier = { 
				factor = 0
				OR = {
					ROOT_is_threatened_cautious = yes
					FROM = { dont_start_major_faction_wars = yes }
					FROM = { default_attack_AI_trigger_FROM = yes }
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_demand_somalia_pulls_back"
			set_country_flag = { flag = SAF_impending_war days = 11 value = 1 }
			setup_decision_attack_AI = yes
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_demand_somalia_pulls_back"
			clear_decision_attack_AI = yes
			if = {
				limit = {
					FROM = { is_subject = yes }
				}
				var:FROM.overlord = { country_event = saf.133 }
			}
			else = {
				FROM = { country_event = saf.133 }
			}
		}
	}
}

economy_decisions = {
	SAF_dec_build_the_kariba_dam = {
		icon = GFX_decision_generic_construction

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 545
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			545 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		visible = {
			owns_state = 947
			has_completed_focus = SAF_build_the_kariba_dam
		}

		fire_only_once = yes

		cost = 25
		days_remove = 120

		modifier = {
			civilian_factory_use = 3
		}
		
		cancel_trigger = {
			NOT = { controls_state = 947 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_dec_build_the_kariba_dam"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_dec_build_the_kariba_dam"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_dec_build_the_kariba_dam"
			add_ideas = SAF_idea_kariba_dam
			947 = {
				add_extra_state_shared_building_slots = 2
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	SAF_establish_idc_factory_cape_town = {
		icon = GFX_decision_generic_industry

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 681
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			681 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		visible = {
			owns_state = 681
			OR = {
				has_completed_focus = SAF_form_idc_of_south_africa
				has_completed_focus = SAF_SOC_form_idc_of_south_africa
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 681 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_establish_idc_factory_cape_town"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_establish_idc_factory_cape_town"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_establish_idc_factory_cape_town"
			681 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_establish_idc_factory_durban = {
		icon = GFX_decision_generic_industry

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 719
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			719 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		visible = {
			owns_state = 719
			OR = {
				has_completed_focus = SAF_form_idc_of_south_africa
				has_completed_focus = SAF_SOC_form_idc_of_south_africa
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 719 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_establish_idc_factory_durban"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_establish_idc_factory_durban"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_establish_idc_factory_durban"
			719 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_establish_idc_factory_johannesburg = {
		icon = GFX_decision_generic_industry

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 275
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			275 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		visible = {
			owns_state = 275
			OR = {
				has_completed_focus = SAF_form_idc_of_south_africa
				has_completed_focus = SAF_SOC_form_idc_of_south_africa
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 275 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_establish_idc_factory_johannesburg"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_establish_idc_factory_johannesburg"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_establish_idc_factory_johannesburg"
			275 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_establish_idc_factory_salisbury = {
		icon = GFX_decision_generic_industry

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 545
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			545 = {
				is_owned_and_controlled_by = ROOT
			}
			has_idea = SAF_idea_kariba_dam
		}

		visible = {
			owns_state = 545
			OR = {
				has_completed_focus = SAF_form_idc_of_south_africa
				has_completed_focus = SAF_SOC_form_idc_of_south_africa
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 545 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_establish_idc_factory_salisbury"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_establish_idc_factory_salisbury"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_establish_idc_factory_salisbury"
			545 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_invest_cape_town = {
		icon = GFX_decision_hol_attract_foreign_investors

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 681
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			681 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		visible = {
			owns_state = 681
			OR = {
				has_completed_focus = SAF_support_iscor_expansion
				has_completed_focus = SAF_SOC_support_iscor_expansion
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 681 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_invest_cape_town"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_invest_cape_town"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_invest_cape_town"
			681 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_invest_durban = {
		icon = GFX_decision_hol_attract_foreign_investors

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 719
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			719 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		visible = {
			owns_state = 719
			OR = {
				has_completed_focus = SAF_support_iscor_expansion
				has_completed_focus = SAF_SOC_support_iscor_expansion
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 719 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_invest_durban"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_invest_durban"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_invest_durban"
			719 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_expand_vanderbijlspark = {
		icon = GFX_decision_generic_construction

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 275
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			275 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		visible = {
			owns_state = 275
			OR = {
				has_completed_focus = SAF_vanderbijlparks_steelworks
				has_completed_focus = SAF_SOC_vanderbijlparks_steelworks
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 275 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_expand_vanderbijlspark"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_expand_vanderbijlspark"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_expand_vanderbijlspark"
			275 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_invest_witwatersrand = {
		icon = GFX_decision_hol_attract_foreign_investors

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 275
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			275 = {
				is_owned_and_controlled_by = ROOT
			}
		}

		visible = {
			owns_state = 275
			OR = {
				has_completed_focus = SAF_support_iscor_expansion
				has_completed_focus = SAF_SOC_support_iscor_expansion
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 90

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 275 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_invest_witwatersrand"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_invest_witwatersrand"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_invest_witwatersrand"
			275 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
}

SAF_exploit_resources = {
	SAF_develop_natal_steel_mines = {
		icon = steel

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 719
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			719 = { is_owned_and_controlled_by = ROOT }
			has_tech = excavation2
			OR = {
				has_socialist_government = no
				has_completed_focus = SAF_grab_the_mines
			}
		}

		visible = {
			719 = {
				is_owned_by = ROOT
				NOT = { has_state_flag = SAF_steel_mines_developed }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 719 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_develop_natal_steel_mines"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_develop_natal_steel_mines"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_develop_natal_steel_mines"
			719 = {
				set_state_flag = SAF_steel_mines_developed
				add_resource = {
					type = steel
					amount = 18
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_develop_northern_cape_aluminum_mines = {
		icon = aluminium

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 945
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			945 = { is_owned_and_controlled_by = ROOT }
			has_tech = excavation1
			OR = {
				has_socialist_government = no
				has_completed_focus = SAF_grab_the_mines
			}
		}

		visible = {
			945 = {
				is_owned_by = ROOT
				NOT = { has_state_flag = SAF_aluminium_mines_developed }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 945 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_develop_northern_cape_aluminum_mines"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_develop_northern_cape_aluminum_mines"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_develop_northern_cape_aluminum_mines"
			945 = {
				set_state_flag = SAF_aluminium_mines_developed
				add_resource = {
					type = aluminium
					amount = 5
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_develop_northern_cape_steel_mines = {
		icon = steel

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 945
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			945 = { is_owned_and_controlled_by = ROOT }
			OR = {
				has_completed_focus = SAF_support_iscor_expansion
				has_completed_focus = SAF_SOC_support_iscor_expansion
			}
		}

		visible = {
			945 = {
				is_owned_by = ROOT
				NOT = { has_state_flag = SAF_steel_mines_developed }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 945 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_develop_northern_cape_steel_mines"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_develop_northern_cape_steel_mines"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_develop_northern_cape_steel_mines"
			945 = {
				set_state_flag = SAF_steel_mines_developed
				add_resource = {
					type = steel
					amount = 12
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	SAF_develop_orange_free_state_chromium_mines = {
		icon = chromium

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 947
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			947 = { is_owned_and_controlled_by = ROOT }
			has_tech = excavation1
			OR = {
				has_socialist_government = no
				has_completed_focus = SAF_grab_the_mines
			}
		}

		visible = {
			947 = {
				is_owned_by = ROOT
				NOT = { has_state_flag = SAF_chromium_mines_developed }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 947 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_develop_orange_free_state_chromium_mines"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_develop_orange_free_state_chromium_mines"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_develop_orange_free_state_chromium_mines"
			947 = {
				set_state_flag = SAF_chromium_mines_developed
				add_resource = {
					type = chromium
					amount = 10
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_develop_orange_free_state_steel_mines = {
		icon = steel

		allowed = {
			tag = SAF
		}

		highlight_states = {
highlight_state_targets = {
			state = 947
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			947 = { is_owned_and_controlled_by = ROOT }
			OR = {
				has_completed_focus = SAF_diversified_territorial_economy
				has_completed_focus = SAF_develop_borderlands
			}
			OR = {
				has_socialist_government = no
				has_completed_focus = SAF_grab_the_mines
			}
		}

		visible = {
			947 = {
				is_owned_by = ROOT
				NOT = { has_state_flag = SAF_steel_mines_developed }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 947 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_develop_orange_free_state_steel_mines"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_develop_orange_free_state_steel_mines"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_develop_orange_free_state_steel_mines"
			947 = {
				set_state_flag = SAF_steel_mines_developed
				add_resource = {
					type = steel
					amount = 10
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
	
	SAF_develop_rhodesia_steel_mines = {
		icon = steel

		allowed = {
			tag = SAF
		}

		highlight_states = {
highlight_state_targets = {
			state = 545
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			545 = { is_owned_and_controlled_by = ROOT }
			OR = {
				has_completed_focus = SAF_diversified_territorial_economy
				has_completed_focus = SAF_develop_borderlands
				AND = {
					tag = ZIM
					has_tech = excavation2
				}
			}
			OR = {
				has_socialist_government = no
				has_completed_focus = SAF_grab_the_mines
			}
		}

		visible = {
			545 = {
				is_owned_by = ROOT
				NOT = { has_state_flag = SAF_steel_mines_developed }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 545 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_develop_rhodesia_steel_mines"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_develop_rhodesia_steel_mines"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_develop_rhodesia_steel_mines"
			545 = {
				set_state_flag = SAF_steel_mines_developed
				add_resource = {
					type = steel
					amount = 5
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}

	SAF_develop_transvaal_steel_mines = {
		icon = steel

		allowed = {
			OR = {
				tag = SAF
				tag = SFR
			}
		}

		highlight_states = {
highlight_state_targets = {
			state = 275
		}
}

		available = {
			num_of_civilian_factories_available_for_projects > 2
			275 = { is_owned_and_controlled_by = ROOT }
			OR = {
				has_completed_focus = SAF_support_iscor_expansion
				has_completed_focus = SAF_SOC_support_iscor_expansion
			}
		}

		visible = {
			275 = {
				is_owned_by = ROOT
				NOT = { has_state_flag = SAF_steel_mines_developed }
			}
		}

		fire_only_once = yes

		cost = 25
		days_remove = 60

		modifier = {
			civilian_factory_use = 3
		}

		cancel_trigger = {
			NOT = { controls_state = 275 }
		}
		cancel_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision cancelled SAF_develop_transvaal_steel_mines"
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_develop_transvaal_steel_mines"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_develop_transvaal_steel_mines"
			275 = {
				set_state_flag = SAF_steel_mines_developed
				add_resource = {
					type = steel
					amount = 15
				}
			}
		}

		ai_will_do = {
			factor = 1
		}
	}
}
		
SAF_PIROW_DES = {
	SAF_Pirow_Military_Fact = { #Fact Finding 
		icon = GFX_decision_hol_engelandvaarders
		allowed = {
			tag = SAF
		}
		visible = {
			has_completed_focus = SAF_Pirow
			country_exists = GER
			GER = { is_subject = no }
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 25
		days_remove = 60
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Pirow_Military_Fact"
			country_event = saf.221
		}	
	}
	SAF_Pirow_Military_Fact_1 = { #Fact Finding 
		icon = GFX_decision_hol_engelandvaarders
		allowed = {
			tag = SAF
		}
		visible = {
			has_completed_focus = SAF_Pirow
			NOT = {
				country_exists = GER
			}	
			GER = { is_subject = yes }
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 25
		days_remove = 60
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Pirow_Military_Fact_1"
			country_event = saf.2211
		}	
	}
	SAF_Pirow_Natives= { #Auxiliaries services 
		icon = GFX_decision_eng_blackshirt_march
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_Pirow_SSB
		}
		visible = {
			has_country_flag = SAF_pirow_td
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 25
		days_remove = 60
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Pirow_Natives"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Pirow_Natives"
			set_country_flag = SAF_Pirow_nataux
			add_ideas = SAF_Pirow_nataux_idea
		}	
	}
	
	SAF_Pirow_Colours= { #Colours Formations
		icon = GFX_decision_soldierly_discipline
		allowed = {
			tag = SAF
		}
		available = {
			has_country_flag = SAF_Pirow_nataux
		}
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_country_flag = SAF_pirow_td
		}
		fire_only_once = yes
		cost = 25
		days_remove = 60
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Pirow_Colours"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Pirow_Colours"
			set_country_flag = SAF_Pirow_Coloured_cf
			swap_ideas = { 
				remove_idea = SAF_Pirow_nataux_idea 
				add_idea = SAF_Pirow_coloured_reg
			}
			set_country_flag = SAF_Pirow_Coloured_Reg_CF	
		}	
	}
	
	SAF_Pirow_flai_0 = { #Fund Local Automotive Initiatives
		icon = GFX_decision_generic_motorized
		allowed = {
			tag = SAF
		}
		available = {
			AND = {
				has_completed_focus = SAF_Pirow_Kommando
				has_completed_focus = SAF_Pirow_Mobility_Focus
			}
		}	
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = SAF_Pirow
		}
		fire_only_once = yes
		cost = 50
		days_remove = 60
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Pirow_flai_0"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Pirow_flai_0"
			country_event = saf.222
		}	
	}
	
	SAF_Pirow_flai_1 = { #Import Required Tools and Goods
		icon = GFX_decision_ger_military_buildup
		allowed = {
			tag = SAF
		}
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_country_flag = SAF_Pirow_mech_efforts
		}
		highlight_states = {
highlight_state_targets = {
			state = 275
		}
}
		fire_only_once = yes
		cost = 125
		days_remove = 60
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Pirow_flai_1"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Pirow_flai_1"
			set_country_flag = SAF_Pirow_mech_ammo_sec
			275 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	SAF_Pirow_flai_2 = { #Volkswagen  - Das Auto!!
		icon = GFX_decision_generic_construction
		allowed = {
			tag = SAF
		}
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_country_flag = SAF_Pirow_mech_ammo_sec
		}
		highlight_states = {
highlight_state_targets = {
			state = 275
		}
}
		fire_only_once = yes
		cost = 35
		days_remove = 31
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Pirow_flai_2"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Pirow_flai_2"
			275 = {
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}	
	}		

	SAF_Pirow_Kom_1 = { #COMMANDO!! https://youtu.be/1JABdS-HN5A?t=27
		icon = GFX_decision_hol_radio_oranje
		allowed = {
			tag = SAF
		}
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = SAF_Pirow_Kommando
		}
		fire_only_once = yes
		cost = 35
		days_remove = 70
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Pirow_Kom_1"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Pirow_Kom_1"
			swap_ideas = { 
				remove_idea = SAF_army_1 
				add_idea = SAF_army_2pir
			}
		}	
	}
	
	SAF_Pirow_Kom_2 = { #Formal Training 
		icon = GFX_decision_eng_trade_unions_support
		allowed = {
			tag = SAF
		}
		available = {
			has_idea = SAF_army_2pir
		}
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = SAF_Pirow_Mobility_Focus
		}
		fire_only_once = yes
		cost = 60
		days_remove = 70
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Pirow_Kom_2"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Pirow_Kom_2"
			swap_ideas = { 
				remove_idea = SAF_army_2pir 
				add_idea = SAF_army_3pir
			}
		}
	}
	
	SAF_Pirow_Kom_3 = { #Army Integration 
		icon = GFX_decision_hol_draw_up_staff_plans
		allowed = {
			tag = SAF
		}
		available = {
			has_idea = SAF_army_3pir
		}
		ai_will_do = {
			factor = 10
		}
		visible = {
			has_completed_focus = SAF_Pirow_Mech
		}
		fire_only_once = yes
		cost = 35
		days_remove = 45
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_Pirow_Kom_3"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_Pirow_Kom_3"
			swap_ideas = { 
				remove_idea = SAF_army_3pir 
				add_idea = SAF_army_4pir
			}
		}
	}
}

SAF_THRIDINTREFORM_DES = {
	SAF_S1_B1 = { #British Advisors 
		icon = GFX_decision_generic_army_support
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_choose_your_destiny
		}
		visible = {
			has_country_flag = SAF_SOC_BRITISH_ADVISOR_UNLOCK_TT
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 10
		days_remove = 14
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S1_B1"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S1_B1"
			country_event = saf.242
			set_country_flag = SAF_SOC_Brit_Advisor_Inv
		}	
	}
	
	SAF_S2_B2 = { #Western Cape Barracks
		icon = GFX_decision_infiltrate_state
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_choose_your_destiny
		}
		visible = {
			has_country_flag = SAF_SOC_Brit_Advisor_Inv
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 25
		days_remove = 21
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S2_B2"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S2_B2"
			set_country_flag = SAF_SOC_Barracks_Brits
		}	
	}
	
	SAF_S3_B3 = { #Invite R.E.D 
		icon = GFX_decision_soldierly_discipline
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_choose_your_destiny
		}
		visible = {
			has_country_flag = SAF_SOC_BRITISH_ADVISOR_UNLOCK_TT
			has_country_flag = SAF_SOC_Barracks_Brits
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 5
		days_remove = 21
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S3_B3"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S3_B3"
			country_event = saf.243
			set_country_flag = SAF_SOC_Men_In_RED
		}	
	}
	
	SAF_S4_B4 = { #British Revolutionary Academy
		icon = GFX_decision_hol_draw_up_staff_plans
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_uob_advisors
		}
		visible = {
			tag = SAF
			has_country_flag = SAF_SOC_Men_In_RED
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 15
		days_remove = 60
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S4_B4"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S4_B4"
			set_country_flag = SAF_SOC_Rev_Aca
		}	
	}
	
	SAF_S5_B5 = { #NCO
		icon = GFX_decision_generic_army_support
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_uob_militia
		}
		visible = {
			has_completed_focus = SAF_SOC_uob_advisors
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 30
		days_remove = 60
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S5_B5"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S5_B5"
			set_country_flag = SAF_SOC_NCO_Brit
		}	
	}
	
	SAF_S6_B6 = { #Battle Language
		icon = GFX_decision_radio
		allowed = {
			tag = SAF
		}
		available = {
			has_country_flag = SAF_SOC_NCO_Brit
			has_country_flag = SAF_SOC_Rev_Aca
		}
		visible = {
			has_completed_focus = SAF_SOC_uob_advisors
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 70
		days_remove = 30
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S6_B6"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S6_B6"
			set_country_flag = SAF_SOC_FRC
		}	
	}	
	
	SAF_S7_B7 = { #Marine Specilaist
		icon = GFX_decision_generic_naval_base
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_uob_marine
		}
		visible = {
			has_completed_focus = SAF_SOC_uob_officer
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 25
		days_remove = 21
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S7_B7"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S7_B7"
			add_tech_bonus = {
				name = SAF_UOB_MARINE_TECH
				bonus = 1
				uses = 2
				category = marine_tech
				category = tp_tech
			}
		}	
	}
	
	SAF_S8_B8 = { #Comradeship
		icon = GFX_decision_eng_propaganda_campaigns
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_uob_militia
		}
		visible = {
			has_completed_focus = SAF_SOC_uob_advisors
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 20
		days_remove = 30
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S8_B8"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S8_B8"
			set_country_flag = SAF_SOC_Comrade
		}	
	}
	
	SAF_S9_B9 = { #Dismember the Militia
		icon = GFX_decision_generic_break_treaty
		allowed = {
			tag = SAF
		}
		available = {
			has_country_flag = SAF_SOC_Comrade
		}
		visible = {
			has_completed_focus = SAF_SOC_uob_militia
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 50
		days_remove = 120
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S9_B9"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S9_B9"
			set_country_flag = SAF_SOC_Dismember_Mil
		}	
	}
	
	SAF_S10_B10 = { #South African Red
		icon = GFX_decision_generic_civil_support
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_uob_marine
			has_completed_focus = SAF_SOC_uob_red_guard
			has_completed_focus = SAF_SOC_uob_armour
		}
		visible = {
			has_country_flag = SAF_SOC_Dismember_Mil
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 20
		days_remove = 90
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S10_B10"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S10_B10"
			set_country_flag = SAF_SOC_SAF_RED_ID
		}
	}
	
	SAF_S1_F1 = { #Expanding Belmont Barracks
		icon = GFX_decision_generic_army_support
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_choose_your_destiny
		}
		visible = {
			has_country_flag = SAF_SOC_FRENCH_ADVISOR_UNLOCK_TT
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 10
		days_remove = 14
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S1_F1"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S1_F1"
			set_country_flag = SAF_SOC_French_Advisor_Inv
		}	
	}
	
	SAF_S1_F2 = { #Dissolve Militia
		icon = GFX_decision_oppression
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_choose_your_destiny
		}
		visible = {
			has_country_flag = SAF_SOC_FRENCH_ADVISOR_UNLOCK_TT
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 60
		days_remove = 60
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S1_F2"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S1_F2"
			set_country_flag = SAF_SOC_French_Pressure
		}	
	}
	
	SAF_S1_F3 = { #French Commands
		icon = GFX_decision_radio
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_cof_advisors
		}
		visible = {
			has_country_flag = SAF_SOC_French_Pressure
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 10
		days_remove = 30
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S1_F3"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S1_F3"
			set_country_flag = SAF_SOC_French_Language
		}	
	}
	
	SAF_S1_F4 = { #French Engineers
		icon = GFX_decision_generic_research
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_cof_advisors
		}
		visible = {
			has_country_flag = SAF_SOC_FRENCH_ADVISOR_UNLOCK_TT
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 10
		days_remove = 360
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S1_F4"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S1_F4"
			country_event = saf.252
		}	
	}
	
	SAF_S1_F5 = { #French NCO
		icon = GFX_decision_generic_research
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_cof_advisors
		}
		visible = {
			has_country_flag = SAF_SOC_FRENCH_ADVISOR_UNLOCK_TT
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 30
		days_remove = 45
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S1_F5"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S1_F5"
			set_country_flag = SAF_SOC_French_NCO
			hidden_effect = { country_event = { id = saf.253 days = 120 } }
		}
	}
	
	SAF_S1_F6 = { #French Cargo Planes
		icon = GFX_decision_hol_engelandvaarders
		allowed = {
			tag = SAF
		}
		available = {
			has_completed_focus = SAF_SOC_cof_advisors
		}
		visible = {
			has_country_flag = SAF_SOC_FRENCH_ADVISOR_UNLOCK_TT
		}
		ai_will_do = {
			factor = 10
		}
		fire_only_once = yes
		cost = 60
		days_remove = 50
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SAF_S1_F6"
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove SAF_S1_F6"
			set_country_flag = SAF_SOC_French_para
			add_equipment_to_stockpile = {
				type = transport_plane_equipment
				amount = 30
				producer = FRA
			}		
		}
	}		
}

