###########################
# MittelAfrika Decisions
###########################
political_actions = {
	disable_flavour = {
		icon = generic_belgian_colonial_helmet
		available = {
			NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
		}

		visible = {
			NOT = { has_global_flag = player_dislikes_colonial_flavour_flag }
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			set_global_flag = player_dislikes_colonial_flavour_flag
		}
	}
	enable_flavour = {
		icon = generic_belgian_colonial_helmet
		available = {
			has_global_flag = player_dislikes_colonial_flavour_flag
		}

		visible = {
			has_global_flag = player_dislikes_colonial_flavour_flag
		}

		fire_only_once = no
		cost = 0

		complete_effect = {
			clr_global_flag = player_dislikes_colonial_flavour_flag
		}
	}
}
foreign_politics = {
	join_the_bush_war = {
		icon = GFX_decision_generic_nationalism
		cost = 25
		allowed = {
		OR = {
			tag = COG
			tag = KTG
			tag = NMB
			tag = KOG
			tag = CMR
			tag = CIV
			tag = IVO
			tag = MAG
			tag = CEA
			tag = NGR
			tag = GHA
			tag = KEN
			tag = MLW
			tag = BSC
			tag = UGA
			tag = ZZB
			tag = ZAM
			}
		}
		available = {
			MAF = { has_war_with = POR }
			is_subject = yes
		}
		visible = {
			MAF = { has_war_with = POR }
			is_subject = yes
		}
		ai_will_do = {
			factor = 50
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				POR = {
					is_in_faction = yes
					is_guaranteed_by = CAN
				}
			}
			modifier = {
				factor = 0
				has_idea = GBR_Colonial_Government
				NOT = {
					has_war_with = PAF
				}
			}
		}
		visible = {
			ROOT = {
				is_subject_of = MAF
			}
		}
		complete_effect = {
			ROOT = {
				declare_war_on = {
					target = PAF
					type = annex_everything
				}
			}
		}
	}
	intervene_in_congo = {
		icon = GFX_decision_generic_nationalism
		cost = 0
		allowed = {
		OR = {
			tag = CMR
			tag = CEA
			tag = KOG
			tag = MAF
			tag = UGA
			tag = MLW
			tag = BSC
			}
		}
		available = {
			is_subject_of = MAF
			OR = {
				country_exists = KAS
				country_exists = ORT
				country_exists = UMN
			}
		}
		ai_will_do = {
			factor = 0
			modifier = {
				factor = 0
				has_war = yes
			}
			modifier = {
				factor = 0
				tag = MLW
				tag = BSC
			}
			modifier = {
				factor = 20
				date > 1937.1.1
			}
			modifier = {
				factor = 5
				COG = {
					surrender_progress > 0.7
				}
			}
		}
		visible = {
			has_global_flag = congo_bush_war
			OR = {
				country_exists = KAS
				country_exists = ORT
				country_exists = UMN
			}
		}
		complete_effect = {
			ROOT = {
				declare_war_on = {
					target = ORT
					type = annex_everything
				}
				declare_war_on = {
					target = KAS
					type = annex_everything
				}
				declare_war_on = {
					target = UMN
					type = annex_everything
				}
			}
			add_war_support = -0.05
		}
	}
	DJI_take_mittelafrikan_navy = {
		icon = generic_naval
		allowed = { tag = GER }
		available = {
			has_war = no
			DJI = { has_war = no }
		}
		visible = {
			DJI = {
				is_subject_of = ROOT
				is_ai = yes
			}
		}
		cost = 20
		
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision DJI_take_mittelafrikan_navy"
			DJI = {
				transfer_navy = { target = ROOT }
			}
		}
	}
	DJI_DKAEB_bailout_mission = {
		icon = GFX_decision_train
		allowed = {
			always = no #activated by DKAEB events
		}
		available = {
			OR = {
				DJI = {
					has_completed_focus = DJI_finish_the_dschibuti_programme
				}
				ETH = {
					has_completed_focus = ETH_Tax_Question
				}
				has_game_rule = {
					rule = DJI_choose_a_side
					option = DJI_CHOOSE_ETH
				}
				NOT = {
					has_game_rule = {
						rule = DJI_choose_a_side
						option = DJI_CHOOSE_SOM
					}
				}
			}
		}
		selectable_mission = no
		days_mission_timeout = 365
		
		timeout_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision timeout DJI_DKAEB_bailout_mission"
			ETH = {
				country_event = { id = ethiopia.6 }
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision DJI_DKAEB_bailout_mission"
			ETH = {
				country_event = { id = ethiopia.5 }
			}
		}
	}

	PNG_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 180
		fire_only_once = yes
		is_good = no
		allowed = {
		OR = {
			tag = PNG
			tag = GEA
			}
		}
		visible = {
		OR = {
			tag = PNG
			tag = GEA
			}
		}
		available = {
			NOT = {
				has_war_with = GEA
			}
		}

		activation = {
			has_war_with = GEA
			controls_all_owned_states = yes
			controls_state = 757
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = PNG
					OR = {
						is_in_faction_with = GEA
						is_subject_of = GEA
						tag = GEA
					}
				}
				PNG = {
					white_peace = PREV
				}
			}
			PNG = { transfer_state = 757 }
			PNG = { transfer_state = 634 }
			hidden_effect = {
				if = {
					limit = {
						PNG = {
							is_ai = yes
							}
						AST = {
							is_ai = yes
							has_socialist_government = no
							}
						}
					AST = {
						create_wargoal = {
							type = annex_everything
							target = PNG
						}
					}
				}
			}
		}
	}
	
	ADW_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = no
		allowed = {
		OR = {
			tag = ADW
			tag = CMR
			}
		}
		visible = {
		OR = {
			tag = ADW
			tag = CMR
			}
		}
		available = {
			NOT = {
				has_war_with = CMR
			}
		}

		activation = {
			has_war_with = CMR
			CMR = {
				has_capitulated = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = ADW
					OR = {
						is_in_faction_with = CMR
						is_subject_of = CMR
					}
				}
				ADW = {
					white_peace = PREV
				}
			}
			ADW = {
				annex_country = {
					target = CMR
				}
			}
		}
	}

	GAB_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = GAB
			tag = KOG
			tag = MAF
		}
		visible = {
			tag = GAB
			tag = KOG
			tag = MAF
		}
		available = {
			NOT = {
				has_war_with = KOG
			}
		}

		activation = {
			has_war_with = KOG
			KOG = {
				is_subject = no
			}
			controls_all_owned_states = yes
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = GAB
					OR = {
						is_in_faction_with = KOG
						is_subject_of = KOG
						tag = MAF
					}
				}
				GAB = {
					white_peace = PREV
				}
			}
		}
	}
	
	TKE_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = TKE
			tag = KOG
			tag = MAF
		}
		visible = {
			tag = TKE
			tag = KOG
			tag = MAF
		}
		available = {
		NOT = {
			has_war_with = KOG
			}
		}

		activation = {
			has_war_with = KOG
			KOG = {
				has_capitulated = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = TKE
					OR = {
						is_in_faction_with = KOG
						is_subject_of = KOG
						tag = MAF
					}
				}
				TKE = {
					white_peace = PREV
				}
				TKE = {
					annex_country = {
						target = KOG
					}
				}
			}
		}
	}
	
	DAH_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 30
		fire_only_once = yes
		is_good = yes
		allowed = {
			OR = {
			tag = DAH
			tag = CIV
			tag = MAF
			}
		}
		visible = {
			OR = {
			tag = DAH
			tag = CIV
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = CIV
			}
		}

		activation = {
			has_war_with = CIV
			CIV = {
				has_capitulated = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = DAH
					OR = {
						is_in_faction_with = CIV
						is_subject_of = CIV
						tag = MAF
					}
				}
				DAH = {
					white_peace = PREV
					}
				}
				DAH = {
					annex_country = {
						target = CIV
					}
				}
				NFA = {
				add_state_claim = 876
				add_state_claim = 877
			}
		}
	}
	
