###########################
# South Africa Events
# By Thomahawk2k en sy Maltese slaaf
###########################

add_namespace = saf
add_namespace = miscsaf

### Introduction events

country_event = {
	id = saf.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.1" }
	title = saf.1.t
	desc = saf.1.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes

	option = {
		name = saf.1.a
		add_war_support = 0.01
		add_political_power = 10
		hidden_effect = {
			country_event = {
				id = saf.106
				days = 2
			}
		}
	}
}

country_event = {
	id = saf.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.2" }
	title = saf.2.t
	desc = saf.2.d
	picture = GFX_report_event_SAF_parliament_2

	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = {
		name = saf.2.a
		add_stability = 0.01
	}
}


### Black Monday events

# Initial Black Monday event
country_event = {
	id = saf.3
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.3" }
	title = saf.3.t
	desc = saf.3.d
	picture = GFX_report_event_chauncy

	is_triggered_only = yes

	option = {
		name = saf.3.a
		add_ideas = SAF_black_monday_0
		add_stability = -0.10
		add_political_power = -50
		hidden_effect = { country_event = { id = saf.148 days = 50 } }
	}
}

# Business Leaders lobby with prime minister Smuts
country_event = {
	id = saf.4
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.4" }
	title = saf.4.t
	desc = saf.4.d
	picture = GFX_report_event_lights

	is_triggered_only = yes

	option = { #South Africa's industry is our foremost concern!
		name = saf.4.a
		add_political_power = -20
		custom_effect_tooltip = saf_tt_will_expect_repeal_ICA
	}
}

# The Smuts government chose to ignore the industrial leaders' appeal
country_event = {
	id = saf.5
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event saf.5" 
		hidden_effect = {
			country_event = { id = saf.6 days = 2 }
		}
	}
	title = saf.5.t
	desc = saf.5.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #This is disappointing
		name = saf.5.a
		add_popularity = {
			ideology = social_conservative
			popularity = -0.05
		}
		add_popularity = {
			ideology = market_liberal
			popularity = 0.05
		}
		set_party_name = { 
			ideology = market_liberal 
			long_name = SAF_market_liberal_party_long_independents 
			name = SAF_market_liberal_party_independents 
		}
		set_country_flag = saf_flag_lack_majority_volksraad
		set_country_flag = saf_liberal_split
	}
}

# Finding a new coalition partner
country_event = {
	id = saf.6
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.6" }
	title = saf.6.t
	desc = saf.6.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Open coalition talks with National
		name = saf.6.a
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_ALONE }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_MALAN }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_KADALIE }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_LAGUMA }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_RADSOC_GAMER }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_SMUTS }
				}
			}
		}
		add_political_power = -20
		country_event = {
			id = saf.7
			days = 14
		}
	}
	
	option = { #Open talks with Madeley Labour
		name = saf.6.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_ALONE }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_COALITION }
				}
			}
		}
		country_event = {
			id = saf.8
			days = 7
		}
	}
	
	option = { #Continue as a minority government
		name = saf.6.c
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_ALONE }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_COALITION }
				}
			}
		}
		add_ideas = SAF_idea_minority_government
		clr_country_flag = saf_flag_lack_majority_volksraad
	}
	
	option = { #Request the governor-general dissolve parliament and call elections
		name = saf.6.e
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_MALAN }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_COALITION }
				}
			}
		}
		add_political_power = 20
		country_event = {
			id = saf.9
			days = 2
		}
	}
}

# Talks with National
country_event = {
	id = saf.7
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.7" }
	title = saf.7.t
	desc = saf.7.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #We have come to an agreement
		name = saf.7.a
		ai_chance = {
			factor = 50
		}
		SAF_move_governor_general_authdem = yes
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = yes
		}
		hidden_effect = {
			remove_ideas_with_trait = head_of_government
			remove_ideas_with_trait = security_minister
		}
		add_popularity = {
			ideology = social_conservative
			popularity = 0.02
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.02
		}
		add_ideas = SAF_James_Hertzog_hog_ade
		add_ideas = SAF_Jan_C_Smuts_sec_sco
		clr_country_flag = saf_flag_lack_majority_volksraad
		set_country_flag = saf_flag_prefusion
		add_soccon_to_coalition = yes
	}
	
	option = { #These terms are unacceptable, let us speak with Madeley Labour
		name = saf.7.b
		trigger = {
			NOT = {
				has_country_flag = saf_flag_no_deal_labour
			}
		}
		ai_chance = {
			factor = 30
			modifier = {
				factor = 0
				has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_COALITION }
			}
		}
		set_country_flag = saf_flag_no_deal_national
		country_event = {
			id = saf.8
			days = 7
		}
	}
	
	option = { #These terms are unacceptable, let us govern as a minority government
		name = saf.7.c
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_COALITION }
			}
		}
		add_ideas = SAF_idea_minority_government
		clr_country_flag = saf_flag_lack_majority_volksraad
		clr_country_flag = saf_flag_no_deal_labour
	}
	
	option = { #These terms are unacceptable, the Volksraad should be dissolved.
		name = saf.7.e
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_COALITION }
			}
		}
		country_event = {
			id = saf.9
			days = 7
		}
		clr_country_flag = saf_flag_no_deal_labour
	}
}

# Talks with Madeley Labour
country_event = {
	id = saf.8
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.8" }
	title = saf.8.t
	desc = saf.8.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #We have come to an agreement
		name = saf.8.a
		ai_chance = {
			factor = 70
		}
		hidden_effect = {
			remove_ideas_with_trait = economy_minister
		}
		set_country_flag = saf_flag_labour_in_coalition
		add_ideas = SAF_Walter_Madeley_eco_sde
		clr_country_flag = saf_flag_lack_majority_volksraad
		clr_country_flag = saf_flag_no_deal_national
		add_popularity = {
			ideology = social_conservative
			popularity = 0.02
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.02
		}
	}
	
	option = { #These terms are unacceptable, let us speak with National
		name = saf.8.b
		trigger = {
			NOT = {
				has_country_flag = saf_flag_no_deal_national
			}
		}
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_ALONE }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_MALAN }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_KADALIE }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_LAGUMA }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_RADSOC_GAMER }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_SMUTS }
				}
			}
		}
		country_event = {
			id = saf.7
			days = 7
		}
		set_country_flag = saf_flag_no_deal_labour
	}
	
	option = { #These terms are unacceptable, let us govern as a minority government
		name = saf.8.c
		ai_chance = {
			factor = 10
		}
		add_ideas = SAF_idea_minority_government
		clr_country_flag = saf_flag_lack_majority_volksraad
		clr_country_flag = saf_flag_no_deal_national
	}
	
	option = { #These terms are unacceptable, the Volksraad should be dissolved.
		name = saf.8.e
		ai_chance = {
			factor = 10
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_MALAN }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_COALITION }
				}
			}
		}
		country_event = {
			id = saf.9
			days = 7
		}
		clr_country_flag = saf_flag_no_deal_national
	}
}

# Dissolving the Volksraad
country_event = {
	id = saf.9
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.9" }
	title = saf.9.t
	desc = saf.9.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #So be it.
		name = saf.9.a
		custom_effect_tooltip = saf_tt_elections_in_six_weeks
		hidden_effect = {
			country_event = { id = saf.10 days = 42 }
		}
	}
}

# Early elections
country_event = {
	id = saf.10
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event saf.10" 
		set_country_flag = saf_flag_elections_held
		clr_country_flag = saf_flag_lack_majority_volksraad	
	}
	title = saf.10.t
	desc = saf.10.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Jan Smuts and the SAP are victorious
		name = saf.10.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_ALONE }
			}
		}
		add_popularity = {
			ideology = social_conservative
			popularity = 0.07
		}
		add_popularity = {
			ideology = market_liberal
			popularity = -0.03
		}
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = social_conservative
					last_election = "[CURRENT_DATE]"
					election_frequency = 60
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
		country_event = {
			id = saf.12
			days = 2
		}
	}
	
	option = { #James Hertzog and National are victorious
		name = saf.10.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_KADALIE }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_SMUTS }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_LAGUMA }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_RADSOC_GAMER }
				}
			}
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.1
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.02
		}
		SAF_move_governor_general_authdem = yes
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = authoritarian_democrat
					last_election = "[CURRENT_DATE]"
					election_frequency = 60
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
		country_event = {
			id = saf.13
			days = 2
		}
	}
}

# The Extent of Native Autonomy (fired by focus)
country_event = {
	id = saf.11
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.11" }
	title = saf.11.t
	desc = saf.11.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes

	option = {
		name = saf.11.a #Their authority stops at the border
		ai_chance = {
			factor = 80
		}
		add_political_power = 50
	}
	option = {
		name = saf.11.b #They will fully represent their people
		ai_chance = {
			factor = 20
		}
		modify_country_flag = {
			flag = SAF_segregation_reform
			value = 1
		}
		add_political_power = -50
		add_stability = 0.05
		decrease_ruling_party_popularity_by_5 = yes
		SAF_reform_segregation_1 = yes
	}
}

# The government won. Smuts cabinet continues
country_event = {
	id = saf.12
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.12" }
	title = saf.12.t
	desc = saf.12.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #Hurrah
		name = saf.12.a
		add_political_power = 20
	}
}

# The opposition won. A second Hertzog cabinet
country_event = {
	id = saf.13
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.13" }
	title = saf.13.t
	desc = saf.13.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Form a government made up of only NP ministers
		name = saf.13.a
		remove_all_minister_types = yes
		add_ideas = {
			SAF_James_Hertzog_hog_ade
			SAF_Eric_H_Louw_naaf_ade
			SAF_Nicolaas_Havenga_eco_ade
			SAF_D_F_Malan_sec_pau
		}
	}
	
	option = { #Reconstitute the Pact Government
		name = saf.13.b
		add_stability = 0.05
		remove_all_minister_types = yes
		add_ideas = {
			SAF_James_Hertzog_hog_ade
			SAF_Eric_H_Louw_naaf_ade
			SAF_Frederic_Creswell_eco_sde
			SAF_D_F_Malan_sec_pau
		}
	}
}

# The Smuts cabinet chooses to follow the lobbied-for reforms, ISL starts general strike
country_event = {
	id = saf.14
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.14" }
	title = saf.14.t
	desc = saf.14.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Let the police break the strike, we cannot afford a second Rand revolt!
		name = saf.14.a
		ai_chance = { 
			factor = 50
			modifier = {
				factor = 100
				OR = {
					has_game_rule = {
						rule = SAF_politic
						option = SAF_POLITIC_LAGUMA
					}
					has_game_rule = {
						rule = SAF_politic
						option = SAF_POLITIC_KADALIE
					}
					has_game_rule = { 
						rule = SAF_politic 
						option = SAF_POLITIC_RADSOC_GAMER 
					}
				}
			}
		}
		add_ideas = SAF_idea_general_strike
		hidden_effect = {
			country_event = { id = saf.15 days = 2 }
		}
	}
	
	option = { #Let them strike, it won't change anything
		name = saf.14.b
		ai_chance = { 
			factor = 50
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = SAF_politic
						option = SAF_POLITIC_LAGUMA
					}
					has_game_rule = {
						rule = SAF_politic
						option = SAF_POLITIC_KADALIE
					}
					has_game_rule = { 
						rule = SAF_politic 
						option = SAF_POLITIC_RADSOC_GAMER 
					}
				}
			}
		}
		add_ideas = SAF_idea_general_strike
		hidden_effect = {
			country_event = { id = saf.20 days = 7 }
		}
	}
}

# Riots in Benoni
country_event = {
	id = saf.15
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.15" }
	title = saf.15.t
	desc = saf.15.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #This is getting out of hand!
		name = saf.15.a
		add_stability = -0.1
		hidden_effect = {
			country_event = { id = saf.16 days = 2 }
		}
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.02
		}
	}
}

# Military response against the strikers
country_event = {
	id = saf.16
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.16" }
	title = saf.16.t
	desc = saf.16.d
	picture = GFX_report_event_kapteins

	is_triggered_only = yes

	option = { #Shoot them all!
		name = saf.16.a
		ai_chance = {
			factor = 75
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_KADALIE }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_LAGUMA }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_RADSOC_GAMER }
				}
			}
		}
		hidden_effect = {
			country_event = { id = saf.17 days = 2 }
		}
	}
	
	option = { #Isolate them so they will surrender!
		name = saf.16.b
		ai_chance = {
			factor = 25
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_SMUTS }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_MALAN }
				}
			}
		}
		hidden_effect = {
			country_event = { id = saf.18 days = 10 }
		}
	}
}

# Battle of Mayfair
country_event = {
	id = saf.17
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.17" }
	title = saf.17.t
	desc = saf.17.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #At least it is over.
		name = saf.17.a
		add_manpower = -72
		275 = {
			add_manpower = -374
		}
		remove_ideas = SAF_idea_general_strike
	}
}

# The rise of the ICU
country_event = {
	id = saf.18
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.18" }
	title = saf.18.t
	desc = saf.18.d
	picture = GFX_report_event_ceylon

	is_triggered_only = yes

	option = { #Uh oh
		name = saf.18.a
		add_manpower = -389
		hidden_effect = {
			country_event = { id = saf.19 days = 2 }
		}
		add_popularity = {
			ideology = syndicalist
			popularity = 0.05
		}
	}
}

# The march on Pretoria
country_event = {
	id = saf.19
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.19" }
	title = saf.19.t
	desc = saf.19.d
	picture = GFX_report_event_square

	is_triggered_only = yes

	option = { #Workers of the world unite!
		name = saf.19.a
		set_politics = {
			ruling_party = radical_socialist
			elections_allowed = no
		}
		remove_all_minister_types = yes
		add_ideas = {
			SAF_Sidney_Bunting_hog_rso
			SAF_Bram_Fischer_for_rso
			SAF_Solomon_Sachs_eco_syn
			SAF_W_H_Andrews_sec_rso
		}
		hidden_effect = {
			set_popularities = {
				totalist = 15
				radical_socialist = 40
				syndicalist = 35
				social_democrat = 10
			}
			every_country = {
				limit = {
					OR = {
						tag = MAF
						tag = CMR
						tag = NMB
						tag = CEA
						tag = KOG
						tag = COG
						tag = KTG
						tag = ZAM
						tag = CIV
						tag = GHA
						tag = NGR
						tag = KEN
						tag = UGA
						tag = BSC
						tag = MLW
						tag = MAG
						tag = ZIM
						tag = PAF
						tag = SIE
						tag = SFA
					}
				}
				country_event = { id = ostafrika.13 days = 1 }
			}
		}
		effect_tooltip = {
			add_popularity = {
				ideology = social_conservative
				popularity = -0.15
			}
			add_popularity = {
				ideology = authoritarian_democrat
				popularity = -0.15
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = -0.15
			}
			add_popularity = {
				ideology = market_liberal
				popularity = -0.05
			}
			add_popularity = {
				ideology = social_liberal
				popularity = -0.05
			}
			add_popularity = {
				ideology = social_democrat
				popularity = 0.03
			}
			add_popularity = {
				ideology = totalist
				popularity = 0.08
			}
			add_popularity = {
				ideology = radical_socialist
				popularity = 0.12
			}
			add_popularity = {
				ideology = syndicalist
				popularity = 0.11
			}
		}
		if = {
			limit = {
				ZIM = { is_subject_of = SAF }
			}
			set_autonomy = {
				target = ZIM
				autonomy_state = autonomy_free
			}
		}
		if = {
			limit = { is_in_faction_with = ENT }
			ENT = {
				add_to_faction = ZIM
			}
		}
		if = {
			limit = { is_in_faction_with = ENT }
			leave_faction = yes
			ENT = { country_event = saf.176 }
		}
		else_if = {
			limit = { is_in_faction = yes }
			leave_faction = yes
		}
		if = {
			limit = { has_idea = SAF_wavering_dominion }
			remove_ideas = SAF_wavering_dominion
		}
		if = {
			limit = { has_idea = SAF_idea_general_strike }
			remove_ideas = SAF_idea_general_strike
		}
		add_ideas = SAF_idea_reactionary_activities
		add_ideas = SAF_idea_low_participation
		hidden_effect = {
			country_event = {
				id = sharedafrika.122
				days = 4
			}
			load_focus_tree = SAF_socialist_focus
			ZIM = {
				country_event = {
					id = saf.52
					days = 6
				}
			}
			PAF = {
				country_event = {
					id = saf.52
					days = 6
				}
			}
			country_event = {
				id = sharedafrika.122 # Botswana uprising
				days = 2 random_days = 3
			}
			country_event = {
				id = sharedafrika.124 # Lesotho uprising
				days = 6 random_days = 3
			}
			country_event = { id = saf.107 days = 3 } #Return of Clement Kadalie
			MAF = {
				country_event = { id = njassa.36 days = 3 } #Clements Kadalie Returns to Africa
			}
			MLW = {
				country_event = { id = njassa.36 days = 3 } #Clements Kadalie Returns to Africa
			}
			BSC = {
				country_event = { id = njassa.36 days = 3 } #Clements Kadalie Returns to Africa
			}
			ZIM = {
				country_event = { id = njassa.36 days = 3 } #Clements Kadalie Returns to Africa
			}
			ZAM = {
				country_event = { id = njassa.36 days = 3 } #Clements Kadalie Returns to Africa
			}
			PAF = {
				country_event = { id = njassa.36 days = 3 } #Clements Kadalie Returns to Africa
			}
			country_event = { id = saf.118 days = 35 } #White Flight
			news_event = {
				id = worldnews.62
				days = 1
			}
		}
		random_unit_leader = {
				limit = { has_id = 970 }
				remove_unit_leader = yes
			}
		set_country_flag = Jan_C_Smuts_dead
		if = {
			limit = { is_in_tech_sharing_group = entente_research }
			remove_from_tech_sharing_group = entente_research
		}
		if = {
			limit = {
				is_in_array = { global.CAN_imperial_conference = ROOT }
			}
			remove_from_array = { global.CAN_imperial_conference = ROOT }
		}
	}
}

#The strike expands!
country_event = {
	id = saf.20
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.20" }
	title = saf.20.t
	desc = saf.20.d
	picture = GFX_report_event_square

	is_triggered_only = yes

	option = { #Oh no!
		name = saf.20.a
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_KADALIE }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_LAGUMA }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_RADSOC_GAMER }
				}
			}
		}
		swap_ideas = { add_idea = SAF_idea_general_strike_stage_two remove_idea = SAF_idea_general_strike }
		hidden_effect = {
			country_event = { id = saf.21 days = 30 }
		}
	}
	
	option = { #Give in!
		name = saf.20.b
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_SMUTS }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_MALAN }
				}
			}
		}
		remove_ideas = SAF_idea_general_strike
		custom_effect_tooltip = saf_tt_repeal_focus_will_be_cancelled
		set_country_flag = saf_flag_gave_in_to_strikers
		add_political_power = -25
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.02
		}
	}
}

#Company goes down the drain because of strikes
country_event = {
	id = saf.21
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.21" }
	title = saf.21.t
	desc = saf.21.d
	picture = GFX_report_event_street2

	is_triggered_only = yes

	option = { #:pained_sheikh:
		name = saf.21.a
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_KADALIE }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_LAGUMA }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_RADSOC_GAMER }
				}
			}
		}
		275 = {
			if = {
				limit = {
					industrial_complex > 0
				}
				remove_building = {
					type = industrial_complex
					level = 1
				}
			}
		}
		add_political_power = -25
		hidden_effect = {
			country_event = { id = saf.22 days = 30 }
		}
	}
	
	option = { #Give in!
		name = saf.21.b
		ai_chance = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_SMUTS }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_MALAN }
				}
			}
		}
		275 = {
			if = {
				limit = {
					industrial_complex > 0
				}
				remove_building = {
					type = industrial_complex
					level = 1
				}
			}
		}
		remove_ideas = SAF_idea_general_strike
		custom_effect_tooltip = saf_tt_repeal_focus_will_be_cancelled
		set_country_flag = saf_flag_gave_in_to_strikers
		add_political_power = -25
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.02
		}
	}
}

#Strikers give up
country_event = {
	id = saf.22
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.22" }
	title = saf.22.t
	desc = saf.22.d
	picture = GFX_report_event_street2

	is_triggered_only = yes

	option = { #Just don't blink!
		name = saf.22.a
		add_political_power = 35
		remove_ideas = SAF_idea_general_strike_stage_two
	}
}

#SAF seeks CAN investment
country_event = {
	id = saf.23
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.23" }
	title = saf.23.t
	desc = saf.23.d
	picture = GFX_report_event_housing

	is_triggered_only = yes

	option = { #I suppose we have some spare change
		name = saf.23.a
		ai_chance = {
			factor = 70
		}
		add_political_power = 35
		SAF = { country_event = { id = saf.24 days = 2 } }
	}
	
	option = { #You have yourself to blame for this!
		name = saf.23.b
		ai_chance = {
			factor = 30
		}
		SAF = { country_event = { id = saf.25 days = 2 } }
	}
}

#CAN invests
country_event = {
	id = saf.24
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.24" }
	title = saf.24.t
	desc = saf.24.d
	picture = GFX_report_event_housing

	is_triggered_only = yes

	option = { #Three rousing cheers for the empire!
		name = saf.24.a
		add_political_power = 35
		random_owned_state = {
			limit = {
				free_building_slots = {
					building = industrial_complex
					size > 0
					include_locked = yes
				}
			}
			prioritize = {
				275 681
			}
			add_building_construction = {
				type = industrial_complex
				level = 1
				instant_build = yes
			}
			add_extra_state_shared_building_slots = 1
		}
	}
}

#CAN does not invest
country_event = {
	id = saf.25
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.24" }
	title = saf.25.t
	desc = saf.25.d
	picture = GFX_report_event_housing

	is_triggered_only = yes

	option = { #Disappointing
		name = saf.25.a
		add_political_power = -10
		add_opinion_modifier = { target = CAN modifier = SAF_refused_to_invest }
	}
}

#Reform the Territorial Justice System
country_event = {
	id = saf.26
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.26" }
	title = saf.26.t
	desc = saf.26.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Appoint a Chief Justice of the High Commissioner Territories
		name = saf.26.a
		add_political_power = -10
		add_ideas = SAF_idea_cj_of_the_hct
	}
}

#SAF proposes reforming the High Commissioner System
country_event = {
	id = saf.27
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.27" }
	title = saf.27.t
	desc = saf.27.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #A wonderful idea
		name = saf.27.a
		ai_chance = { factor = 70 }
		add_political_power = 30
		custom_effect_tooltip = SAF_tt_hct_belong_to_south_africa_now
		85 = {
			clr_state_flag = SAF_the_empire_strikes_back
		}
		542 = {
			clr_state_flag = SAF_the_empire_strikes_back
		}
		738 = {
			clr_state_flag = SAF_the_empire_strikes_back
		}
		if = {
			limit = { SAF = { is_in_faction_with = ENT } }
			SAF = {
				country_event = { id = saf.28 days = 2 }
			}
		}
		else = {
			SFR = {
				country_event = { id = saf.28 days = 2 }
			}
		}
	}
	
	option = { #The HCT belong to the British Crown and South African guardianship is purely temporary!
		name = saf.27.b
		ai_chance = { factor = 30 }
		add_political_power = -10
		if = {
			limit = { SAF = { is_in_faction_with = ENT } }
			SAF = {
				country_event = { id = saf.35 days = 2 }
			}
		}
		else = {
			SFR = {
				country_event = { id = saf.35 days = 2 }
			}
		}
	}
}

#CAN accepts
country_event = {
	id = saf.28
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.28" }
	title = saf.28.t
	desc = saf.28.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Great!
		name = saf.28.a
		ai_chance = { factor = 70 }
		custom_effect_tooltip = SAF_tt_hct_belong_to_south_africa_now
	}
}

