capital = 275
OOB = "SAF"
set_naval_oob= "SAF_naval"

set_convoys = 40
set_research_slots = 2
starting_train_buffer = 1

set_stability = 0.49
set_war_support = 0.43
add_political_power = -47

add_manpower = 50000

country_event = { id = saf.1 days = 2 } #Introduction event
country_event = { id = saf.158 days = 20 } #Death of George V
country_event = { id = botswana.1 days = 32 } #Growth of Bechuana Beef Industry
ZIM = { country_event = { id = botswana.1 days = 32 } }
NMB = { country_event = { id = botswana.1 days = 32 } }
country_event = { id = saf.100 days = 56 } #The Threat of the International Socialist League
NMB = { country_event = { id = saf.100 days = 56 } }
ZIM = { country_event = { id = saf.100 days = 56 } }
BSC = { country_event = { id = saf.100 days = 56 } }
ZAM = { country_event = { id = saf.100 days = 56 } }
PAF = { country_event = { id = saf.100 days = 56 } }
MLW = { country_event = { id = saf.100 days = 56 } }
country_event = { id = saf.310 days = 62 } #Port Elizabeth North
country_event = { id = botswana.2 days = 93 } #Anti-Temperance Riots in Francistown
ZIM = { country_event = { id = botswana.2 days = 93 } }
country_event = { id = saf.309 days = 205 } #Paarl
country_event = { id = saf.155 days = 258 } #Empire Exhibition
KEN = { country_event = { id = saf.155 days = 258 } }
MLW = { country_event = { id = saf.155 days = 258 } }
NGR = { country_event = { id = saf.155 days = 258 } }
GHA = { country_event = { id = saf.155 days = 258 } }
ZZB = { country_event = { id = saf.155 days = 258 } }
SIE = { country_event = { id = saf.155 days = 258 } }
ZIM = { country_event = { id = saf.155 days = 258 } }
BSC = { country_event = { id = saf.155 days = 258 } }
DEH = { country_event = { id = saf.155 days = 258 } }
AST = { country_event = { id = saf.155 days = 258 } }
CAF = { country_event = { id = saf.155 days = 258 } }
country_event = { id = saf.318 days = 305 } #Riversdal
country_event = { id = saf.121 days = 350 } #Dingane's Day
country_event = { id = saf.311 days = 384 } #Port Elizabeth Central
country_event = { id = saf.308 days = 419 } #Mowbray
country_event = { id = saf.98 days = 460 } #New gov-general?
country_event = { id = saf.305 days = 478 } #Hottentots-Holland I
country_event = { id = saf.169 days = 500 } #Orlando Pirates
country_event = { id = saf.306 days = 532 } #Hottentots-Holland II
country_event = { id = saf.76 days = 558 } #Starting the construction of the Voortrekker monument
country_event = { id = saf.312 days = 568 } #Seepunt
country_event = { id = saf.302 days = 575 } #Claremont
country_event = { id = saf.69 days = 609 } #Fusion?
country_event = { id = entf.2 days = 628 } #The Hobbit
ZIM = { country_event = { id = entf.2 days = 628 } }
KEN = { country_event = { id = entf.2 days = 628 } }
UGA = { country_event = { id = entf.2 days = 628 } }
NGR = { country_event = { id = entf.2 days = 628 } }
SIE = { country_event = { id = entf.2 days = 628 } }
GHA = { country_event = { id = entf.2 days = 628 } }
BSC = { country_event = { id = entf.2 days = 628 } }
ZAM = { country_event = { id = entf.2 days = 628 } }
MLW = { country_event = { id = entf.2 days = 628 } }
country_event = { id = saf.303 days = 675 } #Cape Town Castle
country_event = { id = saf.120 days = 700 } #Malan replaces Hertzog if they didn't come to power earlier
country_event = { id = saf.301 days = 717 } #Caledon
country_event = { id = saf.300 days = 848 } #Benoni
country_event = { id = saf.79 days = 949 } #Start of the 1938 Great Trek centenary
country_event = { id = saf.140 days = 1087 } #Discovery of the Coelecanth
country_event = { id = saf.170 days = 1200 } #Flytaal
country_event = { id = saf.187 days = 1304 } #Stellenbosch drops its last English subjects
country_event = { id = saf.171 days = 1533 } #ANC Youth League
country_event = { id = saf.99 days = 1754 } #Duncan dies
country_event = { id = saf.144 days = 2516 } #Hertzog's passing

set_country_flag = {
	flag = SAF_segregation_reform
	value = 1
}

85 = {
	set_state_flag = SAF_the_empire_strikes_back
}
542 = {
	set_state_flag = SAF_the_empire_strikes_back
}
738 = {
	set_state_flag = SAF_the_empire_strikes_back
}

