###########################
# Nigeria Decisions
###########################
political_actions = {
	NGR_claim_maf = {
		icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = NGR }
		visible = {
			has_global_flag = MAF_collapse
			OR = {
			has_completed_focus = NGR_enforceanewmandate
			has_completed_focus = NGR_reformthedualmandate
			}
		}
		available = {
			has_global_flag = MAF_collapse
			OR = {
			has_completed_focus = NGR_enforceanewmandate
			has_completed_focus = NGR_reformthedualmandate
			}
			has_war = no
		}
		cost = 100
		ai_will_do = {
			factor = 0
		}
		remove_effect = {
		set_country_flag = NGR_claim_maf
		custom_effect_tooltip = KIK_gain_wargoals_tt
		every_country = {
			limit = { is_in_array = { global.MAF_collapse_tags = THIS } }
			ROOT = {
				create_wargoal = {
					type = annex_everything target = PREV
				}
			}
		}
		every_state = {
			limit = { has_state_flag = MAF_claim }
			ROOT = {
				add_state_claim = PREV
			}
		}
		every_country = {
			limit = { is_subject_of = ROOT }
			ROOT = {
				annex_country = {
					target = PREV
					transfer_troops = yes
				}
			}
		}
		unlock_decision_tooltip = AFR_form_maf
		log = "[GetDateText]: [Root.GetName]: Decision MAG_claim_maf"
		}
	}
	NGR_form_maf = {
		icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = NGR }
		visible = {
			has_global_flag = MAF_collapse
			has_country_flag = NGR_claim_maf
			OR = {
			has_completed_focus = NGR_reformthedualmandate
			has_completed_focus = NGR_enforceanewmandate
			}
		}
		available = {
			has_global_flag = MAF_collapse
			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 = 0
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision NGR_form_maf"
			custom_effect_tooltip = MAF_reform_mittelafrika_tt
			if = {
				limit = {
					has_completed_focus = NGR_enforceanewmandate
				}
				every_state = {
					limit = { has_state_flag = MAF_claim }
					ROOT = {
						add_state_core = PREV
					}
				}
				set_cosmetic_tag = COG_NEW_MAF
			}
			if = {
				limit = {
					has_completed_focus = NGR_reformthedualmandate
				}
				every_state = {
					limit = { has_state_flag = MAF_claim }
					ROOT = {
						add_state_core = PREV
					}
				}
				set_cosmetic_tag = GBR_MITTEL
			}
		}
	}
}