NBL_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = NBL
			tag = NMB
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = NBL
			tag = NMB
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = NMB
			}
		}

		activation = {
			has_war_with = NMB
			NMB = {
				has_capitulated = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = NBL
					OR = {
						is_in_faction_with = NMB
						is_subject_of = NMB
						tag = MAF
					}
				}
				NBL = {
					white_peace = PREV
				}
			}
				NBL = {
					annex_country = {
						target = NMB
					}
				}
			hidden_effect = {
				SAF = {
					country_event = {
						id = saf.179
						days = 5
					}
				}
			}
		}
	}
	
	KBR_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = KBR
			tag = NGR
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = KBR
			tag = NGR
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = NGR
			}
		}

		activation = {
			has_war_with = NGR
			NGR = {
				has_capitulated = yes
			}
			KBR = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = KBR
					OR = {
						is_in_faction_with = NGR
						is_subject_of = NGR
						tag = MAF
					}
				}
				KBR = {
					white_peace = PREV
					}
				}
				if = {
					limit = {
						NFA = {
							is_ai = yes
						}
					}
					NFA = {
						create_wargoal = {
							type = annex_everything
							target = KBR
						}
					}
				}
				add_state_claim = 913
				add_state_claim = 962
			}
		}
	
	BSC_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = BSC
			tag = ZAM
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = BSC
			tag = ZAM
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			BSC = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = BSC
					OR = {
						is_in_faction_with = MAF
						is_subject_of = MAF
						tag = MAF
					}
				}
				BSC = {
					white_peace = PREV
				}
			}
			if = {
				limit = {
				country_exists = ZAM
				}
				BSC = {
					annex_country = {
						target = ZAM
					}
				}
			}
		}
	}
	MAG_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 30
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = MAG
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = MAG
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			MAG = {
				controls_all_owned_states = yes
				OR = {
					controls_state = 1179
					controls_state = 1178
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = MAG
					OR = {
						is_in_faction_with = MAF
						is_subject_of = MAF
						tag = MAF
					}
				}
				MAG = {
					white_peace = PREV
					transfer_state = 1179
					transfer_state = 1178
				}
			}
		}
	}
	
	GHA_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = GHA
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = GHA
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			GHA = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = GHA
					OR = {
						is_in_faction_with = MAF
						is_subject_of = MAF
						tag = MAF
					}
				}
				GHA = {
					white_peace = PREV
				}
			}
		}
	}
	
	KEN_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = KEN
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = KEN
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			KEN = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = KEN
					OR = {
						is_in_faction_with = MAF
						is_subject_of = MAF
						tag = MAF
					}
				}
				KEN = {
					white_peace = PREV
				}
			}
		}
	}
	
	NGR_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = NGR
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = NGR
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			NGR = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = NGR
					OR = {
						is_in_faction_with = MAF
						is_subject_of = MAF
						tag = MAF
					}
				}
				NGR = {
					white_peace = PREV
				}
			}
		}
	}
	
	CEA_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			OR = {
				tag = CEA
				tag = MAF
			}
		}
		visible = {
		OR = {
			tag = CEA
			tag = MAF
			}
			NOT = {
				CEA = {
					CEA_has_bokassa = yes
				}
			}
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			CEA = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = CEA
					OR = {
						tag = MAF
					}
				}
				CEA = {
					white_peace = PREV
				}
			}
		}
	}

	CEA_bokassa_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			OR = {
				tag = CEA
				tag = CMR
				tag = MAF
			}
		}

		visible = {
		OR = {
			tag = CEA
			tag = CMR
			tag = MAF
			}
		}

		available = {
			NOT = {
				has_war_with = CMR
			}
		}

		activation = {
			has_war_with = CMR
			CMR = {
				has_capitulated = yes
			}
			CEA = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = CEA
					}
				}
				CEA = {
					white_peace = PREV
				}
				CEA = {
					annex_country = {
						target = CMR
					}
				}
			}
		}
	
	CEA_bokassa_local_victory_mission2 = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = CEA
			tag = ADW
			}
		}
		visible = {
		OR = {
			tag = CEA
			tag = ADW
			}
		}
		available = {
			NOT = {
				has_war_with = ADW
			}
		}

		activation = {
			has_war_with = ADW
			ADW = {
				has_capitulated = yes
			}
			ADW = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = CEA
					}
				}
				CEA = {
					white_peace = PREV
				}
				CEA = {
					annex_country = {
						target = ADW
					}
				}
			}
		}
	
	UGA_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = UGA
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = UGA
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			UGA = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = UGA
					OR = {
						is_in_faction_with = MAF
						is_subject_of = MAF
						tag = MAF
					}
				}
				UGA = {
					white_peace = PREV
				}
			}
		}
	}
	
	KTG_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = KTG
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = KTG
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			KTG = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = KTG
					OR = {
						is_in_faction_with = MAF
						is_subject_of = MAF
						tag = MAF
					}
				}
				KTG = {
					white_peace = PREV
				}
			}
		}
	}
	