# Implementing Apartheid (fired by focus)
country_event = {
	id = saf.29
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.29" }
	title = saf.29.t
	picture = GFX_report_event_SAF_apartheid_1

	desc = {
		text = saf.29.d.split
		trigger = {
			has_country_flag = SAF_PNP_split
		}
	}
	desc = {
		text = saf.29.d.nosplit
		trigger = {
			NOT = {
				has_country_flag = SAF_PNP_split
			}
		}
	}

	is_triggered_only = yes

	option = {
		name = saf.29.a #We will implement apartheid fully, as planned
		ai_chance = {
			factor = 60
			modifier = {
				factor = 1.5
				has_country_flag = {
					flag = SAF_segregation_reform
					value < 0
				}
			}
		}
		add_ideas = SAF_apartheid_1
#		if = {
#			limit = {
#				has_country_flag = SAF_PNP_split
#			}
#			country_event = {
#				id = saf.30
#				days = 1
#			}
#		}
		hidden_effect = {
			country_event = { id = saf.101 days = 120 random = 40 }
		}
	}
	option = {
		name = saf.29.b #Perhaps a more moderate version is better
		ai_chance = {
			factor = 40
			modifier = {
				factor = 2.0
				has_country_flag = {
					flag = SAF_segregation_reform
					value > 1
				}
			}
		}
		trigger = {
			NOT = {
				has_government = paternal_autocrat
				has_government = national_populist
			}
		}
		add_ideas = SAF_apartheid_2
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_PNP_split
				}
			}
			country_event = {
				id = saf.31
				days = 1
			}
		}
		hidden_effect = {
			country_event = { id = saf.101 days = 120 random = 40 }
		}
	}
}

## PNP Rejoins the National Party
#country_event = {
#	id = saf.30
#	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.30" }
#	title = saf.30.t
#	desc = saf.30.d
#	picture = GFX_report_event_SAF_malan
#
#	is_triggered_only = yes
#
#	option = {
#		name = saf.30.a
#		clr_country_flag = SAF_PNP_split
#		add_stability = 0.05
#		if = {
#			limit = {
#				has_idea = SAF_T_E_Doenges_hog_ade
#			}
#			add_ideas = SAF_D_F_Malan_hog_pau
#		}
#		add_popularity = {
#			ideology = paternal_autocrat
#			popularity = -0.10
#		}
#	}
#}

# PNP Splits from the National Party
country_event = {
	id = saf.31
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.31" }
	title = saf.31.t
	desc = saf.31.d
	picture = GFX_report_event_SAF_malan

	is_triggered_only = yes

	option = {
		name = saf.31.a
		set_country_flag = SAF_PNP_split
		if = {
			limit = {
				has_idea = SAF_T_E_Doenges_naaf_pau
			}
			remove_ideas = SAF_T_E_Doenges_naaf_pau
			add_ideas = SAF_Eric_H_Louw_naaf_ade
		}
		if = {
			limit = {
				has_idea = SAF_J_G_Strijdom_eco_pau
			}
			remove_ideas = SAF_J_G_Strijdom_eco_pau
			add_ideas = SAF_Nicolaas_Havenga_eco_ade
		}
		if = {
			limit = {
				OR = {
					has_idea = SAF_D_F_Malan_sec_pau
					has_idea = SAF_F_C_Erasmus_sec_pau
				}
			}
			remove_ideas = SAF_D_F_Malan_sec_pau
			remove_ideas = SAF_F_C_Erasmus_sec_pau
			add_ideas = SAF_Ben_Schoeman_sec_ade
		}
		set_party_name = {
			ideology = authoritarian_democrat
			name = SAF_authoritarian_democrat_party
			long_name = SAF_authoritarian_democrat_party_long
		}
		set_party_name = {
			ideology = paternal_autocrat
			name = SAF_paternal_autocrat_party_PNP
			long_name = SAF_paternal_autocrat_party_long_PNP
		}
		add_stability = -0.02
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.10
		}
	}
}

# South Africa asks to join Mitteleuropa (fired by focus)
country_event = {
	id = saf.32
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.32" }
	title = saf.32.t
	desc = saf.32.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = {
		name = saf.32.a
		ai_chance = {
			factor = 99
		}
		add_political_power = 50
		effect_tooltip = {
			add_to_faction = SAF
		}
		add_opinion_modifier = {
			target = SAF
			modifier = KR_approves_of_govt
		}
		SAF = {
			country_event = {
				id = saf.33
				days = 3
			}
		}
	}
	option = {
		name = saf.32.b
		ai_chance = {
			factor = 1
		}
		add_political_power = -20
		SAF = {
			country_event = {
				id = saf.34
				days = 3
			}
		}
	}
}

# Germany agrees to let South Africa join
country_event = {
	id = saf.33
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.33" }
	title = saf.33.t
	desc = saf.33.d
	picture = GFX_report_event_generic_diplomacy3

	is_triggered_only = yes

	option = {
		name = saf.33.a
		add_political_power = 50
		GER = {
			add_to_faction = SAF
		}
		add_opinion_modifier = {
			target = GER
			modifier = KR_approves_of_govt
		}
		every_country = {
			limit = {
				exists = yes
				OR = {
					tag = CAN
					tag = GBR
					is_in_faction_with = CAN
					is_in_faction_with = GBR
				}
			}
			add_opinion_modifier = {
				target = SAF
				modifier = SAF_joined_mitteleuropa
			}
		}
	}
}

# Germany refuses to let South Africa join
country_event = {
	id = saf.34
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.34" }
	title = saf.34.t
	desc = saf.34.d
	picture = GFX_report_event_generic_diplomacy2

	is_triggered_only = yes

	option = {
		name = saf.34.a
		add_political_power = -50
		add_opinion_modifier = {
			target = GER
			modifier = KR_disapproves_of_govt
		}
	}
}

#CAN says no
country_event = {
	id = saf.35
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.35" }
	title = saf.35.t
	desc = saf.35.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #Unfortunate!
		name = saf.35.a
		ai_chance = { factor = 70 }
		add_political_power = -5
	}
}

#National Populist Takeover
country_event = {
	id = saf.36
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.36" }
	title = saf.36.t
	desc = saf.36.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Uh oh O_o
		name = saf.36.a
		add_stability = -0.1
		custom_effect_tooltip = SAF_tt_national_becomes_natpop
		if = {
			limit = {
				has_government = authoritarian_democrat
			}
			hidden_effect = {
				set_temp_variable = { SAF_moderate_to_extremist_value = party_popularity@authoritarian_democrat }
				set_temp_variable = { SAF_moderate_to_extremist_value_reverse = 0 }
				subtract_from_temp_variable = { var = SAF_moderate_to_extremist_value_reverse value = party_popularity@authoritarian_democrat }
				add_popularity = { ideology = authoritarian_democrat popularity = SAF_moderate_to_extremist_value_reverse }
				add_popularity = { ideology = national_populist popularity = SAF_moderate_to_extremist_value }
			}
		}
		else_if = {
			limit = {
				has_government = paternal_autocrat
			}
			hidden_effect = {
				set_temp_variable = { SAF_moderate_to_extremist_value = party_popularity@paternal_autocrat }
				set_temp_variable = { SAF_moderate_to_extremist_value_reverse = 0 }
				subtract_from_temp_variable = { var = SAF_moderate_to_extremist_value_reverse value = party_popularity@paternal_autocrat }
				add_popularity = { ideology = paternal_autocrat popularity = SAF_moderate_to_extremist_value_reverse }
				add_popularity = { ideology = national_populist popularity = SAF_moderate_to_extremist_value }
			}
		}
		set_politics = {
			ruling_party = national_populist
			elections_allowed = no
		}
		add_ideas = SAF_J_F_Van_Rensburg_hog_npo
		hidden_effect = { country_event = { id = saf.177 days = 365 random = 100 } }
	}
}

#The Native Representation Act
country_event = {
	id = saf.37
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.37" }
	title = saf.37.t
	desc = {
		text = saf.37.d.fusion
		trigger = {
			has_country_flag = SAF_fusion
		}
	}
	desc = {
		text = saf.37.d.nofusion
		trigger = {
			NOT = {
				has_country_flag = SAF_fusion
			}
		}
	}
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #As it should be
		name = saf.37.a
		if = {
			limit = {
				has_idea = SAF_Jan_Hendrik_Hofmeyr_eco_sli
			}
			remove_ideas_with_trait = economy_minister
			add_ideas = SAF_Pieter_van_der_Byl_eco_sco
		}
		modify_country_flag = { flag = SAF_segregation_reform value = -1 }
		add_political_power = 50
		SAF_increase_segregation_1 = yes
	}
}

#The Termination of the membership of Oswald Pirow and Johannes van Rensburg
country_event = {
	id = saf.38
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.38" }
	title = saf.38.t
	desc = saf.38.d
	picture = GFX_report_event_SAF_parliament_1
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	is_triggered_only = yes

	option = { #As it should be
		name = saf.38.a
		add_political_power = 20
	}
}

#The Native Trust and Land Act
country_event = {
	id = saf.39
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.39" }
	title = saf.39.t
	desc = saf.39.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #As it should be
		name = saf.39.a
		add_ideas = SAF_idea_native_trust_and_land_act
	}
}

#The Asiatic Land Tenure Act
country_event = {
	id = saf.40
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.40" }
	title = saf.40.t
	desc = saf.40.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #As it should be
		name = saf.40.a
		add_ideas = SAF_idea_asiatic_land_tenure_act
		hidden_effect = {
			if = {
				limit = {
					country_exists = DEH
				}
				DEH = { country_event = { id = saf.41 days = 20 } }
			}
			country_event = { id = saf.43 days = 60 }
		}
	}
}

#SAF is discriminating against Indians
country_event = {
	id = saf.41
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.41" }
	title = saf.41.t
	desc = saf.41.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Unacceptable!
		name = saf.41.a
		ai_chance = { factor = 90 }
		FROM = {
			country_event = { id = saf.42 days = 2 } 
			add_opinion_modifier = { target = DEH modifier = SAF_meddling_in_my_affairs }
		}
	}
	
	option = {
		name = saf.41.b
		ai_chance = { factor = 10 }
		add_stability = -0.05
	}
}

#DEH condemns the Asiatic Land Tenure Act
country_event = {
	id = saf.42
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.42" }
	title = saf.42.t
	desc = saf.42.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Mind your own business!
		name = saf.42.a
		reverse_add_opinion_modifier = { target = DEH modifier = SAF_racist_against_indians }
		add_political_power = -25
	}
}

#Indian protests!
country_event = {
	id = saf.43
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.43" }
	title = saf.43.t
	desc = saf.43.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Mind your own business!
		name = saf.43.a
		add_stability = -0.05
	}
}

#Asiatic Enfranchisement Act
country_event = {
	id = saf.44
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.44" }
	title = saf.44.t
	desc = saf.44.d
	picture = GFX_report_event_SAF_parliament_1
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	is_triggered_only = yes

	option = { #Hurrah!
		name = saf.44.a
		custom_effect_tooltip = SAF_tt_asiatic_can_vote
	}
}

#Coloured Enfranchisement Act - turning the SAP social liberal
country_event = {
	id = saf.45
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.45" }
	title = saf.45.t
	desc = saf.45.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			country_event = { id = saf.46 days = 7 }
			country_event = { id = saf.47 days = 7 }
		}
	}

	option = { #As it should be
		name = saf.45.a
		custom_effect_tooltip = SAF_tt_SAP_becomes_lib
		hidden_effect = {
			set_temp_variable = { SAF_conservative_to_liberal_value = party_popularity@social_conservative }
			set_temp_variable = { SAF_conservative_to_liberal_value_reverse = 0 }
			subtract_from_temp_variable = { var = SAF_conservative_to_liberal_value_reverse value = party_popularity@social_conservative }
			add_popularity = { ideology = social_conservative popularity = SAF_conservative_to_liberal_value_reverse }
			add_popularity = { ideology = social_liberal popularity = SAF_conservative_to_liberal_value }
			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 = classical_liberalism_subtype
			}
			SAF_move_governor_general_soclib = yes
			create_country_leader = {
				name = "J.G.N. Strauss"
				desc = "POLITICS_JGN_STRAUSS_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Jacobus_Gideon_Nel_Strauss.png"
				expire = "1.1.1"
				ideology = soccon_liberal_conservative_subtype
			}
			set_politics = { ruling_party = social_liberal elections_allowed = yes }
		}
	}
}

#Coloured Enfranchisement Act - you fool, you forgot to feed the conservatives!
country_event = {
	id = saf.46
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.46" }
	title = saf.46.t
	desc = saf.46.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = {
		NOT = {
			has_completed_focus = SAF_asiatic_land_tenure_act
			has_completed_focus = SAF_natives_consolidation_act
		}
	}

	option = { #Oh no
		name = saf.46.a
		custom_effect_tooltip = saf_tt_elections_in_six_weeks
		set_party_name = { 
			ideology = social_conservative 
			long_name = SAF_social_conservative_party_long_Con 
			name = SAF_social_conservative_party_Con 
		}
		set_country_flag = SAF_national_conservative_party_formed
		add_popularity = { ideology = social_liberal popularity = -0.2 }
		add_popularity = { ideology = social_conservative popularity = 0.2 }
		set_country_flag = saf_flag_cea_failed
		hidden_effect = {
			country_event = { id = saf.49 days = 42 }
		}
	}
}

#Coloured Enfranchisement Act - the act passes the first reading
country_event = {
	id = saf.47
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.47" }
	title = saf.47.t
	desc = saf.47.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = {
		has_completed_focus = SAF_natives_consolidation_act
	}

	option = { #As it should be
		name = saf.47.a
		add_political_power = 10
	}
}

#Coloured Enfranchisement Act is passed!
country_event = {
	id = saf.48
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.48" }
	title = saf.48.t
	desc = saf.48.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #As it should be
		name = saf.48.a
		custom_effect_tooltip = SAF_tt_coloured_can_vote
		news_event = {
			id = worldnews.63
			days = 2
		}
	}
}

# Early elections
country_event = {
	id = saf.49
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.49" }
	title = saf.10.t
	desc = saf.10.d
	picture = GFX_report_event_uac

	is_triggered_only = yes
	immediate = {
		hidden_effect = {
			set_country_flag = saf_flag_elections_held
			remove_ideas = SAF_idea_minority_government
		}
	}

	option = { #James Hertzog and National are victorious
		name = saf.49.a
		ai_chance = {
			factor = 50
		}
		add_popularity = {
			ideology = social_conservative
			popularity = 0.05
		}
		add_popularity = {
			ideology = social_liberal
			popularity = -0.15
		}
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = 0.1
			}
			SAF_move_governor_general_pataut = yes
			meta_effect = {
				text = {
					set_politics = {
						ruling_party = paternal_autocrat
						last_election = "[CURRENT_DATE]"
						election_frequency = 60
						elections_allowed = yes
					}
				}
				CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
			}
			remove_all_minister_types = yes
			add_ideas = {
				SAF_D_F_Malan_hog_pau
				SAF_Eric_H_Louw_naaf_ade
				SAF_J_G_Strijdom_eco_pau
				SAF_F_C_Erasmus_sec_pau
			}
		}
		else = {
			add_popularity = {
				ideology = authoritarian_democrat
				popularity = 0.1
			}
			SAF_move_governor_general_authdem = yes
			meta_effect = {
				text = {
					set_politics = {
						ruling_party = authoritarian_democrat
						last_election = "[CURRENT_DATE]"
						election_frequency = 60
						elections_allowed = yes
					}
				}
				CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
			}
			remove_all_minister_types = yes
			if = {
				limit = {
					NOT = {
						has_country_flag = SAF_Hertzog_passed_away
					}
				}
				add_ideas = SAF_James_Hertzog_hog_ade
			}
			else = {
				add_ideas = SAF_Nicolaas_Havenga_hog_ade
			}
			add_ideas = {
				SAF_Eric_H_Louw_naaf_ade
				SAF_J_G_Strijdom_eco_pau
				SAF_Ben_Schoeman_sec_ade
			}
		}
	}
}

# The Natal Covenant
country_event = {
	id = saf.50
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.50" }
	title = saf.50.t
	desc = saf.50.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Wawawa!
		name = saf.50.a
		add_stability = -0.1
	}
}

# Declaring the Republic
country_event = {
	id = saf.51
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.51" }
	title = saf.51.t
	desc = saf.51.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = { is_subject = no }

	option = { #'n Nuwe Tydperk vir Suid-Afrika
		name = saf.51.a
		add_stability = -0.1
		add_war_support = 0.1
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.1
		}
		custom_effect_tooltip = SAF_tt_Malan_becomes_president
		hidden_effect = {
			set_cosmetic_tag = SAF_republic
		}
		leave_faction = yes
		set_global_flag = saf_boer_war
		
		if = {
			limit = {
				has_war = yes
			}

			# first peace out with faction leaders
			every_country = {
				limit = {
					is_faction_leader = yes
					has_war_with = SAF
					has_war_with = ENT
				}
				SAF = { white_peace = PREV }
			}

			# then all non-puppets who aren't in factions
			every_country = {
				limit = {
					is_in_faction = no
					is_subject = no
					has_war_with = SAF
					has_war_with = ENT
				}
				SAF = { white_peace = PREV }
			}
		}

		if = {
			limit = {
				has_idea = SAF_wavering_dominion
			}
			remove_ideas = SAF_wavering_dominion
		}
		else_if = {
			limit = {
				has_idea = SAF_neutral_dominion
			}
			remove_ideas = SAF_neutral_dominion
		}
		
		hidden_effect = {
			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
			}
		}
		if = {
			limit = {
				is_in_tech_sharing_group = entente_research
			}
			remove_from_tech_sharing_group = entente_research
		}
		hidden_effect = {
			country_event = { id = saf.53 days = 7 }
			ZIM = {
				country_event = {
					id = saf.52
					days = 3
				}
			}
		}
	}
}

#ZIM and PAF response?
country_event = {
	id = saf.52
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.52" }
	title = saf.52.t
	desc = saf.52.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Attack
		name = saf.52.a
		ai_chance = { factor = 5 }
		declare_war_on = {
			target = SAF
			type = annex_everything
		}
	}
	option = { #Neutral
		name = saf.52.b
		ai_chance = { factor = 95 }
	}
}
# Natal Secedes
country_event = {
	id = saf.53
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.53" }
	title = saf.53.t
	desc = saf.53.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = { is_subject = no }
	immediate = {
		hidden_effect = {
			country_event = {
				id = saf.54
				days = 5
			}
			country_event = {
				id = saf.168
				days = 1
			}
		}
	}

	option = { #Remain in South Africa
		name = saf.53.a
		ai_chance = { factor = 100 }
		hidden_effect = {
			719 = {
				add_core_of = SFR
				remove_core_of = SAF
				add_claim_by = SAF
			}
		}
		release = SFR
		if = {
			limit = {
				has_country_flag = saf_duncan_gov_general
			}
			SFR = {
				create_country_leader = {
					name = "Patrick Duncan"
					desc = "POLITICS_PAT_DUNCAN_DESC"
					picture = "gfx/leaders/SAF/Portrait_SAF_Patrick_Duncan.png"
					expire = "1.1.1"
					ideology = marlib_classical_liberalism_subtype
				}
				set_country_flag = saf_duncan_gov_general
			}
		}
		else = {
			SFR = {
				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 = marlib_classical_liberalism_subtype
				}
			}
		}
		SFR = {
			meta_effect = {
				text = {
					set_politics = {
						ruling_party = market_liberal
						last_election = "[CURRENT_DATE]"
						election_frequency = 60
						elections_allowed = no
					}
				}
				CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
			}
			country_event = { id = natal.1 days = 2 } #Natal Introduction event and spawning of their military
			hidden_effect = {
				country_event = { id = natal.4 days = 7 }
			}
			inherit_technology = SAF
			add_ideas = {
				SFR_Heaton_Nicholls_hog_mli
				SFR_Douglas_Mitchell_for_sco
				SFR_R_G_L_Mathias_eco_sde
				SFR_Charles_Stallard_sec_pau
			}
		}
	}
	
	option = { #Play as Natal
		name = saf.53.b
		ai_chance = { factor = 0 }
		hidden_effect = {
			719 = {
				add_core_of = SFR
				remove_core_of = SAF
				add_claim_by = SAF
			}
		}
		release = SFR
		SFR = {
			change_tag_from = ROOT
		}
		if = {
			limit = {
				has_country_flag = saf_duncan_gov_general
			}
			SFR = {
				create_country_leader = {
					name = "Patrick Duncan"
					desc = "POLITICS_PAT_DUNCAN_DESC"
					picture = "gfx/leaders/SAF/Portrait_SAF_Patrick_Duncan.png"
					expire = "1.1.1"
					ideology = marlib_classical_liberalism_subtype
				}
				set_country_flag = saf_duncan_gov_general
			}
		}
		else = {
			SFR = {
				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 = marlib_classical_liberalism_subtype
				}
			}
		}
		SFR = {
			meta_effect = {
				text = {
					set_politics = {
						ruling_party = market_liberal
						last_election = "[CURRENT_DATE]"
						election_frequency = 60
						elections_allowed = no
					}
				}
				CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
			}
			country_event = { id = natal.1 days = 2 } #Natal Introduction event and spawning of their military
			hidden_effect = {
				country_event = { id = natal.4 days = 7 }
			}
			inherit_technology = SAF
			add_ideas = {
				SFR_Heaton_Nicholls_hog_mli
				SFR_Douglas_Mitchell_for_sco
				SFR_R_G_L_Mathias_eco_sde
				SFR_Charles_Stallard_sec_pau
			}
		}
	}
}

# Third Boer War
country_event = {
	id = saf.54
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.54" }
	title = saf.54.t
	desc = saf.54.d
	picture = GFX_report_event_march

	timeout_days = 3

	is_triggered_only = yes

	option = { #Declare the war!
		name = saf.54.a
		add_war_support = 0.1
		declare_war_on = {
			target = SFR
			type = annex_everything
		}
		hidden_effect = {
			country_event = {
				id = natal.2
				days = 1
			}
			country_event = {
				id = sharedafrika.122 # Botswana uprising
				days = 2 random_days = 3
			}
			country_event = {
				id = sharedafrika.124 # Lesotho uprising
				days = 6 random_days = 3
			}
			news_event = {
				id = worldnews.64
				days = 2
			}
		}
	}
}

# Jan Smuts' life's work has evaporated and he retires
country_event = {
	id = saf.55
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.55" }
	title = saf.55.t
	desc = saf.55.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #The old man deserved retirement
		name = saf.55.a
		random_unit_leader = {
				limit = { has_id = 970 }
				remove_unit_leader = yes
			}
		set_country_flag = Jan_C_Smuts_dead
		add_popularity = {
			ideology = social_conservative
			popularity = -0.05
		}
		custom_effect_tooltip = SAF_tt_Strauss_leader_of_conservatives
		hidden_effect = {
			set_temp_variable = { SAF_conservative_to_liberal_value = party_popularity@social_conservative }
			set_temp_variable = { SAF_conservative_to_liberal_value_reverse = 0 }
			subtract_from_temp_variable = { var = SAF_moderate_to_extremist_value_reverse value = party_popularity@social_conservative }
			add_popularity = { ideology = social_conservative popularity = SAF_moderate_to_extremist_value_reverse }
			add_popularity = { ideology = social_liberal popularity = SAF_moderate_to_extremist_value }
			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 = "J.G.N. Strauss"
				desc = "POLITICS_JGN_STRAUSS_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Jacobus_Gideon_Nel_Strauss.png"
				expire = "1.1.1"
				ideology = soccon_liberal_conservative_subtype
			}
			country_event = {
				id = saf.315
				days = 300
			}
		}
	}
}

# The Nuweveld project
country_event = {
	id = saf.56
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.56" }
	title = saf.56.t
	desc = saf.56.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Passed
		name = saf.56.a
		add_political_power = 25
	}
}