add_ideas = {
	SAF_Jan_C_Smuts_hog_sco
	SAF_Jan_Hendrik_Hofmeyr_naaf_sli
	SAF_Pieter_van_der_Byl_eco_sco
	SAF_Deneys_Reitz_sec_sco
	SAF_segregation_3
	SAF_wavering_dominion
	SAF_idea_slavery
}

add_opinion_modifier = { target = GER modifier = SFR_trade_mission }

set_technology = {
	basic_train = 1
	###MOD ###
	###INF ###
	infantry_weapons = 1
	tech_support = 1
	tech_mountaineers = 1
	tech_engineers = 1
	gw_artillery = 1
	tech_trucks = 1
	motorised_infantry = 1
}

if = {
	limit = { has_dlc = "By Blood Alone" }
		#set_air_oob = "SAF_air_bba"
		set_technology = {
			aa_lmg = 1
			early_bombs = 1
			engines_1 = 1
			iw_small_airframe = 1
			iw_medium_airframe = 1
			iw_large_airframe = 1
		}
		CAN_GUNERIC_BBA_air_variants = yes
	else = {
		#set_air_oob = "SAF_air_legacy"
		set_technology = {
			early_fighter = 1
			naval_bomber1 = 1
			early_bomber = 1
		}
	}
}

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
	}
}
### Navy - MtG ###
set_technology = {
	early_ship_hull_light = 1
	basic_ship_hull_light = 1
	early_ship_hull_cruiser = 1
	basic_ship_hull_cruiser = 1
	panzerschiffe = 1
	early_ship_hull_submarine = 1
	basic_ship_hull_submarine = 1
	early_ship_hull_heavy = 1
	pre_dreadnoughts = 1
	
	basic_naval_mines = 1

	## Modules##
	basic_battery = 1
	basic_light_battery = 1
	
	basic_heavy_battery = 1
	basic_depth_charges = 1
	basic_torpedo = 1
	improved_ship_torpedo_launcher = 1
	basic_cruiser_armor_scheme = 1
}

set_politics = {
	ruling_party = social_conservative
	last_election = "1933.5.17"
	election_frequency = 60
	elections_allowed = yes
}

set_popularities = {
	totalist = 2
	radical_socialist = 8
	syndicalist = 7
	social_democrat = 6
	social_liberal = 0
	market_liberal = 0
	social_conservative = 41
	authoritarian_democrat = 34
	paternal_autocrat = 0
	national_populist = 2
}

create_country_leader = {
	name = "James La Guma"
	picture = "gfx/leaders/SAF/Portrait_SAF_James_La_Guma.png"
	desc = "POLITICS_JIMMY_LA_GUMA_DESC"
	expire = "1.1.1"
	ideology = tot_left_panafricanism_subtype
}

create_country_leader = {
	name = "William Henry Andrews"
	picture = "gfx/leaders/SAF/Portrait_SAF_William_H_Andrews_Civilian.png"
	desc = "POLITICS_WILLIAM_HENRY_ANDREWS_DESC"
	expire = "1.1.1"
	ideology = apartheid_socialism_subtype
}

create_country_leader = {
	name = "Clements Kadalie"
	picture = "gfx/leaders/SAF/Portrait_SAF_Clement_Kadalie.png"
	desc = "POLITICS_CLEM_KADALIE_DESC"
	expire = "1.1.1"
	ideology = democratic_syndicalism_subtype
}

create_country_leader = {
	name = "Walter Madeley"
	picture = "gfx/leaders/SAF/Portrait_SAF_Walter_Madeley.png"
	desc = "POLITICS_WALTER_MADELEY_DESC"
	expire = "1.1.1"
	ideology = socdem_democratic_socialism_subtype
}

create_country_leader = {
	name = "Jan Hendrik Hofmeyr"
	desc = "POLITICS_HOFMEYR_DESC"
	picture = "gfx/leaders/SAF/Portrait_SAF_Jan_Hendrik_Hofmeyr.png"
	expire = "1.1.1"
	ideology = soclib_progressive_democracy_subtype
}
create_country_leader = {
	name = "Gideon Brand van Zyl"
	desc = "POLITICS_GIDEON_BRAND_VAN_ZYL_DESC"
	picture = "gfx/leaders/SAF/Portrait_SAF_Gideon_Brand_van_Zyl.png"
	expire = "1.1.1"
	ideology = marlib_classical_liberalism_subtype
}

create_country_leader = {
	name = "Jan Smuts"
	desc = "POLITICS_JAN_SMUTS_DESC"
	picture = "gfx/leaders/SAF/Portrait_SAF_Jan_Smuts.png"
	expire = "1.1.1"
	ideology = soccon_liberal_conservative_subtype
}