NGR_claiming_west_africa = {		
	NGR_liberate_togoland = {

		icon = generic_prepare_civil_war
		
		allowed = {	original_tag = NGR }

		available = {
			is_subject = no
			controls_all_owned_states = yes
			OR = {
			has_country_flag = NGR_one_state_solution
			has_country_flag = NGR_two_state_solution
			}
		}
		
				

		days_re_enable = 0

		visible = {
		has_completed_focus = NGR_unitetheyoruba
		}			

		cost = 0

		ai_will_do = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_war = yes
					has_army_manpower = { size < 200000 }
					NOT = { is_neighbor_of = FROM }
				}
			}
			modifier = {
				factor = 0.1
				FROM = { same_government_type_as_ROOT = yes }
			}
			modifier = {
				factor = 0
				NOT = {
					AND = {
						is_in_faction = no
						strength_ratio = { tag = FROM ratio = 1.0 }
					}
					NFA = {
						is_in_faction_with = IVO
						strength_ratio = { tag = FROM ratio = 0.50 }
					}
					AND = {
						is_in_faction = yes
						NOT = { is_in_faction_with = CAN }
						any_allied_country = {
							is_faction_leader = yes
							strength_ratio = { tag = FROM ratio = 1.0 }
						}
					}
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision NGR_liberate_states target: [From.GetName]"
			declare_war_on = {	type = annex_everything	target = TOG }
		}
	}
	NGR_liberate_dahomey = {

		icon = generic_prepare_civil_war

		allowed = {	original_tag = NGR }
		
		available = {
			is_subject = no
			controls_all_owned_states = yes
			OR = {
			has_country_flag = NGR_one_state_solution
			has_country_flag = NGR_two_state_solution
			}
		}
		
				

		days_re_enable = 0

		visible = {
		has_completed_focus = NGR_unitetheyoruba
		}			

		cost = 0

		ai_will_do = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_war = yes
					has_army_manpower = { size < 200000 }
					NOT = { is_neighbor_of = FROM }
				}
			}
			modifier = {
				factor = 0.1
				FROM = { same_government_type_as_ROOT = yes }
			}
			modifier = {
				factor = 0
				NOT = {
					AND = {
						is_in_faction = no
						strength_ratio = { tag = FROM ratio = 1.0 }
					}
					NFA = {
						is_in_faction_with = IVO
						strength_ratio = { tag = FROM ratio = 0.50 }
					}
					AND = {
						is_in_faction = yes
						NOT = { is_in_faction_with = CAN }
						any_allied_country = {
							is_faction_leader = yes
							strength_ratio = { tag = FROM ratio = 1.0 }
						}
					}
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision NGR_liberate_states target: [From.GetName]"
			declare_war_on = {	type = annex_everything	target = DAH }
		}
	}
	NGR_liberate_ashanti = {

		icon = generic_prepare_civil_war

		allowed = {	original_tag = NGR }
		
		available = {
			is_subject = no
			controls_all_owned_states = yes
			OR = {
			has_country_flag = NGR_one_state_solution
			has_country_flag = NGR_two_state_solution
			}
		}
		
				

		days_re_enable = 0

		visible = {
		has_completed_focus = NGR_unitetheyoruba
		}			

		cost = 0

		ai_will_do = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_war = yes
					has_army_manpower = { size < 200000 }
					NOT = { is_neighbor_of = FROM }
				}
			}
			modifier = {
				factor = 0.1
				FROM = { same_government_type_as_ROOT = yes }
			}
			modifier = {
				factor = 0
				NOT = {
					AND = {
						is_in_faction = no
						strength_ratio = { tag = FROM ratio = 1.0 }
					}
					NFA = {
						is_in_faction_with = IVO
						strength_ratio = { tag = FROM ratio = 0.50 }
					}
					AND = {
						is_in_faction = yes
						NOT = { is_in_faction_with = CAN }
						any_allied_country = {
							is_faction_leader = yes
							strength_ratio = { tag = FROM ratio = 1.0 }
						}
					}
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision NGR_liberate_states target: [From.GetName]"
			declare_war_on = {	type = annex_everything	target = GHA }
		}
	}
	NGR_liberate_ivory_coast = {

		icon = generic_prepare_civil_war

		allowed = {	original_tag = NGR }
		
		available = {
			is_subject = no
			controls_all_owned_states = yes
			OR = {
			has_country_flag = NGR_one_state_solution
			has_country_flag = NGR_two_state_solution
			}
		}
		
				

		days_re_enable = 0

		visible = {
		has_completed_focus = NGR_unitetheyoruba
		}			

		cost = 0

		ai_will_do = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_war = yes
					has_army_manpower = { size < 200000 }
					NOT = { is_neighbor_of = FROM }
				}
			}
			modifier = {
				factor = 0.1
				FROM = { same_government_type_as_ROOT = yes }
			}
			modifier = {
				factor = 0
				NOT = {
					AND = {
						is_in_faction = no
						strength_ratio = { tag = FROM ratio = 1.0 }
					}
					NFA = {
						is_in_faction_with = IVO
						strength_ratio = { tag = FROM ratio = 0.50 }
					}
					AND = {
						is_in_faction = yes
						NOT = { is_in_faction_with = CAN }
						any_allied_country = {
							is_faction_leader = yes
							strength_ratio = { tag = FROM ratio = 1.0 }
						}
					}
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision NGR_liberate_states target: [From.GetName]"
			declare_war_on = {	type = annex_everything	target = IVO }
		}
	}

	
	NGR_puppet_togoland = {

		icon = generic_prepare_civil_war
		
		allowed = {	original_tag = NGR }

		available = {
			is_subject = no
			controls_all_owned_states = yes
			OR = {
			has_country_flag = NGR_one_state_solution
			has_country_flag = NGR_two_state_solution
			}
		}
		
				

		days_re_enable = 0

		visible = {
		has_completed_focus = NGR_unitetheyoruba
		}			

		cost = 0

		ai_will_do = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_war = yes
					has_army_manpower = { size < 200000 }
					NOT = { is_neighbor_of = FROM }
				}
			}
			modifier = {
				factor = 0.1
				FROM = { same_government_type_as_ROOT = yes }
			}
			modifier = {
				factor = 0
				NOT = {
					AND = {
						is_in_faction = no
						strength_ratio = { tag = FROM ratio = 1.0 }
					}
					NFA = {
						is_in_faction_with = IVO
						strength_ratio = { tag = FROM ratio = 0.50 }
					}
					AND = {
						is_in_faction = yes
						NOT = { is_in_faction_with = CAN }
						any_allied_country = {
							is_faction_leader = yes
							strength_ratio = { tag = FROM ratio = 1.0 }
						}
					}
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision NGR_puppet_states target: [From.GetName]"
			declare_war_on = {	type = puppet_wargoal_focus	target = TOG }
		}
	}
	NGR_puppet_dahomey = {

		icon = generic_prepare_civil_war

		allowed = {	original_tag = NGR }
		
		available = {
			is_subject = no
			controls_all_owned_states = yes
			OR = {
			has_country_flag = NGR_one_state_solution
			has_country_flag = NGR_two_state_solution
			}
		}
		
				

		days_re_enable = 0

		visible = {
		has_completed_focus = NGR_unitetheyoruba
		}			

		cost = 0

		ai_will_do = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_war = yes
					has_army_manpower = { size < 200000 }
					NOT = { is_neighbor_of = FROM }
				}
			}
			modifier = {
				factor = 0.1
				FROM = { same_government_type_as_ROOT = yes }
			}
			modifier = {
				factor = 0
				NOT = {
					AND = {
						is_in_faction = no
						strength_ratio = { tag = FROM ratio = 1.0 }
					}
					NFA = {
						is_in_faction_with = IVO
						strength_ratio = { tag = FROM ratio = 0.50 }
					}
					AND = {
						is_in_faction = yes
						NOT = { is_in_faction_with = CAN }
						any_allied_country = {
							is_faction_leader = yes
							strength_ratio = { tag = FROM ratio = 1.0 }
						}
					}
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision NGR_puppet_states target: [From.GetName]"
			declare_war_on = {	type = puppet_wargoal_focus	target = DAH }
		}
	}
	NGR_puppet_ashanti = {

		icon = generic_prepare_civil_war

		allowed = {	original_tag = NGR }
		
		available = {
			is_subject = no
			controls_all_owned_states = yes
			OR = {
			has_country_flag = NGR_one_state_solution
			has_country_flag = NGR_two_state_solution
			}
		}
		
				

		days_re_enable = 0

		visible = {
		has_completed_focus = NGR_unitetheyoruba
		}			

		cost = 0

		ai_will_do = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_war = yes
					has_army_manpower = { size < 200000 }
					NOT = { is_neighbor_of = FROM }
				}
			}
			modifier = {
				factor = 0.1
				FROM = { same_government_type_as_ROOT = yes }
			}
			modifier = {
				factor = 0
				NOT = {
					AND = {
						is_in_faction = no
						strength_ratio = { tag = FROM ratio = 1.0 }
					}
					NFA = {
						is_in_faction_with = IVO
						strength_ratio = { tag = FROM ratio = 0.50 }
					}
					AND = {
						is_in_faction = yes
						NOT = { is_in_faction_with = CAN }
						any_allied_country = {
							is_faction_leader = yes
							strength_ratio = { tag = FROM ratio = 1.0 }
						}
					}
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision NGR_puppet_states target: [From.GetName]"
			declare_war_on = {	type = puppet_wargoal_focus	target = GHA }
		}
	}
	NGR_puppet_ivory_coast = {

		icon = generic_prepare_civil_war

		allowed = {	original_tag = NGR }
		
		available = {
			is_subject = no
			controls_all_owned_states = yes
			OR = {
			has_country_flag = NGR_one_state_solution
			has_country_flag = NGR_two_state_solution
			}
		}
		
				

		days_re_enable = 0

		visible = {
		has_completed_focus = NGR_unitetheyoruba
		}			

		cost = 0

		ai_will_do = {
			factor = 20
			modifier = {
				factor = 0
				OR = {
					has_war = yes
					has_army_manpower = { size < 200000 }
					NOT = { is_neighbor_of = FROM }
				}
			}
			modifier = {
				factor = 0.1
				FROM = { same_government_type_as_ROOT = yes }
			}
			modifier = {
				factor = 0
				NOT = {
					AND = {
						is_in_faction = no
						strength_ratio = { tag = FROM ratio = 1.0 }
					}
					NFA = {
						is_in_faction_with = IVO
						strength_ratio = { tag = FROM ratio = 0.50 }
					}
					AND = {
						is_in_faction = yes
						NOT = { is_in_faction_with = CAN }
						any_allied_country = {
							is_faction_leader = yes
							strength_ratio = { tag = FROM ratio = 1.0 }
						}
					}
				}
			}
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision NGR_puppet_states target: [From.GetName]"
			declare_war_on = {	type = puppet_wargoal_focus	target = IVO }
		}
	}
}