
ar_caliphate_recall_victory_points = {
	custom_effect_tooltip = ar_caliphate_recall_victory_points_tt
	set_variable = { ar_caliphate_vp_var = num_of_controlled_states }
	if = {
		limit = { controls_state = 787 }	# Мекка
		add_to_variable = { ar_caliphate_vp_var = 10 }
	}
	if = {
		limit = { controls_state = 679 }	# Хиджаз медина
		add_to_variable = { ar_caliphate_vp_var = 10 }
	}
	if = {
		limit = { controls_state = 849 }	# Иерусалим
		add_to_variable = { ar_caliphate_vp_var = 5 }
	}
	if = {
		limit = { controls_state = 422 }	# Храмовый Комплекс Грехопадения Адама
		add_to_variable = { ar_caliphate_vp_var = 5 }
	}
	if = {
		limit = { controls_state = 499 }	# Джебалла - Мечеть Али-Хусеир-Джебали
		add_to_variable = { ar_caliphate_vp_var = 5 }
	}
	if = {
		limit = { controls_state = 173 }	# Альгамба
		add_to_variable = { ar_caliphate_vp_var = 5 }
	}
	if = {
		limit = { controls_state = 1042 }	# Дженне
		add_to_variable = { ar_caliphate_vp_var = 5 }
	}
	if = {
		limit = { controls_state = 291 }	# новый вавилон
		add_to_variable = { ar_caliphate_vp_var = 5 }
	}
	if = {
		limit = { controls_state = 375 }	# джафурия
		add_to_variable = { ar_caliphate_vp_var = 5 }
	}
	if = {
		limit = { controls_state = 439 }	# дели
		add_to_variable = { ar_caliphate_vp_var = 5 }
	}
	if = {
		limit = { has_idea = zar_calipfate_rvenie_buff }	# Стремление возродить Халифат
		add_to_variable = { ar_caliphate_vp_var = 10 }
	}
	if = {
		limit = { has_stability < 0.5 }	# стабка
		add_to_variable = { ar_caliphate_vp_var = -10 }
	}
	if = {
		limit = { tag = ZAR }	# мы арабы
		add_to_variable = { ar_caliphate_vp_var = -10 }
	}
	clamp_variable = {
		var = ar_caliphate_vp_var
		min = 0
		max = 1000
	}
}
