TKE_foreign_policy = {
TKE_attack_country = {
		name = RUS_Attack_Region
		icon = generic_prepare_civil_war
		allowed = { always = no }
		available = {
			tag = TKE
		}
		visible = {
			can_declare_war_on = FROM
		}
		
		cost = 30
		days_remove = 30
		fire_only_once = yes
		war_with_target_on_remove = yes
		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				OR = {
					FROM = { dont_start_major_faction_wars = yes }
					ROOT_is_threatened_cautious = yes
					FROM = { default_attack_AI_trigger_FROM = yes }
				}
			}
		}
		
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFG_attack_country target: [From.GetName]"
			FROM = { incoming_war_notification_effect = yes }
			setup_decision_attack_AI = yes			
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove AFG_attack_country target: [From.GetName]"
			clear_decision_attack_AI = yes
			declare_war_on = {
				target = FROM
				type = annex_everything
			}
		}
	}
	
TKE_unite_gabon = {
icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			GAB = { exists = no }
			has_completed_focus = TKE_unite_moyen_congo
			owns_state = 539
			NOT = { 539 = { is_core_of = TKE } }
		}
		available = {
			has_completed_focus = TKE_unite_moyen_congo
			owns_state = 539
		}
		cost = 30
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		every_state = {
			limit = {
				OR = {
				is_core_of = GAB
				is_claimed_by = GAB
				}
			}
			add_core_of = TKE
		}
		GAB = {
			every_unit_leader = {
			set_nationality = TKE
			}
		}
		if = {
		limit = { has_government = social_liberal }
		hidden_effect = {
		country_event = {
				id = teke.43
				days = 7
				}
			}
		}
	}
}
TKE_unite_equatorial_africa = {
	icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_towards_equatorial_africa
		}
		available = {
			has_completed_focus = TKE_towards_equatorial_africa
			CMR = { exists = no }
			CEA = { exists = no }
			owns_state = 927
			owns_state = 952
			owns_state = 660
			owns_state = 962
			has_war = no
		}
		cost = 100
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		every_state = {
			limit = {
				OR = {
				is_core_of = CMR
				is_core_of = CEA
				is_core_of = WAD
				state = 962
				}
			}
			add_core_of = TKE
			}
			if = {
				limit = {
					has_completed_focus = TKE_revival_of_the_kingdom
					is_in_faction_with = ENT
				}
				set_cosmetic_tag = GAB_EQUATOR
			}
			else_if = {
				limit = {
					has_completed_focus = TKE_revival_of_the_kingdom
					is_in_faction_with = GER
				}
				set_cosmetic_tag = TKE_aquator
			}
			else_if = {
				set_cosmetic_tag = TKE_equator
			}
		}
	}