ZZB_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = ZZB
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = ZZB
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			ZZB = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = ZZB
					OR = {
						is_in_faction_with = MAF
						is_subject_of = MAF
						tag = MAF
					}
				}
				ZZB = {
					white_peace = PREV
				}
			}
		}
	}

RWA_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = RWA
			tag = BRD
			tag = MAF
			}
		}
		visible = {
		OR = {
			tag = RWA
			tag = BRD
			tag = MAF
			}
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = BRD
			BRD = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
			if = {
				limit = {
					RWA = {
						controls_state = 870
					}
				}
				RWA = {
					annex_country = {
						target = BRD
					}
					add_state_core = 870
					add_state_core = 918
				}
			}
				limit = {
					has_war_with = RWA
					OR = {
						is_in_faction_with = MAF
						is_subject_of = MAF
						tag = MAF
					}
				}
				RWA = {
					white_peace = PREV
				}
			}
		}
	}
	
SIE_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = SIE
			tag = ENT
			}
		}
		visible = {
		OR = {
			tag = SIE
			tag = ENT
			}
		}
		available = {
			NOT = {
				has_war_with = ENT
			}
		}

		activation = {
			has_war_with = ENT
			SIE = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = SIE
					OR = {
						is_in_faction_with = ENT
						is_subject_of = ENT
						tag = ENT
					}
				}
				SIE = {
					white_peace = PREV
				}
			}
		}
	}

