###########################################
# Ethiopia Decisions by Todd Howard
###########################################

political_actions = {
	ETH_claim_maf = {
		icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = ETH }
		visible = {
			has_global_flag = MAF_collapse
		}
		available = {
			has_global_flag = MAF_collapse
			has_war = no
			OR = {
				owns_state = 268 #Djibouti
				owns_state = 906 #Ogaden
			}
		}
		cost = 100
		ai_will_do = {
			factor = 0
		}
		remove_effect = {
		set_country_flag = ETH_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 ETH_claim_maf"
		}
	}
	ETH_form_maf = {
		icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = ETH }
		visible = {
			has_global_flag = MAF_collapse
			has_country_flag = ETH_claim_maf
		}
		available = {
			has_global_flag = MAF_collapse
			OR = {
				owns_state = 268 #Djibouti
				owns_state = 906 #Ogaden
			}
			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 ETH_form_maf"
			custom_effect_tooltip = MAF_reform_mittelafrika_tt
				every_state = {
					limit = { has_state_flag = MAF_claim }
					ROOT = {
						add_state_core = PREV
					}
				}
			set_cosmetic_tag = ETH_KNGEMP
		}
	}
}

ETH_faction_decisions = {

ETH_join_germany = {# join Reichspakt
icon = generic_agreement
		allowed = { original_tag = ETH }
		available = {
			tag = ETH
			is_in_faction = no
			is_subject = no
			has_country_flag = ETH_GER_FACTION
			GER = {
			is_faction_leader = yes
				}
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
				}
			NOT = {
					has_idea = ETH_Ethiopian_Isolation
				}
			}
		visible = {
			NOT = {
			has_idea = ETH_Ethiopian_Isolation
			}
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
			}
		}
		fire_only_once = yes
		cost = 100
		days_remove = 15

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SOM_join_germany"
		}
		remove_effect = {
		GER = {
		country_event = ethiopia.36
			}
		}
	}
ETH_join_japan = {# join Co-Prosperity Sphere
icon = generic_agreement
		allowed = { original_tag = ETH }
		available = {
			tag = ETH
			is_in_faction = no
			is_subject = no
			has_country_flag = ETH_JAP_FACTION
			JAP = {
			is_faction_leader = yes
				}
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
				}
			SOM = {
				NOT = {
				is_in_faction_with = JAP
				}
			}
			NOT = {
				has_idea = ETH_Ethiopian_Isolation
				}
			}
		visible = {
			NOT = {
			has_idea = ETH_Ethiopian_Isolation
			}
			559 = { is_controlled_by_ROOT_or_ally  = yes }
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
			}
			SOM = {
				NOT = {
				is_in_faction_with = JAP
				}
			}
		}
		fire_only_once = yes
		cost = 100
		days_remove = 15

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SOM_join_germany"
		}
		remove_effect = {
		JAP = {
		country_event = ethiopia.36
			}
		}
	}
ETH_join_entente = {# join Entente
icon = generic_agreement
		allowed = { original_tag = ETH }
		available = {
			tag = ETH
			is_in_faction = no
			is_subject = no
			has_country_flag = ETH_ENT_FACTION
			ENT = {
			is_faction_leader = yes
				}
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
				}
			NOT = {
				has_idea = ETH_Ethiopian_Isolation
				}
			}
		visible = {
			NOT = {
			has_idea = ETH_Ethiopian_Isolation
			}
			559 = { is_controlled_by_ROOT_or_ally  = yes }
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
			}
		}
		fire_only_once = yes
		cost = 100
		days_remove = 15

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SOM_join_germany"
		}
		remove_effect = {
		ENT = {
		country_event = ethiopia.36
			}
		}
	}
ETH_join_france = {# join Third Internationale
icon = generic_agreement
		allowed = { original_tag = ETH }
		available = {
			tag = ETH
			is_in_faction = no
			is_subject = no
			has_country_flag = ETH_INT_FACTION
			INT = {
			is_faction_leader = yes
				}
			has_completed_focus = ETH_Elections
			has_government = social_democrat
			NOT = {
				has_idea = ETH_Ethiopian_Isolation
				}
			}
		visible = {
			NOT = {
			has_idea = ETH_Ethiopian_Isolation
			}
			559 = { is_controlled_by_ROOT_or_ally  = yes }
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
			}
		}
		fire_only_once = yes
		cost = 100
		days_remove = 15

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SOM_join_germany"
		}
		remove_effect = {
		INT = {
		country_event = ethiopia.36
			}
		}
	}
ETH_join_russia = {# join Russia
icon = generic_agreement
		allowed = { original_tag = ETH }
		available = {
			tag = ETH
			is_in_faction = no
			is_subject = no
			has_country_flag = ETH_RUS_FACTION
			RUS = {
			is_faction_leader = yes
				}
			has_completed_focus = ETH_Elections
			NOT = {
				has_idea = ETH_Ethiopian_Isolation
			}
		}
		visible = {
			NOT = {
			has_idea = ETH_Ethiopian_Isolation
			}
			559 = { is_controlled_by_ROOT_or_ally  = yes }
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
			}
		}
		fire_only_once = yes
		cost = 100
		days_remove = 15

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision SOM_join_russia"
		}
		remove_effect = {
		RUS = {
		country_event = ethiopia.36
			}
		}
	}
ETH_orgainzation_african_unity = {# create Organization for African Unity
icon = generic_agreement
		allowed = { original_tag = ETH }
		available = {
			tag = ETH
			is_in_faction = no
			is_subject = no
			has_country_flag = ETH_OWN_FACTION
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
				}
			NOT = {
				has_idea = ETH_Ethiopian_Isolation
				}
			}
		visible = {
			NOT = {
			has_idea = ETH_Ethiopian_Isolation
			}
			559 = { is_controlled_by_ROOT_or_ally  = yes }
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
			}
		}
		fire_only_once = yes
		cost = 100
		days_remove = 15

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ETH_orgainzation_african_unity"
		}
		remove_effect = {
		create_faction =  "Organization for African Unity"
		}
	}
ETH_isolation = {# Embrace Isolationism
icon = generic_agreement
		allowed = { original_tag = ETH }
		available = {
			tag = ETH
			is_in_faction = no
			is_subject = no
			has_country_flag = ETH_NEUTRAL
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
				}
			NOT = {
				has_idea = ETH_Ethiopian_Isolation
				}
			}
		visible = {
			NOT = {
			has_idea = ETH_Ethiopian_Isolation
			}
			559 = { is_controlled_by_ROOT_or_ally  = yes }
			OR = {
				has_completed_focus = ETH_Elections
				has_completed_focus = ETH_Lion_Of_Judah
				has_completed_focus = ETH_Power_Council
			}
		}
		fire_only_once = yes
		cost = 100
		days_remove = 15

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision ETH_isolation"
		}
		remove_effect = {
		add_ideas = ETH_Ethiopian_Isolation
		}
	}
}	