###### Faction Cheats
nkmp_factions_menu = {
	nkmp_become_faction_leader = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
			is_faction_leader = no
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			set_faction_leader = yes
		}
	}
	nkmp_show_grant_faction_leader = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
			num_faction_members > 1
		}
		visible = {
			NOT = {
				has_variable = nkmp_var_enable_grant_faction_leadership
			}
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			set_variable = {
				var = nkmp_var_enable_grant_faction_leadership
				value = 1
			}
		}
	}
	nkmp_hide_grant_faction_leader = {
		icon = generic_political_actions
		available = {
		}
		visible = {
			has_variable = nkmp_var_enable_grant_faction_leadership
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			clear_variable = nkmp_var_enable_grant_faction_leadership
		}
	}
	nkmp_become_spy_master = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
			is_spymaster = no
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			set_faction_spymaster = yes
		}
	}
	nkmp_stop_being_spy_master = {
		icon = generic_political_actions
		available = {
			num_faction_members > 1
			is_in_faction = yes
			is_spymaster = yes
		}
		visible = {
			is_in_faction = yes
			is_spymaster = yes
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			random_other_country = {
				limit = {
					is_in_faction_with = ROOT
					is_spymaster = no
				}
				set_faction_spymaster = yes
			}
		}
	}
	nkmp_show_grant_spy_master = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
			is_spymaster = yes
			num_faction_members > 1
		}
		visible = {
			AND = {
				NOT = {
					has_variable = nkmp_var_enable_grant_faction_spymaster
				}
				is_in_faction = yes
				is_spymaster = yes
			}
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			set_variable = {
				var = nkmp_var_enable_grant_faction_spymaster
				value = 1
			}
		}
	}
	nkmp_hide_grant_spy_master = {
		icon = generic_political_actions
		available = {
		}
		visible = {
			has_variable = nkmp_var_enable_grant_faction_spymaster
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			clear_variable = nkmp_var_enable_grant_faction_spymaster
		}
	}
	nkmp_divider_51 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
		}
	}
	nkmp_add_faction_points = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			add_faction_initiative = 100
		}
	}
	nkmp_add_faction_slots = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			add_faction_goal_slot = {
				category = short_term
				value = 5
			}
			add_faction_goal_slot = {
				category = medium_term
				value = 5
			}
			add_faction_goal_slot = {
				category = long_term
				value = 5
			}
		}
	}
	nkmp_add_faction_power_projection = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			add_faction_power_projection = 1000
		}
	}
	nkmp_add_faction_influence = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			add_faction_influence_score = 1000
		}
	}
	nkmp_divider_117 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
		}
	}
	nkmp_show_add_to_faction = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
		}
		visible = {
			NOT = {
				has_variable = nkmp_var_enable_add_to_faction
			}
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			set_variable = {
				var = nkmp_var_enable_add_to_faction
				value = 1
			}
		}
	}
	nkmp_hide_add_to_faction = {
		icon = generic_political_actions
		available = {
		}
		visible = {
			has_variable = nkmp_var_enable_add_to_faction
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			clear_variable = nkmp_var_enable_add_to_faction
		}
	}
	nkmp_show_remove_from_faction = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
		}
		visible = {
			NOT = {
				has_variable = nkmp_var_enable_remove_from_faction
			}
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			set_variable = {
				var = nkmp_var_enable_remove_from_faction
				value = 1
			}
		}
	}
	nkmp_hide_remove_from_faction = {
		icon = generic_political_actions
		available = {
		}
		visible = {
			has_variable = nkmp_var_enable_remove_from_faction
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			clear_variable = nkmp_var_enable_remove_from_faction
		}
	}
	nkmp_divider_54 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
		}
	}
	nkmp_allow_you_faction = {
		icon = generic_political_actions
		available = {
			NOT = {
				has_rule = can_create_factions
			}
		}
		visible = {
			NOT = {
				has_rule = can_create_factions
			}
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			set_rule = {
				can_create_factions = yes
			}
		}
	}
	nkmp_dont_allow_you_faction = {
		icon = generic_political_actions
		available = {
			has_rule = can_create_factions
		}
		visible = {
			has_rule = can_create_factions
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			set_rule = {
				can_create_factions = no
			}
		}
	}
	nkmp_dismantle_your_faction = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			dismantle_faction = yes
		}
	}
	nkmp_divider_120 = {
		available = {
			hidden_trigger = {
				always = no
			}
		}
		visible = {
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
		}
	}
	nkmp_join_UNITAR = {
		icon = generic_political_actions
		available = {
		}
		visible = {
			NOT = {
				is_in_tech_sharing_group = nkmp_united_nations_research_group
			}
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			add_to_tech_sharing_group = nkmp_united_nations_research_group
			set_country_flag = nkmp_in_unitar_research_group
			add_ideas = nkmp_unitar_tech_group_idea
		}
	}
	nkmp_leave_UNITAR = {
		icon = generic_political_actions
		available = {
			custom_trigger_tooltip = {
				tooltip = nkmp_unitar_TT
				hidden_trigger = {
					is_in_tech_sharing_group = nkmp_united_nations_research_group
				}
			}
		}
		visible = {
			is_in_tech_sharing_group = nkmp_united_nations_research_group
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			remove_from_tech_sharing_group = nkmp_united_nations_research_group
			clr_country_flag = nkmp_in_unitar_research_group
			remove_ideas = nkmp_unitar_tech_group_idea
			every_country = {
				limit = {
					is_subject_of = ROOT
					is_in_tech_sharing_group = nkmp_united_nations_research_group
					has_country_flag = nkmp_in_unitar_research_group
				}
				remove_from_tech_sharing_group = nkmp_united_nations_research_group
				clr_country_flag = nkmp_in_unitar_research_group
				remove_ideas = nkmp_unitar_tech_group_idea
			}
		}
	}
	nkmp_invite_vassals_UNITAR = {
		icon = generic_political_actions
		available = {
			custom_trigger_tooltip = {
				tooltip = nkmp_not_unitar_TT
				hidden_trigger = {
					any_subject_country = {
						NOT = {
							is_in_tech_sharing_group = nkmp_united_nations_research_group
						}
					}
				}
			}
		}
		visible = {
			is_in_tech_sharing_group = nkmp_united_nations_research_group
			num_subjects > 0
			any_subject_country = {
				NOT = {
					is_in_tech_sharing_group = nkmp_united_nations_research_group
				}
			}
		}
		fire_only_once = no
		cost = 0
		complete_effect = {
			every_country = {
				limit = {
					is_subject_of = ROOT
					NOT = {
						is_in_tech_sharing_group = nkmp_united_nations_research_group
					}
				}
				add_to_tech_sharing_group = nkmp_united_nations_research_group
				set_country_flag = nkmp_in_unitar_research_group
				add_ideas = nkmp_unitar_tech_group_idea
			}
		}
	}
}