SUD_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
		OR = {
			tag = SUD
			tag = EGY
			}
		}
		visible = {
		OR = {
			tag = SUD
			tag = EGY
			}
		}
		available = {
			NOT = {
				has_war_with = EGY
			}
		}

		activation = {
			has_war_with = EGY
			SUD = {
				controls_all_owned_states = yes
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = SUD
					OR = {
						is_in_faction_with = EGY
						is_subject_of = EGY
						tag = EGY
					}
				}
				SUD = {
					white_peace = PREV
				}
			}
		}
	}
	
DFR_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = DFR
		}
		visible = {
			tag = DFR
		}
		available = {
			NOT = {
				has_war_with = SUD
			}
		}

		activation = {
			has_war_with = SUD
			DFR = {
				controls_all_owned_states = yes
				controls_state = 549
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = DFR
					OR = {
						is_in_faction_with = SUD
						is_subject_of = SUD
						tag = SUD
					}
				}
				DFR = {
					white_peace = PREV
					transfer_state = 549
					set_cosmetic_tag = DFR_SUT
				}
			}
		}
	}
	
OMA_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = OMA
		}
		visible = {
			tag = OMA
		}
		available = {
			NOT = {
				has_war_with = DJI
			}
		}

		activation = {
			has_war_with = DJI
			OMA = {
				controls_all_owned_states = yes
			}
			NOT = {
				OMA = {
					is_in_faction = yes
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = OMA
					OR = {
						is_in_faction_with = DJI
						is_subject_of = DJI
						tag = DJI
					}
				}
				OMA = {
					white_peace = PREV
				}
			}
		}
	}

	ERI_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 365
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = ERI
			tag = ETH
		}
		visible = {
			tag = ERI
			tag = ETH
		}
		available = {
			NOT = {
				has_war_with = ETH
			}
		}

		activation = {
			has_war_with = ETH
			ERI = {
				controls_state = 550
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				if = {
					limit = {
						ERI = {
							controls_state = 921
						}
					}
					ERI = {
						transfer_state = 921
					}
				}
				if = {
					limit = {
						ERI = {
							controls_state = 961
						}
					}
					ERI = {
						transfer_state = 961
					}
				}
				if = {
					limit = {
						ERI = {
							controls_state = 923
						}
					}
					ERI = {
						transfer_state = 923
					}
				}
				limit = {
					has_war_with = ERI
					OR = {
						is_in_faction_with = ERI
						is_subject_of = ERI
						tag = ERI
					}
				}
				ERI = {
					white_peace = PREV
				}
			}
		}
	}