# SAF wants to recruit colonists among our population
country_event = {
	id = saf.57
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.57" }
	title = saf.57.t
	desc = {
		text = saf.57.d.holland
		trigger = {
			OR = {
				tag = HOL
				tag = FLN
			}
		}
	}
	desc = {
		text = saf.57.d.other
		trigger = {
			NOT = {
				tag = HOL
			}
		}
	}
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Sure
		name = saf.57.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0.2
				tag = MAF
			}
			modifier = {
				factor = 4
				tag = HOL
			}
		}
		add_political_power = 25
		custom_effect_tooltip = SAF_tt_recruit_population_will_lower_population_growth
		set_country_flag = SAF_can_recruit_settlers
		SAF = {
			country_event = { id = saf.58 days = 2 }
		}
		effect_tooltip = {
			SAF = {
				add_opinion_modifier = { target = FROM modifier = SAF_allows_settler_recruitment }
			}
		}
	}
	
	option = { #No thanks
		name = saf.57.b
		ai_chance = {
			factor = 50
		}
		SAF = {
			country_event = { id = saf.59 days = 2 }
		}
		set_country_flag = SAF_cannot_recruit_settlers
	}
}

# FROM accepts
country_event = {
	id = saf.58
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.58" }
	title = saf.58.t
	desc = saf.58.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Cool
		name = saf.58.a
		add_political_power = 25
		add_opinion_modifier = { target = FROM modifier = SAF_allows_settler_recruitment }
	}
}

# FROM says no
country_event = {
	id = saf.59
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.59" }
	title = saf.59.t
	desc = saf.59.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Unfortunate
		name = saf.59.a
		add_political_power = -25
	}
}

# The Nuweveld report of [GetYear]
country_event = {
	id = saf.60
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.60" }
	title = saf.60.t
	desc = saf.60.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Let's take a look
		name = saf.60.a
		#add new colonists
		set_temp_variable = {
			var = SAF_new_nuweveld_settlers
			value = SAF_settling_attractiveness
		}
		multiply_temp_variable = { var = SAF_new_nuweveld_settlers value = 40000 }
		add_to_variable = { var = SAF_whites_in_botswana value = SAF_new_nuweveld_settlers }
		custom_effect_tooltip = SAF_tt_new_nuweveld_settlers
		hidden_effect = {
			542 = {
				add_manpower = var:SAF_new_nuweveld_settlers
			}
		}
		if = {
			limit = {
				542 = {
					has_active_resistance = yes
				}
			}
			add_to_variable = { var = SAF_tswana_insurgency value = 15 }
			custom_effect_tooltip = SAF_tt_tswana_insurgency_stronger
			542 = {
				add_resistance = 15
			}
		}
		custom_effect_tooltip = SAF_tt_attractiveness_reset_to_zero
		set_variable = { SAF_settling_attractiveness = 0.02 }
		hidden_effect = {
			country_event = { id = saf.64 days = 60 }
			if = {
				limit = {
					check_variable = { SAF_whites_in_botswana > 15000 }
				}
				country_event = { id = saf.65 days = 82 }
			}
		}
	}
}

# Gun intercepted, the Tswana insurgency is happening
country_event = {
	id = saf.61
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.61" }
	title = saf.61.t
	desc = saf.61.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Uh oh
		name = saf.61.a
		custom_effect_tooltip = SAF_tt_tswana_insurgency_enabled
		542 = {
			add_resistance = 50
		}
		add_equipment_to_stockpile = {
			type = infantry_equipment
			amount = 100
			producer = MAF
		}
	}
}

# Treaty of Damawe - Tswana Insurgency won
country_event = {
	id = saf.62
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.62" }
	title = saf.62.t
	desc = {
		text = saf.62.d.maf_collapsed
	}
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Oof
		name = saf.62.a
		542 = {
			add_core_of = BOT
		}
		release = BOT
		add_stability = -0.3
		decrease_ruling_party_popularity_by_10 = yes
	}
}

# Treaty of Damawe - Tswana Insurgency won, MAF perspective
country_event = {
	id = saf.63
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.63" }
	title = saf.63.t
	desc = saf.63.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = { #Oof
		name = saf.63.a
		transfer_state = 542
	}
}

# Higher crop yields in the Nuweveld than South Africa proper
country_event = {
	id = saf.64
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.64" }
	title = saf.64.t
	desc = saf.64.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Good
		name = saf.64.a
		custom_effect_tooltip = SAF_tt_settling_attractiveness_increased_2
		add_to_variable = { SAF_settling_attractiveness = 0.02 }
	}
}

# Diversifying settler population is attracting more settlers
country_event = {
	id = saf.65
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.65" }
	title = saf.65.t
	desc = saf.65.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Good
		name = saf.65.a
		custom_effect_tooltip = SAF_tt_settling_attractiveness_increased_2
		add_to_variable = { SAF_settling_attractiveness = 0.02 }
	}
}

# CAN hears about the Nuweveld
country_event = {
	id = saf.66
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.66" }
	title = saf.66.t
	desc = saf.66.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Revoke their mandate
		name = saf.66.a
		ai_chance = {
			factor = 80
		}
		SAF = {
			country_event = { id = saf.67 days = 2 }
		}
	}
	
	option = { #Let them be
		name = saf.66.b
		ai_chance = {
			factor = 20
		}
		add_political_power = -25
	}
}

# CAN revokes SAF's mandate over the HCT
country_event = {
	id = saf.67
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.67" }
	title = saf.67.t
	desc = saf.67.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Revoke their mandate
		name = saf.67.a
		custom_effect_tooltip = SAF_tt_and_other_hilarious_jokes
		FROM = {
			add_opinion_modifier = { target = SAF modifier = SAF_encroaching_on_imperial_land }
			country_event = { id = saf.68 }
		}
	}
}

# SAF refuses to vacate the Nuweveld
country_event = {
	id = saf.68
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.68" }
	title = saf.68.t
	desc = saf.68.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	fire_only_once = yes

	option = { #We could have expected this
		name = saf.68.a
		effect_tooltip = {
			add_opinion_modifier = { target = SAF modifier = SAF_encroaching_on_imperial_land }
		}
	}
}

# Fusion or not?
country_event = {
	id = saf.69
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.69" }
	title = saf.69.t
	desc = saf.69.d
	picture = GFX_report_event_SAF_boers

	is_triggered_only = yes
	trigger = {
		tag = SAF
		has_country_flag = saf_flag_prefusion
	}

	option = { #A fine idea!
		name = saf.69.a
		ai_chance = { factor = 60 }
		set_party_name = { 
			ideology = social_liberal 
			long_name = SAF_social_liberal_party_long_UP 
			name = SAF_social_liberal_party_UP 
		}
		set_party_name = { 
			ideology = social_conservative 
			long_name = SAF_social_conservative_party_long_UP 
			name = SAF_social_conservative_party_UP 
		}
		set_party_name = { 
			ideology = authoritarian_democrat 
			long_name = SAF_authoritarian_democrat_party_long_UP 
			name = SAF_authoritarian_democrat_party_UP 
		}
		custom_effect_tooltip = SAF_tt_SAP_and_National_merge
		hidden_effect = {
			set_temp_variable = { SAF_conservative_to_authdem_value = party_popularity@social_conservative }
			set_temp_variable = { SAF_conservative_to_authdem_value_reverse = 0 }
			subtract_from_temp_variable = { var = SAF_conservative_to_authdem_value_reverse value = party_popularity@social_conservative }
			add_popularity = { ideology = social_conservative popularity = SAF_conservative_to_authdem_value_reverse }
			add_popularity = { ideology = authoritarian_democrat popularity = SAF_conservative_to_authdem_value }
			country_event = { id = saf.70 days = 1 }
			country_event = { id = saf.139 days = 70 }
		}
		clr_country_flag = saf_flag_prefusion
		set_country_flag = SAF_fusion
		end_coalition = yes
		hidden_effect = {
			country_event = { id = saf.72 days = 2 }
		}
	}
	
	option = { #We differ too much!
		name = saf.69.b
		ai_chance = {
			factor = 40
			modifier = {
				factor = 0
				has_game_rule = { rule = SAF_politic option = SAF_POLITIC_HERTZOG_COALITION }
			}
		}
		add_political_power = 25
		clr_country_flag = saf_flag_prefusion
	}
}

# Malanites and Stallardians don't go along with fusion
country_event = {
	id = saf.70
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.70" }
	title = saf.70.t
	desc = saf.70.d
	picture = GFX_report_event_SAF_malan

	is_triggered_only = yes

	option = { #A fine idea!
		name = saf.70.a
		ai_chance = { factor = 60 }
		set_party_name = { 
			ideology = paternal_autocrat 
			long_name = SAF_paternal_autocrat_party_long_PNP 
			name = SAF_paternal_autocrat_party_PNP 
		}
		set_party_name = { 
			ideology = national_populist 
			long_name = SAF_national_populist_party_long_PNP 
			name = SAF_national_populist_party_PNP 
		}
		add_popularity = { ideology = authoritarian_democrat popularity = -0.2 }
		add_popularity = { ideology = paternal_autocrat popularity = 0.2 }
		set_country_flag = SAF_PNP_split
	}
}

# 1938 elections (No Fusion)
country_event = {
	id = saf.71
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event saf.71" 
		clr_country_flag = saf_flag_labour_in_coalition
	}
	title = saf.71.t
	desc = saf.71.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = {
		NOT = {
			has_country_flag = saf_flag_elections_held
			has_country_flag = SAF_fusion
		}
	}

	option = { #Jan Smuts and the SAP are victorious
		name = saf.71.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = { rule = SAF_politic option = SAF_POLITIC_MALAN }
			}
		}
		if = {
			limit = {
				has_country_flag = saf_liberal_split
				social_conservative < 0.5
			}
			add_popularity = {
				ideology = social_conservative
				popularity = 0.1
			}
			add_popularity = {
				ideology = market_liberal
				popularity = -0.03
			}
		}
		else_if = {
			limit = {
				social_conservative < 0.5
			}
			add_popularity = {
				ideology = social_conservative
				popularity = 0.07
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = social_conservative
				}
			}
			SAF_move_governor_general_soccon = yes
		}
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		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
		}
		set_country_flag = saf_flag_elections_held
		hidden_effect = {
			country_event = { id = saf.75 days = 5 }
		}
	}
	
	option = { #DF Malan and National are victorious
		name = saf.71.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = { rule = SAF_politic option = SAF_POLITIC_SMUTS }
			}
		}
		trigger = {
			has_country_flag = saf_national_turned_pataut
		}
		if = {
			limit = {
				paternal_autocrat < 0.5
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = 0.07
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = paternal_autocrat
				}
			}
			SAF_move_governor_general_pataut = yes
		}
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		add_ideas = {
			SAF_D_F_Malan_hog_pau
			SAF_Eric_H_Louw_naaf_ade
			SAF_Nicolaas_Havenga_eco_ade
			SAF_F_C_Erasmus_sec_pau
		}
		set_country_flag = saf_flag_elections_held
		hidden_effect = {
			country_event = { id = saf.50 days = 30 } #Natal Covenant
			country_event = { id = saf.75 days = 5 }
		}
	}
	
	option = { #JBM Hertzog and National are victorious
		name = saf.71.c
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_SMUTS }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_MALAN }
				}
			}
		}
		trigger = {
			NOT = {
				has_country_flag = saf_national_turned_pataut
			}
		}
		if = {
			limit = {
				authoritarian_democrat < 0.5
			}
			add_popularity = {
				ideology = authoritarian_democrat
				popularity = 0.07
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = authoritarian_democrat
				}
			}
			SAF_move_governor_general_authdem = yes
		}
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		add_ideas = {
			SAF_James_Hertzog_hog_ade
			SAF_Eric_H_Louw_naaf_ade
			SAF_Nicolaas_Havenga_eco_ade
			SAF_F_C_Erasmus_sec_pau
		}
		set_country_flag = saf_flag_elections_held
		hidden_effect = {
			country_event = { id = saf.75 days = 5 }
		}
	}
}

# The end of the Labour Split (Fusion)
country_event = {
	id = saf.72
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.72" }
	title = saf.72.t
	desc = saf.72.d
	picture = GFX_report_event_SAF_malan

	is_triggered_only = yes
	trigger = {
		has_country_flag = SAF_fusion
	}

	option = { #Interesting
		name = saf.72.a
		ai_chance = { factor = 60 }
		set_party_name = { 
			ideology = social_democrat 
			long_name = SAF_social_democrat_party_long_reunited 
			name = SAF_social_democrat_party_reunited 
		}
		add_popularity = { ideology = social_democrat popularity = 0.02 }
		add_popularity = { ideology = authoritarian_democrat popularity = 0.02 }
		set_country_flag = SAF_flag_labour_split_mended
	}
}

# 1938 elections (Fusion)
country_event = {
	id = saf.73
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.73" }
	title = saf.73.t
	desc = saf.73.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = {
		NOT = {
			has_country_flag = saf_flag_elections_held
		}
		has_country_flag = SAF_fusion
	}

	option = { #The United Party is victorious
		name = saf.73.a
		effect_tooltip = {
			set_politics = {
				ruling_party = authoritarian_democrat
				elections_allowed = yes
			}
		}
		remove_all_minister_types = yes
		add_ideas = {
			SAF_James_Hertzog_hog_ade
			SAF_Jan_Hendrik_Hofmeyr_naaf_sli
			SAF_Nicolaas_Havenga_eco_ade
			SAF_Jan_C_Smuts_sec_sco
		}
		hidden_effect = { country_event = { id = saf.74 days = 1 } }
		set_country_flag = saf_flag_elections_held
	}
}

# Report on the Purified National Party after the elections
country_event = {
	id = saf.74
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.74" }
	title = saf.74.t
	desc = saf.74.d
	picture = GFX_report_event_SAF_malan

	is_triggered_only = yes
	trigger = {
		NOT = {
			has_country_flag = saf_flag_elections_held
		}
		has_country_flag = SAF_fusion
	}
	immediate = {
		set_country_flag = saf_flag_elections_held
	}

	option = { #Hmm, ominous.
		name = saf.74.a
		add_popularity = { ideology = paternal_autocrat popularity = 0.05 }
		add_popularity = { ideology = authoritarian_democrat popularity = -0.05 }
	}
}

# The end of the Labour Split (No fusion)
country_event = {
	id = saf.75
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.75" }
	title = saf.75.t
	desc = saf.75.d
	picture = GFX_report_event_SAF_malan

	is_triggered_only = yes
	trigger = {
		NOT = {
			has_country_flag = SAF_flag_labour_split_mended
		}
	}

	option = { #Interesting
		name = saf.75.a
		ai_chance = { factor = 60 }
		set_party_name = { 
			ideology = social_democrat 
			long_name = SAF_social_democrat_party_long_reunited 
			name = SAF_social_democrat_party_reunited 
		}
		add_popularity = { ideology = social_democrat popularity = 0.02 }
		set_country_flag = SAF_flag_labour_split_mended
	}
}

# The start of the construction of the Voortrekker Monument
country_event = {
	id = saf.76
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.76" }
	title = saf.76.t
	desc = saf.76.d
	picture = GFX_report_event_SAF_malan

	is_triggered_only = yes

	option = { #We must contribute to this grand scheme
		name = saf.76.a
		ai_chance = { 
			factor = 6
			modifier = {
				factor = 2
				has_government = authoritarian_democrat
			}
		}
		trigger = {
			has_socialist_government = no
		}
		add_political_power = -25
		set_country_flag = saf_flag_prep_centenary_celeb
		
	}
	
	option = { #Interesting, but we cannot contribute
		name = saf.76.b
		ai_chance = { 
			factor = 4
		}
		trigger = {
			has_socialist_government = no
		}
		hidden_effect = {
			country_event = { id = saf.77 days = 30 }
		}
		set_country_flag = saf_flag_prep_centenary_celeb
	}
	
	option = { #No, we ban that shit
		name = saf.76.c
		ai_chance = { 
			factor = 90
		}
		trigger = {
			has_socialist_government = yes
		}
		hidden_effect = {
			country_event = { id = saf.78 days = 180 }
		}
		add_stability = -0.1
		set_country_flag = saf_centenary_festivities_cancelled
	}
}

# Afrikaner organisations collect the money themselves
country_event = {
	id = saf.77
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.77" }
	title = saf.77.t
	desc = saf.77.d
	picture = GFX_report_event_SAF_malan

	is_triggered_only = yes

	option = { #All's well that ends well
		name = saf.77.a
		add_stability = -0.05
		hidden_effect = {
			country_event = { id = saf.78 days = 150 }
		}
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.02 }
		}
		else_if = {
			limit = {
				has_completed_focus = SAF_reorganise_the_national_party
			}
			add_popularity = { ideology = national_populist popularity = 0.02 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.02 }
		}
	}
}

# The Ossewabrandwag appears
country_event = {
	id = saf.78
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.78" }
	title = saf.78.t
	desc = saf.78.d
	picture = GFX_report_event_SAF_boers

	is_triggered_only = yes

	option = { #Disturbing
		name = saf.78.a
		add_stability = -0.05
		set_country_flag = SAF_ossewabrandwag_founded
	}
}

# The start of the Great Trek Centenary celebrations
country_event = {
	id = saf.79
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event saf.79" 
		hidden_effect = {
			country_event = { id = saf.80 days = 31 } #Arrives in PE
		}
	}
	title = saf.79.t
	desc = saf.79.d
	picture = GFX_report_event_SAF_centenary

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_country_flag = saf_centenary_festivities_cancelled
		}
	}

	option = { #Hurrah!
		name = saf.79.a
		if = {
			limit = {
				OR = {
					AND = {
						has_government = authoritarian_democrat
						NOT = {
							has_country_flag = SAF_fusion
						}
					}
					has_government = paternal_autocrat
					has_government = national_populist
				}
			}
			add_ideas = SAF_idea_great_trek_reenactment_positive
		}
		else = {
			add_ideas = SAF_idea_great_trek_reenactment_negative
		}
		add_political_power = 20
		clr_country_flag = saf_flag_prep_centenary_celeb
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.02 }
		}
		else_if = {
			limit = {
				has_completed_focus = SAF_reorganise_the_national_party
			}
			add_popularity = { ideology = national_populist popularity = 0.02 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.02 }
		}
	}
}

# The ox-wagon parade reaches Port Elizabeth
country_event = {
	id = saf.80
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event saf.80" 
		hidden_effect = {
			country_event = { id = saf.81 days = 32 } #Arrives in Bulhoek (Kruger's birthplace)
		}
	}
	title = saf.80.t
	desc = saf.80.d
	picture = GFX_report_event_SAF_centenary

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_country_flag = saf_centenary_festivities_cancelled
		}
	}	

	option = { #Hurrah!
		name = saf.80.a
		add_political_power = -20
	}
}

# The ox-wagon parade reaches Bulhoek
country_event = {
	id = saf.81
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event saf.81" 
		hidden_effect = {
			country_event = { id = saf.82 days = 13 } #Arrives in Bloemfontein
		}
	}
	title = saf.81.t
	desc = saf.81.d
	picture = GFX_report_event_SAF_centenary

	is_triggered_only = yes

	trigger = {
		NOT = {
			has_country_flag = saf_centenary_festivities_cancelled
		}
	}	

	option = { #Hurrah!
		name = saf.81.a
		add_political_power = 20
	}
}

# The ox-wagon parade reaches Bloemfontein
country_event = {
	id = saf.82
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event saf.82" 
		hidden_effect = {
			country_event = { id = saf.83 days = 13 } #Arrives in Vegkop
		}
	}
	title = saf.82.t
	desc = saf.82.d
	picture = GFX_report_event_SAF_centenary

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_country_flag = saf_centenary_festivities_cancelled
		}
	}

	option = { #Hurrah!
		name = saf.82.a
	}
}

# The ox-wagon parade reaches Vegkop
country_event = {
	id = saf.83
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event saf.83" 
		hidden_effect = {
			country_event = { id = saf.84 days = 31 } #Arrives in Joburg
		}
	}
	title = saf.83.t
	desc = saf.83.d
	picture = GFX_report_event_SAF_centenary

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_country_flag = saf_centenary_festivities_cancelled
		}
	}

	option = { #Hurrah!
		name = saf.83.a
		add_political_power = 10
	}
}

# The ox-wagon parade reaches Johannesburg
country_event = {
	id = saf.84
	immediate = { 
		log = "[GetDateText]: [Root.GetName]: event saf.84"
		hidden_effect = {
			country_event = { id = saf.85 days = 14 } #Arrives in Pretoria (Normal)
			country_event = { id = saf.86 days = 14 } #Arrives in Pretoria (Malan)
		}
	}
	title = saf.84.t
	desc = saf.84.d
	picture = GFX_report_event_SAF_centenary

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_country_flag = saf_centenary_festivities_cancelled
		}
	}

	option = { #Hurrah!
		name = saf.84.a
		add_political_power = 20
	}
}

# The ox-wagon parade reaches Pretoria (normal)
country_event = {
	id = saf.85
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.85" }
	title = saf.85.t
	desc = saf.85.d
	picture = GFX_report_event_SAF_monument

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_government = paternal_autocrat
			has_country_flag = saf_centenary_festivities_cancelled
		}
	}

	option = { #Hurrah!
		name = saf.85.a
		add_political_power = 20
		if = {
			limit = {
				has_idea = SAF_idea_great_trek_reenactment_positive
			}
			remove_ideas = SAF_idea_great_trek_reenactment_positive
		}
		else = {
			remove_ideas = SAF_idea_great_trek_reenactment_negative
		}
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.05 }
		}
		else_if = {
			limit = {
				has_completed_focus = SAF_reorganise_the_national_party
			}
			add_popularity = { ideology = national_populist popularity = 0.05 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.05 }
		}
	}
}

# The ox-wagon parade reaches Pretoria (Malan)
country_event = {
	id = saf.86
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.86" }
	title = saf.86.t
	desc = saf.86.d
	picture = GFX_report_event_SAF_monument

	is_triggered_only = yes
	
	trigger = {
		has_government = paternal_autocrat
		NOT = {
			has_country_flag = saf_centenary_festivities_cancelled
		}
	}

	option = { #Hurrah!
		name = saf.86.a
		add_political_power = 20
		if = {
			limit = {
				has_idea = SAF_idea_great_trek_reenactment_positive
			}
			remove_ideas = SAF_idea_great_trek_reenactment_positive
		}
		else = {
			remove_ideas = SAF_idea_great_trek_reenactment_negative
		}
		add_war_support = 0.1
		custom_effect_tooltip = SAF_tt_Malan_becomes_president
		hidden_effect = {
			set_cosmetic_tag = SAF_republic
		}
		leave_faction = yes
		set_global_flag = saf_boer_war
		
		if = {
			limit = {
				has_war = yes
			}

			# first peace out with faction leaders
			every_country = {
				limit = {
					is_faction_leader = yes
					has_war_with = SAF
					has_war_with = ENT
				}
				SAF = { white_peace = PREV }
			}

			# then all non-puppets who aren't in factions
			every_country = {
				limit = {
					is_in_faction = no
					is_subject = no
					has_war_with = SAF
					has_war_with = ENT
				}
				SAF = { white_peace = PREV }
			}
		}

		if = {
			limit = {
				has_idea = SAF_wavering_dominion
			}
			remove_ideas = SAF_wavering_dominion
		}
		else_if = {
			limit = {
				has_idea = SAF_neutral_dominion
			}
			remove_ideas = SAF_neutral_dominion
		}
		
		hidden_effect = {
			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
			}
		}
		if = {
			limit = {
				is_in_tech_sharing_group = entente_research
			}
			remove_from_tech_sharing_group = entente_research
		}
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.1 }
		}
		else_if = {
			limit = {
				has_completed_focus = SAF_reorganise_the_national_party
			}
			add_popularity = { ideology = national_populist popularity = 0.1 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.1 }
		}
		hidden_effect = {
			country_event = { id = saf.53 days = 7 }
		}
	}
}

