

political_actions = {
KON_manikongo_kongo = {
	icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = KOG }
		visible = {

		}
		available = {
			OR = {
				has_completed_focus = KOG_thekimbanguregency 
				has_completed_focus = KOG_theroyalprerogative 
				has_completed_focus = KOG_aunitarymonarchy
			}
			COG = { exists = no }
			LPD = { exists = no }
			UMN = { exists = no }
			MSF = { exists = no }
			KIV = { exists = no }
			owns_state = 881
			owns_state = 1025
			owns_state = 977
			owns_state = 879
			has_war = no
		}
		cost = 100
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		add_state_core = 881
		add_state_core = 295
		add_state_core = 538
		add_state_core = 1025
		add_state_core = 1180
		add_state_core = 718
		add_state_core = 1026
		add_state_core = 977
		add_state_core = 1181
		add_state_core = 949
		add_state_core = 1182
		add_state_core = 1185
		add_state_core = 1184
		add_state_core = 1183
		add_state_core = 879
		add_state_core = 976
		add_state_core = 914
		add_state_core = 916
		every_state = {
			limit = {
				is_core_of = ANG
			}
			add_core_of = KOG
			}
		set_cosmetic_tag = KOG_KON
		}
	}

	KBR_a_new_empire = {
	icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = KBR }
		visible = {

		}
		available = {
			has_completed_focus = FOCUS_enfeebled_no_more
			owns_state = 973
			owns_state = 662
			owns_state = 558
			owns_state = 913
			owns_state = 962
			owns_state = 878
			NGR = { exists = no }
			HAU = { exists = no }
			has_war = no
		}
		cost = 100
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		every_state = {
		limit = {
			is_core_of = NGR
		}
		add_core_of = KBR
		}
		add_state_core = 975
		add_state_core = 515
		add_state_core = 911
		add_state_core = 1192
		set_cosmetic_tag = KBR_KANEM
		}
	}

	HAU_a_new_caliphate = {
	icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = HAU }
		visible = {
		}
		available = {
			has_completed_focus = FOCUS_enfeebled_no_more
			owns_state = 973
			owns_state = 662
			owns_state = 558
			owns_state = 913
			owns_state = 962
			NGR = { exists = no }
			KBR = { exists = no }
			has_war = no
		}
		cost = 100
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		every_state = {
		limit = {
			is_core_of = NGR
		}
		add_core_of = HAU
		}
		every_state = {
		limit = {
			is_core_of = NER
		}
		add_core_of = HAU
		}
		every_state = {
		limit = {
			is_core_of = NER
		}
		add_core_of = HAU
		}
		every_state = {
		limit = {
			is_core_of = CMR
		}
		add_core_of = HAU
		}
		add_state_core = 1192
		add_state_core = 809
		add_state_core = 876
		add_state_core = 297
		set_cosmetic_tag = HAU_SOKOTO
		}
	}