TKE_attack_congo = {
icon = generic_prepare_civil_war
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_towards_congo_basin
			NOT = { has_country_flag = TKE_supporting_kivu }
		}
		available = {
			has_completed_focus = TKE_towards_congo_basin
			NOT = { has_country_flag = TKE_supporting_kivu }
		}
		cost = 75
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		add_state_claim = 538
		add_state_claim = 1025
		add_state_claim = 1180
		add_state_claim = 718
		add_state_claim = 1026
		add_state_claim = 977
		add_state_claim = 1181
		add_state_claim = 949
		add_state_claim = 1182
		add_state_claim = 1185
		add_state_claim = 1184
		add_state_claim = 1183
		add_state_claim = 879
		add_state_claim = 976
		set_country_flag = TKE_claimed_congo
		if = {
			limit = { country_exists = LPD }
			activate_targeted_decision = { target = LPD decision = TKE_attack_country }
		}
		if = {
			limit = { country_exists = COG }
			activate_targeted_decision = { target = COG decision = TKE_attack_country }
		}
		if = {
			limit = { country_exists = MSF }
			activate_targeted_decision = { target = MSF decision = TKE_attack_country }
		}
		if = {
			limit = { country_exists = KIV }
			activate_targeted_decision = { target = KIV decision = TKE_attack_country }
		}
		if = {
			limit = { country_exists = UMN }
			activate_targeted_decision = { target = UMN decision = TKE_attack_country }
		}
	}
}
TKE_support_kivu = {
icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_towards_congo_basin
			KIV = { exists = yes }
			NOT = { has_completed_focus = TKE_revival_of_the_kingdom }
		}
		available = {
			has_completed_focus = TKE_towards_congo_basin
			NOT = { has_country_flag = TKE_claimed_congo }
		}
		custom_cost_trigger = {
			has_equipment = { infantry_equipment > 999 }
		}
		custom_cost_text = 1000_infantry_equipment_1
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		KIV = { add_opinion_modifier = { target = TKE modifier = medium_increase } }
		send_equipment = { target = TKE type = infantry_equipment amount = 1000 }
		set_country_flag = TKE_supporting_kivu
	}
}
TKE_intervene_kivu = {
icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_towards_congo_basin
			has_country_flag = TKE_supporting_kivu
			KIV = { 
			exists = yes 
			has_war = yes
			}
		}
		available = {
			has_country_flag = TKE_supporting_kivu
			NOT = { has_country_flag = TKE_claimed_congo }
		}
		cost = 50
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		KIV = {
		diplomatic_relation = {
			country = TKE
			relation = military_access
			active = yes
			}
		}
		if = {
			limit = { KIV = { has_war_with = COG } }
			TKE = {
			add_to_war = {
				targeted_alliance = KIV
				enemy = COG
				}
			}
		}
		if = {
			limit = { KIV = { has_war_with = MSF } }
			TKE = {
			add_to_war = {
				targeted_alliance = KIV
				enemy = MSF
				}
			}
		}
		if = {
			limit = { KIV = { has_war_with = UMN } }
			TKE = {
			add_to_war = {
				targeted_alliance = KIV
				enemy = UMN
				}
			}
		}
		if = {
			limit = { KIV = { has_war_with = LPD } }
			TKE = {
			add_to_war = {
				targeted_alliance = KIV
				enemy = LPD
				}
			}
		}
	}
}
TKE_unify_kivu = {
	icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_towards_congo_basin
			has_country_flag = TKE_supporting_kivu
			KIV = { exists = yes }
		}
		available = {
			has_global_flag = CONGO_SHITSHOW_OVER
			COG = { exists = no }
			LPD = { exists = no }
			UMN = { exists = no }
			MSF = { exists = no }
			KIV = {
			owns_state = 881
			owns_state = 1025
			owns_state = 977
			owns_state = 879
			}
		}
		cost = 100
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		country_event = teke.28
	}
}
TKE_support_kimbangu = {
icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_towards_congo_basin
			OR = {
			has_country_leader_ideology = matswanism_subtype
			has_country_leader_ideology = syn_matswanism_subtype
			}
			LPD = { 
			exists = yes 
			has_completed_focus = LPD_Kimbanguist_Takeover
			}
			NOT = { has_completed_focus = TKE_revival_of_the_kingdom }
		}
		available = {
			has_completed_focus = TKE_towards_congo_basin
			NOT = { has_country_flag = TKE_claimed_congo }
		}
		custom_cost_trigger = {
			has_equipment = { infantry_equipment > 999 }
		}
		custom_cost_text = 1000_infantry_equipment_1
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		LPD = { add_opinion_modifier = { target = TKE modifier = medium_increase } }
		send_equipment = { target = TKE type = infantry_equipment amount = 1000 }
		set_country_flag = TKE_supporting_kimbangu
	}
}
TKE_intervene_kimbangu = {
name = TKE_intervene_kivu
icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_towards_congo_basin
			has_country_flag = TKE_supporting_kimbangu
			LPD = { 
			exists = yes 
			has_war = yes
			}
		}
		available = {
			has_country_flag = TKE_supporting_kimbangu
			NOT = { has_country_flag = TKE_claimed_congo }
		}
		cost = 50
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		LPD = {
		diplomatic_relation = {
			country = TKE
			relation = military_access
			active = yes
			}
		}
		if = {
			limit = { LPD = { has_war_with = COG } }
			TKE = {
			add_to_war = {
				targeted_alliance = LPD
				enemy = COG
				}
			}
		}
		if = {
			limit = { LPD = { has_war_with = MSF } }
			TKE = {
			add_to_war = {
				targeted_alliance = LPD
				enemy = MSF
				}
			}
		}
		if = {
			limit = { LPD = { has_war_with = UMN } }
			TKE = {
			add_to_war = {
				targeted_alliance = LPD
				enemy = UMN
				}
			}
		}
		if = {
			limit = { LPD = { has_war_with = KIV } }
			TKE = {
			add_to_war = {
				targeted_alliance = LPD
				enemy = KIV
				}
			}
		}
	}
}
TKE_unify_kimbangu = {
	icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_towards_congo_basin
			has_country_flag = TKE_supporting_kimbangu
			LPD = { exists = yes }
		}
		available = {
			has_global_flag = CONGO_SHITSHOW_OVER
			COG = { exists = no }
			KIV = { exists = no }
			UMN = { exists = no }
			MSF = { exists = no }
			LPD = {
			owns_state = 881
			owns_state = 1025
			owns_state = 977
			owns_state = 879
			
			}
		}
		cost = 100
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		country_event = teke.32
	}
}
TKE_unite_congo = {
	icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_towards_congo_basin
			has_country_flag = TKE_claimed_congo
		}
		available = {
			has_completed_focus = TKE_towards_congo_basin
			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
		complete_national_focus = COG_new_realities
		if = {
		limit = {
		has_government = market_liberal
		}
		country_event = {
				id = teke.20
				days = 14
			}
		}
		else_if = {
		limit = {
		has_completed_focus = TKE_revival_of_the_kingdom
		}
		set_cosmetic_tag = TKE_kingdom
		country_event = teke.26
		}
		else_if = {
		limit = {
		has_country_leader = { name = "Moe Poaty III" ruling_only = yes }
		}
		set_cosmetic_tag = TKE_loango_greater
		}
		if = {
		limit = {
		has_completed_focus = TKE_revival_of_the_kingdom
		}
		news_event = { id = congo_news.12 days = 1 }
		}
		else_if = {
		limit = {
		has_government = market_liberal
		}
		news_event = { id = congo_news.10 days = 1 }
		}
		else_if = {
		limit = {
		has_government = social_democrat
		}
		news_event = { id = congo_news.11 days = 1 }
		}
		else_if = {
		limit = {
		has_government = social_liberal
		}
		news_event = { id = congo_news.11 days = 1 }
		}
		else_if = {
		limit = {
		has_government = social_conservative
		}
		news_event = { id = congo_news.11 days = 1 }
		}
		else_if = {
		limit = {
		has_completed_focus = TKE_opangault_victory
		}
		news_event = { id = congo_news.13 days = 1 }
		}
		else_if = {
		limit = {
		has_completed_focus = TKE_matsoua_victory
		}
		news_event = { id = congo_news.14 days = 1 }
		}
		else_if = {
		limit = {
		has_completed_focus = TKE_ngot_victory
		}
		news_event = { id = congo_news.15 days = 1 }
		}
		else_if = {
		limit = {
		has_completed_focus = TKE_debat_victory
		}
		news_event = { id = congo_news.16 days = 1 }
		}
	}
}
TKE_form_maf = {
		icon = generic_form_nation
		name = AFR_form_maf
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_global_flag = MAF_collapse
			has_completed_focus = TKE_restoring_mittelafrika
		}
		available = {
			has_global_flag = MAF_collapse
			has_completed_focus = TKE_restoring_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
		}
		cost = 100
		ai_will_do = {
			factor = 0
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision AFR_accept_bribes"
			custom_effect_tooltip = MAF_reform_mittelafrika_tt
			every_state = {
				limit = { has_state_flag = MAF_claim }
				ROOT = {
						add_state_core = PREV
				}
			}
			hidden_effect = { 925 = { add_core_of = TKE } }
			if = {
				limit = {
					is_in_faction_with = GER
					}
				set_cosmetic_tag = COG_NEW_MAF
			}
			else_if = {
				limit = {
					is_in_faction_with = ENT
					}
				set_cosmetic_tag = NFA_MITTEL
			}
		}
	}