# Cancelling the centenary festivities bcs Boer War
country_event = {
	id = saf.87
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.87" }
	title = saf.87.t
	picture = GFX_report_event_europe_funeral

	desc = {
		text = saf.87.d.ongoing
		trigger = {
			OR = {
				has_idea = SAF_idea_great_trek_reenactment_negative
				has_idea = SAF_idea_great_trek_reenactment_positive
			}
		}
	}
	desc = {
		text = saf.87.d.notyet
		trigger = {
			NOT = {
				has_idea = SAF_idea_great_trek_reenactment_negative
				has_idea = SAF_idea_great_trek_reenactment_positive
			}
		}
	}

	fire_only_once = yes

	trigger = {
		tag = SAF
		has_war_with = SFR
		OR = {
			has_idea = SAF_idea_great_trek_reenactment_negative
			has_idea = SAF_idea_great_trek_reenactment_positive
			has_country_flag = saf_flag_prep_centenary_celeb
		}
	}

	option = {
		name = saf.87.a
		add_political_power = -10
		if = {
			limit = {
				has_idea = SAF_idea_great_trek_reenactment_negative
			}
			remove_ideas = SAF_idea_great_trek_reenactment_negative
		}
		else_if = {
			limit = {
				has_idea = SAF_idea_great_trek_reenactment_positive
			}
			remove_ideas = SAF_idea_great_trek_reenactment_positive
		}
		set_country_flag = saf_centenary_festivities_cancelled
	}
}

# The homecoming (Fusion)
country_event = {
	id = saf.88
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.88" }
	title = saf.88.t
	desc = saf.88.d
	picture = GFX_report_event_europe_funeral

	fire_only_once = yes

	trigger = {
		tag = SAF
		ENT = {
			has_war_with = ENG
		}
		has_country_flag = SAF_fusion
		has_idea = SAF_wavering_dominion
	}

	option = { #The cabinet votes to join the homecoming
		name = saf.88.a
		country_event = { id = saf.89 days = 2 }
		add_stability = -0.01
	}
}

# Hertzog's resolution
country_event = {
	id = saf.89
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.89" }
	title = saf.89.t
	desc = saf.89.d
	picture = GFX_report_event_europe_funeral

	is_triggered_only = yes

	option = { #The Volksraad sides with Smuts
		name = saf.89.a
		country_event = { id = saf.90 days = 2 }
		add_war_support = 0.01
	}
}

# Hertzog asks for early elections
country_event = {
	id = saf.90
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.90" }
	title = saf.90.t
	desc = saf.90.d
	picture = GFX_report_event_europe_funeral

	is_triggered_only = yes

	option = { #The question of neutrality was already addressed in '38
		name = saf.90.a
		ai_chance = { factor = 80 }
		country_event = { id = saf.91 days = 2 } #Smuts forms his government
		hidden_effect = { country_event = { id = saf.92 days = 7 } }
	}
	
	option = { #Request granted
		name = saf.90.b
		ai_chance = { factor = 20 }
		custom_effect_tooltip = saf_tt_elections_in_six_weeks
		hidden_effect = {
			country_event = { id = saf.92 days = 7 }
			country_event = { id = saf.93 days = 42 }
		}
	}
}

# Smuts forms a wartime-government
country_event = {
	id = saf.91
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.91" }
	title = saf.91.t
	desc = saf.91.d
	picture = GFX_report_event_europe_funeral

	is_triggered_only = yes

	option = {
		name = saf.91.a
		ai_chance = { factor = 90 }
		remove_ideas = SAF_wavering_dominion
		custom_effect_tooltip = SAF_tt_United_becomes_Soccon
		hidden_effect = {
			set_temp_variable = { SAF_conservative_to_authdem_value = party_popularity@authoritarian_democrat }
			set_temp_variable = { SAF_conservative_to_authdem_value_reverse = 0 }
			subtract_from_temp_variable = { var = SAF_conservative_to_authdem_value_reverse value = party_popularity@authoritarian_democrat }
			add_popularity = { ideology = authoritarian_democrat popularity = SAF_conservative_to_authdem_value_reverse }
			add_popularity = { ideology = social_conservative popularity = SAF_conservative_to_authdem_value }
		}
		SAF_move_governor_general_soccon = yes
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = yes
		}
		set_country_flag = saf_united_went_soccon
		remove_all_minister_types = yes
		add_ideas = {
			SAF_Jan_C_Smuts_hog_sco
			SAF_Jan_Hendrik_Hofmeyr_naaf_sli
			SAF_Walter_Madeley_eco_sde
			SAF_C_F_Stallard_sec_pau
		}
	}
}

# Hertzog leaves the UP
country_event = {
	id = saf.92
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.92" }
	title = saf.92.t
	desc = saf.92.d
	picture = GFX_report_event_europe_funeral

	is_triggered_only = yes

	option = { #The National Party is whole again.
		name = saf.92.a
		ai_chance = { factor = 90 }
		if = {
			limit = {
				has_country_flag = saf_united_went_soccon
			}
			add_popularity = { ideology = social_conservative popularity = -0.15 }
			add_popularity = { ideology = authoritarian_democrat popularity = 0.15 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = -0.3 }
			add_popularity = { ideology = social_conservative popularity = 0.3 }
		}
		set_party_name = { 
			ideology = authoritarian_democrat 
			long_name = SAF_authoritarian_democrat_party_long_Volksparty
			name = SAF_authoritarian_democrat_party_Volksparty
		}
		clr_country_flag = SAF_fusion
		set_country_flag = SAF_fusion_broke
	}
}

# Early elections 1939
country_event = {
	id = saf.93
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.93" }
	title = saf.93.t
	desc = saf.93.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	immediate = {
		set_country_flag = saf_flag_elections_held
	}

	option = { #Jan Smuts and the United Party are victorious
		name = saf.93.a
		ai_chance = {
			factor = 50
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = -0.02
		}
		add_popularity = {
			ideology = social_democrat
			popularity = 0.02
		}
		SAF_move_governor_general_soccon = yes
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = social_conservative
					last_election = "[CURRENT_DATE]"
					election_frequency = 60
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
		remove_ideas = SAF_wavering_dominion
		remove_all_minister_types = yes
		add_ideas = {
			SAF_Jan_C_Smuts_hog_sco
			SAF_Jan_Hendrik_Hofmeyr_naaf_sli
			SAF_Walter_Madeley_eco_sde
			SAF_C_F_Stallard_sec_pau
		}
	}
	
	option = { #James Hertzog and Reunited National are victorious
		name = saf.93.b
		ai_chance = {
			factor = 50
		}
		add_popularity = {
			ideology = social_conservative
			popularity = -0.15
		}
		add_popularity = {
			ideology = authoritarian_democrat
			popularity = 0.1
		}
		add_popularity = {
			ideology = paternal_autocrat
			popularity = 0.02
		}
		SAF_move_governor_general_authdem = yes
		meta_effect = {
			text = {
				set_politics = {
					ruling_party = authoritarian_democrat
					last_election = "[CURRENT_DATE]"
					election_frequency = 60
					elections_allowed = yes
				}
			}
			CURRENT_DATE = "[?global.date.GetDateStringNoHour]"
		}
		remove_all_minister_types = yes
		add_ideas = {
			SAF_James_Hertzog_hog_ade
			SAF_Eric_H_Louw_naaf_ade
			SAF_Nicolaas_Havenga_eco_ade
			SAF_D_F_Malan_sec_pau
		}
		set_party_name = { 
			ideology = authoritarian_democrat 
			long_name = SAF_authoritarian_democrat_party_long_RN
			name = SAF_authoritarian_democrat_party_RN
		}
		set_party_name = { 
			ideology = paternal_autocrat 
			long_name = SAF_paternal_autocrat_party_long_RN
			name = SAF_paternal_autocrat_party_RN
		}
		set_party_name = {
			ideology = national_populist 
			long_name = SAF_national_populist_party_long_RN
			name = SAF_national_populist_party_RN
		}
		clr_country_flag = SAF_PNP_split
		country_event = { #Neutrality motion
			id = saf.94
			days = 2
		}
	}
}

# Hertzog's neutrality motion passes the new Volksraad
country_event = {
	id = saf.94
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.94" }
	title = saf.94.t
	desc = saf.94.d
	picture = GFX_report_event_europe_funeral

	is_triggered_only = yes

	option = { #Hurrah!
		name = saf.90.a
		swap_ideas = { remove_idea = SAF_wavering_dominion add_idea = SAF_neutral_dominion }
		leave_faction = yes
		ENT = {
			country_event = { id = saf.95 }
		}
	}
}

# SAF declares neutrality
country_event = {
	id = saf.95
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.95" }
	title = saf.95.t
	desc = saf.95.d
	picture = GFX_report_event_europe_funeral

	is_triggered_only = yes

	option = { #Betrayed in our hour of need
		name = saf.95.a
		effect_tooltip = {
			SAF = {
				leave_faction = yes
			}
		}
	}
}

# The homecoming (National in power)
country_event = {
	id = saf.96
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.96" }
	title = saf.96.t
	desc = saf.96.d
	picture = GFX_report_event_europe_funeral

	fire_only_once = yes

	trigger = {
		tag = SAF
		ENT = {
			has_war_with = ENG
		}
		OR = {
			has_government = authoritarian_democrat
			has_government = paternal_autocrat
		}
		NOT = {
			has_country_flag = SAF_fusion
			has_country_flag = SAF_fusion_broke
		}
		has_idea = SAF_wavering_dominion
	}

	option = { #South Africa remains neutral
		name = saf.96.a
		swap_ideas = { remove_idea = SAF_wavering_dominion add_idea = SAF_neutral_dominion }
		leave_faction = yes
		ENT = {
			country_event = { id = saf.95 }
		}
		add_stability = -0.01
	}
}

# The homecoming (SAP in power)
country_event = {
	id = saf.97
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.97" }
	title = saf.97.t
	desc = saf.97.d
	picture = GFX_report_event_europe_funeral

	fire_only_once = yes

	trigger = {
		tag = SAF
		ENT = {
			has_war_with = ENG
		}
		OR = {
			has_government = social_conservative
			has_government = social_liberal
		}
		NOT = {
			has_country_flag = SAF_fusion
		}
		has_idea = SAF_wavering_dominion
	}

	option = { #The cabinet votes to join the homecoming
		name = saf.97.a
		remove_ideas = SAF_wavering_dominion
		add_stability = -0.01
	}
}

# Picking a governor-general
country_event = {
	id = saf.98
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.98" }
	title = saf.98.t
	desc = saf.98.d
	picture = GFX_report_event_europe_funeral

	is_triggered_only = yes
	trigger = {
		NOT = {
			is_subject = yes
			has_socialist_government = yes
			has_cosmetic_tag = SAF_republic
		}
	}

	option = { #Have Patrick Duncan be appointed
		name = saf.98.a
		ai_chance = { factor = 60 }
		if = {
			limit = {
				has_government = social_democrat
			}
			create_country_leader = {
				name = "Patrick Duncan"
				desc = "POLITICS_PAT_DUNCAN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Patrick_Duncan.png"
				expire = "1.1.1"
				ideology = socdem_democratic_socialism_subtype
			}
		}
		else_if = {
			limit = {
				has_government = social_liberal
			}
			create_country_leader = {
				name = "Patrick Duncan"
				desc = "POLITICS_PAT_DUNCAN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Patrick_Duncan.png"
				expire = "1.1.1"
				ideology = classical_liberalism_subtype
			}
			if = {
				limit = { has_country_flag = Jan_C_Smuts_dead }
				set_country_leader_ideology = soclib_progressive_democracy_subtype
			}
		}
		else_if = {
			limit = {
				has_government = market_liberal
			}
			create_country_leader = {
				name = "Patrick Duncan"
				desc = "POLITICS_PAT_DUNCAN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Patrick_Duncan.png"
				expire = "1.1.1"
				ideology = marlib_classical_liberalism_subtype
			}
		}
		else_if = {
			limit = {
				has_government = social_conservative
			}
			create_country_leader = {
				name = "Patrick Duncan"
				desc = "POLITICS_PAT_DUNCAN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Patrick_Duncan.png"
				expire = "1.1.1"
				ideology = soccon_liberal_conservative_subtype
			}
		}
		else_if = {
			limit = {
				has_government = authoritarian_democrat
			}
			create_country_leader = {
				name = "Patrick Duncan"
				desc = "POLITICS_PAT_DUNCAN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Patrick_Duncan.png"
				expire = "1.1.1"
				ideology = authdem_boer_nationalism_subtype
			}
		}
		else = {
			create_country_leader = {
				name = "Patrick Duncan"
				desc = "POLITICS_PAT_DUNCAN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Patrick_Duncan.png"
				expire = "1.1.1"
				ideology = pataut_boer_nationalism_subtype
			}
		}
		set_country_flag = saf_duncan_gov_general
		hidden_effect = { country_event = { id = saf.317 days = 90 random = 30 } }
	}
	
	option = { #Keep Clarendon, he doesn't have anything better to do anyways
		name = saf.98.b
		add_political_power = -15
	}
}

# Duncan died, new gov-general.
country_event = {
	id = saf.99
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.99" }
	title = saf.99.t
	desc = saf.99.d
	picture = GFX_report_event_europe_funeral

	is_triggered_only = yes
	trigger = {
		NOT = {
			is_subject = yes
			has_socialist_government = yes
			has_cosmetic_tag = SAF_republic
		}
		has_country_flag = saf_duncan_gov_general
	}

	option = { #Let De Wet
		name = saf.99.a
		ai_chance = { factor = 60 }
		hidden_effect = {
			clr_country_flag = saf_duncan_gov_general
		}
		if = {
			limit = {
				has_government = social_democrat
			}
			create_country_leader = {
				name = "Nicolaas Jacobus de Wet"
				desc = "POLITICS_NJ_DE_WET_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Nicolaas_Jacobus_de_Wet.png"
				expire = "1.1.1"
				ideology = socdem_democratic_socialism_subtype
			}
		}
		else_if = {
			limit = {
				has_government = social_liberal
			}
			create_country_leader = {
				name = "Nicolaas Jacobus de Wet"
				desc = "POLITICS_NJ_DE_WET_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Nicolaas_Jacobus_de_Wet.png"
				expire = "1.1.1"
				ideology = classical_liberalism_subtype
			}
			if = {
				limit = { has_country_flag = Jan_C_Smuts_dead }
				set_country_leader_ideology = soclib_progressive_democracy_subtype
			}
		}
		else_if = {
			limit = {
				has_government = market_liberal
			}
			create_country_leader = {
				name = "Nicolaas Jacobus de Wet"
				desc = "POLITICS_NJ_DE_WET_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Nicolaas_Jacobus_de_Wet.png"
				expire = "1.1.1"
				ideology = marlib_classical_liberalism_subtype
			}
		}
		else_if = {
			limit = {
				has_government = social_conservative
			}
			create_country_leader = {
				name = "Nicolaas Jacobus de Wet"
				desc = "POLITICS_NJ_DE_WET_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Nicolaas_Jacobus_de_Wet.png"
				expire = "1.1.1"
				ideology = soccon_liberal_conservative_subtype
			}
		}
		else_if = {
			limit = {
				has_government = authoritarian_democrat
			}
			create_country_leader = {
				name = "Nicolaas Jacobus de Wet"
				desc = "POLITICS_NJ_DE_WET_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Nicolaas_Jacobus_de_Wet.png"
				expire = "1.1.1"
				ideology = authdem_boer_nationalism_subtype
			}
		}
		else = {
			create_country_leader = {
				name = "Nicolaas Jacobus de Wet"
				desc = "POLITICS_NJ_DE_WET_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Nicolaas_Jacobus_de_Wet.png"
				expire = "1.1.1"
				ideology = pataut_boer_nationalism_subtype
			}
		}
		clr_country_flag = saf_duncan_gov_general
		set_country_flag = saf_de_wet_gov_general
	}
	
	option = { #Quickly push through Janssen
		name = saf.99.b
		ai_chance = { factor = 40 }
		trigger = {
			has_authoritarian_government = yes
		}
		if = {
			limit = {
				has_government = social_democrat
			}
			create_country_leader = {
				name = "Ernest Janssen"
				desc = "POLITICS_ERNEST_JANSEN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Ernest_Jansen.png"
				expire = "1.1.1"
				ideology = socdem_democratic_socialism_subtype
			}
		}
		else_if = {
			limit = {
				has_government = social_liberal
			}
			create_country_leader = {
				name = "Ernest Janssen"
				desc = "POLITICS_ERNEST_JANSEN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Ernest_Jansen.png"
				expire = "1.1.1"
				ideology = classical_liberalism_subtype
			}
			if = {
				limit = { has_country_flag = Jan_C_Smuts_dead }
				set_country_leader_ideology = soclib_progressive_democracy_subtype
			}
		}
		else_if = {
			limit = {
				has_government = market_liberal
			}
			create_country_leader = {
				name = "Ernest Janssen"
				desc = "POLITICS_ERNEST_JANSEN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Ernest_Jansen.png"
				expire = "1.1.1"
				ideology = marlib_classical_liberalism_subtype
			}
		}
		else_if = {
			limit = {
				has_government = social_conservative
			}
			create_country_leader = {
				name = "Ernest Janssen"
				desc = "POLITICS_ERNEST_JANSEN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Ernest_Jansen.png"
				expire = "1.1.1"
				ideology = soccon_liberal_conservative_subtype
			}
		}
		else_if = {
			limit = {
				has_government = authoritarian_democrat
			}
			create_country_leader = {
				name = "Ernest Janssen"
				desc = "POLITICS_ERNEST_JANSEN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Ernest_Jansen.png"
				expire = "1.1.1"
				ideology = authdem_boer_nationalism_subtype
			}
		}
		else = {
			create_country_leader = {
				name = "Ernest Janssen"
				desc = "POLITICS_ERNEST_JANSEN_DESC"
				picture = "gfx/leaders/SAF/Portrait_SAF_Ernest_Jansen.png"
				expire = "1.1.1"
				ideology = pataut_boer_nationalism_subtype
			}
		}
		clr_country_flag = saf_duncan_gov_general
		set_country_flag = saf_jansen_gov_general
	}
}

### Extra Events

# International Socialist League
country_event = {
	id = saf.100
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.100" }
	title = saf.100.t
	desc = saf.100.d
	picture = GFX_report_event_iww_demonstration

	is_triggered_only = yes

	#minor_flavor = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}

	option = {
		name = saf.100.a
		if = {
			limit = {
				tag = SAF
			}
			add_stability = -0.02
			add_popularity = {
				ideology = radical_socialist
				popularity = 0.05
			}
		}
	}
}

# ISL and Apartheid
country_event = {
	id = saf.101
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.101" }
	title = saf.101.t
	desc = saf.101.d
	picture = GFX_report_event_iww_demonstration

	is_triggered_only = yes

	trigger = {
		tag = SAF
		OR = {
			has_idea = SAF_apartheid_1
			has_idea = SAF_apartheid_2
		}
	}

	option = {
		name = saf.101.a
		add_stability = -0.05
		add_popularity = {
			ideology = radical_socialist
			popularity = -0.1
		}
		hidden_effect = {
			country_event = { id = saf.102 days = 25 random = 15 }
		}
	}
}

# The Population Registration Act
country_event = {
	id = saf.102
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.102" }
	title = saf.102.t
	desc = saf.102.d
	picture = GFX_report_event_SAF_apartheid_2

	is_triggered_only = yes

	trigger = {
		tag = SAF
		OR = {
			has_idea = SAF_apartheid_1
			has_idea = SAF_apartheid_2
		}
		controls_all_owned_states = yes
	}

	option = {
		name = saf.102.a
		set_country_flag = SAF_apartheid_event_1
		add_stability = -0.05
		hidden_effect = {
			country_event = { id = saf.103 days = 40 random = 20 }
		}
	}
}

# Petty Apartheid
country_event = {
	id = saf.103
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.103" }
	title = saf.103.t
	desc = saf.103.d
	picture = GFX_report_event_SAF_crowd_1

	is_triggered_only = yes

	trigger = {
		tag = SAF
		OR = {
			has_idea = SAF_apartheid_1
			has_idea = SAF_apartheid_2
		}
		controls_all_owned_states = yes
	}

	option = {
		name = saf.103.a
		set_country_flag = SAF_apartheid_event_2
		add_stability = -0.05
		hidden_effect = {
			country_event = { id = saf.104 days = 60 random = 30 }
		}
	}
}

# The Group Areas Act
country_event = {
	id = saf.104
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.104" }
	title = saf.104.t
	desc = saf.104.d
	picture = GFX_report_event_SAF_apartheid_1

	is_triggered_only = yes

	trigger = {
		tag = SAF
		has_idea = SAF_apartheid_1
		controls_all_owned_states = yes
	}

	option = {
		name = saf.104.a
		set_country_flag = SAF_apartheid_event_3
		add_stability = -0.08
		hidden_effect = {
			country_event = { id = saf.105 days = 60 random = 30 }
		}
	}
}

# The Native Trust and Homeland Act
country_event = {
	id = saf.105
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.105" }
	title = saf.105.t
	desc = saf.105.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	trigger = {
		tag = SAF
		has_idea = SAF_apartheid_1
		controls_all_owned_states = yes
	}

	option = {
		name = saf.104.a
		clr_country_flag = SAF_apartheid_event_1
		clr_country_flag = SAF_apartheid_event_2
		clr_country_flag = SAF_apartheid_event_3
		add_stability = -0.10
	}
}

### End of original events

country_event = { #Race in South Africa
	id = saf.106
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.106" }
	title = saf.106.t
	desc = saf.106.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = {
		name = saf.106.a
		add_political_power = -10
		hidden_effect = {
			country_event = {
				id = saf.2
				days = 2
			}
		}
	}
}

country_event = { #Clements Kadalie returns to South Africa
	id = saf.107
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.107" }
	title = saf.107.t
	desc = saf.107.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = {
		name = saf.107.a
		add_popularity = { ideology = syndicalist popularity = 0.05 }
		add_political_power = 25
	}
}

country_event = { #Opening of the Johannesburg Convention
	id = saf.108
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.108" }
	title = saf.108.t
	desc = saf.108.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			country_event = { id = saf.109 days = 7 }
		}
	}

	option = {
		name = saf.108.a
		add_popularity = { ideology = syndicalist popularity = 0.05 }
		add_stability = 0.05
	}
}

country_event = { #Conflict over the legislative branch
	id = saf.109
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.109" }
	title = saf.109.t
	desc = saf.109.d
	picture = GFX_report_event_SAF_black_protest
	
	immediate = {
		hidden_effect = {
			country_event = { id = saf.110 days = 14 }
		}
	}

	is_triggered_only = yes

	option = { #ISL option
		name = saf.109.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0 
				has_game_rule = { rule = SAF_politic option = SAF_POLITIC_KADALIE }
			}
		}
		add_ideas = SAF_idea_syndicalist_government_isl
		add_popularity = { ideology = radical_socialist popularity = 0.05 }
		add_political_power = 25
	}
	
	option = { #ICU option
		name = saf.109.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0 
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_LAGUMA }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_RADSOC_GAMER }
				}
			}
		}
		add_ideas = SAF_idea_syndicalist_government_icu
		add_popularity = { ideology = syndicalist popularity = 0.05 }
		add_political_power = 25
	}
}

country_event = { #Conflict over the legislative branch
	id = saf.110
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.110" }
	title = saf.110.t
	desc = saf.110.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			country_event = { id = saf.111 days = 14 }
		}
	}

	option = { #ISL option
		name = saf.110.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0 
				has_game_rule = { rule = SAF_politic option = SAF_POLITIC_KADALIE }
			}
		}
		if = {
			limit = {
				has_idea = SAF_idea_syndicalist_government_isl
			}
			swap_ideas = { add_idea = SAF_idea_syndicalist_government_isl_2 remove_idea = SAF_idea_syndicalist_government_isl }
		}
		else = {
			swap_ideas = { add_idea = SAF_idea_syndicalist_government_icu_2 remove_idea = SAF_idea_syndicalist_government_icu }
		}
		add_popularity = { ideology = radical_socialist popularity = 0.05 }
		add_political_power = 25
	}
	
	option = { #ICU option
		name = saf.110.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0 
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_LAGUMA }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_RADSOC_GAMER }
				}
			}
		}
		add_popularity = { ideology = syndicalist popularity = 0.05 }
		add_political_power = 25
	}
}