HAU_fulani_jihad = {
	icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = HAU }
		visible = {
		}
		available = {
			has_completed_focus = FOCUS_enfeebled_no_more
			owns_state = 927
			owns_state = 952
			owns_state = 971
			OR = {
				owns_state = 876
				controls_state = 876
			}
			OR = {
				owns_state = 1192
				controls_state = 1192
			}
			OR = {
				owns_state = 809
				controls_state = 809
			}
		}
		cost = 100
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		every_state = {
		limit = {
			is_core_of = NGR
		}
		add_core_of = HAU
		}
		every_state = {
		limit = {
			is_core_of = NER
		}
		add_core_of = HAU
		}
		every_state = {
		limit = {
			is_core_of = NER
		}
		add_core_of = HAU
		}
		every_state = {
		limit = {
			is_core_of = CMR
		}
		add_core_of = HAU
		}
		add_state_core = 556
		add_state_core = 808
		add_state_core = 877
		add_state_core = 876
		add_state_core = 1323
		add_state_core = 1322
		add_state_core = 1321
		add_state_core = 274
		add_state_core = 963
		add_state_core = 807
		add_state_core = 806
		add_state_core = 700
		add_state_core = 272
		add_state_core = 834
		add_state_core = 296
		add_state_core = 966
		add_state_core = 298
		}
	}
	AFR_form_maf = {
		icon = generic_form_nation
		fire_only_once = yes
		allowed = { uses_generic_african_ministers = yes }
		visible = {
			has_completed_focus = AFR_Reform_Mittelafrika
		}
		available = {
			has_completed_focus = AFR_Reform_Mittelafrika
			owns_state = 539
			owns_state = 1183
			owns_state = 965
			owns_state = 925
			owns_state = 660
			owns_state = 927
			owns_state = 558
			owns_state = 881
			has_war = no
		}
		days_remove = 10
		cost = 0
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			custom_effect_tooltip = MAF_reform_mittelafrika_tt
			if = {
				limit = {
					backer_is_sand_france = yes
				}
				every_state = {
					limit = { has_state_flag = MAF_claim }
					ROOT = {
						add_state_core = PREV
					}
				}
				set_cosmetic_tag = NFA_MITTEL
			}
			if = {
				limit = {
					backer_is_canada = yes
				}
				every_state = {
					limit = { has_state_flag = MAF_claim }
					ROOT = {
						add_state_core = PREV
					}
				}
				set_cosmetic_tag = GBR_MITTEL
			}
			if = {
				limit = {
					backer_is_russia = yes
				}
				every_state = {
					limit = { has_state_flag = MAF_claim }
					ROOT = {
						add_state_core = PREV
					}
				}
				set_cosmetic_tag = RUS_MITTEL
			}
			if = {
				limit = {
					backer_is_germany = yes
				}
				every_state = {
					limit = { has_state_flag = MAF_claim }
					ROOT = {
						add_state_core = PREV
					}
				}
				set_cosmetic_tag = COG_NEW_MAF
			}
			if = {
				limit = {
					backer_is_portugal = yes
				}
				every_state = {
					limit = { has_state_flag = MAF_claim }
					ROOT = {
						add_state_core = PREV
					}
				}
				set_cosmetic_tag = POR_MITTEL
			}
		}
	}
	
	AFR_unite_africa = {
		icon = generic_form_nation
		fire_only_once = yes
		allowed = { uses_generic_african_ministers = yes }
		visible = {
			has_completed_focus = AFR_Embrace_Pan_Africanism
		}
		available = {
			has_completed_focus = AFR_Embrace_Pan_Africanism
			275 = { is_owned_by = ROOT }
			543 = { is_owned_by = ROOT }
			681 = { is_owned_by = ROOT }
			813 = { is_owned_by = ROOT }
			541 = { is_owned_by = ROOT }
			545 = { is_owned_by = ROOT }
			965 = { is_owned_by = ROOT }
			547 = { is_owned_by = ROOT }
			917 = { is_owned_by = ROOT }
			881 = { is_owned_by = ROOT }
			559 = { is_owned_by = ROOT }
			271 = { is_owned_by = ROOT }
			551 = { is_owned_by = ROOT }
			660 = { is_owned_by = ROOT }
			558 = { is_owned_by = ROOT }
			913 = { is_owned_by = ROOT }
			877 = { is_owned_by = ROOT }
			876 = { is_owned_by = ROOT }
			274 = { is_owned_by = ROOT }
			1321 = { is_owned_by = ROOT }
			1322 = { is_owned_by = ROOT }
			1323 = { is_owned_by = ROOT }
			807 = { is_owned_by = ROOT }
			298 = { is_owned_by = ROOT }
			297 = { is_owned_by = ROOT }
			879 = { is_owned_by = ROOT }
			548 = { is_owned_by = ROOT }
			has_war = no
		}
		days_remove = 10
		cost = 0
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			custom_effect_tooltip = AFR_reform_mittelafrika_tt
			every_state = {
				limit = {
					is_on_continent = africa
				}
				add_core_of = ROOT
			}
			set_cosmetic_tag = AFR_UNITED
			if = {
				limit = {
					has_government = totalist
				}
				set_country_leader_ideology = tot_left_panafricanism_subtype
			}
			if = {
				limit = {
					has_government = syndicalist
				}
				set_country_leader_ideology = syn_left_panafricanism_subtype
			}
			if = {
				limit = {
					has_government = radical_socialist
				}
				set_country_leader_ideology = radsoc_left_panafricanism_subtype
			}
			if = {
				limit = {
					has_government = social_democrat
				}
				set_country_leader_ideology = socdem_left_panafricanism_subtype
			}
			if = {
				limit = {
					has_government = social_democrat
				}
				set_country_leader_ideology = socdem_republican_panafricanism_subtype
			}
			if = {
				limit = {
					has_government = social_liberal
				}
				set_country_leader_ideology = soclib_republican_panafricanism_subtype
			}
			if = {
				limit = {
					has_government = market_liberal
				}
				set_country_leader_ideology = marlib_republican_panafricanism_subtype
			}
			if = {
				limit = {
					has_government = social_conservative
				}
				set_country_leader_ideology = soccon_republican_panafricanism_subtype
			}
			if = {
				limit = {
					has_government = authoritarian_democrat
				}
				set_country_leader_ideology = authdem_right_panafricanism_subtype
			}
			if = {
				limit = {
					has_government = paternal_autocrat
				}
				set_country_leader_ideology = pataut_right_panafricanism_subtype
			}
			if = {
				limit = {
					has_government = national_populist
				}
				set_country_leader_ideology = natpop_right_panafricanism_subtype
			}
		}
	}
}