TKE_unite_bantu = {
	icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_unite_bas_congo
		}
		available = {
			has_completed_focus = TKE_unite_bas_congo
			ZAM = { exists = no }
			TZN = { exists = no }
			KIK = { exists = no }
			KEN = { exists = no }
			owns_state = 813
			owns_state = 965
			owns_state = 925
			has_war = no
		}
		cost = 100
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		every_state = {
			limit = {
				OR = {
				is_core_of = ANG
				is_core_of = BRT
				is_core_of = ZAM
				is_core_of = ZIM
				is_core_of = MZB
				is_core_of = TZN
				is_core_of = BRD
				is_core_of = RWA
				is_core_of = UGA
				is_core_of = KIK
				is_core_of = KEN
				state = 905
				state = 708
				}
			}
			add_core_of = TKE
			}
		country_event = teke.22
		}
	}
TKE_unite_francophone = {
	icon = generic_form_nation
		fire_only_once = yes
		allowed = { tag = TKE }
		visible = {
			has_completed_focus = TKE_unite_french_africa
		}
		available = {
			has_completed_focus = TKE_unite_french_africa
			NFA = { exists = no }
			459 = { is_owned_and_controlled_by_ROOT_or_ALLY = yes }
			has_war = no
		}
		cost = 100
		ai_will_do = {
			factor = 5
		}
		remove_effect = {
		every_state = {
			limit = {
				OR = {
				is_core_of = WAD
				is_core_of = NER
				is_core_of = BFA
				is_core_of = MAL
				is_core_of = MRT
				is_core_of = GNA
				is_core_of = SEN
				is_core_of = ALG
				is_core_of = TUN
				is_core_of = DAH
				is_core_of = IVO
				is_core_of = MAG
				state = 268
				state = 807
				state = 963
				}
			}
			add_core_of = TKE
			}
		set_cosmetic_tag = TKE_french_africa
		if = {
			limit = { country_exists = MAG }
			activate_targeted_decision = { target = MAG decision = TKE_attack_country }
		}
		if = {
			limit = { country_exists = DJI }
			activate_targeted_decision = { target = DJI decision = TKE_attack_country }
			}
		}
	}
}

