QNG_increase_funding_pool={
	add_to_variable = {QNG_army_funding_level_lp = 0.04}#increase lp gain
	add_to_variable = {QNG_army_funding_level_cg = 0.025}#increase civs used
	custom_effect_tooltip = tt_QNG_increased_funding_loc
}

QNG_consume_funding_from_pool={
	subtract_from_variable = {QNG_army_funding_level_lp = 0.04}
	custom_effect_tooltip = tt_QNG_decreased_funding_loc
}

QNG_lower_corruption = {
	if = {
		limit = {
			has_idea = QNG_idea_corutpion1
		}
		swap_ideas = {
			remove_idea = QNG_idea_corutpion1
			add_idea = QNG_idea_corutpion2
		}
		else_if = {
			limit = {
				has_idea = QNG_idea_corutpion2
			}
			swap_ideas = {
				remove_idea = QNG_idea_corutpion2
				add_idea = QNG_idea_corutpion3
			}
		}
		else_if = {
			limit = {
				has_idea = QNG_idea_corutpion3
			}
			swap_ideas = {
				remove_idea = QNG_idea_corutpion3
				add_idea = QNG_idea_corutpion4
			}
		}
		else_if = {
			limit = {
				has_idea = QNG_idea_corutpion4
			}
			swap_ideas = {
				remove_idea = QNG_idea_corutpion4
				add_idea = QNG_idea_corutpion5
			}
		}
		else_if = {
			limit = {
				has_idea = QNG_idea_corutpion5
			}
			swap_ideas = {
				remove_idea = QNG_idea_corutpion5
				add_idea = QNG_idea_corutpion6
			}
		}
	}
	
	
	
}

QNG_increase_corruption = {
	if = {
		limit = {
			has_idea = QNG_idea_corutpion6
		}
		swap_ideas = {
			remove_idea = QNG_idea_corutpion6
			add_idea = QNG_idea_corutpion5
		}
		else_if = {
			limit = {
				has_idea = QNG_idea_corutpion5
			}
			swap_ideas = {
				remove_idea = QNG_idea_corutpion5
				add_idea = QNG_idea_corutpion4
			}
		}
		else_if = {
			limit = {
				has_idea = QNG_idea_corutpion4
			}
			swap_ideas = {
				remove_idea = QNG_idea_corutpion4
				add_idea = QNG_idea_corutpion3
			}
		}
		else_if = {
			limit = {
				has_idea = QNG_idea_corutpion3
			}
			swap_ideas = {
				remove_idea = QNG_idea_corutpion3
				add_idea = QNG_idea_corutpion2
			}
		}
		else_if = {
			limit = {
				has_idea = QNG_idea_corutpion2
			}
			swap_ideas = {
				remove_idea = QNG_idea_corutpion2
				add_idea = QNG_idea_corutpion1
			}
		}
	}
}

rebels_lose_momentum = {
	if = {
		limit = {
			has_idea = QNG_rebel_uprising
		}
		swap_ideas = {
			remove_idea = QNG_rebel_uprising
			add_idea = QNG_rebel_uprising_2
		}
		else_if = {
			limit = {
				has_idea = QNG_rebel_uprising_2
			}
			swap_ideas = {
				remove_idea = QNG_rebel_uprising_2
				add_idea = QNG_rebel_uprising_3
			}
		}
		else_if = {
			limit = {
				has_idea = QNG_rebel_uprising_3
			}
			swap_ideas = {
				remove_idea = QNG_rebel_uprising_3
				add_idea = QNG_rebel_uprising_4
			}
		}
	}
}