create_country_leader = {
	name = "George Villiers"
	desc = "POLITICS_EARL_CLARENDON_DESC"
	picture = "gfx/leaders/SAF/Portrait_SAF_Earl_of_Clarendon.png"
	expire = "1.1.1"
	ideology = soccon_liberal_conservative_subtype
}

create_country_leader = {
	name = "J.B.M. Hertzog"
	desc = "POLITICS_JBM_HERTZOG_DESC"
	picture = "gfx/leaders/SAF/Portrait_SAF_JBM_Hertzog.png"
	expire = "1.1.1"
	ideology = authdem_boer_nationalism_subtype
}

create_country_leader = {
	name = "Daniel François Malan"
	desc = "POLITICS_DANIEL_MALAN_DESC"
	picture = "gfx/leaders/SAF/Portrait_SAF_Daniel_Francois_Malan.png"
	expire = "1.1.1"
	ideology = pataut_boer_nationalism_subtype
}

create_country_leader = {
	name = "Johannes van Rensburg"
	desc = "POLITICS_JOHANNES_VAN_RENSBURG_DESC"
	picture = "gfx/leaders/SAF/Portrait_SAF_Johannes_van_Rensburg.png"
	expire = "1.1.1"
	ideology = natpop_boer_nationalism_subtype
}

###Field Marshal
create_field_marshal = {
	name = "Jan Smuts"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Jan_Smuts.png"
	desc = "POLITICS_JAN_SMUTS_DESC"
	traits = {
		offensive_doctrine
		old_guard
		politically_connected
	}
	skill = 3
	attack_skill = 3
	defense_skill = 3
	planning_skill = 2
	logistics_skill = 2
	id = 970
}

###Corps Commander
create_corps_commander = {
	name = "Leonard Beyers"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Leonard_Beyers.png"
	traits = {
		career_officer
	}
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
	id = 971
}

create_corps_commander = {
	name = "George Brink"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_George_Brink.png"
	traits = {
		old_guard
		commando
	}
	skill = 2
	attack_skill = 1
	defense_skill = 1
	planning_skill = 3
	logistics_skill = 2
	id = 972
}

create_corps_commander = {
	name = "Dan Pienaar"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Dan_Pienaar.png"
	traits = {
		old_guard
		artillery_officer
		desert_fox
	}
	skill = 2
	attack_skill = 1
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 2
	id = 973
}

create_corps_commander = {
	name = "Hendrik Klopper"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Hendrik_Klopper.png"
	traits = {
		infantry_officer
		trait_engineer
	}
	skill = 2
	attack_skill = 1
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 2
	id = 974
}

create_corps_commander = {
	name = "Isaac Pierre de Villiers"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Isaac_de_Villiers.png"
	traits = {
		old_guard
	}
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
	id = 975
}

create_corps_commander = {
	name = "Nick Bierman"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Nick_Bierman.png"
	traits = {
		armor_officer
	}
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
	id = 976
}

create_corps_commander = {
	name = "Evered Poole"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Evered_Poole.png"
	traits = {
		politically_connected
		trickster
	}
	skill = 2
	attack_skill = 2
	defense_skill = 2
	planning_skill = 2
	logistics_skill = 1
	id = 977
}

create_corps_commander = {
	name = "Christiaan du Toit"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Christiaan_du_Toit.png"
	traits = {
		artillery_officer
		infantry_officer
	}
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
	id = 978
}

create_corps_commander = {
	name = "Christoffel Venter"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Christoffel_Venter.png"
	traits = { old_guard }
	skill = 2
	attack_skill = 1
	defense_skill = 3
	planning_skill = 2
	logistics_skill = 1
	id = 979
}

create_corps_commander = {
	name = "Andries Jacob Brink"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Andries_Brink.png"
	traits = {
		trait_engineer
	}
	skill = 1
	attack_skill = 1
	defense_skill = 1
	planning_skill = 1
	logistics_skill = 1
	id = 9980
}


###Navy Leader
create_navy_leader = {
	name = "Guy Hallifax"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Guy_Hallifax.png"
	traits = {
		blockade_runner
	}
	skill = 2
	attack_skill = 1
	defense_skill = 1
	maneuvering_skill = 3
	coordination_skill = 2
	id = 9802
}

create_navy_leader = {
	name = "Pieter de Waal"
	portrait_path = "gfx/leaders/SAF/Portrait_SAF_Pieter_de_Waal.png"
	traits = {
		spotter
	}
	skill = 1
	attack_skill = 2
	defense_skill = 1
	maneuvering_skill = 1
	coordination_skill = 1
}
SAF_start_naval_variant = yes

if = {
	limit = { has_dlc = "La Resistance" }
	create_operative_leader = {
		name = "Walter Musk"
		GFX = GFX_Portrait_SAF_Walter_Musk
		traits = {
			operative_linguist
		}
		bypass_recruitment = yes
		available_to_spy_master = yes
		nationalities = { SAF }
	}
}