ETH_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 90
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = ETH
			tag = DJI
		}
		visible = {
			tag = ETH
			tag = DJI
		}
		available = {
			NOT = {
				has_war_with = DJI
			}
		}

		activation = {
			has_war_with = DJI
			ETH = {
				controls_all_owned_states = yes
				controls_state = 961
				controls_state = 921
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				if = {
					limit = {
						ETH = {
							controls_state = 268
						}
					}
					ETH = {
						transfer_state = 268
					}
					DJI = {
						country_event = {
							id = germanwestasia.34
							days = 2
						}
					}
				}
				limit = {
					has_war_with = ETH
					OR = {
						is_in_faction_with = DJI
						is_subject_of = DJI
						tag = DJI
					}
				}
				ETH = {
					white_peace = PREV
					}
				}
				ETH = {
					transfer_state = 961
					transfer_state = 921
				}
			}
		}
	
SOM_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = SOM
		}
		visible = {
			tag = SOM
		}
		available = {
			NOT = {
				has_war_with = DJI
			}
		}

		activation = {
			has_war_with = DJI
			SOM = {
				controls_all_owned_states = yes
				controls_state = 269
				controls_state = 1297
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
				if = {
					limit = {
						SOM = {
							controls_state = 268
						}
					}
					SOM = {
						transfer_state = 268
					}
					DJI = {
						country_event = {
							id = germanwestasia.34
							days = 2
						}
					}
				}
			every_country = { #white peace!
				limit = {
					has_war_with = SOM
					OR = {
						is_in_faction_with = DJI
						is_subject_of = DJI
						tag = DJI
					}
				}
				SOM = {
					white_peace = PREV
					}
				}
				SOM = {
					transfer_state = 269
					transfer_state = 1297
				}
			}
		}
	
KEN_SOM_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = KEN
		}
		visible = {
			tag = KEN
		}
		available = {
			NOT = {
				has_war_with = SOM
			}
		}

		activation = {
			has_war_with = SOM
			ROOT = {
				controls_all_owned_states = yes
				controls_state = 892
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = KEN
					OR = {
						is_in_faction_with = SOM
						is_subject_of = SOM
						tag = SOM
					}
				}
				KEN = {
					white_peace = PREV
				}
			}
		}
	}
	
SOM_KEN_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 60
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = SOM
		}
		visible = {
			tag = SOM
		}
		available = {
			NOT = {
				has_war_with = KEN
			}
		}

		activation = {
			has_war_with = KEN
			SOM = {
				controls_all_owned_states = yes
				controls_state = 892
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = SOM
					OR = {
						is_in_faction_with = KEN
						is_subject_of = KEN
						tag = KEN
					}
				}
				SOM = {
					white_peace = PREV
				}
				}
				SOM = {
					transfer_state = 892
				}
			}
		}

YEM_DJI_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = YEM
			tag = DJI
		}
		visible = {
			tag = YEM
			tag = DJI
		}
		available = {
			NOT = {
				has_war_with = DJI
			}
		}

		activation = {
			has_war_with = DJI
			YEM = {
				controls_all_owned_states = yes
				controls_state = 659
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = YEM
					OR = {
						is_in_faction_with = DJI
						is_subject_of = DJI
						tag = DJI
					}
				}
				YEM = {
					white_peace = PREV
				}
			}
			YEM = {
				transfer_state = 659
			}
			if = {
				limit = {
					DJI = {
						owns_state = 752
					}
				}
				YEM = {
					transfer_state = 659
				}
			}
		}
	}
	
DJI_YEM_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = DJI
			tag = YEM
		}
		visible = {
			tag = DJI
			tag = YEM
		}
		available = {
			NOT = {
				has_war_with = YEM
			}
		}

		activation = {
			has_war_with = YEM
			DJI = {
				controls_all_owned_states = yes
				controls_state = 293
				controls_state = 982
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = DJI
					OR = {
						is_in_faction_with = YEM
						is_subject_of = YEM
						tag = YEM
					}
				}
				DJI = {
					white_peace = PREV
				}
				DJI = {
					transfer_state = 293
					transfer_state = 982
				}
			}
		}
	}
	