country_event = { #Conflict over the legislative branch
	id = saf.111
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.111" }
	title = saf.111.t
	desc = saf.111.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #ISL option
		name = saf.111.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0 
				has_game_rule = { rule = SAF_politic option = SAF_POLITIC_KADALIE }
			}
		}
		if = {
			limit = {
				has_idea = SAF_idea_syndicalist_government_isl_2
			}
			swap_ideas = { add_idea = SAF_idea_syndicalist_government_isl_2_isl remove_idea = SAF_idea_syndicalist_government_isl_2 }
		}
		else_if = {
			limit = {
				has_idea = SAF_idea_syndicalist_government_isl
			}
			swap_ideas = { add_idea = SAF_idea_syndicalist_government_isl_isl remove_idea = SAF_idea_syndicalist_government_isl }
		}
		else_if = {
			limit = {
				has_idea = SAF_idea_syndicalist_government_icu_2
			}
			swap_ideas = { add_idea = SAF_idea_syndicalist_government_icu_2_isl remove_idea = SAF_idea_syndicalist_government_icu_2 }
		}
		else_if = {
			limit = {
				has_idea = SAF_idea_syndicalist_government_icu
			}
			swap_ideas = { add_idea = SAF_idea_syndicalist_government_icu_isl remove_idea = SAF_idea_syndicalist_government_icu }
		}
		add_popularity = { ideology = radical_socialist popularity = 0.05 }
		add_political_power = 25
	}
	
	option = { #ICU option
		name = saf.111.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0 
				OR = {
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_LAGUMA }
					has_game_rule = { rule = SAF_politic option = SAF_POLITIC_RADSOC_GAMER }
				}
			}
		}
		if = {
			limit = {
				has_idea = SAF_idea_syndicalist_government_isl_2
			}
			swap_ideas = { add_idea = SAF_idea_syndicalist_government_isl_2_icu remove_idea = SAF_idea_syndicalist_government_isl_2 }
		}
		else_if = {
			limit = {
				has_idea = SAF_idea_syndicalist_government_isl
			}
			swap_ideas = { add_idea = SAF_idea_syndicalist_government_isl_icu remove_idea = SAF_idea_syndicalist_government_isl }
		}
		else_if = {
			limit = {
				has_idea = SAF_idea_syndicalist_government_icu_2
			}
			swap_ideas = { add_idea = SAF_idea_syndicalist_government_icu_2_icu remove_idea = SAF_idea_syndicalist_government_icu_2 }
		}
		else_if = {
			limit = {
				has_idea = SAF_idea_syndicalist_government_icu
			}
			swap_ideas = { add_idea = SAF_idea_syndicalist_government_icu_icu remove_idea = SAF_idea_syndicalist_government_icu }
		}
		add_popularity = { ideology = syndicalist popularity = 0.05 }
		add_political_power = 25
	}
}

country_event = { #ISL wins
	id = saf.112
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.112" }
	title = saf.112.t
	desc = saf.112.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	
	trigger = {
		OR = {
			has_idea = SAF_idea_syndicalist_government_isl_2_isl
			has_idea = SAF_idea_syndicalist_government_isl_isl
			has_idea = SAF_idea_syndicalist_government_icu_isl
		}
	}

	option = { #ISL option
		name = saf.112.a
		ai_chance = { factor = 50 }
		set_politics = {
			ruling_party = radical_socialist
			elections_allowed = no
		}
		remove_all_minister_types = yes
		add_ideas = {
			SAF_Walter_Madeley_hog_sde
			SAF_Bram_Fischer_for_rso
			SAF_Lazar_Bach_eco_rso
			SAF_Douglas_Wolton_sec_rso
		}
		add_popularity = { ideology = radical_socialist popularity = 0.1 }
		hidden_effect = {
			country_event = { id = saf.114 days = 40 }
		}
	}
}

country_event = { #ICU wins
	id = saf.113
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.113" }
	title = saf.113.t
	desc = saf.113.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_idea = SAF_idea_syndicalist_government_isl_2_isl
			has_idea = SAF_idea_syndicalist_government_isl_isl
			has_idea = SAF_idea_syndicalist_government_icu_isl
		}
	}

	option = { #ICU option
		name = saf.113.a
		ai_chance = { factor = 50 }
		set_politics = {
			ruling_party = syndicalist
			elections_allowed = no
		}
		remove_all_minister_types = yes
		add_ideas = {
			SAF_Solomon_Sachs_hog_syn
			SAF_Yusuf_Dadoo_for_rso
			SAF_Thabo_Mofutsanyana_eco_syn
			SAF_James_La_Guma_sec_tot
		}
		add_popularity = { ideology = syndicalist popularity = 0.1 }
		hidden_effect = {
			set_cosmetic_tag = SAF_SOC
			country_event = { id = miscsaf.1 days = 5 } 
		}
	}
}

country_event = { #La Guma is the new chairman of the ICU
	id = saf.114
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.114" }
	title = saf.114.t
	desc = saf.114.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	trigger = {
		has_government = radical_socialist
	}

	option = { #Good for him
		name = saf.114.a
		add_popularity = { ideology = syndicalist popularity = -0.2 }
		add_popularity = { ideology = totalist popularity = 0.2 }
		hidden_effect = { country_event = { id = saf.115 days = 80 } }
	}
}

country_event = { #La Guma denounces ISL
	id = saf.115
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.115" }
	title = saf.115.t
	desc = saf.115.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #Whatever
		name = saf.115.a
		add_stability = -0.1
		add_popularity = { ideology = radical_socialist popularity = -0.05 }
		add_popularity = { ideology = totalist popularity = 0.05 }
	}
}

country_event = { #Amandla awethu! The South African people triumph over the false socialists!
	id = saf.116
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.116" }
	title = saf.116.t
	desc = saf.116.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #Amandla!
		name = saf.116.a
		ai_chance = { 
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = SAF_politic
					option = SAF_POLITIC_RADSOC_GAMER
				}
			}
		}
		
		set_politics = {
			ruling_party = totalist
			elections_allowed = no
		}
		SAF_implement_native_leaders = yes
		remove_all_minister_types = yes
		add_ideas = {
			SAF_James_La_Guma_hog_tot
			SAF_Goolam_Gool_for_tot
			SAF_Thabo_Mofutsanyana_eco_syn
			SAF_Moses_Kotane_sec_tot
		}
		add_popularity = { ideology = totalist popularity = 0.1 }
		hidden_effect = { 
			set_cosmetic_tag = SAF_SOC
			country_event = { id = saf.117 days = 120 } 
			country_event = { id = saf.119 days = 60 }
		}
	}
	
	option = { #The army and the ISL militias win by a narrow margin!
		name = saf.116.b
		ai_chance = { 
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = SAF_politic
					option = SAF_POLITIC_LAGUMA
				}
			}
		}
		
		add_popularity = { ideology = totalist popularity = -0.3 }
		add_popularity = { ideology = radical_socialist popularity = 0.2 }
	}
}

country_event = {#Africanize Placenames
	id = saf.117
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.117" }
	title = saf.117.t
	desc = saf.117.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	trigger = { 
		has_government = totalist
	}

	option = { #Good!
		name = saf.117.a
		542 = {
			set_state_name = "Botswana"
		}
		545 = {
			set_state_name = "Munhumutapa"
		}
		719 = {
			set_state_name = "Zululand"
		}
		947 = {
			set_state_name = "Free State"
		}
		set_province_name = {
			id = 1468
			name = "Itheku"
		}
		set_province_name = {
			id = 4859
			name = "Egoli"
		}
		set_province_name = {
			id = 5231
			name = "Mangaung"
		}
		set_province_name = {
			id = 8214
			name = "Gaborone"
		}
		set_province_name = {
			id = 10400
			name = "Tshwane"
		}
		set_province_name = {
			id = 10668
			name = "Mafikeng"
		}
		set_province_name = {
			id = 13803
			name = "Haarare"
		}
		set_province_name = {
			id = 13764
			name = "Emonti"
		}
		set_province_name = {
			id = 13800
			name = "Umgungundlovu"
		}
	}
}

country_event = {#White flight
	id = saf.118
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.118" }
	title = saf.118.t
	desc = saf.118.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #Reactionary pigs
		name = saf.118.a
		random_owned_state = {
			prioritize = { 275 681 }
			limit = {
				industrial_complex > 0
			}
			set_temp_variable = { SAF_first_state = THIS }
			remove_building = {
				type = industrial_complex
				level = 1
			}
		}
		random_owned_state = {
			limit = {
				industrial_complex > 0
				NOT = { state = var:SAF_first_state }
			}
			prioritize = {
				275 681
			}
			remove_building = {
				type = industrial_complex
				level = 1
			}
		}
		add_timed_idea = {
			idea = SAF_idea_white_flight
			days = 180
		}
		add_research_slot = -1
	}
}

country_event = {#White flight
	id = saf.119
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.119" }
	title = saf.119.t
	desc = saf.119.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	trigger = { 
		has_government = totalist
	}

	option = { #Reactionary pigs
		name = saf.119.a
		random_owned_state = {
			prioritize = { 275 681 }
			limit = {
				industrial_complex > 1
			}
			set_temp_variable = { SAF_first_state = THIS }
			remove_building = {
				type = industrial_complex
				level = 2
			}
		}
		random_owned_state = {
			prioritize = { 275 681 }
			limit = {
				industrial_complex > 0
				NOT = { state = var:SAF_first_state }
			}
			remove_building = {
				type = industrial_complex
				level = 1
			}
		}
		add_timed_idea = {
			idea = SAF_idea_white_flight
			days = 365
		}
	}
}

country_event = {#The Cape National Party takes over National National
	id = saf.120
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.120" }
	title = saf.120.t
	desc = saf.120.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	trigger = { 
		NOT = {
			has_socialist_government = yes
			has_government = authoritarian_democrat
		}
	}

	option = { #Perturbing
		name = saf.120.a
		set_country_flag = saf_national_turned_pataut
		custom_effect_tooltip = SAF_tt_NP_becomes_aut
		hidden_effect = {
			set_temp_variable = { SAF_moderate_to_extremist_value = party_popularity@authoritarian_democrat }
			set_temp_variable = { SAF_moderate_to_extremist_value_reverse = 0 }
			subtract_from_temp_variable = { var = SAF_moderate_to_extremist_value_reverse value = party_popularity@authoritarian_democrat }
			add_popularity = { ideology = authoritarian_democrat popularity = SAF_moderate_to_extremist_value_reverse }
			add_popularity = { ideology = paternal_autocrat popularity = SAF_moderate_to_extremist_value }
		}
	}
}

country_event = {#Dingane's day - Union of South Africa's national holiday introduction event
	id = saf.121
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.121" }
	title = saf.121.t
	desc = saf.121.d
	picture = GFX_report_event_SAF_black_protest
	
	immediate = {
		hidden_effect = {
			country_event = { id = saf.122 days = 365 }
		}	
	}

	is_triggered_only = yes
	trigger = { 
		NOT = {
			has_socialist_government = yes
		}
	}

	option = { #Hurrah!
		name = saf.121.a
		add_stability = 0.01
	}
}

country_event = {#Dingane's day - Union of South Africa's national holiday introduction event
	id = saf.122
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.122" }
	title = saf.122.t
	desc = saf.122.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	trigger = { 
		NOT = {
			has_socialist_government = yes
		}
	}

	option = { #Hurrah!
		name = saf.122.a
		add_stability = 0.01
		hidden_effect = {
			if = {
				limit = {
					date > 1937.01.01
					date < 1938.01.01
				}
				country_event = { id = saf.122 days = 730 }
			}
			else = {
				country_event = { id = saf.122 days = 365 }
			}
		}
	}
}

# GetYear elections - standard racist elections with the Coloured Enfranchisement Act not being passed
country_event = {
	id = saf.123
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.123" }
	title = saf.123.t
	desc = saf.123.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = {
		has_country_flag = saf_flag_elections_held
		NOT = {
			has_completed_focus = SAF_coloured_enfranchisement_act
			#has_country_flag = SAF_national_conservative_party_formed
		}
	}
	
	option = { #Jan Smuts and the SAP are victorious - social conservative
		name = saf.123.a
		trigger = {
			NOT = {
				has_completed_focus = SAF_gerrymander_districts
				has_country_flag = SAF_national_conservative_party_formed
			}
		}
		ai_chance = {
			factor = 40
		}
		if = {
			limit = {
				social_conservative < 0.5
			}
			add_popularity = {
				ideology = social_conservative
				popularity = 0.07
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = social_conservative
					has_cosmetic_tag = SAF_republic
				}
			}
			SAF_move_governor_general_soccon = yes
		}
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		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
		}
	}
	
	option = { #JBM Hertzog and National are victorious
		name = saf.123.b
		ai_chance = {
			factor = 50
		}
		trigger = {
			NOT = {
				has_country_flag = saf_national_turned_pataut
			}
		}
		if = {
			limit = {
				authoritarian_democrat < 0.5
			}
			add_popularity = {
				ideology = authoritarian_democrat
				popularity = 0.07
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = authoritarian_democrat
					has_cosmetic_tag = SAF_republic
				}
			}
			SAF_move_governor_general_authdem = yes
		}
		set_politics = {
			ruling_party = authoritarian_democrat
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		if = {
			limit = {
				NOT = {
					has_country_flag = SAF_Hertzog_passed_away
				}
			}
			add_ideas = SAF_James_Hertzog_hog_ade
		}
		else = {
			add_ideas = SAF_Nicolaas_Havenga_hog_ade
		}
		add_ideas = {
			SAF_Eric_H_Louw_naaf_ade
			SAF_Nicolaas_Havenga_eco_ade
			SAF_F_C_Erasmus_sec_pau
		}
		if = {
			limit = {
				date > 1943.01.01 
			}
			hidden_effect = { country_event = { id = saf.304 days = 90 random = 30 } }
		}
	}
	
	option = { #DF Malan and National are victorious
		name = saf.123.b
		ai_chance = {
			factor = 50
		}
		trigger = {
			OR = {
				has_country_flag = saf_national_turned_pataut
				AND = {
					has_country_flag = SAF_PNP_split
					OR = {
						has_country_flag = SAF_fusion
						has_country_flag = SAF_fusion_broke
					}
				}
			}
		}
		if = {
			limit = {
				paternal_autocrat < 0.5
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = 0.07
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = paternal_autocrat
					has_cosmetic_tag = SAF_republic
				}
			}
			SAF_move_governor_general_pataut = yes
		}
		set_politics = {
			ruling_party = paternal_autocrat
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		if = {
			limit = {
				has_country_flag = SAF_PNP_split
			}
			add_ideas = {
				SAF_D_F_Malan_hog_pau
				SAF_T_E_Doenges_naaf_pau
				SAF_J_G_Strijdom_eco_pau
				SAF_F_C_Erasmus_sec_pau
			}
		}
		else = {
			add_ideas = {
				SAF_D_F_Malan_hog_pau
				SAF_Eric_H_Louw_naaf_ade
				SAF_Nicolaas_Havenga_eco_ade
				SAF_F_C_Erasmus_sec_pau
			}
		}
		
		if = {
			limit = {
				date > 1943.01.01 
			}
			hidden_effect = { country_event = { id = saf.304 days = 90 random = 30 } }
		}
		hidden_effect = {
			country_event = { id = saf.50 days = 30 } #Natal Covenant
		}
	}
	
	option = { #JGN Strauss and the Conservative Party form a coalition with National - soccon-authdem coalition
		name = saf.123.c
		trigger = {
			NOT = {
				has_completed_focus = SAF_gerrymander_districts
			}
			has_country_flag = SAF_national_conservative_party_formed
		}
		ai_chance = {
			factor = 30
		}
		if = {
			limit = {
				social_conservative < 0.4
			}
			add_popularity = {
				ideology = social_conservative
				popularity = 0.07
			}
		}
		if = {
			limit = {
				social_conservative > 0.5
			}
			add_popularity = {
				ideology = social_conservative
				popularity = -0.07
			}
		}
		if = {
			limit = {
				authoritarian_democrat < 0.5
			}
			add_popularity = {
				ideology = authoritarian_democrat
				popularity = 0.05
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = social_conservative
					has_cosmetic_tag = SAF_republic
				}
			}
			SAF_move_governor_general_soccon = yes
		}
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		add_ideas = {
			SAF_J_G_N_Strauss_hog_sco
			SAF_Pieter_van_der_Byl_naaf_sco
			SAF_Nicolaas_Havenga_eco_ade
			SAF_D_F_Malan_sec_pau
		}
	}
	
	option = { #JGN Strauss and the Conservative Party form a coalition with the SAP - soccon-soclib coalition (basically old alliance)
		name = saf.123.e
		trigger = {
			NOT = {
				has_completed_focus = SAF_gerrymander_districts
			}
			has_country_flag = SAF_national_conservative_party_formed
		}
		ai_chance = {
			factor = 20
		}
		if = {
			limit = {
				social_conservative < 0.4
			}
			add_popularity = {
				ideology = social_conservative
				popularity = 0.07
			}
		}
		if = {
			limit = {
				social_conservative > 0.5
			}
			add_popularity = {
				ideology = social_conservative
				popularity = -0.07
			}
		}
		if = {
			limit = {
				social_liberal < 0.5
			}
			add_popularity = {
				ideology = social_liberal
				popularity = 0.05
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = social_conservative
					has_cosmetic_tag = SAF_republic
				}
			}
			SAF_move_governor_general_soccon = yes
		}
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		add_ideas = {
			SAF_J_G_N_Strauss_hog_sco
			SAF_Pieter_van_der_Byl_naaf_sco
			SAF_Jan_Hendrik_Hofmeyr_eco_sli
			SAF_Deneys_Reitz_sec_sco
		}
	}
	
	option = { #Jan Smuts and the SAP/United form a coalition with the Labour - soccon-socdem coalition
		name = saf.123.f
		trigger = {
			NOT = {
				has_completed_focus = SAF_gerrymander_districts
				has_country_flag = SAF_national_conservative_party_formed
			}
			has_country_flag = SAF_flag_labour_split_mended
		}
		ai_chance = {
			factor = 10
		}
		if = {
			limit = {
				social_conservative < 0.4
			}
			add_popularity = {
				ideology = social_conservative
				popularity = 0.07
			}
		}
		if = {
			limit = {
				social_conservative > 0.5
			}
			add_popularity = {
				ideology = social_conservative
				popularity = -0.07
			}
		}
		if = {
			limit = {
				social_democrat < 0.5
			}
			add_popularity = {
				ideology = social_democrat
				popularity = 0.05
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = social_conservative
					has_cosmetic_tag = SAF_republic
				}
			}
			SAF_move_governor_general_soccon = yes
		}
		set_politics = {
			ruling_party = social_conservative
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		add_ideas = {
			SAF_J_G_N_Strauss_hog_sco
			SAF_Jan_Hendrik_Hofmeyr_naaf_sli
			SAF_Walter_Madeley_eco_sde
			SAF_Deneys_Reitz_sec_sco
		}
	}
}

# GetYear elections - after the coloured population has the unrestricted vote
country_event = {
	id = saf.124
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.124" }
	title = saf.124.t
	desc = saf.124.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes
	trigger = {
		has_completed_focus = SAF_coloured_enfranchisement_act
	}
	
	option = { #Jan Smuts and the SAP are victorious - social liberal
		name = saf.123.a
		ai_chance = {
			factor = 40
		}
		if = {
			limit = {
				social_liberal < 0.5
			}
			add_popularity = {
				ideology = social_liberal
				popularity = 0.07
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = social_liberal
				}
			}
			SAF_move_governor_general_soclib = yes
		}
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		if = {
			limit = {
				has_country_flag = saf_native_native_minister
			}
			add_ideas = {
				SAF_Jan_C_Smuts_hog_sco
				SAF_Davidson_D_T_Jabavu_naaf_sli
				SAF_Alan_Paton_eco_sli
				SAF_Jan_Hendrik_Hofmeyr_sec_sli
			}
		}
		else = {
			add_ideas = {
				SAF_Jan_C_Smuts_hog_sco
				SAF_Jan_Hendrik_Hofmeyr_naaf_sli
				SAF_Alan_Paton_eco_sli
				SAF_Deneys_Reitz_sec_sco
			}
		}
		hidden_effect = {
			country_event = { id = saf.125 }
		}
	}
	
	option = { #Walter Madeley and the South African Labour Party
		name = saf.124.b
		trigger = {
			has_country_flag = SAF_socdems_competitive_and_national_crumbled
		}
		ai_chance = {
			factor = 50
		}
		if = {
			limit = {
				social_democrat < 0.2
			}
			add_popularity = {
				ideology = social_democrat
				popularity = 0.3
			}
		}
		else_if = {
			limit = {
				social_democrat < 0.5
			}
			add_popularity = {
				ideology = social_democrat
				popularity = 0.07
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = social_democrat
				}
			}
			SAF_move_governor_general_socdem = yes
		}
		set_politics = {
			ruling_party = social_democrat
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		if = {
			limit = {
				has_country_flag = saf_native_native_minister
			}
			add_ideas = {
				SAF_Walter_Madeley_hog_sde
				SAF_P_ka_Isaka_Seme_naaf_sde
				SAF_Jimmy_Green_eco_sde
				SAF_Thomas_Boydell_sec_sde
			}
		}
		add_ideas = {
			SAF_Walter_Madeley_hog_sde
			SAF_M_J_van_den_Berg_naaf_sde
			SAF_Jimmy_Green_eco_sde
			SAF_Thomas_Boydell_sec_sde
		}
		hidden_effect = {
			country_event = { id = saf.125 }
		}
	}
	
	option = { #SAP with Volksparty
		name = saf.124.c
		trigger = {
			has_country_flag = SAF_socdems_competitive_and_national_crumbled
		}
		ai_chance = {
			factor = 10
		}
		if = {
			limit = {
				social_conservative < 0.4
			}
			add_popularity = {
				ideology = social_conservative
				popularity = 0.07
			}
		}
		if = {
			limit = {
				social_conservative > 0.5
			}
			add_popularity = {
				ideology = social_conservative
				popularity = -0.07
			}
		}
		if = {
			limit = {
				authoritarian_democrat < 0.5
			}
			add_popularity = {
				ideology = authoritarian_democrat
				popularity = 0.05
			}
		}
		if = {
			limit = {
				NOT = {
					has_government = social_liberal
				}
			}
			SAF_move_governor_general_soclib = yes
		}
		set_politics = {
			ruling_party = social_liberal
			elections_allowed = yes
		}
		remove_all_minister_types = yes
		if = {
			limit = {
				has_country_flag = saf_native_native_minister
			}
			add_ideas = {
				SAF_Jan_C_Smuts_hog_sco
				SAF_Davidson_D_T_Jabavu_naaf_sli
				SAF_Nicolaas_Havenga_eco_ade
				SAF_Deneys_Reitz_sec_sco
			}
		}
		else = {
			add_ideas = {
				SAF_Jan_C_Smuts_hog_sco
				SAF_Alan_Paton_naaf_sli
				SAF_Nicolaas_Havenga_eco_ade
				SAF_Deneys_Reitz_sec_sco
			}
		}
		hidden_effect = {
			country_event = { id = saf.125 }
		}
	}
}

country_event = {#First Coloured person in parliament
	id = saf.125
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.125" }
	title = saf.125.t
	desc = saf.125.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #Congratulations
		name = saf.125.a
		add_stability = 0.01
		add_popularity = {
			ideology = social_liberal
			popularity = 0.02
		}
		hidden_effect = {
			country_event = { id = saf.126 }
			hidden_effect = { country_event = { id = saf.172 days = 365 random = 100 } }
		}
		set_country_flag = saf_byelection_check
	}
}

