SPA_garrison_control_tooltip = {
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 1 compare = equals }
			ROOT = { has_completed_focus = SPA_a_great_spain }
		}
		custom_effect_tooltip = SPA_garrison_control_nationalists_none_tt
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 2 compare = equals }
			ROOT = { has_completed_focus = SPA_a_great_spain }
		}
		custom_effect_tooltip = SPA_garrison_control_nationalists_weak_tt
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 3 compare = equals }
			ROOT = { has_completed_focus = SPA_a_great_spain }
		}
		custom_effect_tooltip = SPA_garrison_control_nationalists_strong_tt
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 4 compare = equals }
			ROOT = { has_completed_focus = SPA_a_great_spain }
		}
		custom_effect_tooltip = SPA_garrison_control_nationalists_total_tt
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 1 compare = equals }
			ROOT = { has_completed_focus = SPR_the_popular_front }
		}
		custom_effect_tooltip = SPA_garrison_control_republicans_none_tt
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 2 compare = equals }
			ROOT = { has_completed_focus = SPR_the_popular_front }
		}
		custom_effect_tooltip = SPA_garrison_control_republicans_weak_tt
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 3 compare = equals }
			ROOT = { has_completed_focus = SPR_the_popular_front }
		}
		custom_effect_tooltip = SPA_garrison_control_republicans_strong_tt
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 4 compare = equals }
			ROOT = { has_completed_focus = SPR_the_popular_front }
		}
		custom_effect_tooltip = SPA_garrison_control_republicans_total_tt
	}
}

SPA_garrison_control_cost_calculation = {
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 1 compare = equals }
			NOT = { state = 41 }
		}
		set_variable = { var = SPA_garrison_control_cost value = 10 }
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 2 compare = equals }
			NOT = { state = 41 }
		}
		set_variable = { var = SPA_garrison_control_cost value = 20 }
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 3 compare = equals }
			NOT = { state = 41 }
		}
		set_variable = { var = SPA_garrison_control_cost value = 30 }
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 1 compare = equals }
			state = 41
		}
		set_variable = { var = SPA_garrison_control_cost value = 20 }
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 2 compare = equals }
			state = 41
		}
		set_variable = { var = SPA_garrison_control_cost value = 40 }
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 3 compare = equals }
			state = 41
		}
		set_variable = { var = SPA_garrison_control_cost value = 60 }
	}
}

SPR_garrison_control_cost_calculation = {
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 2 compare = equals }
		}
		set_variable = { var = SPA_garrison_control_cost value = 20 }
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 3 compare = equals }
		}
		set_variable = { var = SPA_garrison_control_cost value = 30 }
	}
	if = {
		limit = {
			check_variable = { var = SPA_garrison_control value = 4 compare = equals }
		}
		set_variable = { var = SPA_garrison_control_cost value = 40 }
	}
}

SPR_concessions_to_the_left_increase = {
	if = {
		limit = {
			has_completed_focus = SPA_a_great_spain
			has_idea = SPR_national_strikes_4
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_4
			add_idea = SPR_national_strikes_5
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPA_a_great_spain
			has_idea = SPR_national_strikes_3
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_3
			add_idea = SPR_national_strikes_4
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPA_a_great_spain
			has_idea = SPR_national_strikes_2
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_2
			add_idea = SPR_national_strikes_3
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPA_a_great_spain
			has_idea = SPR_national_strikes_1
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_1
			add_idea = SPR_national_strikes_2
		}
	}
	if = {
		limit = {
			has_completed_focus = SPR_the_popular_front
			has_idea = SPR_national_strikes_8
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_8
			add_idea = SPR_national_strikes_9
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPR_the_popular_front
			has_idea = SPR_national_strikes_3
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_3
			add_idea = SPR_national_strikes_8
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPR_the_popular_front
			has_idea = SPR_national_strikes_7
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_7
			add_idea = SPR_national_strikes_3
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPR_the_popular_front
			has_idea = SPR_national_strikes_6
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_6
			add_idea = SPR_national_strikes_7
		}
	}
}

SPR_suppress_the_strikes_increase = {
	if = {
		limit = {
			has_completed_focus = SPA_a_great_spain
			has_idea = SPR_national_strikes_2
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_2
			add_idea = SPR_national_strikes_1
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPA_a_great_spain
			has_idea = SPR_national_strikes_3
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_3
			add_idea = SPR_national_strikes_2
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPA_a_great_spain
			has_idea = SPR_national_strikes_4
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_4
			add_idea = SPR_national_strikes_3
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPA_a_great_spain
			has_idea = SPR_national_strikes_5
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_5
			add_idea = SPR_national_strikes_4
		}
	}
	if = {
		limit = {
			has_completed_focus = SPR_the_popular_front
			has_idea = SPR_national_strikes_7
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_7
			add_idea = SPR_national_strikes_6
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPR_the_popular_front
			has_idea = SPR_national_strikes_3
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_3
			add_idea = SPR_national_strikes_7
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPR_the_popular_front
			has_idea = SPR_national_strikes_8
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_8
			add_idea = SPR_national_strikes_3
		}
	}
	else_if = {
		limit = {
			has_completed_focus = SPR_the_popular_front
			has_idea = SPR_national_strikes_9
		}
		swap_ideas = {
			remove_idea = SPR_national_strikes_9
			add_idea = SPR_national_strikes_8
		}
	}
}
SPR_clr_national_strikes = {
	if = {
		limit = {
			has_idea = SPR_national_strikes_1
		}
		remove_ideas = SPR_national_strikes_1
	}
	if = {
		limit = {
			has_idea = SPR_national_strikes_2
		}
		remove_ideas = SPR_national_strikes_2
	}
	if = {
		limit = {
			has_idea = SPR_national_strikes_3
		}
		remove_ideas = SPR_national_strikes_3
	}
	if = {
		limit = {
			has_idea = SPR_national_strikes_4
		}
		remove_ideas = SPR_national_strikes_4
	}
	if = {
		limit = {
			has_idea = SPR_national_strikes_5
		}
		remove_ideas = SPR_national_strikes_5
	}
	if = {
		limit = {
			has_idea = SPR_national_strikes_6
		}
		remove_ideas = SPR_national_strikes_6
	}
	if = {
		limit = {
			has_idea = SPR_national_strikes_7
		}
		remove_ideas = SPR_national_strikes_7
	}
	if = {
		limit = {
			has_idea = SPR_national_strikes_8
		}
		remove_ideas = SPR_national_strikes_8
	}
	if = {
		limit = {
			has_idea = SPR_national_strikes_9
		}
		remove_ideas = SPR_national_strikes_9
	}
}