BRM_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = BRM
			tag = DJI
		}
		visible = {
			tag = BRM
			tag = DJI
		}
		available = {
			NOT = {
				has_war_with = DJI
			}
		}

		activation = {
			has_war_with = DJI
			ROOT = {
				controls_all_owned_states = yes
				controls_state = 790
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = BRM
					OR = {
						is_in_faction_with = DJI
						is_subject_of = DJI
						tag = DJI
					}
				}
				BRM = {
					white_peace = PREV
				}
				BRM = {
					transfer_state = 790
				}
			}
		}
	}
	
DJI_BRM_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 60
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = DJI
			tag = BRM
		}
		visible = {
			tag = DJI
			tag = BRM
		}
		available = {
			NOT = {
				has_war_with = BRM
			}
		}

		activation = {
			has_war_with = BRM
			DJI = {
				controls_all_owned_states = yes
				BRM = {
					has_capitulated = yes
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = DJI
					OR = {
						is_in_faction_with = BRM
						is_subject_of = BRM
						tag = BRM
					}
				}
				DJI = {
					white_peace = PREV
				}
				DJI = {
					annex_country = {
						target = BRM
					}
				}
			}
		}
	}
	
MOR_SFA_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 90
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = MOR
			tag = SFA
		}
		visible = {
			tag = MOR
			tag = SFA
		}
		available = {
			NOT = {
				has_war_with = SFA
			}
		}

		activation = {
			has_war_with = SFA
			MOR = {
				controls_all_owned_states = yes
				controls_state = 699
				controls_state = 1318
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = MOR
					OR = {
						is_in_faction_with = SFA
						is_subject_of = SFA
						tag = SFA
					}
				}
				MOR = {
					separate_peace_all_wars = yes
					}
				}
				MOR = {
					transfer_state = 699
					transfer_state = 1318
				}
			}
		}
	
SFA_MOR_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 90
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = SFA
			tag = MOR
		}
		visible = {
			tag = SFA
			tag = MOR
		}
		available = {
			NOT = {
				has_war_with = MOR
			}
		}

		activation = {
			has_war_with = MOR
			SFA = {
				controls_all_owned_states = yes
				MOR = {
					has_capitulated = yes
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = SFA
					OR = {
						is_in_faction_with = MOR
						is_subject_of = MOR
						tag = MOR
					}
				}
				SFA = {
					white_peace = PREV
				}
				SFA = {
					annex_country = {
						target = MOR
					}
				}
			}
		}
	}

	MOR_SPR_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 90
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = MOR
			tag = SPR
		}
		visible = {
			tag = MOR
			tag = SPR
		}
		available = {
			NOT = {
				has_war_with = SPR
			}
		}

		activation = {
			has_war_with = SPR
			MOR = {
				controls_all_owned_states = yes
				controls_state = 290
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = MOR
					OR = {
						is_in_faction_with = SPR
						is_subject_of = SPR
						tag = SPR
					}
				}
				MOR = {
					separate_peace_all_wars = yes
					}
				}
				MOR = {
					transfer_state = 290
				}
			}
		}
	
SPR_MOR_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 90
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = SPR
			tag = MOR
		}
		visible = {
			tag = SPR
			tag = MOR
		}
		available = {
			NOT = {
				has_war_with = MOR
			}
		}

		activation = {
			has_war_with = MOR
			SPR = {
				controls_all_owned_states = yes
				MOR = {
					has_capitulated = yes
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = SPR
					OR = {
						is_in_faction_with = MOR
						is_subject_of = MOR
						tag = MOR
					}
				}
				SPR = {
					white_peace = PREV
				}
				if = {
					limit = {
						country_exists = SFA
						SFA = {
							is_subject_of = SPR
						}
					}
					SFA = {
						annex_country = {
							target = MOR
						}
					}
				}
				else = {
					SPR = {
						annex_country = {
							target = MOR
						}
					}
				}
			}
		}
	}

