COG_increase_merc_reliance = {
	custom_effect_tooltip = COG_increase_merc_reliance_tt
	hidden_effect = {
		if = {
			limit = { has_idea = COG_reliance_on_mercs_idea }
			swap_ideas = {
				remove_idea = COG_reliance_on_mercs_idea
				add_idea = COG_reliance_on_mercs_idea2
			}
		}
		else_if = {
			limit = { has_idea = COG_reliance_on_mercs_idea2 }
			swap_ideas = {
				remove_idea = COG_reliance_on_mercs_idea2
				add_idea = COG_reliance_on_mercs_idea3
			}
		}
		else_if = {
			limit = { has_idea = COG_reliance_on_mercs_idea3 }
			swap_ideas = {
				remove_idea = COG_reliance_on_mercs_idea3
				add_idea = COG_reliance_on_mercs_idea4
			}
		}
		else_if = {
			limit = { has_idea = COG_reliance_on_mercs_idea4 }
			swap_ideas = {
				remove_idea = COG_reliance_on_mercs_idea4
				add_idea = COG_reliance_on_mercs_idea5
			}
		}
		MSF = {
			increase_merc_disunity = yes
		}
	}
}

COG_decrease_merc_reliance = {
	custom_effect_tooltip = COG_decrease_merc_reliance_tt
	hidden_effect = {
		if = { limit = { has_idea = COG_reliance_on_mercs_idea5 }
			swap_ideas = {
				remove_idea = COG_reliance_on_mercs_idea5
				add_idea = COG_reliance_on_mercs_idea4
			}
		}
		else_if = { limit = { has_idea = COG_reliance_on_mercs_idea4 }
			swap_ideas = {
				remove_idea = COG_reliance_on_mercs_idea4
				add_idea = COG_reliance_on_mercs_idea3
			}
		}
		else_if = { limit = { has_idea = COG_reliance_on_mercs_idea3 }
			swap_ideas = {
				remove_idea = COG_reliance_on_mercs_idea3
				add_idea = COG_reliance_on_mercs_idea2
			}
		}
		else_if = { limit = { has_idea = COG_reliance_on_mercs_idea2 }
			swap_ideas = {
				remove_idea = COG_reliance_on_mercs_idea2
				add_idea = COG_reliance_on_mercs_idea
			}
		}
		MSF = {
			decrease_merc_disunity = yes
		}
	}
}

