#Ostafrika flavour

add_namespace = ostafrika

country_event = { #Lexicon update
	id = ostafrika.1
	title = ostafrika.1.t
	desc = ostafrika.1.d
	picture = GFX_report_event_lexicon
	is_triggered_only = yes
	
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
	option = {
		name = ostafrika.1.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_political_power = 10
			}
		}
	}			
}

country_event = { #On the Marble Cliffs
	id = ostafrika.2
	title = ostafrika.2.t
	desc = ostafrika.2.d
	picture = GFX_report_event_MAF_ernstjunger
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.2.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_political_power = 10
			}
		}
	}			
}

country_event = { #History of German East Africa
	id = ostafrika.3
	title = ostafrika.3.t
	desc = ostafrika.3.d
	picture = GFX_report_event_ostafrika
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.3.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_political_power = 10
			}
		}
	}			
}

country_event = { #Decline in education in German Africa
	id = ostafrika.4
	title = ostafrika.4.t
	desc = ostafrika.4.d
	picture = GFX_report_event_missions
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
trigger = {
		ROOT = {
			OR = {
				is_ally_with = GER
				tag = MAF
				tag = CMR
				tag = NMB
				tag = ZAM
				tag = CIV
				tag = TOG
				tag = MAG
				tag = ZZB
			}
		}
	}

	option = {
		name = ostafrika.4.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_political_power = -10
			}
		}
	}
}

country_event = { #Amani Biological and Agricultural Institute Expands
	id = ostafrika.5
	title = ostafrika.5.t
	desc = ostafrika.5.d
	picture = GFX_report_event_agronomics
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	
trigger = {
		ROOT = {
			OR = {
				is_ally_with = GER
				tag = MAF
				tag = CMR
				tag = NMB
				tag = ZAM
				tag = CIV
				tag = TOG
				tag = MAG
				tag = ZZB
			}
		}
	}

	option = {
		name = ostafrika.5.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_political_power = 20
			}
		}
	}
}

country_event = { #The Ostafrikan Indians
	id = ostafrika.6
	title = ostafrika.6.t
	desc = ostafrika.6.d
	picture = GFX_report_event_market
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
trigger = {
		ROOT = {
			OR = {
				is_ally_with = GER
				tag = MAF
				tag = CMR
				tag = NMB
				tag = ZAM
				tag = CIV
				tag = TOG
				tag = MAG
				tag = ZZB
			}
		}
	}

	option = {
		name = ostafrika.6.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_political_power = -10
			}
		}
	}
}

country_event = { #The Bukoba Coffee Riots
	id = ostafrika.7
	title = ostafrika.7.t
	desc = ostafrika.7.d
	picture = GFX_report_event_factory
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.7.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_stability = 0.01
				add_political_power = -20
				add_popularity = {
					ideology = radical_socialist
					popularity = -0.01
				}				
			}
		}
	}
}

country_event = { #Lady Chesham Protests Foodstuff Mandates
	id = ostafrika.8
	title = ostafrika.8.t
	desc = ostafrika.8.d
	picture = GFX_report_event_hmv
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.8.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_political_power = -10
			}
		}
	}
}

country_event = { #Dar-es-Salaam, the Haven of Peace
	id = ostafrika.9
	title = ostafrika.9.t
	desc = ostafrika.9.d
	picture = GFX_report_event_chanic
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.9.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_political_power = 10
			}
		}
	}
}

country_event = { #The Rise of Dodoma Wine
	id = ostafrika.10
	title = ostafrika.10.t
	desc = ostafrika.10.d
	picture = GFX_report_event_sudwest
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.10.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_political_power = 10
			}
		}
	}
}

country_event = { #Failure of the Nachingwea Scheme
	id = ostafrika.11
	title = ostafrika.11.t
	desc = ostafrika.11.d
	picture = GFX_report_event_farming
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
trigger = {
		ROOT = {
			OR = {
				is_ally_with = GER
				tag = MAF
				tag = CMR
				tag = NMB
				tag = ZAM
				tag = CIV
				tag = TOG
				tag = MAG
				tag = ZZB
			}
		}
	}

	option = {
		name = ostafrika.11.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_stability = -0.01
				add_political_power = -20
			}
		}
	}
}

country_event = { #The Tribes of Ostafrika
	id = ostafrika.12
	title = ostafrika.12.t
	desc = ostafrika.12.d
	picture = GFX_report_event_stool
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.12.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			add_stability = 0.02
			add_political_power = 10
		}
	}
}

country_event = { #South Africa goes red
	id = ostafrika.13
	title = ostafrika.13.t
	desc = ostafrika.13.d
	picture = GFX_report_event_uac
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = {
			has_socialist_government = yes
		}
	}

	option = {
		name = ostafrika.13.a
		ai_chance = {
			factor = 100
		}
		add_stability = -0.01
		add_popularity = {
			ideology = radical_socialist
			popularity = 0.01
		}
		add_popularity = {
			ideology = syndicalist
			popularity = 0.01
		}
	}
}

country_event = { #War in Europe
	id = ostafrika.14
	title = ostafrika.14.t
	desc = ostafrika.14.d
	picture = GFX_report_event_simson
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.14.a
		ai_chance = {
			factor = 100
		}
		add_war_support = 0.05
		add_stability = -0.02
	}
}

country_event = { #Death of the Bishop of Zanzibar
	id = ostafrika.15
	title = ostafrika.15.t
	desc = ostafrika.15.d
	picture = GFX_report_event_weston
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.15.a
		ai_chance = {
			factor = 100
		}
	}
}

country_event = { #The White Huntress' Demise
	id = ostafrika.16
	title = ostafrika.16.t
	desc = ostafrika.16.d
	picture = GFX_report_event_trappe
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.16.a
		ai_chance = {
			factor = 100
		}
		if = {
			limit = {
				owns_state = 965
			}
			ROOT = {
				add_political_power = -5
			}
		}
	}
}

country_event = { #Agricultural Officers Murdered in Uluguru
	id = ostafrika.17
	title = ostafrika.17.t
	desc = ostafrika.17.d
	picture = GFX_report_event_ostafrika
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.17.a
		ai_chance = {
			factor = 100
		}
		add_stability = -0.01
	}
}

country_event = { #The Indochina Debate
	id = ostafrika.18
	title = ostafrika.18.t
	desc = ostafrika.18.d
	picture = GFX_report_event_GER_reichstag2
	is_triggered_only = yes
		trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.18.a
		ai_chance = {
			factor = 100
		}
	}
}

country_event = { #Ten Years After the Intervention
	id = ostafrika.19
	title = ostafrika.19.t
	desc = ostafrika.19.d
	picture = GFX_report_event_GER_schleicher
	is_triggered_only = yes
	trigger = {
		is_ai = no
		NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
	}
	#minor_flavor = yes
	option = {
		name = ostafrika.19.a
		ai_chance = {
			factor = 100
		}
		add_stability = -0.01
		if = {
			limit = {
				tag = GER
			}
			add_political_power = -30
		}
	}
}

country_event = { #The Fate of von Kraut
	id = ostafrika.20
	title = ostafrika.20.t
	desc = ostafrika.20.d
	picture = GFX_report_event_SAF_parliament_2

	is_triggered_only = yes

	option = {
		log = "[GetLogInfo]: event ostafrika.20 option ostafrika.20.a"
		name = ostafrika.20.a
		add_political_power = -20
	}

	option = {
		log = "[GetLogInfo]: event ostafrika.20 option ostafrika.20.b"
		name = ostafrika.20.b
		hidden_effect = {
			set_country_flag = nokraut
		}
	}
}