country_event = {#Political shift as a result of the CEA
	id = saf.126
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.126" }
	title = saf.125.t
	desc = saf.125.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	fire_only_once = yes

	option = { #The People have Spoken
		name = saf.125.a
		set_country_flag = SAF_socdems_competitive_and_national_crumbled
		add_stability = 0.01
		add_popularity = {
			ideology = social_democrat
			popularity = 0.1
		}
		if = {
			limit = {
				authoritarian_democrat > 0.1
			}
			add_popularity = {
				ideology = authoritarian_democrat
				popularity = -0.1
			}
		}
		if = {
			limit = {
				paternal_autocrat > 0.1
			}
			add_popularity = {
				ideology = paternal_autocrat
				popularity = -0.1
			}
		}
	}
}

country_event = {#Anti-War protests in Bloemfontein
	id = saf.127
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.127" }
	title = saf.127.t
	picture = GFX_report_event_HOL_syndicalist_rally
	
	desc = {
		text = saf.127.d_socialist
		trigger = {
			has_war_with = FRA
		}
	}
	desc = {
		text = saf.127.d_nationalist
		trigger = {
			has_war_with = GER
		}
	}

	trigger = {
		OR = {
			tag = SAF
			AND = { 
				tag = SFR
				has_cosmetic_tag = SAF_federation
			}
		}
		has_socialist_government = no
		OR = {
			has_war_with = FRA
			has_war_with = GER
		}
	}
	fire_only_once = yes

	option = { #Uh, ok...
		name = saf.127.a
		add_war_support = -0.2
		custom_effect_tooltip = SAF_tt_internal_resistance_enabled
		set_country_flag = SAF_internal_resistance_enebled
		if = {
			limit = {
				has_country_flag = SAF_ossewabrandwag_founded
			}
			set_variable = { saf_ob_strength = 0.2 }
			hidden_effect = { activate_mission = SAF_control_the_ob }
		}
		set_variable = { saf_icu_strength = 0.2 }
		hidden_effect = { activate_mission = SAF_control_the_icu }
	}
}

country_event = { #South Africa demands we retreat from Zambia
	id = saf.128
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.128" }
	title = saf.128.t
	desc = saf.128.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #Concede
		name = saf.128.a
		ai_chance = {
			factor = 95
			modifier = {
				factor = 0
				is_in_faction = yes
			}
		}
		FROM = { country_event = saf.129 }
		COG = {
			every_owned_state = {
				limit = {
					OR = {
						is_core_of = ZAM
						is_core_of = MLW
					}
				}
				FROM = { transfer_state = PREV }
			}
		}
	}
	
	option = { #Resist
		name = saf.128.b
		ai_chance = {
			factor = 5
		}
		FROM = { country_event = saf.130 }
	}
}

country_event = { #COG concedes
	id = saf.129
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.129" }
	title = saf.129.t
	desc = saf.129.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #Good
		name = saf.129.a
		effect_tooltip = {
			COG = {
				every_owned_state = {
					limit = {
						OR = {
							is_core_of = ZAM
							is_core_of = MLW
						}
					}
					ROOT = { transfer_state = PREV }
				}
			}
		}
	}
}

country_event = { #[FROM.GetNameDefCap] refuses to retreat from their territory
	id = saf.130
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.130" }
	title = saf.130.t
	desc = saf.130.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #Attack
		name = saf.130.a
		ai_chance = {
			factor = 95
			modifier = {
				factor = 0
				FROM = {
					is_in_faction = yes
				}
			}
		}
		trigger = {
			can_declare_war_on = FROM
		}
		create_wargoal = {
			type = annex_everything
			target = FROM
		}
	}
	
	option = { #Go Back
		name = saf.130.b
		ai_chance = {
			factor = 5
		}
		add_political_power = -25
	}
}

country_event = { #South Africa demands we retreat from Zambia
	id = saf.131
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.131" }
	title = saf.131.t
	desc = saf.131.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #Concede
		name = saf.128.a
		ai_chance = {
			factor = 95
			modifier = {
				factor = 0
				is_in_faction = yes
			}
		}
		FROM = { country_event = saf.132 }
		KIV = {
			every_owned_state = {
				limit = {
					OR = {
						is_core_of = KEN
						is_core_of = UGA
					}
				}
				FROM = { transfer_state = PREV }
			}
		}
	}
	
	option = { #Resist
		name = saf.128.b
		ai_chance = {
			factor = 5
		}
		FROM = { country_event = saf.130 }
	}
}

country_event = { #COG concedes
	id = saf.132
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.132" }
	title = saf.132.t
	desc = saf.132.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #Good
		name = saf.132.a
		effect_tooltip = {
			KIV = {
				every_owned_state = {
					limit = {
						OR = {
							is_core_of = KEN
							is_core_of = UGA
						}
					}
					ROOT = { transfer_state = PREV }
				}
			}
		}
	}
}

country_event = { #South Africa demands we retreat from Jubaland
	id = saf.133
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.133" }
	title = saf.133.t
	desc = saf.133.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #Concede
		name = saf.128.a
		ai_chance = {
			factor = 95
			modifier = {
				factor = 0
				is_in_faction = yes
			}
		}
		FROM = { country_event = saf.134 }
		SOM = {
			every_owned_state = {
				limit = { is_core_of = KEN }
				FROM = { transfer_state = PREV }
			}
		}
	}
	
	option = { #Resist
		name = saf.128.b
		ai_chance = {
			factor = 5
		}
		FROM = { country_event = saf.130 }
	}
}

country_event = { #SOM concedes
	id = saf.134
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.134" }
	title = saf.134.t
	desc = saf.134.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes

	option = { #Good
		name = saf.134.a
		effect_tooltip = {
			SOM = {
				every_owned_state = {
					limit = { is_core_of = KEN }
					SAF = { transfer_state = PREV }
				}
			}
		}
	}
}

# Return lands to the UK? - copied edited from the similar event in Australia, credit to Rylock
country_event = {
	id = saf.135
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.135" }
	title = saf.135.t
	desc = saf.135.d
	picture = GFX_report_event_AST_army1

	trigger = {
		tag = SAF
		has_completed_focus = SAF_enact_smuts_doctrine
		country_exists = GBR
		is_in_faction_with = GBR
		has_war = no
		NOT = {
			has_country_flag = SAF_no_return_GBR
		}
		any_of = {
			array = SAF.potential_colonies_to_return
			owns_state = var:v
			has_full_control_of_state = var:v
		}
	}

	mean_time_to_happen = {
		months = 3
	}

	option = {
		name = saf.135.a
		ai_chance = {
			factor = 100
		}
		GBR = {
			country_event = {
				id = saf.136
				days = 2
			}
		}
	}
	option = {
		name = saf.135.b
		ai_chance = {
			factor = 0
		}
		set_country_flag = SAF_no_return_GBR
		add_stability = -0.05
	}
}

# UK considers whether they want the lands
country_event = {
	id = saf.136
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.136" }
	title = saf.136.t
	desc = saf.136.d
	picture = GFX_report_event_AST_army1

	is_triggered_only = yes

	trigger = {
		is_in_faction_with = SAF
	}

	option = {
		name = saf.136.a #Yes, please!
		ai_chance = {
			factor = 90
		}
		every_state = {
			limit = {
				has_state_flag = SAF_the_empire_strikes_back
				is_owned_by = SAF
				is_controlled_by = SAF
			}
			ROOT = {
				transfer_state = PREV
			}
			if = {
				limit = {
					is_claimed_by = SAF
				}
				remove_claim_by = SAF
			}
		}
		every_state = {
			limit = {
				has_state_flag = SAF_the_empire_strikes_back
				NOT = {
					is_owned_by = SAF
					is_controlled_by = SAF
				}
			}
			if = {
				limit = {
					is_claimed_by = SAF
				}
				remove_claim_by = SAF
				add_claim_by = GBR
			}
		}
		SAF = {
			country_event = saf.137
		}
	}
	option = {
		name = saf.136.b #They fought for it, they can keep it
		ai_chance = {
			factor = 10
		}
		add_opinion_modifier = {
			target = FROM
			modifier = KR_approves_of_govt
		}
		add_political_power = 100
		SAF = {
			country_event = saf.138
		}
	}
}

# They took the lands back
country_event = {
	id = saf.137
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.137" }
	title = saf.137.t
	desc = saf.137.d
	picture = GFX_report_event_AST_army1

	is_triggered_only = yes

	option = {
		name = saf.137.a
		add_political_power = 100
		add_stability = 0.050
		reverse_add_opinion_modifier = {
			target = GBR
			modifier = AST_returned_land
		}
	}
}

# They let us keep the lands
country_event = {
	id = saf.138
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.138" }
	title = saf.138.t
	desc = saf.138.d
	picture = GFX_report_event_AST_army1

	is_triggered_only = yes

	option = {
		name = saf.138.a
		set_country_flag = SAF_no_return_GBR
		add_opinion_modifier = {
			target = FROM
			modifier = KR_approves_of_govt
		}
		add_political_power = 100
	}
}


#SAF Hertzog attacks the Broederbond
country_event = {
	id = saf.139
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.139" }
	title = saf.139.t
	desc = saf.139.d
	picture = GFX_report_event_SAF_hertzog

	is_triggered_only = yes

	option = { #A wonderful idea
		name = saf.139.a
		ai_chance = { factor = 70 }
		add_popularity = { ideology = authoritarian_democrat popularity = 0.02 }
	}
	
	option = { #It only looks bad on him
		name = saf.139.b
		ai_chance = { factor = 30 }
		add_popularity = { ideology = paternal_autocrat popularity = 0.02 }
	}
}

#A Living Fossil
country_event = {
	id = saf.140
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.140" }
	title = saf.140.t
	desc = saf.140.d
	picture = GFX_report_event_ICE_Horses

	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes

	option = { #Extraordinary
		name = saf.140.a
		add_political_power = 5
	}
}

#Appointing a Commission
country_event = {
	id = saf.141
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.141" }
	title = saf.141.t
	desc = saf.141.d
	picture = GFX_report_event_SAF_parliament_3

	is_triggered_only = yes
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_completed_focus = SAF_implement_apartheid
		}
	}

	option = { #Henry Fagan
		name = saf.141.a
		ai_chance = { 
			factor = 50 
			modifier = {
				factor = 0
				has_authoritarian_government = yes
			}
		}
		custom_effect_tooltip = SAF_tt_more_progressive_commission
		hidden_effect = { country_event = { id = saf.142 days = 90 } }
	}
	
	option = { #Paul Sauer
		name = saf.141.b
		add_political_power = 5
		ai_chance = { 
			factor = 50 
			modifier = {
				factor = 0
				has_democratic_government = yes
			}
		}
		custom_effect_tooltip = SAF_tt_more_conservative_commission
		hidden_effect = { country_event = { id = saf.143 days = 90 } }
	}
}

#Fagan Commission conclusion
country_event = {
	id = saf.142
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.142" }
	title = saf.142.t
	desc = saf.142.d
	picture = GFX_report_event_SAF_parliament_3

	is_triggered_only = yes
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_completed_focus = SAF_implement_apartheid
		}
	}

	option = { #interesting
		name = saf.142.a
		if = {
			limit = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
			add_popularity = { ideology = social_liberal popularity = 0.05 }
		}
		else = {
			add_popularity = { ideology = social_conservative popularity = 0.05 }
		}
	}
}

#Sauer Commission conclusion
country_event = {
	id = saf.143
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.143" }
	title = saf.143.t
	desc = saf.143.d
	picture = GFX_report_event_SAF_parliament_3

	is_triggered_only = yes

	option = { #Henry Fagan
		name = saf.143.a
		custom_effect_tooltip = SAF_tt_more_progressive_commission
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.05 }
		}
		else_if = {
			limit = {
				has_government = national_populist
			}
			add_popularity = { ideology = national_populist popularity = 0.05 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.05 }
		}
	}
}

country_event = { #Hertzog ded, give right event
	id = saf.144
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.144" }
	is_triggered_only = yes
	hidden = yes

	option = {
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			country_event = { id = saf.145 }
		}
		else_if = {
			limit = {
				has_government = authoritarian_democrat
			}
			country_event = { id = saf.146 }
		}
		else = {
			country_event = { id = saf.147 }
		}
	}
}

#Hertzog passed away while not really relevant anymore
country_event = {
	id = saf.145
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.145" }
	title = saf.145.t
	desc = saf.145.d
	picture = GFX_report_event_SAF_hertzog

	is_triggered_only = yes

	option = { #RIP
		name = saf.143.a
		add_stability = -0.05
		set_country_flag = SAF_Hertzog_passed_away
	}
}

#Hertzog passed away while prime minister
country_event = {
	id = saf.146
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.146" }
	title = saf.146.t
	desc = saf.146.d
	picture = GFX_report_event_SAF_hertzog

	is_triggered_only = yes

	option = { #Havenga becomes the new prime minister
		name = saf.146.a
		ai_chance = { factor = 40 }
		add_stability = -0.1
		set_country_flag = SAF_Hertzog_passed_away
		add_ideas = SAF_Nicolaas_Havenga_hog_ade
	}
	
	option = { #Malan becomes the new prime minister
		name = saf.146.b
		ai_chance = { factor = 60 }
		add_stability = -0.1
		set_country_flag = SAF_Hertzog_passed_away
		set_country_flag = saf_national_turned_pataut
		add_ideas = SAF_D_F_Malan_hog_pau
		custom_effect_tooltip = SAF_tt_NP_becomes_aut
		hidden_effect = {
			SAF_move_governor_general_pataut = yes
			set_politics = {
				ruling_party = paternal_autocrat
				elections_allowed = yes
			}
			set_temp_variable = { SAF_conservative_to_liberal_value = party_popularity@authoritarian_democrat }
			set_temp_variable = { SAF_conservative_to_liberal_value_reverse = 0 }
			subtract_from_temp_variable = { var = SAF_conservative_to_liberal_value_reverse value = party_popularity@authoritarian_democrat }
			add_popularity = { ideology = authoritarian_democrat popularity = SAF_conservative_to_liberal_value_reverse }
			add_popularity = { ideology = paternal_autocrat popularity = SAF_conservative_to_liberal_value }
		}
		hidden_effect = {
			country_event = { id = saf.50 days = 30 } #Natal Covenant
		}
	}
}

#Hertzog passed away while leader of the opposition
country_event = {
	id = saf.147
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.147" }
	title = saf.147.t
	desc = saf.147.d
	picture = GFX_report_event_SAF_hertzog

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
		}
	}
	
	option = { #Malan becomes the new leader of the opposition
		name = saf.147.a
		ai_chance = { factor = 60 }
		add_stability = -0.05
		set_country_flag = SAF_Hertzog_passed_away
		set_country_flag = saf_national_turned_pataut
		custom_effect_tooltip = SAF_tt_NP_becomes_aut
		hidden_effect = {
			set_temp_variable = { SAF_conservative_to_liberal_value = party_popularity@authoritarian_democrat }
			set_temp_variable = { SAF_conservative_to_liberal_value_reverse = 0 }
			subtract_from_temp_variable = { var = SAF_conservative_to_liberal_value_reverse value = party_popularity@authoritarian_democrat }
			add_popularity = { ideology = authoritarian_democrat popularity = SAF_conservative_to_liberal_value_reverse }
			add_popularity = { ideology = paternal_autocrat popularity = SAF_conservative_to_liberal_value }
		}
	}
}

#Rise of the Regiment of the Stone
country_event = {
	id = saf.148
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.148" }
	title = saf.148.t
	desc = saf.148.d
	picture = GFX_report_event_african_soldiers

	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
		}
	}
	
	option = { #
		name = saf.148.a
		add_political_power = -5
		hidden_effect = { country_event = { id = saf.149 days = 30 } }
	}
}

#Regiment of the Stone hits Nelspruit
country_event = {
	id = saf.149
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.149" }
	title = saf.149.t
	desc = saf.149.d
	picture = GFX_report_event_portugal_navy_mutiny_prisoners

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
		}
	}
	
	option = { #Trap at prison
		name = saf.149.a
		ai_chance = { factor = 30 }
		add_political_power = -5
		hidden_effect = { country_event = { id = saf.150 days = 30 } }
	}
	
	option = { #Trap in Lydenburg
		name = saf.149.b
		ai_chance = { factor = 40 }
		add_political_power = -15
		hidden_effect = { country_event = { id = saf.151 days = 30 } }
	}
	
	option = { #Trap at border
		name = saf.149.c
		ai_chance = { factor = 30 }
		add_political_power = -5
		hidden_effect = { country_event = { id = saf.152 days = 30 } }
	}
}

#Regiment of the Stone trapped in Barberton
country_event = {
	id = saf.150
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.150" }
	title = saf.150.t
	desc = saf.150.d
	picture = GFX_report_event_african_soldiers

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
		}
	}
	
	option = { #Trapped!
		name = saf.150.a
		add_political_power = 10
		add_stability = 0.05
	}
}

#Regiment of the Stone hits Barberton, you were sitting in Lydenburg
country_event = {
	id = saf.151
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.151" }
	title = saf.151.t
	desc = saf.151.d
	picture = GFX_report_event_african_soldiers

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
		}
	}
	
	option = { #:(
		name = saf.151.a
		add_political_power = -10
		add_stability = -0.05
		hidden_effect = { country_event = { id = saf.153 days = 90 } }
	}
}

#Regiment of the Stone hits Barberton, you were sitting at the border
country_event = {
	id = saf.152
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.152" }
	title = saf.152.t
	desc = saf.152.d
	picture = GFX_report_event_african_soldiers

	is_triggered_only = yes
	
	trigger = {
		has_socialist_government = no
	}
	
	option = { #:(
		name = saf.152.a
		add_political_power = -10
		add_stability = -0.05
		hidden_effect = { country_event = { id = saf.153 days = 90 } }
	}
}

#Regiment of the Stone hits Piet Retief
country_event = {
	id = saf.153
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.153" }
	title = saf.153.t
	desc = saf.153.d
	picture = GFX_report_event_african_soldiers

	is_triggered_only = yes
	
	trigger = {
		has_socialist_government = no
	}
	
	option = { #:(
		name = saf.153.a
		add_political_power = -10
		add_stability = -0.05
		hidden_effect = { country_event = { id = saf.154 days = 90 } }
	}
}

#Regiment of the Stone is gone
country_event = {
	id = saf.154
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.154" }
	title = saf.154.t
	desc = saf.154.d
	picture = GFX_report_event_african_soldiers

	is_triggered_only = yes
	
	trigger = {
		has_socialist_government = no
	}
	
	option = { #:(
		name = saf.154.a
		add_political_power = -10
	}
}

#The Empire Exhibition 1936
country_event = {
	id = saf.155
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.155" }
	title = saf.155.t
	desc = saf.155.d
	picture = GFX_report_event_SAF_crowd_2
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	is_triggered_only = yes
	
	trigger = {
		has_socialist_government = no
	}
	
	option = { #Hip, hip, hurrah!
		name = saf.155.a
		add_stability = 0.01
	}
}

#Abolishing segregation causes overpopulation in urban areas
country_event = {
	id = saf.156
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.156" }
	title = saf.156.t
	desc = saf.156.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	
	option = { #This is problematic
		name = saf.156.a
		add_stability = -0.05
		add_ideas = SAF_idea_slum_formation
	}
}

#Land Restitution
country_event = {
	id = saf.157
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.157" }
	title = saf.157.t
	desc = saf.157.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	
	option = { #South Africa to South Africans
		name = saf.157.a
		add_political_power = 150
		add_stability = 0.05
		add_timed_idea = {
			idea = SAF_idea_new_farmers
			days = 600
		}
	}
}

#Death of George
country_event = {
	id = saf.158
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.158" }
	title = saf.158.t
	desc = saf.158.d
	picture = GFX_report_event_CAN_death_george

	is_triggered_only = yes
	
	option = { #The king is dead, long live the king
		name = saf.158.a
		add_political_power = -10
	}
}

# South Africa asks to join the Internationale (fired by focus)
country_event = {
	id = saf.159
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.159" }
	title = saf.159.t
	desc = saf.159.d
	picture = GFX_report_event_SAF_parliament_1

	is_triggered_only = yes

	option = {
		name = saf.159.a
		ai_chance = {
			factor = 99
		}
		add_political_power = 50
		effect_tooltip = {
			add_to_faction = SAF
		}
		add_opinion_modifier = {
			target = SAF
			modifier = KR_approves_of_govt
		}
		SAF = {
			country_event = {
				id = saf.160
				days = 3
			}
		}
	}
	option = {
		name = saf.159.b
		ai_chance = {
			factor = 1
		}
		add_political_power = -20
		SAF = {
			country_event = {
				id = saf.161
				days = 3
			}
		}
	}
}

# The Internationale admits South Africa join
country_event = {
	id = saf.160
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.160" }
	title = saf.160.t
	desc = saf.160.d
	picture = GFX_report_event_generic_diplomacy3

	is_triggered_only = yes

	option = {
		name = saf.160.a
		add_political_power = 50
		INT = {
			add_to_faction = SAF
		}
		add_opinion_modifier = {
			target = INT
			modifier = KR_approves_of_govt
		}
	}
}

# France refuses to let South Africa join
country_event = {
	id = saf.161
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.161" }
	title = saf.161.t
	desc = saf.161.d
	picture = GFX_report_event_generic_diplomacy2

	is_triggered_only = yes

	option = {
		name = saf.161.a
		add_political_power = -50
		add_opinion_modifier = {
			target = INT
			modifier = KR_disapproves_of_govt
		}
	}
}

country_event = { #Unemployment decreases as a result of inflation
	id = saf.162
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.162" }
	title = saf.162.t
	desc = saf.162.d
	picture = GFX_report_event_SWE_black_monday

	fire_only_once = yes
	is_triggered_only = yes

	trigger = {
		NOT = {
			has_country_flag = SAF_black_monday_over
		}
		check_variable = {
			var = saf_var_inflation
			value = 0.10
			compare = greater_than
		}
	}

	option = { #Splendid!
		name = saf.162.a
		add_political_power = 25
		custom_effect_tooltip = SWE_tt_unemployment_lowered_two_percent
		add_to_variable = {
			var = saf_var_unemployment
			value = -0.02
		}
	}
}

country_event = { #Hyperinflation
	id = saf.163
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.163" }
	title = saf.163.t
	desc = saf.163.d
	picture = GFX_report_event_SWE_coup

	fire_only_once = yes
	is_triggered_only = yes

	trigger = {
		NOT = {
			has_country_flag = SAF_black_monday_over
		}
		check_variable = {
			var = saf_var_inflation
			value = 1.5
			compare = greater_than
		}
	}

	option = { #Oh no!
		name = saf.163.a
		add_political_power = -200
		add_stability = -0.3
		custom_effect_tooltip = SWE_tt_inflation_back_to_two
		set_variable = {
			var = saf_var_inflation
			value = 0.02
		}
	}
}

country_event = { #Hidden event to fire the yearly situation report of the commission
	id = saf.164
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.164" }

	is_triggered_only = yes
	hidden = yes
	trigger = {
		NOT = {
			has_completed_focus = SAF_complete_recovery
		}
	}

	option = {
		if = {
			limit = {
				has_completed_focus = SAF_black_monday_crisis
				NOT = {
					has_completed_focus = SAF_complete_recovery
					has_socialist_government = yes
				}
			}
			country_event = { id = saf.165 }
		}
		hidden_effect = {
			country_event = { id = swe.164 days = 365 }
		}
	}
}