TKE_faction_decisions = {
TKE_join_germany = {# join Reichspakt
icon = generic_agreement
		allowed = { original_tag = TKE }
		available = {
			tag = TKE
			has_war = no
			is_in_faction = no
			is_subject = no
			GER = {
			is_faction_leader = yes
				}
			NOT = {
					has_idea = TKE_congo_isolation
				}
			NOT = {
					has_country_flag = TKE_joining_faction
				}
			}
		visible = {
			GER = {
			is_faction_leader = yes
				}
			OR = {
			has_government = authoritarian_democrat
			has_government = market_liberal
			}
			NOT = {
			has_idea = TKE_congo_isolation
			}
		}
		fire_only_once = yes
		cost = 30
		days_remove = 15
		
		ai_will_do = {
			factor = 0
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision TKE_join_germany"
			set_country_flag = TKE_joining_faction
		}
		remove_effect = {
		clr_country_flag = TKE_joining_faction
		GER = {
		country_event = teke.18
			}
		}
	}
TKE_join_entente = {# join Entente
icon = generic_agreement
		allowed = { original_tag = TKE }
		available = {
			tag = TKE
			has_war = no
			is_in_faction = no
			is_subject = no
			ENT = {
			is_faction_leader = yes
				}
			NOT = {
					has_idea = TKE_congo_isolation
				}
			NOT = {
					has_country_flag = TKE_joining_faction
				}
			}
		visible = {
			NOT = { 
			has_government = totalist
			has_government = syndicalist
			has_government = radical_socialist
			}
			NOT = {
			has_idea = TKE_congo_isolation
			}
		}
		fire_only_once = yes
		cost = 30
		days_remove = 15
		
		ai_will_do = {
			factor = 0
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision TKE_join_germany"
			set_country_flag = TKE_joining_faction
		}
		remove_effect = {
		clr_country_flag = TKE_joining_faction
		ENT = {
		country_event = teke.18
			}
		}
	}
TKE_join_internationale = {# join the Third Internationale
icon = generic_agreement
		allowed = { original_tag = TKE }
		available = {
			tag = TKE
			has_war = no
			is_in_faction = no
			is_subject = no
			INT = {
			is_faction_leader = yes
				}
			NOT = {
					has_idea = TKE_congo_isolation
				}
			NOT = {
					has_country_flag = TKE_joining_faction
				}
			}
		visible = {
			NOT = { 
			has_government = market_liberal
			has_government = social_liberal
			has_government = authoritarian_democrat
			has_government = paternal_autocrat
			has_government = national_populist
			}
			NOT = {
			has_idea = TKE_congo_isolation
			}
		}
		fire_only_once = yes
		cost = 30
		days_remove = 15
		
		ai_will_do = {
			factor = 0
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision TKE_join_germany"
			set_country_flag = TKE_joining_faction
		}
		remove_effect = {
		clr_country_flag = TKE_joining_faction
		INT = {
		country_event = teke.18
			}
		}
	}
TKE_join_ethiopia = {# join Organization for African Unity
icon = generic_agreement
		allowed = { original_tag = TKE }
		available = {
			tag = TKE
			is_in_faction = no
			is_subject = no
			has_war = no
			ETH = {
			is_faction_leader = yes
			}
			NOT = {
					has_idea = TKE_congo_isolation
				}
			NOT = {
					has_country_flag = TKE_joining_faction
				}
			}
		visible = {
			ETH = {
			is_faction_leader = yes
			}
			NOT = {
			has_idea = TKE_congo_isolation
			}
		}
		fire_only_once = yes
		cost = 30
		days_remove = 15
		
		ai_will_do = {
			factor = 50
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision TKE_join_ethiopia"
			set_country_flag = TKE_joining_faction
		}
		remove_effect = {
		clr_country_flag = TKE_joining_faction
		ETH = {
		country_event = teke.18
			}
		}
	}
TKE_join_egypt = {# join Cairo Axis
icon = generic_agreement
		allowed = { original_tag = TKE }
		available = {
			tag = TKE
			has_war = no
			is_in_faction = no
			is_subject = no
			EGY = {
			is_faction_leader = yes
			}
			NOT = {
					has_idea = TKE_congo_isolation
				}
			NOT = {
					has_country_flag = TKE_joining_faction
				}
			}
		visible = {
			EGY = {
			is_faction_leader = yes
			}
			NOT = {
			has_idea = TKE_congo_isolation
			}
		}
		fire_only_once = yes
		cost = 30
		days_remove = 15
		
		ai_will_do = {
			factor = 50
		}

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision TKE_join_Egypt"
			set_country_flag = TKE_joining_faction
		}
		remove_effect = {
		clr_country_flag = TKE_joining_faction
		EGY = {
		country_event = teke.18
			}
		}
	}
TKE_isolation = {# Embrace Isolationism
icon = generic_agreement
		allowed = { original_tag = TKE }
		available = {
			tag = TKE
			has_war = no
			is_in_faction = no
			is_subject = no
			NOT = {
					has_idea = TKE_congo_isolation
				}
			NOT = {
					has_country_flag = TKE_joining_faction
				}
			}
		visible = {
			NOT = {
			has_idea = TKE_congo_isolation
			}
		}
		
		ai_will_do = {
			factor = 30
		}
		
		fire_only_once = yes
		cost = 30
		days_remove = 15

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision TKE_isolation"
			set_country_flag = TKE_joining_faction
		}
		remove_effect = {
		clr_country_flag = TKE_joining_faction
		add_ideas = TKE_congo_isolation
		}
	}
}