COG_congo_collapse = {
	#load_focus_tree = COG_Civilwar
		set_global_flag = CONGO_SHITSHOW
		COG = {
			every_owned_state = {
				limit = {
					OR = {
						state = 977
					}
				}
				KIV = { transfer_state = PREV }
			}
		}
		if = {
			limit = {
				country_exists = KIV
				KIV = { NOT = { has_country_flag = MAF_already_exists } }
			}
			KIV = {
				add_state_core = 718
				add_state_core = 1181
				add_state_core = 977
				load_oob = KIV
				#load_focus_tree = COG_Civilwar
				complete_national_focus = COG_tewapen
				mark_focus_tree_layout_dirty = yes
				add_to_array = { global.MAF_collapse_tags = THIS }
			}
		}
		COG = {
			every_owned_state = {
				limit = {
					OR = {
						state = 881
						state = 916
					}
				}
				LPD = { transfer_state = PREV }
			}
		}
		if = {
			limit = {
				country_exists = KIV
				LPD = { NOT = { has_country_flag = MAF_already_exists } }
			}
			LPD = {
				add_state_core = 881
				add_state_core = 295
				load_oob = LPD
				#load_focus_tree = COG_Civilwar
				complete_national_focus = COG_tewapen
				mark_focus_tree_layout_dirty = yes
				add_to_array = { global.MAF_collapse_tags = THIS }
			}
		}
		if = {
			limit = {
				COG = {
					owns_state = 879
					}
				}
		COG = {
				every_owned_state = {
					limit = {
						OR = {
							state = 879
							state = 1182
							state = 1183
						}
					}
					UMN = { transfer_state = PREV }
				}
			}
			if = {
				limit = {
					country_exists = KIV
					UMN = { NOT = { has_country_flag = MAF_already_exists } }
				}
				UMN = {
					load_focus_tree = union_minere_focus
					set_cosmetic_tag = UMN_KATANGA
					set_politics = {
						ruling_party = market_liberal
						last_election = "1932.6.15"
						election_frequency = 4
						elections_allowed = no
					}
					hidden_effect = {
						remove_ideas = {
							UMN_ECONOMY_Violent_Revolution
							UMN_ECONOMY_Loss_Of_Knowhow
							UMN_ECONOMY_Violent_Revolution_Yeke_Trade
							UMN_ECONOMY_Union_Miniere_Dismantled
							UMN_Gold
							UMN_Diamond
							UMN_MILITARY_Warrior_Class
							UMN_MILITARY_Glory_Mwami
							UMN_ECONOMY_Belgian_Expertise
							UMN_ECONOMY_Belgian_Expertise2
							UMN_ECONOMY_German_Expertise
							UMN_ECONOMY_Mitteleuropa
							UMN_ECONOMY_Loss_Of_Knowhow1
							UMN_mwami_gaining_control
							UMN_mwami_gaining_control2
							UMN_mwami_gaining_control3
							UMN_mwami_gaining_control4
						}
					}
					add_ideas = {
						war_economy
						limited_exports
						UMN_we_have_no_idea_how_to_run_a_state
						UMN_native_tensions
						COG_reliance_on_mercs_idea2
						###MINISTERS ###
						UMN_Jules_Cousin_hog_mli
						UMN_Emile_Francqui_for_mli
						UMN_Edgar_Sengier_eco_mli
						UMN_Felicien_Cattier_sec_mli
					}
					country_event = {
						id = unionminere.6 #strikes
						days = 14
					}
					set_popularities = {
						totalist = 0
						radical_socialist = 5
						syndicalist = 0
						social_democrat = 10
						social_liberal = 10
						market_liberal = 40
						social_conservative = 20
						authoritarian_democrat = 5
						paternal_autocrat = 5
						national_populist = 5
					}
					create_country_leader = {
						name = "Edgar Sengier"
						desc = "POLITICS_SENGIER_DESC"
						picture = "gfx/leaders/COG/UMN_Edgar_Sengier.png"
						expire = "1.1.1"
						ideology = libertarian_subtype
					}
					create_country_leader = {
						name = "Moïse Tshombe"
						desc = "POLITICS_MOISE_TSHOMBE_DESC"
						picture = "gfx/leaders/KIV/Portrait_KIV_Moise_Tshombe.png"
						expire = "1.1.1"
						ideology = social_conservative_subtype
					}
					create_country_leader = {
						name = "Mwenda III"
						desc = "POLITICS_MWENDA_III_DESC"
						picture = "gfx/leaders/COG/Portrait_COG_Mabumba_Kitanika.png"
						expire = "1.1.1"
						ideology = absolute_monarchy_subtype
					}
					create_country_leader = {
						name = "'Mad' Mike Hoare"
						picture = "gfx/leaders/COG/Portrait_Katanga_Mad_Mike_Hoare.png"
						expire = "1.1.1"
						ideology = merc_subtype
					}
					create_corps_commander = {
						name = "'Mad' Mike Hoare"
						portrait_path = "gfx/leaders/COG/Portrait_Katanga_Mad_Mike_Hoare.png"
						traits = {
							jungle_rat
							adaptable
							mercenary_commander
							commando
						}
						skill = 2
						attack_skill = 2
						defense_skill = 2
						planning_skill = 2
						logistics_skill = 2
						id = 6762
					}
					add_state_core = 879
					add_state_core = 1182
					add_state_core = 1183
					load_oob = UMN
					#load_focus_tree = COG_Civilwar
					complete_national_focus = COG_tewapen
					mark_focus_tree_layout_dirty = yes
					add_to_array = { global.MAF_collapse_tags = THIS }
				}
			}
		}
		if = {
			limit = {
				KTG = {
					owns_state = 879
					}
				}
		KTG = {
			every_owned_state = {
				limit = {
					OR = {
						state = 879
						state = 1182
						state = 1183
					}
				}
				UMN = { transfer_state = PREV }
			}
		}
		if = {
			limit = {
				country_exists = KIV
				UMN = { NOT = { has_country_flag = MAF_already_exists } }
			}
			UMN = {
				load_focus_tree = union_minere_focus
				set_cosmetic_tag = UMN_KATANGA
				country_event = {
					id = unionminere.1
					days = 2
				}
				set_politics = {
					ruling_party = market_liberal
					last_election = "1932.6.15"
					election_frequency = 4
					elections_allowed = no
				}
				add_ideas = {
					war_economy
					limited_exports
					UMN_we_have_no_idea_how_to_run_a_state
					UMN_native_tensions
					COG_reliance_on_mercs_idea2
					###MINISTERS ###
					UMN_Jules_Cousin_hog_mli
					UMN_Emile_Francqui_for_mli
					UMN_Edgar_Sengier_eco_mli
					UMN_Felicien_Cattier_sec_mli
				}
				country_event = {
					id = unionminere.6
					days = 34
				}
				set_popularities = {
					totalist = 0
					radical_socialist = 5
					syndicalist = 0
					social_democrat = 10
					social_liberal = 10
					market_liberal = 40
					social_conservative = 20
					authoritarian_democrat = 5
					paternal_autocrat = 5
					national_populist = 5
				}
				create_country_leader = {
					name = "Edgar Sengier"
					desc = "POLITICS_SENGIER_DESC"
					picture = "gfx/leaders/COG/UMN_Edgar_Sengier.png"
					expire = "1.1.1"
					ideology = libertarian_subtype
		
				}
				create_country_leader = {
					name = "Moïse Tshombe"
					desc = "POLITICS_MOISE_TSHOMBE_DESC"
					picture = "gfx/leaders/KIV/Portrait_KIV_Moise_Tshombe.png"
					expire = "1.1.1"
					ideology = social_conservative_subtype
				}
				create_country_leader = {
					name = "Mwenda III"
					desc = "POLITICS_MWENDA_III_DESC"
					picture = "gfx/leaders/COG/Portrait_COG_Mabumba_Kitanika.png"
					expire = "1.1.1"
					ideology = absolute_monarchy_subtype
				}
				create_country_leader = {
					name = "'Mad' Mike Hoare"
					picture = "gfx/leaders/COG/Portrait_Katanga_Mad_Mike_Hoare.png"
					expire = "1.1.1"
					ideology = merc_subtype
				}
				create_corps_commander = {
					name = "'Mad' Mike Hoare"
					portrait_path = "gfx/leaders/COG/Portrait_Katanga_Mad_Mike_Hoare.png"
					traits = {
						jungle_rat
						adaptable
						mercenary_commander
						commando
					}
					skill = 2
					attack_skill = 2
					defense_skill = 2
					planning_skill = 2
					logistics_skill = 2
					id = 6762
				}
				add_state_core = 879
				add_state_core = 1182
				add_state_core = 1183
				load_oob = UMN
				#load_focus_tree = COG_Civilwar
				complete_national_focus = COG_tewapen
				mark_focus_tree_layout_dirty = yes
				add_to_array = { global.MAF_collapse_tags = THIS }
			}
		}
		}
		COG = {
			every_owned_state = {
				limit = {
					OR = {
						state = 1025
					}
				}
				MSF = { transfer_state = PREV }
			}
		}
		if = {
			limit = {
				country_exists = MSF
				MSF = { NOT = { has_country_flag = MAF_already_exists } }
			}
			MSF = {
				add_state_core = 538
				add_state_core = 1180
				add_state_core = 1025
				load_oob = MSF
				#load_focus_tree = COG_Civilwar
				complete_national_focus = COG_tewapen
				mark_focus_tree_layout_dirty = yes
				add_to_array = { global.MAF_collapse_tags = THIS }
			}
		}
		COG = {
			if = {
				limit = {
					NOT = {
						has_government = paternal_autocrat
					}
				}
				country_event = {
					id = conbel.7 #Dealing with the traitors
					days = 1
				}
			}
			else_if = {
				limit = {
					has_government = paternal_autocrat
				}
				country_event = {
					id = conbel.26
					days = 1
				}
			}
			add_to_array = { global.MAF_collapse_tags = THIS }
		}
		COG = {
			create_corps_commander = {
				name = "Leo Pétillon"
				portrait_path = "gfx/leaders/COG/Portrait_Congo_Leo_Petillon_General.png"
				traits = {
					politically_connected
				}
				skill = 1
				attack_skill = 1
				defense_skill = 1
				planning_skill = 1
				logistics_skill = 1
				id = 67821
			}
			if = {
				limit = {
					has_government = social_democrat
					has_idea = COG_Leonard_Mpoyi_hog_sde
				}
				remove_ideas = COG_Leonard_Mpoyi_hog_sde
				add_ideas = COG_Daniel_Kanza_hog_sde
			}
			remove_ideas = COG_German_Influence
			remove_ideas = COG_german_influence_rising
			remove_ideas = COG_belgian_influence_rising
			remove_ideas = COG_german_economic_influence_rising
			every_unit_leader = {
				limit = {
					OR = {
						has_id = 89999
						has_id = 89996
						has_id = 8999
					}
				}
				set_nationality = LPD
			}
			every_unit_leader = {
				limit = { 
					OR = {
						has_id = 8998 
						has_id = 8992 
					}
				}
				set_nationality = UMN
			}
			UMN ={
				every_unit_leader = {
					limit = { has_id = 8992 }
					promote_leader = yes
				}
			}
			every_unit_leader = {
				limit = { has_id = 6764 }
				promote_leader = yes
				set_nationality = MSF
			}
			if = {
				limit = {
					has_government = paternal_autocrat
				}
				every_unit_leader = {
					limit = {
						has_id = 67821
					}
					set_nationality = LPD
				}
			}
		}
		KIV = {
			transfer_technology_without_doctrines = yes
		}
		LPD = {
			transfer_technology_without_doctrines = yes
		}
		UMN = {
			transfer_technology_without_doctrines = yes
		}
		MSF = {
			transfer_technology_without_doctrines = yes
		}
		if = {
			limit = {
				country_exists = COG
				country_exists = KIV
			}
			KIV = { declare_war_on = { target = COG type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = COG
				country_exists = ORT
			}
			COG = { declare_war_on = { target = ORT type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = KTG
				country_exists = UMN
			}
			KTG = { declare_war_on = { target = UMN type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = KTG
				country_exists = ORT
			}
			KTG = { declare_war_on = { target = ORT type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = ORT
				country_exists = MSF
			}
			MSF = { declare_war_on = { target = ORT type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = ORT
				country_exists = KIV
			}
			KIV = { declare_war_on = { target = ORT type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = COG
				country_exists = KAS
			}
			COG = { declare_war_on = { target = KAS type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = KTG
				country_exists = KAS
			}
			KTG = { declare_war_on = { target = KAS type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = KAS
				country_exists = MSF
			}
			MSF = { declare_war_on = { target = KAS type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = KAS
				country_exists = KIV
			}
			KIV = { declare_war_on = { target = KAS type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = COG
				country_exists = KTG
			}
			KIV = { declare_war_on = { target = KTG type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = ORT
				country_exists = KIV
			}
			KIV = { declare_war_on = { target = ORT type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = KAS
				country_exists = KIV
			}
			KIV = { declare_war_on = { target = KAS type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = KIV
				country_exists = MSF
			}
			KIV = { declare_war_on = { target = MSF type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = COG
				country_exists = MSF
				COG = { NOT = { has_country_flag = MAF_already_exists } }
			}
			MSF = { declare_war_on = { target = COG type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = KTG
				country_exists = MSF
				KTG = { NOT = { has_country_flag = MAF_already_exists } }
			}
			MSF = { declare_war_on = { target = KTG type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = KIV
				country_exists = MSF
				MSF = { NOT = { has_country_flag = MAF_already_exists } }
			}
			MSF = { declare_war_on = { target = KIV type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = ORT
				country_exists = MSF
				ORT = { NOT = { has_country_flag = MAF_already_exists } }
			}
			MSF = { declare_war_on = { target = ORT type = annex_everything } }
		}
		if = {
			limit = {
				country_exists = KAS
				country_exists = MSF
				KAS = { NOT = { has_country_flag = MAF_already_exists } }
			}
			MSF = { declare_war_on = { target = KAS type = annex_everything } }
		}
	set_global_flag = COG_is_in_civil_war
}

merc_commander_cost = {
	if = {
		limit = { has_idea = COG_reliance_on_mercs_idea }
		add_political_power = -200
		COG_increase_merc_reliance = yes
		MSF = {
			increase_merc_disunity = yes
		}
	}
	else_if = {
		limit = { has_idea = COG_reliance_on_mercs_idea2 }
		add_political_power = -150
		COG_increase_merc_reliance = yes
		MSF = {
			increase_merc_disunity = yes
		}
	}
	else_if = {
		limit = { has_idea = COG_reliance_on_mercs_idea3 }
		add_political_power = -100
		COG_increase_merc_reliance = yes
		MSF = {
			increase_merc_disunity = yes
		}
	}
	else_if = {
		limit = { has_idea = COG_reliance_on_mercs_idea4 }
		add_political_power = -50
		COG_increase_merc_reliance = yes
		MSF = {
			increase_merc_disunity = yes
		}
	}
	else_if = {
		limit = { has_idea = COG_reliance_on_mercs_idea5 }
		add_political_power = -25
		COG_increase_merc_reliance = yes
		MSF = {
			increase_merc_disunity = yes
		}
	}
}

increase_merc_disunity = {
	custom_effect_tooltip = MSF_increase_merc_disunity
	hidden_effect = {
		if = {
			limit = { has_idea = MSF_merc_disunity_idea }
			swap_ideas = {
				remove_idea = MSF_merc_disunity_idea
				add_idea = MSF_merc_disunity_idea2
			}
		}
		else_if = {
			limit = { has_idea = MSF_merc_disunity_idea2 }
			swap_ideas = {
				remove_idea = MSF_merc_disunity_idea2
				add_idea = MSF_merc_disunity_idea3
			}
		}
		else_if = {
			limit = { has_idea = MSF_merc_disunity_idea3 }
			swap_ideas = {
				remove_idea = MSF_merc_disunity_idea3
				add_idea = MSF_merc_disunity_idea4
			}
		}
		else_if = {
			limit = { has_idea = MSF_merc_disunity_idea4 }
			swap_ideas = {
				remove_idea = MSF_merc_disunity_idea4
				add_idea = MSF_merc_disunity_idea5
			}
		}
	}
}

decrease_merc_disunity = {
	custom_effect_tooltip = MSF_decrease_merc_disunity
	hidden_effect = {
		if = { limit = { has_idea = MSF_merc_disunity_idea5 }
			swap_ideas = {
				remove_idea = MSF_merc_disunity_idea5
				add_idea = MSF_merc_disunity_idea4
			}
		}
		else_if = { limit = { has_idea = MSF_merc_disunity_idea4 }
			swap_ideas = {
				remove_idea = MSF_merc_disunity_idea4
				add_idea = MSF_merc_disunity_idea3
			}
		}
		else_if = { limit = { has_idea = MSF_merc_disunity_idea3 }
			swap_ideas = {
				remove_idea = MSF_merc_disunity_idea3
				add_idea = MSF_merc_disunity_idea2
			}
		}
		else_if = { limit = { has_idea = MSF_merc_disunity_idea2 }
			swap_ideas = {
				remove_idea = MSF_merc_disunity_idea2
				add_idea = MSF_merc_disunity_idea
			}
		}
	}
}

COG_become_unexiled = {
	hidden_effect = {
		remove_state_claim = 34
		remove_state_claim = 6
		BEL = {
			transfer_state = 34
			transfer_state = 6
		}
		COG = { get_current_government_type = yes }
		BEL = {
			set_autonomy = {
				target = COG
				autonomous_state = kx_freestate
			}
		}
		COG = {
			restore_previous_government_type = yes
		} 
		set_cosmetic_tag = COG
		complete_national_focus = COG_belgium_is_thing
		if = {
			limit = {
				has_completed_focus = COG_petillon
			}
			create_country_leader = {
				name = "Léo Pétillon"
				desc = "POLITICS_LEO_PETILLON_DESC"
				picture = "gfx/leaders/COG/Portrait_Congo_Leo_Petillon.png"
				expire = "1.1.1"
				ideology = christian_democracy_subtype
			}
			create_country_leader = {
				name = "Léo Pétillon"
				desc = "POLITICS_LEO_PETILLON_DESC"
				picture = "gfx/leaders/COG/Portrait_Congo_Leo_Petillon.png"
				expire = "1.1.1"
				ideology = social_liberal_subtype
			}
			create_country_leader = {
				name = "Léo Pétillon"
				desc = "POLITICS_LEO_PETILLON_DESC"
				picture = "gfx/leaders/COG/Portrait_Congo_Leo_Petillon.png"
				expire = "1.1.1"
				ideology = social_democrat_subtype
			}
			create_country_leader = {
				name = "Léo Pétillon"
				desc = "POLITICS_LEO_PETILLON_DESC"
				picture = "gfx/leaders/COG/Portrait_Congo_Leo_Petillon.png"
				expire = "1.1.1"
				ideology = market_liberal_subtype
			}
			create_country_leader = {
				name = "Léo Pétillon"
				desc = "POLITICS_LEO_PETILLON_DESC"
				picture = "gfx/leaders/COG/Portrait_Congo_Leo_Petillon.png"
				expire = "1.1.1"
				ideology = colonial_govt_subtype
			}
				
			set_politics = {
				ruling_party = social_conservative
				elections_allowed = no
			}
			
		}
		if = {
			limit = {
				has_country_flag = COG_ricky_stays
			}
			create_country_leader = {
				name = "Pierre Ryckmans"
				desc = "POLITICS_PIERRE_RYCKMANS_DESC"
				picture = "gfx/leaders/COG/Portrait_COG_Pierre_Ryckmans.png"
				expire = "1.1.1"
				ideology = christian_democracy_subtype
			}
			create_country_leader = {
				name = "Pierre Ryckmans"
				desc = "POLITICS_PIERRE_RYCKMANS_DESC"
				picture = "gfx/leaders/COG/Portrait_COG_Pierre_Ryckmans.png"
				expire = "1.1.1"
				ideology = social_liberal_subtype
			}
			create_country_leader = {
				name = "Pierre Ryckmans"
				desc = "POLITICS_PIERRE_RYCKMANS_DESC"
				picture = "gfx/leaders/COG/Portrait_COG_Pierre_Ryckmans.png"
				expire = "1.1.1"
				ideology = social_democrat_subtype
			}
			create_country_leader = {
				name = "Pierre Ryckmans"
				desc = "POLITICS_PIERRE_RYCKMANS_DESC"
				picture = "gfx/leaders/COG/Portrait_COG_Pierre_Ryckmans.png"
				expire = "1.1.1"
				ideology = market_liberal_subtype
			}
			create_country_leader = {
				name = "Pierre Ryckmans"
				desc = "POLITICS_PIERRE_RYCKMANS_DESC"
				picture = "gfx/leaders/COG/Portrait_COG_Pierre_Ryckmans.png"
				expire = "1.1.1"
				ideology = colonial_govt_subtype
			}
			set_politics = {
				ruling_party = authoritarian_democrat
				elections_allowed = no
			}
		}
		set_country_flag = COG_colonial_rule_restored
		BEL = {
			remove_ideas = BEL_King_Exile
			create_country_leader = {
				name = "Albert I"
				desc = "POLITICS_ALBERT_I_DESC"
				picture = "gfx/leaders/BEL/Portrait_Belgium_King_Albert.png"
				expire = "1.1.1"
				ideology = national_populist_subtype
				traits = {
					Soldier_King
				}
			}
			create_country_leader = {
				name = "Albert I"
				desc = "POLITICS_ALBERT_I_DESC"
				picture = "gfx/leaders/BEL/Portrait_Belgium_King_Albert.png"
				expire = "1.1.1"
				ideology = paternal_autocrat_subtype
				traits = {
					Soldier_King
				}
			}
			create_country_leader = {
				name = "Albert I"
				desc = "POLITICS_ALBERT_I_DESC"
				picture = "gfx/leaders/BEL/Portrait_Belgium_King_Albert.png"
				expire = "1.1.1"
				ideology = authoritarian_democrat_subtype
				traits = {
					Soldier_King
				}
			}
			create_country_leader = {
				name = "Albert I"
				desc = "POLITICS_ALBERT_I_DESC"
				picture = "gfx/leaders/BEL/Portrait_Belgium_King_Albert.png"
				expire = "1.1.1"
				ideology = christian_democracy_subtype
				traits = {
					Soldier_King
				}
			}
			create_country_leader = {
				name = "Albert I"
				desc = "POLITICS_ALBERT_I_DESC"
				picture = "gfx/leaders/BEL/Portrait_Belgium_King_Albert.png"
				expire = "1.1.1"
				ideology = market_liberal_subtype
				traits = {
					Soldier_King
				}
			}
			create_country_leader = {
				name = "Albert I"
				desc = "POLITICS_ALBERT_I_DESC"
				picture = "gfx/leaders/BEL/Portrait_Belgium_King_Albert.png"
				expire = "1.1.1"
				ideology = social_liberal_subtype
				traits = {
					Soldier_King
				}
			}
			create_country_leader = {
				name = "Albert I"
				desc = "POLITICS_ALBERT_I_DESC"
				picture = "gfx/leaders/BEL/Portrait_Belgium_King_Albert.png"
				expire = "1.1.1"
				ideology = social_democrat_subtype
				traits = {
					Soldier_King
				}
			}
			create_field_marshal = {
				name = "Albert I"
				picture = "gfx/leaders/BEL/Portrait_Belgium_King_Albert.png"
				traits = {
					politically_connected
					old_guard
					war_hero
				}
				skill = 3
				attack_skill = 2
				defense_skill = 5
				planning_skill = 2
				logistics_skill = 2
			}
			create_field_marshal = {
				name = "Leopold III"
				picture = "gfx/leaders/BEL/Portrait_Belgium_Leopold_III.png"
				traits = {
					politically_connected
				}
				skill = 2
				attack_skill = 1
				defense_skill = 3
				planning_skill = 1
				logistics_skill = 2
			}
			set_cosmetic_tag = BELG

			set_country_flag = BEL_STANDING_ARMY
			
			set_country_flag = Belgium_Independent
			
			load_focus_tree = BEL_Independent_focus
			complete_national_focus = BEL_Monarchy
			complete_national_focus = BEL_Elections
			if = {
				limit = {
					NOT = {
						has_completed_focus = BEL_Rely_on_the_Kriegsmarine
						has_completed_focus = BEL_Fleet_of_our_own
					}
				}
				complete_national_focus = BEL_Fleet_of_our_own
			}
			if = {
				limit = {
					NOT = {
						has_completed_focus = BEL_Supporting_Role
						has_completed_focus = BEL_Masters_of_the_Skies
					}
				}
				complete_national_focus = BEL_Masters_of_the_Skies
			}
			if = {
				limit = {
					has_unit_leader = 2107
				}
				random_unit_leader = {
					limit = { has_id = 2107 }
					remove_unit_leader = yes
				}
			}
		}
		COG = {
			give_resource_rights = {
				state = 879
				receiver = BEL
		}
		give_resource_rights = {
			state = 949
			receiver = BEL
		}
		give_resource_rights = {
			state = 1026
			receiver = BEL
		}
		give_resource_rights = {
			state = 881
			receiver = BEL
		}
		give_resource_rights = {
			state = 538
			receiver = BEL
		}
	}
	}
}

COG_increase_recovery = {
	custom_effect_tooltip = COG_continue_to_recover
	hidden_effect = {
		if = {
			limit = { has_idea = COG_post_war_devestation }
			swap_ideas = {
				remove_idea = COG_post_war_devestation
				add_idea = COG_post_war_devestation2
			}
		}
		else_if = {
			limit = { has_idea = COG_post_war_devestation2 }
			swap_ideas = {
				remove_idea = COG_post_war_devestation2
				add_idea = COG_post_war_devestation3
			}
		}
		else_if = {
			limit = { has_idea = COG_post_war_devestation3 }
			swap_ideas = {
				remove_idea = COG_post_war_devestation3
				add_idea = COG_post_war_devestation4
			}
		}
		else_if = {
			limit = { has_idea = COG_post_war_devestation4 }
			remove_ideas = COG_post_war_devestation4
		}
	}
}

KIV_decrease_simba_resistance = {
	custom_effect_tooltip = KIV_decrease_resistance_tt
	hidden_effect = {
		if = {
			limit = { has_idea = KIV_simba_government_idea }
			swap_ideas = {
				remove_idea = KIV_simba_government_idea
				add_idea = KIV_simba_government_idea2
			}
		}
		else_if = {
			limit = { has_idea = KIV_simba_government_idea2 }
			swap_ideas = {
				remove_idea = KIV_simba_government_idea2
				add_idea = KIV_simba_government_idea3
			}
		}
		else_if = {
			limit = { has_idea = KIV_simba_government_idea3 }
			swap_ideas = {
				remove_idea = KIV_simba_government_idea3
				add_idea = KIV_simba_government_idea4
			}
		}
		else_if = {
			limit = { has_idea = KIV_simba_government_idea4 }
			remove_ideas = KIV_simba_government_idea4
		}
	}
}

KIV_decrease_simba_revolt = {
	custom_effect_tooltip = KIV_decrease_resistance_tt
	hidden_effect = {
		if = {
			limit = { has_idea = KIV_simba_revolt_idea }
			swap_ideas = {
				remove_idea = KIV_simba_revolt_idea
				add_idea = KIV_simba_revolt_idea2
			}
		}
		else_if = {
			limit = { has_idea = KIV_simba_revolt_idea2 }
			swap_ideas = {
				remove_idea = KIV_simba_revolt_idea2
				add_idea = KIV_simba_revolt_idea3
			}
		}
		else_if = {
			limit = { has_idea = KIV_simba_revolt_idea3 }
			swap_ideas = {
				remove_idea = KIV_simba_revolt_idea3
				add_idea = KIV_simba_revolt_idea4
			}
		}
		else_if = {
			limit = { has_idea = KIV_simba_revolt_idea4 }
			remove_ideas = KIV_simba_revolt_idea4
		}
	}
}

KIV_decrease_inexperience = {
	if = {
		limit = { has_idea = KIV_inexperience2 }
		swap_ideas = {
			remove_idea = KIV_inexperience2
			add_idea = KIV_inexperience2_1
		}
	}
	else_if = {
		limit = { has_idea = KIV_inexperience2_1 }
		swap_ideas = {
			remove_idea = KIV_inexperience2_1
			add_idea = KIV_inexperience2_2
		}
	}
	else_if = {
		limit = { has_idea = KIV_inexperience2_2 }
		swap_ideas = {
			remove_idea = KIV_inexperience2_2
			add_idea = KIV_inexperience2_3
		}
	}
	else_if = {
		limit = { has_idea = KIV_inexperience2_3 }
		remove_ideas = KIV_inexperience2_3
	}
}

UMN_decrease_resistance = {
	custom_effect_tooltip = KIV_decrease_resistance_tt
	hidden_effect = {
		if = {
			limit = { has_idea = UMN_mwami_gaining_control }
			swap_ideas = {
				remove_idea = UMN_mwami_gaining_control
				add_idea = UMN_mwami_gaining_control2
			}
		}
		else_if = {
			limit = { has_idea = UMN_mwami_gaining_control2 }
			swap_ideas = {
				remove_idea = UMN_mwami_gaining_control2
				add_idea = UMN_mwami_gaining_control3
			}
		}
		else_if = {
			limit = { has_idea = UMN_mwami_gaining_control3 }
			swap_ideas = {
				remove_idea = UMN_mwami_gaining_control3
				add_idea = UMN_mwami_gaining_control4
			}
		}
		else_if = {
			limit = { has_idea = UMN_mwami_gaining_control4 }
			remove_ideas = UMN_mwami_gaining_control4
		}
	}
}

set_up_katanga = {
	custom_effect_tooltip = KIV_katanga_break_off_tt
	hidden_effect = {
		UMN = {
			load_oob = KTG
			create_country_leader = {
				name = "Moïse Tshombe"
				desc = "POLITICS_TSHOMBE_KATANGA_DESC"
				picture = "gfx/leaders/KIV/Portrait_KIV_Moise_Tshombe.png"
				expire = "1.1.1"
				ideology = libertarian_subtype
	
			}
			set_party_name = {
				ideology = market_liberal
				long_name = UMN_market_liberal_party2_long
				name = UMN_market_liberal_party2
			}
			set_politics = {
				ruling_party = market_liberal
				elections_allowed = no
			}
			set_cosmetic_tag = UMN_KATANGA
			load_focus_tree = Katanga_focus
			transfer_state = 1182
			transfer_state = 879
			every_owned_state = {
				set_demilitarized_zone = no
			}
			remove_ideas = UMN_we_have_no_idea_how_to_run_a_state
			remove_ideas = UMN_we_have_no_idea_how_to_run_a_state2
			remove_ideas = UMN_we_have_no_idea_how_to_run_a_state3
			remove_ideas = UMN_native_tensions
			remove_ideas = UMN_native_tensions2
			remove_ideas = UMN_labour_disputes
			remove_ideas = UMN_minor_labour_regulations
			remove_ideas = UMN_our_buisness_is_buisness
			remove_ideas = UMN_exploiting_the_congo
			remove_ideas = UMN_rolling_in_cash
			remove_ideas = UMN_work_harder
			remove_ideas = UMN_control_the_miners
			remove_all_ministers = yes
			add_ideas = {
				UMN_Moise_Tshombe_hog_mli
				UMN_Radolphe_Yav_for_mli
				KIV_Albert_Nyembo_eco_mli
				KIV_Dominique_Diur_sec_mli
			}
			MSF = {
				if = {
					limit = {
						has_unit_leader = 6762
					}
				}
				every_unit_leader = {
					limit = {
						has_id = 6762
					}
					set_nationality = UMN
				}
			}
			set_global_flag = UMN_became_katanga
			if = {
				limit = {
					country_exists = KTG
					country_exists = UMN
				}
				UMN = { declare_war_on = { target = KTG type = annex_everything } }
			}
			create_corps_commander = {
				name = "Jean-Marie Crevecoeur"
				portrait_path = "gfx/leaders/COG/Portrait_Katanga_Jean_Marie_Crevecoeur.png"
				traits = {
					jungle_rat
					adaptable
					mercenary_commander
					commando
				}
				skill = 3
				attack_skill = 2
				defense_skill = 3
				planning_skill = 1
				logistics_skill = 2
				id = 67622
			}
			create_corps_commander = {
				name = "Guy Weber"
				portrait_path = "gfx/leaders/COG/Portrait_Katanga_Guy_Weber.png"
				traits = {
					jungle_rat
					adaptable
					mercenary_commander
				}
				skill = 2
				attack_skill = 3
				defense_skill = 1
				planning_skill = 2
				logistics_skill = 1
				id = 67623
			}
			every_unit_leader = {
				limit = { has_id = 6762 }
				promote_leader = yes
			}
		}
		UMN = {
			if = {
				limit = {
					has_unit_leader = 63621
				}
			}
			random_unit_leader = {
				limit = { has_id = 63621 }
				remove_unit_leader = yes
			}
		}
		UMN = {
			if = {
				limit = {
					has_unit_leader = 63622
				}
			}
			random_unit_leader = {
				limit = { has_id = 63622 }
				remove_unit_leader = yes
			}
		}
		UMN = {
			if = {
				limit = {
					has_unit_leader = 63623
				}
			}
			random_unit_leader = {
				limit = { has_id = 63623 }
				remove_unit_leader = yes
			}
		}
		MSF = {
			every_unit_leader = {
				limit = { has_id = 67621 }
				set_nationality = UMN
			}
		}
	}
}
#Partition
fuck_the_shit_out_of_the_congo = {
	every_state = {
		limit = {
			is_core_of = KIV
		}
		KIV = {
			remove_state_core = PREV
		}
	}
	KAS = {
		transfer_state = 976
		transfer_state = 1185
		transfer_state = 1184
		add_state_core = 976
		add_state_core = 1185
		add_state_core = 1184
	}
	LPD = {
		transfer_state = 881
		transfer_state = 538
		transfer_state = 295
		add_state_core = 881
		add_state_core = 538
		add_state_core = 295
		create_country_leader = {
			name = "Joseph Kasa-Vubu"
			desc = "POLITICS_KASU_VUBU_DESC"
			picture = "gfx/leaders/KIV/Portrait_KIV_Joseph_Kasa_Vubu.png"
			expire = "1.1.1"
			ideology = social_liberal_subtype
		}
		set_politics = {
			ruling_party = social_liberal
		}
		remove_ideas = LPD_martial_law_idea
		remove_ideas = LPD_mouth_of_the_congo_idea
		remove_ideas = COG_reliance_on_mercs_idea
		remove_ideas = COG_lack_of_resources
		remove_ideas = LPD_kimbagu_agitation_idea
		remove_ideas = LPD_team_switzerland_idea
		load_focus_tree = African_Generic_Democracy
		set_cosmetic_tag = LPD_BREAKOFF
	}
	KIV = {
		transfer_state = 1181
		transfer_state = 977
		transfer_state = 949
		add_state_core = 1181
		add_state_core = 977
		add_state_core = 949
		set_politics = {
			ruling_party = authoritarian_democrat
		}
		load_focus_tree = African_Generic_Democracy
		remove_ideas = KIV_native_support
		remove_ideas = KIV_inexperience
		remove_ideas = KIV_inexperience2
		remove_ideas = KIV_masters_of_the_jungle_idea
		remove_ideas = KIV_push_idea
		remove_ideas = KIV_aksari_dominance
		remove_ideas = KIV_officer_rule
		remove_ideas = KIV_officer_rule2
		remove_ideas = KIV_no_corruption
		remove_ideas = KIV_colonial_purge
		remove_ideas = KIV_young_officer_stratocracy
		remove_ideas = KIV_state_for_the_military
		remove_ideas = KIV_ethnic_federalism
		remove_ideas = KIV_ethnic_federalism2
		remove_ideas = KIV_unity_through_nationalism
		remove_ideas = KIV_uplifting_the_congolese_worker
		remove_ideas = KIV_a_market_where_all_are_equal
		remove_ideas = KIV_no_regionalism
		remove_ideas = KIV_pink_pearl_of_africa
		remove_ideas = KIV_cohesive_socialist_democracy
		remove_ideas = KIV_cohesive_socialist_democracy2
		remove_ideas = KIV_pios_congolese_social_capitalism
		remove_ideas = KIV_unions_and_cooperatives
		remove_ideas = KIV_civc_nationalism_idea
		remove_ideas = KIV_moderate_congolese_tuc
		remove_ideas = KIV_self_sufficency_at_all_costs
		remove_ideas = KIV_vent_frustrations_idea
		remove_ideas = KIV_true_heart_of_pan_africa
		remove_ideas = KIV_shakled_markets_taimed_capital
		remove_ideas = KIV_ensure_constant_electoral_sucsess_idea
		remove_ideas = KIV_social_nationalist_democracy_in_quotation_marks
		remove_ideas = COG_reliance_on_mercs_idea
		remove_ideas = COG_lack_of_resources
		set_cosmetic_tag = KIV_BREAKOFF
	}
	MSF = {
		transfer_state = 538
		transfer_state = 1025
		transfer_state = 1180
		add_state_core = 538
		add_state_core = 1025
		add_state_core = 1180
		create_country_leader = {
			name = "Jean Bolikango"
			desc = "POLITICS_JEAN_BOLIKANGO_DESC"
			picture = "gfx/leaders/KIV/Portrait_KIV_Jean_Bolikango.png"
			expire = "1.1.1"
			ideology = social_conservative_subtype
		}
		set_politics = {
			ruling_party = social_conservative
		}
		remove_ideas = MSF_mercs_not_governors
		remove_ideas = MSF_merc_disunity_idea
		remove_ideas = MSF_merc_disunity_idea2
		remove_ideas = MSF_merc_disunity_idea3
		remove_ideas = MSF_merc_disunity_idea4
		remove_ideas = COG_lack_of_resources
		load_focus_tree = African_Generic_Democracy
		set_cosmetic_tag = KSV_BREAKOFF
		set_party_name = {
			ideology = social_conservative
			long_name = KIV_social_conservative_party_long
			name = KIV_social_conservative_party
		}
	}
	COG = {
		transfer_state = 1026
		transfer_state = 718
		add_state_core = 1026
		add_state_core = 718
		create_country_leader = {
			name = "Joseph Kasongo"
			desc = "POLITICS_KASONGO_DESC"
			picture = "gfx/leaders/KIV/Portrait_KIV_Joseph_Kasongo.png"
			expire = "1.1.1"
			ideology = totalist_subtype
		}
		set_politics = {
			ruling_party = totalist
		}
		remove_ideas = COG_native_pragmatism
		remove_ideas = COG_technocratic_administration
		remove_ideas = COG_technocratic_administration2
		remove_ideas = COG_belgian_congolese_community
		remove_ideas = COG_centralize_the_administration
		remove_ideas = COG_industrial_allies
		remove_ideas = COG_congo_first_idea
		remove_ideas = COG_christian_allies
		remove_ideas = COG_Resistance_Colonial_Rule
		remove_ideas = COG_Dominer_Pour_Servir
		remove_ideas = COG_Missions
		remove_ideas = COG_Mission_To_Civilise
		remove_ideas = COG_Reward_Evolues
		remove_ideas = COG_Colour_Gap
		remove_ideas = COG_District_Managers
		remove_ideas = COG_Chefferies
		remove_ideas = COG_Farming_Quotas
		remove_ideas = COG_Taxation
		remove_ideas = COG_Improved_Standards
		remove_ideas = COG_Belgian_Engineers
		remove_ideas = COG_African_Engineers
		remove_ideas = COG_Military_Academy
		remove_ideas = COG_Defense_of_the_Congo
		remove_ideas = COG_Desertion_Crisis
		remove_ideas = COG_European_Army
		remove_ideas = COG_African_Army
		remove_ideas = COG_Restored_FP
		remove_ideas = COG_Reformed_FP
		remove_ideas = COG_Judicial_System
		remove_ideas = COG_Colonial_Trinity
		remove_ideas = COG_Total_Control
		remove_ideas = COG_No_Sea_Access
		remove_ideas = COG_Sea_Connection
		remove_ideas = COG_POR_Land_Route
		remove_ideas = COG_Porters
		remove_ideas = COG_TAN_Land_Route
		remove_ideas = COG_Shinkolobwe
		remove_ideas = COG_reliance_on_mercs_idea
		remove_ideas = COG_lack_of_resources
		load_focus_tree = African_Generic_Democracy
		set_cosmetic_tag = COG_BREAKOFF
	}
}
fuck_the_shit_out_of_the_congo_puppet = {
	fuck_the_shit_out_of_the_congo = yes
	KAS = {
		set_politics = {
			ruling_party = authoritarian_democrat
		}
		get_current_government_type = yes
	}
	UMN = {
		puppet = KAS
	}
	KAS = {
		restore_previous_government_type = yes
	}
	LPD = {
		get_current_government_type = yes 
	}
	UMN = {
		puppet = LPD
	}
	LPD = {
		restore_previous_government_type = yes
	}
	KIV = {
		get_current_government_type = yes 
	}
	UMN = {
		puppet = KIV
	}
	KIV = {
		restore_previous_government_type = yes
	}
	MSF = {
		get_current_government_type = yes
	}
	UMN = {
		puppet = MSF
	}
	MSF = {
		restore_previous_government_type = yes
	}
	COG = {
		create_country_leader = {
			name = "Daniel Kanza"
			desc = "POLITICS_KANZA_DESC"
			picture = "gfx/leaders/COG/Portrait_Congo_Dani_Nkanza.png"
			expire = "1.1.1"
			ideology = social_conservative_subtype

		}
		set_politics = {
			ruling_party = social_conservative
		}
		get_current_government_type = yes 
	}
	UMN = {
		puppet = COG
	}
	COG = {
		restore_previous_government_type = yes
	}
}

fuck_the_shit_out_of_the_congo_youlou = {
	every_state = {	
		limit = {
			is_core_of = KIV
		}
		KIV = {
			remove_state_core = PREV
		}
	}
	KAS = {
		transfer_state = 976
		transfer_state = 1185
		transfer_state = 1184
		add_state_core = 976
		add_state_core = 1185
		add_state_core = 1184
	}
	LPD = {
		transfer_state = 538
		transfer_state = 295
		transfer_state = 1025
		transfer_state = 1180
		transfer_state = 1026
		transfer_state = 1181
		transfer_state = 977
		transfer_state = 949
		transfer_state = 718
		add_state_core = 538
		add_state_core = 295
		add_state_core = 1025
		add_state_core = 1180
		add_state_core = 1026
		add_state_core = 1181
		add_state_core = 977
		add_state_core = 949
		add_state_core = 718
		create_country_leader = {
			name = "Isaac Kalonji"
			desc = "POLITICS_KALONJI_DESC"
			picture = "gfx/leaders/KIV/Portrait_KIV_Isaac_Kalonji.png"
			expire = "1.1.1"
			ideology = socdem_left_nationalism_subtype
			traits = {}
		}
		set_politics = {
			ruling_party = social_democrat
		}
		remove_ideas = LPD_martial_law_idea
		remove_ideas = LPD_mouth_of_the_congo_idea
		remove_ideas = COG_reliance_on_mercs_idea
		remove_ideas = COG_lack_of_resources
		remove_ideas = LPD_kimbagu_agitation_idea
		remove_ideas = LPD_team_switzerland_idea
		load_focus_tree = generic_focus
		set_cosmetic_tag = KIV_congo
	}
	UMN = {
		transfer_state = 1182
		transfer_state = 879
		transfer_state = 1183
		add_state_core = 1182
		add_state_core = 879
		add_state_core = 1183
		load_focus_tree = generic_focus
		create_country_leader = {
			name = "Moïse Tshombe"
			desc = "POLITICS_MOISE_TSHOMBE_DESC"
			picture = "gfx/leaders/KIV/Portrait_KIV_Moise_Tshombe.png"
			expire = "1.1.1"
			ideology = free_market_capitalist_subtype
			traits = {}
		}
		set_party_name = {
				ideology = market_liberal
				long_name = KIV_market_liberal_party_long
				name = KIV_market_liberal_party
		}
		set_cosmetic_tag = UMN_KATANGA
	}
	KAS = {
		set_politics = {
			ruling_party = authoritarian_democrat
		}
		get_current_government_type = yes 
	}
	TKE = {
		puppet = KAS
	}
	KAS = {
		restore_previous_government_type = yes
	}
	LPD = {
		get_current_government_type = yes 
	}
	TKE = {
		puppet = LPD
	}
	LPD = {
		restore_previous_government_type = yes
	}
	TKE = {
		puppet = UMN
	}
	UMN = {
		restore_previous_government_type = yes
	}
}

kivu_flavour_events_fire = {
	hidden_effect = {
		if = {
			limit = {
				has_government = social_liberal
			}
			country_event = {
				id = kivu.31
				days = 30
				random = 10
			}
			country_event = {
				id = kivu.32
				days = 60
				random = 10
			}
			country_event = {
				id = kivu.33
				days = 80
				random = 20
			}
			country_event = {
				id = kivu.34
				days = 100
				random = 30
			}
		}
		if = {
			limit = {
				has_government = market_liberal
			}
			country_event = {
				id = kivu.35
				days = 30
				random = 10
			}
			country_event = {
				id = kivu.36
				days = 60
				random = 10
			}
			country_event = {
				id = kivu.37
				days = 80
				random = 20
			}
		}
		if = {
			limit = {
				OR = {
					has_government = paternal_autocrat
					has_government = authoritarian_democrat
				}
			}
			country_event = {
				id = kivu.22
				days = 30
				random = 10
			}
			country_event = {
				id = kivu.23
				days = 60
				random = 10
			}
			country_event = {
				id = kivu.24
				days = 80
				random = 20
			}
		}
	}
}