AFR_being_corrupt = {
	AFR_accept_bribes = {
		icon = GFX_decision_cash_flow
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 0
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			clr_country_flag = AFR_taking_decision
			add_political_power = 150
			add_stability = -0.02
			AFR_increase_corruption = yes
		}
	}
	
	AFR_rig_elections = {
		icon = GFX_decision_investigation
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 0
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_rig_elections"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_rig_elections"
			clr_country_flag = AFR_taking_decision
			increase_ruling_party_popularity_by_10 = yes
			AFR_increase_corruption = yes
		}
	}
	
	AFR_embezzle_funds = {
		icon = GFX_decision_generic_fundraising
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 0
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_embezzle_funds"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_embezzle_funds"
			clr_country_flag = AFR_taking_decision
			add_offsite_building = { type = industrial_complex level = 2 }
			AFR_increase_corruption = yes
		}
	}
	
	AFR_cut_deals_with_warlords = {
		icon = GFX_decision_generic_reorganize_irregulars
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 0
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_cut_deals_with_warlords"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_cut_deals_with_warlords"
			clr_country_flag = AFR_taking_decision
			army_experience = 100
			add_command_power = 100
			AFR_increase_corruption = yes
		}
	}
	
	AFR_nepotism = {
		icon = GFX_decision_generic_political_discourse
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 0
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_nepotism"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_nepotism"
			clr_country_flag = AFR_taking_decision
			add_stability = 0.1
			increase_ruling_party_popularity_by_5 = yes
			AFR_increase_corruption = yes
		}
	}
	
}

AFR_dealing_with_corruption = {
	AFR_crack_down_on_bribery = {
		icon = GFX_decision_generic_arrest
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 50
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			clr_country_flag = AFR_taking_decision
			add_political_power = -30
			AFR_decrease_corruption = yes
		}
	}
	
	AFR_hire_poll_guards = {
		icon = GFX_decision_binoculars
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 50
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			clr_country_flag = AFR_taking_decision
			decrease_ruling_party_popularity_by_5 = yes
			AFR_decrease_corruption = yes
		}
	}
	
	AFR_force_buisness_integrity = {
		icon = GFX_decision_generic_merge_plant_materiel
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 50
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			clr_country_flag = AFR_taking_decision
			add_offsite_building = { type = industrial_complex level = -1 }
			AFR_decrease_corruption = yes
		}
	}
	
	AFR_anti_corruption_task_force = {
		icon = GFX_decision_SWI_dismiss_council
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 50
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			clr_country_flag = AFR_taking_decision
			add_stability = 0.05
			AFR_decrease_corruption = yes
		}
	}
	
	AFR_root_out_army_corruption = {
		icon = GFX_decision_generic_police_action
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 50
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			clr_country_flag = AFR_taking_decision
			add_command_power = -50
			army_experience = 50
			AFR_decrease_corruption = yes
		}
	}
	
	AFR_protect_whistleblowers = {
		icon = GFX_decision_generic_political_rally
		fire_only_once = yes
		visible = {
			
		}
		available = {
			NOT = {
				has_country_flag = AFR_taking_decision
			}
		}
		days_remove = 40
		cost = 50
		ai_will_do = {
			factor = 5
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			set_country_flag = AFR_taking_decision
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			clr_country_flag = AFR_taking_decision
			add_stability = 0.05
			add_political_power = -10
			AFR_decrease_corruption = yes
		}
	}
}