###### Faction Menus
nkmp_add_to_faction_cat = {
	nkmp_add_to_faction = {
		icon = generic_political_actions
		available = {
		}
		visible = {
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		target_trigger = {
			FROM = {
				OR = {
					AND = {
						NOT = {
							is_in_faction_with = ROOT
						}
						NOT = {
							has_war_with = ROOT
						}
						NOT = {
							is_subject = yes
						}
					}
					AND = {
						NOT = {
							is_in_faction_with = ROOT
						}
						is_subject_of = ROOT
					}
				}
			}
		}
		fire_only_once = no
		complete_effect = {
			add_to_faction = FROM
		}
	}
}

nkmp_remove_from_faction_cat = {
	nkmp_remove_from_faction = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
		}
		visible = {
			is_in_faction = yes
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
			}
		}
		fire_only_once = no
		complete_effect = {
			remove_from_faction = FROM
		}
	}
}

nkmp_grant_faction_leadership_cat = {
	nkmp_grant_faction_leadership = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
		}
		visible = {
			is_in_faction = yes
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
			}
		}
		fire_only_once = no
		complete_effect = {
			FROM = {
				set_faction_leader = yes
			}
		}
	}
}

nkmp_grant_faction_spymaster_cat = {
	nkmp_grant_faction_spymaster = {
		icon = generic_political_actions
		available = {
			is_in_faction = yes
		}
		visible = {
			is_in_faction = yes
		}
		fire_only_once = no
		days_re_enable = 0
		cost = 0
		target_trigger = {
			FROM = {
				is_in_faction_with = ROOT
			}
		}
		fire_only_once = no
		complete_effect = {
			FROM = {
				set_faction_spymaster = yes
			}
		}
	}
}