LIB_MAF_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = LIB
			tag = IVO
			tag = MAF
		}
		visible = {
			tag = LIB
			tag = IVO
			tag = MAF
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			LIB = {
				controls_all_owned_states = yes
				IVO = {
					has_capitulated = yes
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = LIB
					OR = {
						is_in_faction_with = MAF
						is_subject_of = MAF
						tag = MAF
					}
				}
				LIB = {
					separate_peace_all_wars = yes
				}
				LIB = {
					transfer_state = 807
					transfer_state = 963
				}
			}
		}
	}
	
MAF_LIB_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = LIB
			tag = IVO
			tag = MAF
		}
		visible = {
			tag = LIB
			tag = IVO
			tag = MAF
		}
		available = {
			NOT = {
				has_war_with = LIB
			}
		}

		activation = {
			has_war_with = LIB
			ROOT = {
				controls_all_owned_states = yes
				LIB = {
					has_capitulated = yes
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = MAF
					OR = {
						is_in_faction_with = LIB
						is_subject_of = LIB
						tag = LIB
					}
				}
				MAF = {
					white_peace = PREV
				}
				MAF = {
					annex_country = {
						target = LIB
					}
				}
			}
		}
	}
	
LIB_IVO_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 60
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = LIB
			tag = IVO
			tag = MAF
		}
		visible = {
			tag = LIB
			tag = IVO
			tag = MAF
		}
		available = {
			NOT = {
				has_war_with = IVO
			}
		}

		activation = {
			has_war_with = IVO
			LIB = {
				controls_all_owned_states = yes
				IVO = {
					has_capitulated = yes
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = LIB
					OR = {
						is_in_faction_with = IVO
						is_subject_of = IVO
						tag = IVO
					}
				}
				LIB = {
					white_peace = PREV
				}
				LIB = {
					annex_country = {
						target = IVO
					}
				}
			}
		}
	}

YEM_OTT_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 150
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = YEM
			tag = TUR
		}
		visible = {
			tag = YEM
			tag = TUR
		}
		available = {
			NOT = {
				has_war_with = TUR
			}
		}

		activation = {
			has_completed_focus = YEM_An_Early_Uprising
			has_war_with = TUR
			is_in_faction = no
			YEM = {
				controls_all_owned_states = yes
			}
			if = {
				limit = {
					TUR = {
						owns_state = 982
						}
					}
			controls_state = 982
			}
			if = {
				limit = {
					TUR = {
						owns_state = 659
						}
					}
			controls_state = 659
			}
			if = {
				limit = {
					TUR = {
						owns_state = 752
						}
					}
			controls_state = 752
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = YEM
					OR = {
						is_in_faction_with = TUR
						is_subject_of = TUR
						tag = TUR
					}
				}
				YEM = {
					white_peace = PREV
				}
				if = {
					limit = {
						TUR = {
							owns_state = 982
							}
						}
					YEM = { transfer_state = 982 }
				}
				if = {
					limit = {
						TUR = {
							owns_state = 659
							}
						}
					YEM = { transfer_state = 659 }
				}
				if = {
					limit = {
						TUR = {
							owns_state = 752
							}
						}
					YEM = { transfer_state = 752 }
				}
			}
		}
	}

BUSH_WAR_local_victory_mission = {
		icon = oppression
		days_mission_timeout = 30
		fire_only_once = yes
		is_good = yes
		allowed = {
			tag = MAF
			tag = COG
			tag = KTG
			tag = KAS
			tag = ORT
		}
		visible = {
			tag = MAF
			tag = COG
			tag = KTG
			tag = KAS
			tag = ORT
		}
		available = {
			NOT = {
				has_war_with = MAF
			}
		}

		activation = {
			has_war_with = MAF
			is_in_faction = no
			is_subject = no
			ROOT = {
				controls_all_owned_states = yes
				COG = {
					has_capitulated = yes
				}
			}
		}

		complete_effect = {
			custom_effect_tooltip = timer_reset_africa
		}

		timeout_effect = {
			every_country = { #white peace!
				limit = {
					has_war_with = ROOT
					OR = {
						is_in_faction_with = COG
						is_subject_of = COG
						tag = COG
					}
				}
				ROOT = {
					white_peace = PREV
				}
				if = {
					limit = {
						country_exists = KOG
					}
					KOG = {
						transfer_state = 881
					}
					KOG = {
						transfer_state = 295
						add_state_claim = 295
					}
				}
			}
		}
	}
	
}