country_event = { #The yearly report of the Commission
	id = saf.165
	immediate = { log = "[GetDateText]: [Root.GetName]: event swe.165" }
	title = saf.165.t
	desc = saf.165.d
	picture = GFX_report_event_SWE_Gov_Report

	is_triggered_only = yes

	option = { #Ah, good!
		name = saf.165.a
		#Pay interest
		if = {
			limit = {
				check_variable = {
					var = saf_var_debt
					value = 0
					compare = greater_than
				}
			}
			set_temp_variable = {
				var = saf_var_interest
				value = saf_var_debt
			}
			divide_temp_variable = {
				var = saf_var_interest
				value = 10
			}
			subtract_from_variable = {
				var = saf_var_budget
				value = saf_var_interest
			}
			custom_effect_tooltip = SAF_tt_pays_interest
		}
		#Automatically take an extra loan if this makes your budget go below 0
		if = {
			limit = {
				check_variable = {
					var = saf_var_budget
					value = 0
					compare = less_than
				}
			}
			set_temp_variable = {
				var = saf_var_extra_debt
				value = 0
			}
			subtract_from_temp_variable = {
				var = saf_var_extra_debt
				value = saf_var_budget
			}
			add_to_variable = {
				var = saf_var_debt
				value = saf_var_extra_debt
			}
			set_variable = {
				var = saf_var_budget
				value = 0
			}
		}
		custom_effect_tooltip = SWE_tt_takes_loan
		#Sovereign debt crisis if that makes your debt go over 100 million
		if = {
			limit = {
				check_variable = {
					var = saf_var_debt
					value = 100
					compare = greater_than_or_equals
				}
			}
			country_event = { id = saf.166 days = 1 }
		}
		#Unemployment automatically slowly reverts to 8%
		if = {
			limit = {
				check_variable = {
					var = saf_var_unemployment
					value = 0.08
					compare = greater_than
				}
			}
			custom_effect_tooltip = SWE_tt_unemployment_lowered_two_percent_natural
			add_to_variable = {
				var = saf_var_unemployment
				value = -0.02
			}
		}
		else_if = {
			limit = {
				check_variable = {
					var = saf_var_unemployment
					value = 0.08
					compare = less_than
				}
			}
			custom_effect_tooltip = SWE_tt_unemployment_upped_two_percent
			add_to_variable = {
				var = saf_var_unemployment
				value = 0.02
			}
		}
	}
}

country_event = { #Sovereign debt crisis
	id = saf.166
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.166" }
	title = saf.166.t
	desc = saf.166.d
	picture = GFX_report_event_SAF_crowd_2

	is_triggered_only = yes

	option = { #Uh oh!
		name = saf.166.a
		set_variable = {
			var = saf_var_debt
			value = 0
		}
		add_political_power = -200
		add_stability = -0.4
		set_country_flag = SWE_no_more_loans
		custom_effect_tooltip = SWE_tt_unemployment_up_again
		add_to_variable = {
			var = saf_var_unemployment
			value = 0.04
		}
		every_country = {
			limit = {
				OR = {
					tag = GER
					tag = HOL
					tag = CAN
					tag = AST
				}
				exists = yes
				NOT = {
					has_socialist_government = yes
				}
			}
			country_event = { id = saf.167 }
		}
	}
}

country_event = { #Sovereign debt crisis in South Africa, our investors lose their money
	id = saf.167
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.167" }
	title = saf.167.t
	desc = saf.167.d
	picture = GFX_report_event_SAF_crowd_2

	is_triggered_only = yes

	option = { #Blast those South Africans!
		name = saf.167.a
		add_political_power = -25
		add_opinion_modifier = {
			target = SAF
			modifier = SWE_defaulted_debts
		}
	}
}

country_event = { #End black monday when the Boer War happens
	id = saf.168
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.168" }
	title = saf.168.t
	desc = saf.168.d
	picture = GFX_report_event_SAF_crowd_2

	is_triggered_only = yes
	trigger = {
		OR = {
			has_idea = SAF_black_monday_0
			has_idea = SAF_black_monday_1
			has_idea = SAF_black_monday_2
		}
	}

	option = { #Well, at least this helps!
		name = saf.168.a
		add_political_power = -50
		if = {
			limit = {
				OR = {
					has_idea = civilian_economy 
					has_idea = low_economic_mobilisation
				}
			}
			add_ideas = partial_economic_mobilisation
		}
		if = {
			limit = {
				has_idea = SAF_black_monday_0
			}
			remove_ideas = SAF_black_monday_0
		}
		if = {
			limit = {
				has_idea = SAF_black_monday_1
			}
			remove_ideas = SAF_black_monday_1
		}
		if = {
			limit = {
				has_idea = SAF_black_monday_2
			}
			remove_ideas = SAF_black_monday_2
		}
		set_country_flag = SAF_black_monday_over
		custom_effect_tooltip = SWE_tt_decisions_will_be_removed
	}
}

country_event = { #Orlando Pirates
	id = saf.169
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.169" }
	title = saf.169.t
	desc = saf.169.d
	picture = GFX_report_event_SRI_italy_football

	is_triggered_only = yes

	option = { #Interesting
		name = saf.169.a
		add_political_power = 25
	}
}

country_event = { #Flytaal
	id = saf.170
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.170" }
	title = saf.170.t
	desc = saf.170.d
	picture = GFX_report_event_generic_economic_policy

	is_triggered_only = yes

	option = { #Interesting
		name = saf.170.a
		add_political_power = -25
	}
}

country_event = { #ANC Youth League
	id = saf.171
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.171" }
	title = saf.171.t
	desc = saf.171.d
	picture = GFX_report_event_SAF_black_protest

	is_triggered_only = yes
	trigger = {
		has_socialist_government = no
	}

	option = { #Interesting
		name = saf.171.a
		add_political_power = -25
		add_popularity = { ideology = totalist popularity = 0.02 }
	}
}

country_event = { #Native Education Act
	id = saf.172
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.172" }
	title = saf.172.t
	desc = saf.172.d
	picture = GFX_report_event_CAF_School

	is_triggered_only = yes
	trigger = {
		has_government = social_liberal
	}

	option = { #Interesting
		name = saf.172.a
		add_political_power = 25
		add_popularity = { ideology = social_liberal popularity = 0.02 }
		hidden_effect = { country_event = { id = saf.173 days = 365 random = 100 } }
	}
}

country_event = { #Community Representative Act
	id = saf.173
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.173" }
	title = saf.173.t
	desc = saf.173.d
	picture = GFX_report_event_SAF_black_soldiers

	is_triggered_only = yes
	trigger = {
		has_government = social_liberal
	}

	option = { #Interesting
		name = saf.173.a
		add_political_power = 25
		add_popularity = { ideology = social_liberal popularity = 0.02 }
		remove_ideas_with_trait = minister_of_native_affairs
		if = {
			limit = {
				tag = SFR
			}
			add_ideas = SFR_Davidson_D_T_Jabavu_naaf_sli
		}
		else_if = {
			limit = {
				has_government = social_democrat
			}
			add_ideas = SAF_P_ka_Isaka_Seme_naaf_sde
		}
		else = {
			add_ideas = SAF_Davidson_D_T_Jabavu_naaf_sli
		}
		set_country_flag = saf_native_native_minister
	}
}

country_event = { #Peace treaty of Johannesburg - Socialist South Africa independent
	id = saf.174
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.174" }
	title = saf.174.t
	desc = saf.174.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes
	
	immediate = {
		hidden_effect = {
			if = {
				limit = {
					SAF = {
						controls_state = 545
					}
				}
				SAF = { transfer_state = 545 }
			}
			if = {
				limit = {
					SAF = {
						controls_state = 950
					}
				}
				SAF = { transfer_state = 950 }
			}
			every_country = { #white peace!
				limit = {
					has_war_with = SAF
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SAF = {
					white_peace = PREV
				}
			}
			SAF = {	country_event = { id = saf.175 } } #SAF's Treaty of Johannesburg
		}
	}

	option = { #Signed
		name = natal.14.a
		effect_tooltip = {
			every_country = { #white peace!
				limit = {
					has_war_with = SAF
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SAF = {
					white_peace = PREV
				}
			}
		}
		clr_global_flag = saf_revolution
	}
}

country_event = { #Peace treaty of Johannesburg (South African perspective)
	id = saf.175
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.175" }
	title = saf.175.t
	desc = saf.175.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes

	option = { #Signed
		name = saf.175.a
		effect_tooltip = {
			every_country = { #And, white peace!
				limit = {
					has_war_with = SAF
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SAF = {
					white_peace = PREV
				}
			}
		}
	}
}

country_event = { #Enlightening ENT about the fact that South Africa left their fold
	id = saf.176
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.176" }
	title = saf.176.t
	desc = saf.176.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes

	option = { #War
		name = saf.176.a
		trigger = {
			can_declare_war_on = SAF
		}
		ai_chance = {
			factor = 80
			modifier = {
				factor = 0
				NOT = {
					tag = CAN
					tag = GBR
				}
			}
			modifier = {
				factor = 0
				has_war = yes
				surrender_progress > 0
			}
			modifier = {
				factor = 0.5
				NOT = { is_in_faction_with = AST }
			}
			modifier = {
				factor = 0.5
				has_war_with = INT
			}
			modifier = {
				factor = 0.5
				country_exists = CSA
			}
		}
		declare_war_on = {
			target = SAF
			type = annex_everything
		}
		activate_mission = ENT_SOC_defend_South_Africa_mission
		hidden_effect = {
			SAF = { activate_mission = SAF_SOC_defend_South_Africa_mission }
		}
		set_global_flag = saf_revolution
	}
	
	option = { #Meh
		name = saf.176.b
		ai_chance = {
			factor = 20
		}
		add_political_power = -25
	}
}

country_event = { #Creepy Afrikaner introduces fascistic constitution
	id = saf.177
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.177" }
	title = saf.177.t
	desc = saf.177.d
	picture = GFX_report_event_generic_diplomacy1

	is_triggered_only = yes
	trigger = {
		has_government = national_populist
	}

	option = { #Interesting
		name = saf.177.a
		add_political_power = 25
		add_popularity = { ideology = national_populist popularity = 0.02 }
	}
}

country_event = { #Nuwe Rehoboth
	id = saf.178
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.178" }
	title = saf.178.t
	desc = saf.178.d
	picture = GFX_report_event_generic_farming

	is_triggered_only = yes

	option = { #Allow them to settle and grant them autonomy
		name = saf.178.a
		ai_chance = {
			factor = 10
		}
		add_political_power = -5
		542 = {
			add_manpower = 3212
		}
		set_country_flag = SAF_nuwe_rehoboth
	}
	
	option = { #Allow them to settle but don't grant them autonomy
		name = saf.178.b
		ai_chance = {
			factor = 60
		}
		542 = {
			add_manpower = 1600
		}
		set_country_flag = SAF_nuwe_rehoboth
	}
	
	option = { #Bechuanaland's farming land is whites only
		name = saf.178.c
		ai_chance = {
			factor = 30
		}
		add_political_power = 5
	}
}

country_event = { #Chaos in Südwest (MAF Collapse - time to get that colony that should be ours all along
	id = saf.179
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.179" }
	title = saf.179.t
	desc = saf.179.d
	picture = GFX_report_event_generic_farming

	is_triggered_only = yes
	trigger = {
		has_socialist_government = no
		country_exists = NMB
	}

	option = { #Offer protection to the Germans there
		name = saf.179.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_game_rule = {
					rule = NMB_chaos_in_sudwest
					option = NMB_CHAOS_IN_SUDWEST_ALIVE
				}
			}
			modifier = {
				factor = 0
				has_civil_war = yes
			}
			modifier = {
				factor = 0
				ROOT_is_threatened = yes
			}
			modifier = {
				factor = 0
				FROM = { is_stronger_than_ROOT_and_not_vulnerable = yes }
			}
			modifier = {
				factor = 0
				FROM = { overlord_is_stronger_than_ROOT_and_not_vulnerable = yes }
			}
		}
		NMB = {
			country_event = { id = saf.180 days = 2 }
		}
	}
	
	option = { #We're busy with other things
		name = saf.179.b
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				OR = {
					has_game_rule = {
						rule = NMB_chaos_in_sudwest
						option = NMB_CHAOS_IN_SUDWEST_SOUTH_AFRICA_OFFER_ACCEPT
					}
					has_game_rule = {
						rule = NMB_chaos_in_sudwest
						option = NMB_CHAOS_IN_SUDWEST_SOUTH_AFRICA_WAR
					}
				}
			}
		}
		
	}
}

country_event = { #Pretoria offers protection (and integration into their union)
	id = saf.180
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.180" }
	title = saf.180.t
	desc = saf.180.d
	picture = GFX_report_event_generic_farming

	is_triggered_only = yes

	option = { #Accept
		name = saf.180.a
		ai_chance = {
			factor = 70
			modifier = {
				factor = 0
				has_game_rule = {
					rule = NMB_chaos_in_sudwest
					option = NMB_CHAOS_IN_SUDWEST_SOUTH_AFRICA_WAR
				}
			}
		}
		custom_effect_tooltip = SAF_tt_will_result_in_annexation
		FROM = {
			country_event = { id = saf.181 }
		}
	}
	
	option = { #Yeah... No thanks, chief...
		name = saf.180.b
		ai_chance = {
			factor = 30
			modifier = {
				factor = 0
				has_game_rule = {
					rule = NMB_chaos_in_sudwest
					option = NMB_CHAOS_IN_SUDWEST_SOUTH_AFRICA_OFFER_ACCEPT
				}
			}
		}
		FROM = {
			country_event = { id = saf.182 }
		}
	}
}

country_event = { #Sudwest accepts
	id = saf.181
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.181" }
	title = saf.181.t
	desc = saf.181.d
	picture = GFX_report_event_generic_farming

	is_triggered_only = yes

	option = { #Back in South West Africa!
		name = saf.181.a
		541 = {
			add_claim_by = ROOT
		}
		964 = {
			add_claim_by = ROOT
		}
		annex_country = {
			target = NMB
			transfer_troops = yes
		}
		if = {
			limit = {
				country_exists = NBL
			}
			declare_war_on = {
				target = NBL
				type = annex_everything
			}
		}
		541 = {
			if = {
				limit = { 
					is_core_of = NMB
					is_owned_by = ROOT
				}
				if = {
					limit = { has_resistance = yes }
					add_compliance = 40
				}
			}
		}
	}
}

country_event = { #Sudwest says no
	id = saf.182
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.182" }
	title = saf.182.t
	desc = saf.182.d
	picture = GFX_report_event_generic_farming

	is_triggered_only = yes

	option = { #We do not need their permission
		name = saf.182.a
		ai_chance = {
			factor = 70
			modifier = {
				factor = 0
				NOT = {
					NMB = {
						is_ai = yes
					}
				}
			}
			modifier = {
				factor = 0
				OR = {
					ROOT_is_threatened = yes
					FROM = { default_attack_AI_trigger_FROM = yes }
					FROM = { dont_start_major_faction_wars = yes }
				}
			}
		}
		541 = {
			add_claim_by = ROOT
		}
		964 = {
			add_claim_by = ROOT
		}
		if = {
			limit = {
				country_exists = GER
			}
			reverse_add_opinion_modifier = { target = GER modifier = KR_outraged }
		}
		if = {
			limit = {
				country_exists = NMB
			}
			declare_war_on = {
				target = NMB
				type = annex_everything
			}
		}
		if = {
			limit = {
				country_exists = NBL
			}
			declare_war_on = {
				target = NBL
				type = annex_everything
			}
		}
	}
	
	option = { #Then die in the desert against the natives
		name = saf.182.b
		ai_chance = {
			factor = 30
			modifier = {
				factor = 0
				has_game_rule = {
					rule = NMB_chaos_in_sudwest
					option = NMB_CHAOS_IN_SUDWEST_SOUTH_AFRICA_WAR
				}
			}
		}
		add_political_power = -50
		add_stability = -0.05
	}
}

country_event = { #Collapse of the Portuguese Empire: seize Mozambique
	id = saf.183
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.183" }
	title = saf.183.t
	desc = saf.183.d
	picture = GFX_report_event_generic_farming

	is_triggered_only = yes
	trigger = {
		controls_state = 275
		POR = {
			controls_state = 950
		}
	}

	option = { #Move in
		name = saf.183.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_authoritarian_government = yes
			}
		}
		544 = {
			add_claim_by = SAF
		}
		950 = {
			add_claim_by = SAF
		}
		954 = {
			add_claim_by = SAF
		}
		POR = {
			country_event = { id = saf.184 }
		}
		if = {
			limit = {
				GEX = {
					exists = yes
				}
			}
			GEX = {
				country_event = { id = saf.185 }
			}
		}
		else = {
			MAF = {
				country_event = { id = saf.185 }
			}
		}
		transfer_state = 950
		if = {
			limit = {
				954 = {
					is_fully_controlled_by = POR
				}
			}
			transfer_state = 954
		}
		if = {
			limit = {
				544 = {
					is_fully_controlled_by = POR
				}
			}
			transfer_state = 544
		}
	}
	
	option = { #No - Nationalists
		name = saf.183.b
		ai_chance = {
			factor = 5
		}
		trigger = {
			has_socialist_government = no
		}
		
	}
	
	option = { #No - socialists
		name = saf.183.c
		ai_chance = {
			factor = 50
		}
		trigger = {
			has_socialist_government = yes
		}
		
	}
}

country_event = { #South Africa poaches Mozambique (POR)
	id = saf.184
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.184" }
	title = saf.184.t
	desc = saf.184.d
	picture = GFX_report_event_generic_farming

	is_triggered_only = yes

	option = { #Protestants!
		name = saf.184.a
		ai_chance = {
			factor = 50
			modifier = {
				factor = 0
				has_authoritarian_government = yes
			}
		}
		effect_tooltip = {
			SAF = {
				transfer_state = 950
				if = {
					limit = {
						954 = {
							is_fully_controlled_by = POR
						}
					}
					transfer_state = 954
				}
				if = {
					limit = {
						544 = {
							is_fully_controlled_by = POR
						}
					}
					transfer_state = 544
				}
			}
		}
	}
}

country_event = { #South Africa poaches Mozambique (MAF)
	id = saf.185
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.185" }
	title = saf.185.t
	desc = saf.185.d
	picture = GFX_report_event_generic_farming

	is_triggered_only = yes
	trigger = {
		SAF = {
			OR = {
				controls_state = 544
				controls_state = 954
			}
		}
	}

	option = { #Move into the northern provinces before South Africa
		name = saf.185.a
		ai_chance = {
			factor = 95
		}
		if = {
			limit = {
				954 = {
					is_fully_controlled_by = SAF
				}
			}
			transfer_state = 954
		}
		if = {
			limit = {
				544 = {
					is_fully_controlled_by = SAF
				}
			}
			transfer_state = 544
		}
		SAF = { country_event = { id = saf.186 days = 2 } }
	}
	
	option = { #Let them take it
		name = saf.185.b
		ai_chance = {
			factor = 5
		}
	}
}

country_event = { #MAF takes northern mozambique
	id = saf.186
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.186" }
	title = saf.186.t
	desc = saf.186.d
	picture = GFX_report_event_generic_farming

	is_triggered_only = yes
	trigger = {
		SAF = {
			OR = {
				controls_state = 544
				controls_state = 954
			}
		}
	}

	option = { #So be it
		name = saf.186.a
		ai_chance = {
			factor = 95
		}
		custom_effect_tooltip = SAF_tt_MAF_takes_northern_mozambique
	}
}

country_event = { #Stellenbosch drops the last English and Dutch subjects
	id = saf.187
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.187" }
	title = saf.187.t
	desc = saf.187.d
	picture = GFX_report_event_generic_diplomacy3

	is_triggered_only = yes
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #Hier praat ons Afrikaans!
		name = saf.187.a
		add_political_power = 25
	}
}

#Miltary Events 
country_event = { #Rifle Contract
	id = saf.200
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.200" }
	title = saf.200.t
	desc = saf.200.d
	picture = GFX_report_event_generic_diplomacy3

	is_triggered_only = yes

	option = { #Speaking the Goat
		name = saf.200.a
		if = {
			limit = { 
				NOT = { has_tech = infantry_weapons1 } 
			}
			add_tech_bonus = {
				name = SAF_lee_enf_con
				bonus = 1
				uses = 1
				technology = infantry_weapons1
			}
			else = {
				add_political_power = 50
			}
		}	
	}
}

country_event = { #Plan Smuts
	id = saf.202
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.202" }
	title = saf.202.t
	desc = saf.202.d
	picture = GFX_report_event_SAF_desert_tanks

	is_triggered_only = yes

	option = { # Kiff
		name = saf.202.a
		swap_ideas = {
			remove_idea = SAF_army_1
			add_idea = SAF_army_2jan
		}		
	}
}
country_event = { #Oswald Pirow's Five Year Plan
	id = saf.220
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.220" }
	title = saf.220.t
	desc = saf.220.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { # 
		name = saf.220.a
	}
}
country_event = { #Fact Finding Mission
	id = saf.221
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.221" }
	title = saf.221.t
	desc = saf.221.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { # 
		name = saf.221.a
		set_country_flag = SAF_Pirow_td
	}
}
country_event = { #
	id = saf.2211
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.2211" }
	title = saf.2211.t
	desc = saf.2211.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { # 
		name = saf.2211.a
		set_country_flag = SAF_Pirow_td
		decrease_ruling_party_popularity_by_5 = yes
	}
}
country_event = { #Funding Local Automotive Industries
	id = saf.222
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.222" }
	title = saf.222.t
	desc = saf.222.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { # 
		name = saf.222.a
		set_country_flag = SAF_Pirow_mech_efforts
	}
}
country_event = { #South African War Policy
	id = saf.225
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.225" }
	title = saf.225.t
	desc = saf.225.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { # 
		name = saf.225.a
		add_ideas = SAF_No_Euro_War
	}
	option = { # 
		name = saf.225.b
		add_ideas = SAF_Euro_War
	}	
}
country_event = { #TI Advisors
	id = saf.240
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.240" }
	title = saf.240.t
	desc = saf.240.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { #British 
		name = saf.240.a
		custom_effect_tooltip = SAF_UOB_ADVISORS_SELECTED
		hidden_effect = {
			country_event = { id = saf.241 days = 7 }
		}
	}	
	option = { #French
		name = saf.240.b
		custom_effect_tooltip = SAF_COF_ADVISORS_SELECTED
		hidden_effect = {
			country_event = { id = saf.250 days = 7 }
		}
	}	
}
country_event = { #British Advisors
	id = saf.241
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.241" }
	title = saf.241.t
	desc = saf.241.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { # 
		name = saf.241.a	
		set_country_flag = SAF_SOC_BRITISH_ADVISOR_UNLOCK_TT
	}
}
country_event = { #British Survey
	id = saf.242
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.242" }
	title = saf.242.t
	desc = saf.242.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { # 
		name = saf.242.a		
	}
}
country_event = { #The Men in R.E.D arrive
	id = saf.243
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.243" }
	title = saf.243.t
	desc = saf.243.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { # 
		name = saf.243.a		
	}
}
country_event = { #French Advisors
	id = saf.250
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.250" }
	title = saf.250.t
	desc = saf.250.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { # 
		name = saf.250.a	
		set_country_flag = SAF_SOC_FRENCH_ADVISOR_UNLOCK_TT
	}
}
country_event = { #Exchange results
	id = saf.252
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.252" }
	title = saf.252.t
	desc = saf.252.d
	picture = GFX_report_event_street3

	is_triggered_only = yes

	option = { # 
		name = saf.252.a	
		add_ideas = SAF_SOC_armour_production_idea
	}
}
country_event = { #French influence
	id = saf.253
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.253" }
	title = saf.253.t
	desc = saf.253.d

	is_triggered_only = yes

	option = { # 
		name = saf.253.a	
		add_stability = 0.02	
	}	
}

### By-elections ###
country_event = { #Benoni
	id = saf.300
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.300" }
	title = saf.300.t
	desc = saf.300.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #Labour
		name = saf.300.a
		ai_chance = {
			factor = 60
		}
	}
	
	option = { #United
		name = saf.300.b
		ai_chance = {
			factor = 20
		}
		add_popularity = { ideology = social_democrat popularity = -0.01 }
		if = {
			limit = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
			add_popularity = { ideology = social_liberal popularity = 0.01 }
		}
		else = {
			add_popularity = { ideology = social_conservative popularity = 0.01 }
		}
	}
	
	option = { #National
		name = saf.300.c
		ai_chance = {
			factor = 20
		}
		add_popularity = { ideology = social_democrat popularity = -0.01 }
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.01 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.01 }
		}
	}
}

country_event = { #Caledon
	id = saf.301
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.301" }
	title = saf.301.t
	desc = {
		text = saf.301.d_standard
		trigger = {
			NOT = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
		}
	}
	desc = {
		text = saf.301.d_cea
		trigger = {
			has_completed_focus = SAF_coloured_enfranchisement_act
		}
	}
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #United
		name = saf.301.a
		ai_chance = {
			factor = 60
		}
	}
	
	option = { #National
		name = saf.301.b
		trigger = {
			NOT = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
		}
		ai_chance = {
			factor = 30
		}
		add_popularity = { ideology = social_conservative popularity = -0.01 }
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.01 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.01 }
		}
	}

	
	option = { #Independent
		name = saf.301.c
		trigger = {
			has_completed_focus = SAF_coloured_enfranchisement_act
		}
		ai_chance = {
			factor = 40
		}
		add_popularity = { ideology = social_liberal popularity = -0.01 }
		add_popularity = { ideology = totalist popularity = 0.01 }
	}
}

country_event = { #Claremont
	id = saf.302
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.302" }
	title = saf.302.t
	desc = {
		text = saf.302.d_standard
		trigger = {
			NOT = {
				has_country_flag = SAF_fusion
				has_country_flag = SAF_fusion_broke
			}
		}
	}
	desc = {
		text = saf.302.d_fusion
		trigger = {
			OR = {
				has_country_flag = SAF_fusion
				has_country_flag = SAF_fusion_broke
			}
		}
	}
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #United
		name = saf.302.a
		ai_chance = {
			factor = 30
		}
	}
	
	option = { #Dominion
		name = saf.302.b
		trigger = {
			OR = {
				has_country_flag = SAF_fusion
				has_country_flag = SAF_fusion_broke
			}
		}
		ai_chance = {
			factor = 5
		}
		add_popularity = { ideology = authoritarian_democrat popularity = -0.01 }
		add_popularity = { ideology = paternal_autocrat popularity = 0.01 }
	}

	
	option = { #Independent
		name = saf.302.c
		ai_chance = {
			factor = 5
		}
		add_popularity = { ideology = authoritarian_democrat popularity = -0.01 }
		add_popularity = { ideology = market_liberal popularity = 0.01 }
	}
	
	option = { #Leave vacant until elections
		name = saf.302.e
		ai_chance = {
			factor = 40
		}
		add_political_power = -10
	}
}

country_event = { #Cape Town-Castle
	id = saf.303
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.303" }
	title = saf.303.t
	desc = saf.303.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #United
		name = saf.303.a
		ai_chance = {
			factor = 60
		}
	}
	
	option = { #Socialist
		name = saf.303.b
		ai_chance = {
			factor = 20
		}
		if = {
			limit = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
			add_popularity = { ideology = social_liberal popularity = -0.01 }
		}
		else = {
			add_popularity = { ideology = social_conservative popularity = -0.01 }
		}
		add_popularity = { ideology = radical_socialist popularity = 0.01 }
	}
	
	option = { #Independent
		name = saf.303.c
		ai_chance = {
			factor = 20
		}
		if = {
			limit = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
			add_popularity = { ideology = social_liberal popularity = -0.01 }
		}
		else = {
			add_popularity = { ideology = social_conservative popularity = -0.01 }
		}
		add_popularity = { ideology = market_liberal popularity = 0.01 }
	}
}

country_event = { #Groenpunt
	id = saf.304
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.304" }
	title = saf.304.t
	desc = saf.304.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #United
		name = saf.304.a
		ai_chance = {
			factor = 100
		}
	}
}

country_event = { #Hottentots-Holland 1942
	id = saf.305
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.305" }
	title = saf.305.t
	desc = {
		text = saf.305.d_standard
		trigger = {
			NOT = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
		}
	}
	desc = {
		text = saf.305.d_cea
		trigger = {
			has_completed_focus = SAF_coloured_enfranchisement_act
		}
	}
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #United
		name = saf.305.a
		ai_chance = {
			factor = 100
		}
		set_country_flag = SAF_Carinus_will_die
	}
	
	option = { #National
		name = saf.305.b
		trigger = {
			NOT = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
		}
		ai_chance = {
			factor = 30
		}
		add_popularity = { ideology = social_conservative popularity = -0.01 }
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.01 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.01 }
		}
	}
}

country_event = { #Hottentots-Holland 1945
	id = saf.306
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.306" }
	title = saf.306.t
	desc = {
		text = saf.306.d_standard
		trigger = {
			NOT = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
		}
	}
	desc = {
		text = saf.306.d_cea
		trigger = {
			has_completed_focus = SAF_coloured_enfranchisement_act
		}
	}
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
		has_country_flag = SAF_Carinus_will_die
	}

	option = { #United
		name = saf.306.a
		ai_chance = {
			factor = 100
		}
	}
	
	option = { #National
		name = saf.306.b
		trigger = {
			NOT = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
		}
		ai_chance = {
			factor = 30
		}
		add_popularity = { ideology = social_conservative popularity = -0.01 }
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.01 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.01 }
		}
	}
}

country_event = { #Mashona
	id = saf.307
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.307" }
	title = saf.307.t
	desc = saf.307.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		owns_state = 545
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
		has_country_flag = SAF_Carinus_will_die
	}

	option = { #United
		name = saf.307.a
		ai_chance = {
			factor = 30
		}
	}
	
	option = { #Labour
		name = saf.307.b
		ai_chance = {
			factor = 20
		}
		add_popularity = { ideology = social_conservative popularity = -0.01 }
		add_popularity = { ideology = social_democrat popularity = 0.01 }
	}
	
	option = { #Rhodesia
		name = saf.307.c
		ai_chance = {
			factor = 25
		}
		add_popularity = { ideology = social_conservative popularity = -0.01 }
		add_popularity = { ideology = market_liberal popularity = 0.01 }
	}
	
	option = { #Rhodesia Reform
		name = saf.307.e
		ai_chance = {
			factor = 25
		}
		add_popularity = { ideology = social_conservative popularity = -0.01 }
		add_popularity = { ideology = market_liberal popularity = 0.01 }
	}
}

country_event = { #Mowbray
	id = saf.308
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.308" }
	title = saf.308.t
	desc = saf.308.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
		has_country_flag = SAF_Carinus_will_die
	}

	option = { #United
		name = saf.308.a
		ai_chance = {
			factor = 30
		}
	}
	
	option = { #National
		name = saf.308.b
		ai_chance = {
			factor = 20
		}
		if = {
			limit = {
				has_country_flag = SAF_fusion
			}
			add_popularity = { ideology = authoritarian_democrat popularity = -0.01 }
		}
		else_if = {
			limit = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
			add_popularity = { ideology = social_liberal popularity = -0.01 }
		}
		else = {
			add_popularity = { ideology = social_conservative popularity = -0.01 }
		}
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.01 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.01 }
		}
	}
}

country_event = { #Paarl
	id = saf.309
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.309" }
	title = saf.309.t
	desc = {
		text = saf.309.d_standard
		trigger = {
			NOT = {
				has_country_flag = SAF_fusion
			}
		}
	}
	desc = {
		text = saf.309.d_fusion
		trigger = {
			has_country_flag = SAF_fusion
		}
	}
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #National (or United)
		name = saf.309.a
		ai_chance = {
			factor = 60
		}
	}
	
	option = { #Purified National
		name = saf.309.b
		trigger = {
			has_country_flag = SAF_fusion
		}
		ai_chance = {
			factor = 20
		}
		add_popularity = { ideology = authoritarian_democrat popularity = -0.01 }
		add_popularity = { ideology = paternal_autocrat popularity = 0.01 }
	}

	
	option = { #South African Party
		name = saf.309.c
		trigger = {
			NOT = {
				has_country_flag = SAF_fusion
			}
		}
		ai_chance = {
			factor = 20
		}
		add_popularity = { ideology = authoritarian_democrat popularity = -0.01 }
		if = {
			limit = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
			add_popularity = { ideology = social_liberal popularity = 0.01 }
		}
		else = {
			add_popularity = { ideology = social_conservative popularity = 0.01 }
		}
	}
}

country_event = { #Port Elizabeth-North
	id = saf.310
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.310" }
	title = saf.310.t
	desc = saf.310.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #United
		name = saf.310.a
		ai_chance = {
			factor = 70
		}
	}
	
	option = { #Labour
		name = saf.310.b
		ai_chance = {
			factor = 20
		}
		add_popularity = { ideology = social_conservative popularity = -0.01 }
		add_popularity = { ideology = social_democrat popularity = 0.01 }
	}
	
	option = { #Labour
		name = saf.310.c
		ai_chance = {
			factor = 15
		}
		add_popularity = { ideology = social_conservative popularity = -0.01 }
		add_popularity = { ideology = authoritarian_democrat popularity = 0.01 }
	}
	
	option = { #White Workers
		name = saf.310.e
		ai_chance = {
			factor = 15
		}
		add_popularity = { ideology = social_conservative popularity = -0.01 }
		add_popularity = { ideology = national_populist popularity = 0.01 }
	}
}

country_event = { #Port Elizabeth-Central
	id = saf.311
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.311" }
	title = saf.311.t
	desc = saf.311.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #United
		name = saf.311.a
		ai_chance = {
			factor = 70
		}
	}
	
	option = { #Independent
		name = saf.311.b
		ai_chance = {
			factor = 20
		}
		if = {
			limit = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
			add_popularity = { ideology = social_liberal popularity = -0.01 }
		}
		else = {
			add_popularity = { ideology = social_conservative popularity = -0.01 }
		}
		add_popularity = { ideology = market_liberal popularity = 0.01 }
	}
}

country_event = { #Seepunt
	id = saf.312
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.312" }
	title = saf.312.t
	desc = saf.312.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #United
		name = saf.312.a
		ai_chance = {
			factor = 100
		}
	}
}

country_event = { #New seats when South East Africa is admitted to the Union
	id = saf.313
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.313" }
	title = saf.313.t
	desc = saf.313.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #United and independents
		name = saf.313.a
		if = {
			limit = {
				has_country_flag = SAF_fusion
			}
			add_popularity = { ideology = authoritarian_democrat popularity = 0.03 }
		}
		else_if = {
			limit = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
			add_popularity = { ideology = social_liberal popularity = 0.03 }
		}
		else = {
			add_popularity = { ideology = social_conservative popularity = 0.03 }
		}
	}
}

country_event = { #New seats when South West Africa is admitted to the Union
	id = saf.314
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.314" }
	title = saf.314.t
	desc = {
		text = saf.314.d_normal
		trigger = {
			has_completed_focus = SAF_gerrymander_districts
		}
	}
	desc = {
		text = saf.314.d_gerrymandered
		trigger = {
			has_completed_focus = SAF_gerrymander_districts
		}
	}
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #National
		name = saf.314.a
		if = {
			limit = {
				has_completed_focus = SAF_gerrymander_districts
			}
			if = {
				limit = {
					has_country_flag = saf_national_turned_pataut
				}
				add_popularity = { ideology = paternal_autocrat popularity = 0.05 }
			}
			else = {
				add_popularity = { ideology = authoritarian_democrat popularity = 0.05 }
			}
		}
		else = {
			if = {
				limit = {
					has_country_flag = saf_national_turned_pataut
				}
				add_popularity = { ideology = paternal_autocrat popularity = 0.03 }
			}
			else = {
				add_popularity = { ideology = authoritarian_democrat popularity = 0.03 }
			}
		}
	}
	
	option = { #Mostly National
		name = saf.314.b
		trigger = {
			has_completed_focus = SAF_coloured_enfranchisement_act
		}
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.02 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.02 }
		}
		add_popularity = { ideology = social_liberal popularity = 0.01 }
	}
}

country_event = { #Standerton
	id = saf.315
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.315" }
	title = saf.315.t
	desc = saf.315.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
		has_full_control_of_state = 275
	}

	option = { #United
		name = saf.315.a
		ai_chance = {
			factor = 60
		}
	}
	
	option = { #National
		name = saf.315.b
		ai_chance = {
			factor = 40
		}
		if = {
			limit = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
			add_popularity = { ideology = social_liberal popularity = -0.01 }
		}
		else = {
			add_popularity = { ideology = social_conservative popularity = -0.01 }
		}
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.01 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.01 }
		}
	}
}

country_event = { #New seats when Stellaland (Botswana) is admitted to the Union
	id = saf.316
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.316" }
	title = saf.316.t
	desc = saf.316.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes

	trigger = {
		owns_state = 542
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #National
		name = saf.316.a
		trigger = {
			NOT = {
				AND = {
					has_completed_focus = SAF_coloured_enfranchisement_act
					has_country_flag = SAF_nuwe_rehoboth
				}
			}
		}
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.03 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.03 }
		}
	}
	
	option = { #Mostly National
		name = saf.316.b
		trigger = {
			has_completed_focus = SAF_coloured_enfranchisement_act
			has_country_flag = SAF_nuwe_rehoboth
		}
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = 0.02 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = 0.02 }
		}
		add_popularity = { ideology = social_liberal popularity = 0.01 }
	}
}

country_event = { #Yeoville
	id = saf.317
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.317" }
	title = saf.317.t
	desc = saf.317.d
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
		}
	}

	option = { #SAP
		name = saf.317.a
		ai_chance = { factor = 80 }
	}
}

country_event = { #Riversdal
	id = saf.318
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.318" }
	title = saf.318.t
	desc = {
		text = saf.318.d_normal
		trigger = {
			NOT = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
		}
	}
	desc = {
		text = saf.318.d_cea
		trigger = {
			has_completed_focus = SAF_coloured_enfranchisement_act
		}
	}
	picture = GFX_report_event_AST_election

	is_triggered_only = yes
	
	trigger = {
		NOT = {
			has_socialist_government = yes
			has_government = national_populist
			has_country_flag = saf_byelection_check
		}
	}

	option = { #United
		name = saf.318.a
		ai_chance = {
			factor = 30
		}
		if = {
			limit = {
				has_country_flag = saf_national_turned_pataut
			}
			add_popularity = { ideology = paternal_autocrat popularity = -0.01 }
		}
		else = {
			add_popularity = { ideology = authoritarian_democrat popularity = -0.01 }
		}
		if = {
			limit = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
			add_popularity = { ideology = social_liberal popularity = 0.01 }
		}
		else = {
			add_popularity = { ideology = social_conservative popularity = 0.01 }
		}
	}
	
	option = { #National
		name = saf.318.b
		trigger = {
			NOT = {
				has_completed_focus = SAF_coloured_enfranchisement_act
			}
		}
		ai_chance = {
			factor = 70
		}
	}
}

country_event = { #Out with old, in with the new
	id = saf.321
	immediate = { log = "[GetDateText]: [Root.GetName]: event saf.321 FROM = [From.GetName]" }
	title = saf.321.t
	desc = saf.321.d
	picture = GFX_report_event_SAF_black_soldiers

	is_triggered_only = yes
	fire_only_once = yes
	option = { #
		name = saf.321.a
		create_corps_commander = {
			name = "James La Guma"
			portrait_path = "gfx/leaders/SAF/Portrait_SAF_James_La_Guma.png"
			desc = "POLITICS_JIMMY_LA_GUMA_DESC"
			traits = {
				politically_connected
			}
			skill = 1
			attack_skill = 1
			defense_skill = 2
			planning_skill = 1
			logistics_skill = 1
		}
		create_corps_commander = {
			name = "Govan Mbeki"
			portrait_path = "gfx/leaders/SAF/Portrait_SAF_Govan_Archibald_Mbeki.png"
			traits = {
				infantry_leader
			}
			skill = 1
			attack_skill = 2
			defense_skill = 1
			planning_skill = 1
			logistics_skill = 1
		}
		create_corps_commander = {
			name = "Jack Hodson"
			portrait_path = "gfx/leaders/SAF/Portrait_SAF_Jack_Hodgson.png"
			traits = {
				trickster
			}
			skill = 1
			attack_skill = 2
			defense_skill = 1
			planning_skill = 2
			logistics_skill = 1
		}
		create_field_marshal = {
			name = "William H. Andrews"
			portrait_path = "gfx/leaders/SAF/Portrait_SAF_William_H_Andrews.png"
			desc = "POLITICS_WILLIAM_HENRY_ANDREWS_DESC"
			traits = {
				politically_connected
				thorough_planner
				organizer
			}
			skill = 2
			attack_skill = 1
			defense_skill = 2
			planning_skill = 2
			logistics_skill = 2
			id = 98010
		}		
		create_field_marshal = {
			name = "Thabo Edwin Mofutsanyana"
			portrait_path = "gfx/leaders/SAF/Portrait_SAF_Thabo_Mofutsanyana.png"
			traits = { trickster guerilla_fighter }
			skill = 1
			attack_skill = 1
			defense_skill = 1
			planning_skill = 1
			logistics_skill = 1
			id = 98011
		}		
		add_political_power = -50
		add_stability = 0.05
		custom_effect_tooltip = SAF_SOC_CO_Purge
		hidden_effect = {
			every_unit_leader = {
				limit = {
					OR = {
						has_id = 970 #Jan Smuts
						has_id = 971 #Leonard Beyers
						has_id = 972 #George Brink
						has_id = 973 #Dan Pienaar
						has_id = 974 #Hendrik Klopper
						has_id = 975 #Isaac Pierre de Villiers
						has_id = 976 #Nick Bierman
						has_id = 977 #Evered Poole
						has_id = 978 #Christiaan du Toit
						has_id = 979 # Christoffel Venter
						has_id = 9980 # Christoffel Venter
						has_id = 9802 #Guy Hallifax
					}
				}
				set_nationality = NSW
			}
			disband_twenty_percent_units = yes
			load_oob = "SAF_syn"
		}
		set_country_flag = Jan_C_Smuts_dead
		set_country_flag = Leonard_Beyers_dead
		set_country_flag = Pierre_van_Ryneveld_dead
		set_country_flag = Christian_du_Toit_dead
		set_country_flag = JF_Naude_dead
		set_country_flag = Christoffel_Venter_dead
	}
}

country_event = { #alt leader for Syndie
	id = miscsaf.1
	immediate = { log = "[GetDateText]: [Root.GetName]: event miscsaf.1" }
	title = miscsaf.1.t
	desc = miscsaf.1.d
	picture = GFX_report_event_SAF_cape_town

	is_triggered_only = yes

	option = {
		name = miscsaf.1.a
		add_political_power = 25
		add_stability = 0.02
	}
	
	option = {
		name = miscsaf.1.b
		create_country_leader = {
			name = "Moses Kotane"
			picture = "gfx/leaders/SAF/Portrait_SAF_Moses_Kotane.png"
			desc = "POLITICS_KOTANE_DESC"
			expire = "1.1.1"
			ideology = african_syndicalism_subtype
		}
		add_political_power = -25
		add_popularity = {
			ideology = syndicalist
			popularity = 0.02
		}
	}
	
	option = {
		name = miscsaf.1.c
		create_country_leader = {
			name = "David Ivon Jones"
			picture = "gfx/leaders/SAF/Portrait_SAF_David_Ivon_Jones.png"
			desc = "POLITICS_DAVE_JONES_DESC"
			expire = "1.1.1"
			ideology = democratic_syndicalism_subtype
		}
		add_stability = -0.01
		add_political_power = 200
		add_popularity = {
			ideology = syndicalist
			popularity = -0.02
		}
	}
}

country_event = { #Smuts for Slutsland
	id = miscsaf.2
	immediate = { log = "[GetDateText]: [Root.GetName]: event miscsaf.1" }
	title = miscsaf.2.t
	desc = miscsaf.2.d
	picture = GFX_report_event_SAF_smuts_smile

	mean_time_to_happen = {
		days = 90
	}

	trigger = {
		OR = {
			tag = SAF
			tag = SFR
		}
		is_ai = no
		date > 1940.03.16
		OR = {
			has_country_leader = { name = "Jan Smuts" ruling_only = yes }
			has_idea = SAF_Jan_C_Smuts_hog_sco
		}
	}
	fire_only_once = yes

	option = {
		name = miscsaf.2.a
		add_stability = 0.01
	}
	
	option = {
		name = miscsaf.2.b
		if = {
			limit = {
				has_government = social_liberal
			}
			set_country_leader_ideology = soclib_euro_panafricanism_subtype
		}
		else = {
			set_country_leader_ideology = soccon_euro_panafricanism_subtype
		}
		set_cosmetic_tag = SAF_Smutsland
		every_state = {
			limit = {
				OR = {
				region = 139
				region = 188
				region = 190
				}
			}
			add_core_of = ROOT
		}
		hidden_effect = {
			add_state_core = 892
			add_state_core = 1180
			add_state_core = 1025
			add_state_core = 538
			add_state_core = 1185
			add_state_core = 1184
			add_state_core = 949
			add_state_core = 977
			add_state_core = 1026
			add_state_core = 718
			add_state_core = 1181
			add_state_core = 948
			create_wargoal = {
				type = annex_everything
				target = 541.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 964.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 545.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 950.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 871.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 813.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 879.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 957.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 540.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 905.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 965.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 870.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 869.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 548.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 547.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 970.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 925.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 559.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 914.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 881.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 879.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 977.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 1025.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 976.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 1032.owner
			}
		}
	}
	
	option = {
		name = miscsaf.2.c
		if = {
			limit = {
			has_government = social_liberal
			}
			set_country_leader_ideology = soclib_euro_panafricanism_subtype
		}
		else = {
			set_country_leader_ideology = soccon_euro_panafricanism_subtype
		}
		set_cosmetic_tag = SAF_Eburnea
		every_state = {
			limit = { 
				OR = {
				region = 139 
				region = 188 
				region = 190 
				}
			}
			add_core_of = ROOT
		}
		hidden_effect = {
			add_state_core = 892
			add_state_core = 1180
			add_state_core = 1025
			add_state_core = 538
			add_state_core = 1185
			add_state_core = 1184
			add_state_core = 949
			add_state_core = 977
			add_state_core = 1026
			add_state_core = 718
			add_state_core = 1181
			add_state_core = 948
			create_wargoal = {
				type = annex_everything
				target = 541.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 964.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 545.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 950.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 871.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 813.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 879.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 957.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 540.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 905.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 965.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 870.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 869.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 548.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 547.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 970.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 925.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 559.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 914.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 881.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 879.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 977.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 1025.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 976.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 1032.owner
			}
		}
	}
	option = {
		name = miscsaf.2.e
		if = {
			limit = {
			has_government = social_liberal
			}
			set_country_leader_ideology = soclib_euro_panafricanism_subtype
		}
		else = {
			set_country_leader_ideology = soccon_euro_panafricanism_subtype
		}
		set_cosmetic_tag = SAF_Southern
		every_state = {
			limit = { 
				OR = {
				region = 139 
				region = 188 
				region = 190 
				}
			}
			add_core_of = ROOT
		}
		hidden_effect = {
			add_state_core = 892
			add_state_core = 1180
			add_state_core = 1025
			add_state_core = 538
			add_state_core = 1185
			add_state_core = 1184
			add_state_core = 949
			add_state_core = 977
			add_state_core = 1026
			add_state_core = 718
			add_state_core = 1181
			add_state_core = 948
			create_wargoal = {
				type = annex_everything
				target = 541.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 964.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 545.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 950.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 871.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 813.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 879.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 957.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 540.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 905.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 965.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 870.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 869.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 548.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 547.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 970.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 925.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 559.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 914.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 881.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 879.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 977.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 1025.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 976.owner
			}
			create_wargoal = {
				type = annex_everything
				target = 1032.owner
			}
		}
	}
}