#faction system
#qajar
PER_qajar_low_loyalty_increase_effect = { #increase qajar loyalty by 5
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_low_loyalty_increase_tt
	add_to_variable = { PER_qajar_loyalty = 5 }
	clamp_variable = {
		var = PER_qajar_loyalty
		min = -100
		max = 100
	}
}

PER_qajar_medium_loyalty_increase_effect = { #increase qajar loyalty by 10
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_medium_loyalty_increase_tt
	add_to_variable = { PER_qajar_loyalty = 10 }
	clamp_variable = {
		var = PER_qajar_loyalty
		min = -100
		max = 100
	}
}

PER_qajar_high_loyalty_increase_effect = { #increase qajar loyalty by 15
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_high_loyalty_increase_tt
	add_to_variable = { PER_qajar_loyalty = 15 }
	clamp_variable = {
		var = PER_qajar_loyalty
		min = -100
		max = 100
	}
}

PER_qajar_low_loyalty_decrease_effect = { #decrease qajar loyalty by 5
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_low_loyalty_decrease_tt
	add_to_variable = { PER_qajar_loyalty = -5 }
	clamp_variable = {
		var = PER_qajar_loyalty
		min = -100
		max = 100
	}
}

PER_qajar_medium_loyalty_decrease_effect = { #decrease qajar loyalty by 10
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_medium_loyalty_decrease_tt
	add_to_variable = { PER_qajar_loyalty = -10 }
	clamp_variable = {
		var = PER_qajar_loyalty
		min = -100
		max = 100
	}
}

PER_qajar_high_loyalty_decrease_effect = { #decrease qajar loyalty by 15
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_high_loyalty_decrease_tt
	add_to_variable = { PER_qajar_loyalty = -15 }
	clamp_variable = {
		var = PER_qajar_loyalty
		min = -100
		max = 100
	}
}

###Test###
PER_qajar_total_popularity_decrease_effect = { #decrease qajar popularity by 100
	#custom_effect_tooltip = BUL_zveno_tt
	#custom_effect_tooltip = BUL_low_loyalty_increase_tt
	add_to_variable = { PER_qajar_popularity = -100 }
	add_to_variable = { PER_qajar_popularity = PER_qajar_popularity }
	clamp_variable = {
		var = PER_qajar_popularity
		min = 0
		max = 100
	}
}
#bakhtiari
PER_bakhtiari_low_loyalty_increase_effect = { #increase bakhtiari loyalty by 5
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_low_loyalty_increase_tt
	add_to_variable = { PER_bakhtiari_loyalty = 5 }
	clamp_variable = {
		var = PER_bakhtiari_loyalty
		min = -100
		max = 100
	}
}

PER_bakhtiari_medium_loyalty_increase_effect = { #increase bakhtiari loyalty by 10
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_medium_loyalty_increase_tt
	add_to_variable = { PER_bakhtiari_loyalty = 10 }
	clamp_variable = {
		var = PER_bakhtiari_loyalty
		min = -100
		max = 100
	}
}

PER_bakhtiari_high_loyalty_increase_effect = { #increase bakhtiari loyalty by 15
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_high_loyalty_increase_tt
	add_to_variable = { PER_bakhtiari_loyalty = 15 }
	clamp_variable = {
		var = PER_bakhtiari_loyalty
		min = -100
		max = 100
	}
}

PER_bakhtiari_low_loyalty_decrease_effect = { #decrease bakhtiari loyalty by 5
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_low_loyalty_decrease_tt
	add_to_variable = { PER_bakhtiari_loyalty = -5 }
	clamp_variable = {
		var = PER_bakhtiari_loyalty
		min = -100
		max = 100
	}
}

PER_bakhtiari_medium_loyalty_decrease_effect = { #decrease bakhtiari loyalty by 10
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_medium_loyalty_decrease_tt
	add_to_variable = { PER_bakhtiari_loyalty = -10 }
	clamp_variable = {
		var = PER_bakhtiari_loyalty
		min = -100
		max = 100
	}
}

PER_bakhtiari_high_loyalty_decrease_effect = { #decrease bakhtiari loyalty by 15
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_high_loyalty_decrease_tt
	add_to_variable = { PER_bakhtiari_loyalty = -15 }
	clamp_variable = {
		var = PER_bakhtiari_loyalty
		min = -100
		max = 100
	}
}
#qashqai
PER_qashqai_low_loyalty_increase_effect = { #increase qashqai loyalty by 5
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_low_loyalty_increase_tt
	add_to_variable = { PER_qashqai_loyalty = 5 }
	clamp_variable = {
		var = PER_qashqai_loyalty
		min = -100
		max = 100
	}
}

PER_qashqai_medium_loyalty_increase_effect = { #increase qashqai loyalty by 10
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_medium_loyalty_increase_tt
	add_to_variable = { PER_qashqai_loyalty = 10 }
	clamp_variable = {
		var = PER_qashqai_loyalty
		min = -100
		max = 100
	}
}

PER_qashqai_high_loyalty_increase_effect = { #increase qashqai loyalty by 15
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_high_loyalty_increase_tt
	add_to_variable = { PER_qashqai_loyalty = 15 }
	clamp_variable = {
		var = PER_qashqai_loyalty
		min = -100
		max = 100
	}
}

PER_qashqai_low_loyalty_decrease_effect = { #decrease qashqai loyalty by 5
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_low_loyalty_decrease_tt
	add_to_variable = { PER_qashqai_loyalty = -5 }
	clamp_variable = {
		var = PER_qashqai_loyalty
		min = -100
		max = 100
	}
}

PER_qashqai_medium_loyalty_decrease_effect = { #decrease qashqai loyalty by 10
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_medium_loyalty_decrease_tt
	add_to_variable = { PER_qajar_loyalty = -10 }
	clamp_variable = {
		var = PER_qajar_loyalty
		min = -100
		max = 100
	}
}

PER_qashqai_high_loyalty_decrease_effect = { #decrease qashqai loyalty by 15
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_high_loyalty_decrease_tt
	add_to_variable = { PER_qashqai_loyalty = -15 }
	clamp_variable = {
		var = PER_qashqai_loyalty
		min = -100
		max = 100
	}
}
#kurdish_lur
PER_kurdish_lur_low_loyalty_increase_effect = { #increase kurdish lur loyalty by 5
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_low_loyalty_increase_tt
	add_to_variable = { PER_kurdish_lur_loyalty = 5 }
	clamp_variable = {
		var = PER_kurdish_lur_loyalty
		min = -100
		max = 100
	}
}

PER_kurdish_lur_medium_loyalty_increase_effect = { #increase kurdish lur loyalty by 10
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_medium_loyalty_increase_tt
	add_to_variable = { PER_kurdish_lur_loyalty = 10 }
	clamp_variable = {
		var = PER_kurdish_lur_loyalty
		min = -100
		max = 100
	}
}

PER_kurdish_lur_high_loyalty_increase_effect = { #increase kurdish lur loyalty by 15
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_high_loyalty_increase_tt
	add_to_variable = { PER_kurdish_lur_loyalty = 15 }
	clamp_variable = {
		var = PER_kurdish_lur_loyalty
		min = -100
		max = 100
	}
}

PER_kurdish_lur_low_loyalty_decrease_effect = { #decrease kurdish lur loyalty by 5
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_low_loyalty_decrease_tt
	add_to_variable = { PER_kurdish_lur_loyalty = -5 }
	clamp_variable = {
		var = PER_kurdish_lur_loyalty
		min = -100
		max = 100
	}
}

PER_kurdish_lur_medium_loyalty_decrease_effect = { #decrease kurdish lur loyalty by 10
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_medium_loyalty_decrease_tt
	add_to_variable = { PER_kurdish_lur_loyalty = -10 }
	clamp_variable = {
		var = PER_kurdish_lur_loyalty
		min = -100
		max = 100
	}
}

PER_kurdish_lur_high_loyalty_decrease_effect = { #decrease kurdish lur loyalty by 15
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_high_loyalty_decrease_tt
	add_to_variable = { PER_kurdish_lur_loyalty = -15 }
	clamp_variable = {
		var = PER_kurdish_lur_loyalty
		min = -100
		max = 100
	}
}
#turkmen
PER_turkmen_low_loyalty_increase_effect = { #increase turkmen loyalty by 5
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_low_loyalty_increase_tt
	add_to_variable = { PER_turkmen_loyalty = 5 }
	clamp_variable = {
		var = PER_turkmen_loyalty
		min = -100
		max = 100
	}
}

PER_turkmen_medium_loyalty_increase_effect = { #increase turkmen loyalty by 10
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_medium_loyalty_increase_tt
	add_to_variable = { PER_turkmen_loyalty = 10 }
	clamp_variable = {
		var = PER_turkmen_loyalty
		min = -100
		max = 100
	}
}

PER_turkmen_high_loyalty_increase_effect = { #increase turkmen loyalty by 15
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_high_loyalty_increase_tt
	add_to_variable = { PER_turkmen_loyalty = 15 }
	clamp_variable = {
		var = PER_turkmen_loyalty
		min = -100
		max = 100
	}
}

PER_turkmen_low_loyalty_decrease_effect = { #decrease turkmen loyalty by 5
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_low_loyalty_decrease_tt
	add_to_variable = { PER_turkmen_loyalty = -5 }
	clamp_variable = {
		var = PER_turkmen_loyalty
		min = -100
		max = 100
	}
}

PER_turkmen_medium_loyalty_decrease_effect = { #decrease turkmen loyalty by 10
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_medium_loyalty_decrease_tt
	add_to_variable = { PER_turkmen_loyalty = -10 }
	clamp_variable = {
		var = PER_turkmen_loyalty
		min = -100
		max = 100
	}
}

PER_turkmen_high_loyalty_decrease_effect = { #decrease turkmen loyalty by 15
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_high_loyalty_decrease_tt
	add_to_variable = { PER_turkmen_loyalty = -15 }
	clamp_variable = {
		var = PER_turkmen_loyalty
		min = -100
		max = 100
	}
}
#baluch
PER_baluch_low_loyalty_increase_effect = { #increase baluch loyalty by 5
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_low_loyalty_increase_tt
	add_to_variable = { PER_baluch_loyalty = 5 }
	clamp_variable = {
		var = PER_baluch_loyalty
		min = -100
		max = 100
	}
}

PER_baluch_medium_loyalty_increase_effect = { #increase baluch loyalty by 10
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_medium_loyalty_increase_tt
	add_to_variable = { PER_baluch_loyalty = 10 }
	clamp_variable = {
		var = PER_baluch_loyalty
		min = -100
		max = 100
	}
}

PER_baluch_high_loyalty_increase_effect = { #increase baluch loyalty by 15
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_high_loyalty_increase_tt
	add_to_variable = { PER_baluch_loyalty = 15 }
	clamp_variable = {
		var = PER_baluch_loyalty
		min = -100
		max = 100
	}
}

PER_baluch_low_loyalty_decrease_effect = { #decrease baluch loyalty by 5
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_low_loyalty_decrease_tt
	add_to_variable = { PER_baluch_loyalty = -5 }
	clamp_variable = {
		var = PER_baluch_loyalty
		min = -100
		max = 100
	}
}

PER_baluch_medium_loyalty_decrease_effect = { #decrease baluch loyalty by 10
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_medium_loyalty_decrease_tt
	add_to_variable = { PER_baluch_loyalty = -10 }
	clamp_variable = {
		var = PER_baluch_loyalty
		min = -100
		max = 100
	}
}

PER_baluch_high_loyalty_decrease_effect = { #decrease baluch loyalty by 15
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_high_loyalty_decrease_tt
	add_to_variable = { PER_baluch_loyalty = -15 }
	clamp_variable = {
		var = PER_baluch_loyalty
		min = -100
		max = 100
	}
}
#shahsevan afshar
PER_shahsevan_afshar_low_loyalty_increase_effect = { #increase shahsevan afshar loyalty by 5
	custom_effect_tooltip = PER_shahsavan_afshar_tt
	custom_effect_tooltip = PER_low_loyalty_increase_tt
	add_to_variable = { PER_shahsevan_afshar_loyalty = 5 }
	clamp_variable = {
		var = PER_shahsevan_afshar_loyalty
		min = -100
		max = 100
	}
}

PER_shahsevan_afshar_medium_loyalty_increase_effect = { #increase shahsevan afshar loyalty by 10
	custom_effect_tooltip = PER_shahsavan_afshar_tt
	custom_effect_tooltip = PER_medium_loyalty_increase_tt
	add_to_variable = { PER_shahsevan_afshar_loyalty = 10 }
	clamp_variable = {
		var = PER_shahsevan_afshar_loyalty
		min = -100
		max = 100
	}
}

PER_shahsevan_afshar_high_loyalty_increase_effect = { #increase shahsevan afshar loyalty by 15
	custom_effect_tooltip = PER_shahsavan_afshar_tt
	custom_effect_tooltip = PER_high_loyalty_increase_tt
	add_to_variable = { PER_shahsevan_afshar_loyalty = 15 }
	clamp_variable = {
		var = PER_shahsevan_afshar_loyalty
		min = -100
		max = 100
	}
}

PER_shahsevan_afshar_low_loyalty_decrease_effect = { #decrease shahsevan afshar loyalty by 5
	custom_effect_tooltip = PER_shahsavan_afshar_tt
	custom_effect_tooltip = PER_low_loyalty_decrease_tt
	add_to_variable = { PER_shahsevan_afshar_loyalty = -5 }
	clamp_variable = {
		var = PER_shahsevan_afshar_loyalty
		min = -100
		max = 100
	}
}

PER_shahsevan_afshar_medium_loyalty_decrease_effect = { #decrease shahsevan afshar loyalty by 10
	custom_effect_tooltip = PER_shahsavan_afshar_tt
	custom_effect_tooltip = PER_medium_loyalty_decrease_tt
	add_to_variable = { PER_shahsevan_afshar_loyalty = -10 }
	clamp_variable = {
		var = PER_shahsevan_afshar_loyalty
		min = -100
		max = 100
	}
}

PER_shahsevan_afshar_high_loyalty_decrease_effect = { #decrease shahsevan afshar loyalty by 15
	custom_effect_tooltip = PER_shahsavan_afshar_tt
	custom_effect_tooltip = PER_high_loyalty_decrease_tt
	add_to_variable = { PER_shahsevan_afshar_loyalty = -15 }
	clamp_variable = {
		var = PER_shahsevan_afshar_loyalty
		min = -100
		max = 100
	}
}
#khamseh
PER_khamseh_low_loyalty_increase_effect = { #increase khamseh loyalty by 5
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_low_loyalty_increase_tt
	add_to_variable = { PER_khamseh_loyalty = 5 }
	clamp_variable = {
		var = PER_khamseh_loyalty
		min = -100
		max = 100
	}
}

PER_khamseh_medium_loyalty_increase_effect = { #increase khamseh loyalty by 10
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_medium_loyalty_increase_tt
	add_to_variable = { PER_khamseh_loyalty = 10 }
	clamp_variable = {
		var = PER_khamseh_loyalty
		min = -100
		max = 100
	}
}

PER_khamseh_high_loyalty_increase_effect = { #increase khamseh loyalty by 15
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_high_loyalty_increase_tt
	add_to_variable = { PER_khamseh_loyalty = 15 }
	clamp_variable = {
		var = PER_khamseh_loyalty
		min = -100
		max = 100
	}
}

PER_khamseh_low_loyalty_decrease_effect = { #decrease khamseh loyalty by 5
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_low_loyalty_decrease_tt
	add_to_variable = { PER_khamseh_loyalty = -5 }
	clamp_variable = {
		var = PER_khamseh_loyalty
		min = -100
		max = 100
	}
}

PER_khamseh_medium_loyalty_decrease_effect = { #decrease khamseh loyalty by 10
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_medium_loyalty_decrease_tt
	add_to_variable = { PER_khamseh_loyalty = -10 }
	clamp_variable = {
		var = PER_khamseh_loyalty
		min = -100
		max = 100
	}
}

PER_khamseh_high_loyalty_decrease_effect = { #decrease khamseh loyalty by 15
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_high_loyalty_decrease_tt
	add_to_variable = { PER_khamseh_loyalty = -15 }
	clamp_variable = {
		var = PER_khamseh_loyalty
		min = -100
		max = 100
	}
}
#qajar
PER_qajar_low_strength_increase_effect = { #increase qajar strength by 5
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_low_strength_increase_tt
	add_to_variable = { PER_qajar_strength = 5 }
	clamp_variable = {
		var = PER_qajar_strength
		min = 0
		max = 100
	}
}

PER_qajar_medium_strength_increase_effect = { #increase qajar strength by 10
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_medium_strength_increase_tt
	add_to_variable = { PER_qajar_strength = 10 }
	clamp_variable = {
		var = PER_qajar_strength
		min = 0
		max = 100
	}
}

PER_qajar_low_strength_decrease_effect = { #decrease qajar strength by 5
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_low_strength_decrease_tt
	add_to_variable = { PER_qajar_strength = -5 }
	clamp_variable = {
		var = PER_qajar_strength
		min = 0
		max = 100
	}
}

PER_qajar_medium_strength_decrease_effect = { #decrease qajar strength by 10
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_medium_strength_decrease_tt
	add_to_variable = { PER_qajar_strength = -10 }
	clamp_variable = {
		var = PER_qajar_strength
		min = 0
		max = 100
	}
}

#bakhtiari
PER_bakhtiari_low_strength_increase_effect = { #increase bakhtiari strength by 5
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_low_strength_increase_tt
	add_to_variable = { PER_bakhtiari_strength = 5 }
	clamp_variable = {
		var = PER_bakhtiari_strength
		min = 0
		max = 100
	}
}

PER_bakhtiari_medium_strength_increase_effect = { #increase bakhtiari strength by 10
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_medium_strength_increase_tt
	add_to_variable = { PER_bakhtiari_strength = 10 }
	clamp_variable = {
		var = PER_bakhtiari_strength
		min = 0
		max = 100
	}
}

PER_bakhtiari_low_strength_decrease_effect = { #decrease bakhtiari strength by 5
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_low_strength_decrease_tt
	add_to_variable = { PER_bakhtiari_strength = -5 }
	clamp_variable = {
		var = PER_bakhtiari_strength
		min = 0
		max = 100
	}
}

PER_bakhtiari_medium_strength_decrease_effect = { #decrease bakhtiari strength by 10
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_medium_strength_decrease_tt
	add_to_variable = { PER_bakhtiari_strength = -10 }
	clamp_variable = {
		var = PER_bakhtiari_strength
		min = 0
		max = 100
	}
}

#qashqai
PER_qashqai_low_strength_increase_effect = { #increase qashqai strength by 5
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_low_strength_increase_tt
	add_to_variable = { PER_qashqai_strength = 5 }
	clamp_variable = {
		var = PER_qashqai_strength
		min = 0
		max = 100
	}
}

PER_qashqai_medium_strength_increase_effect = { #increase qashqai strength by 10
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_medium_strength_increase_tt
	add_to_variable = { PER_qashqai_strength = 10 }
	clamp_variable = {
		var = PER_qashqai_strength
		min = 0
		max = 100
	}
}

PER_qashqai_low_strength_decrease_effect = { #decrease qashqai strength by 5
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_low_strength_decrease_tt
	add_to_variable = { PER_qashqai_strength = -5 }
	clamp_variable = {
		var = PER_qashqai_strength
		min = 0
		max = 100
	}
}

PER_qashqai_medium_strength_decrease_effect = { #decrease qashqai strength by 10
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_medium_strength_decrease_tt
	add_to_variable = { PER_qajar_strength = -10 }
	clamp_variable = {
		var = PER_qajar_strength
		min = 0
		max = 100
	}
}

#kurdish_lur
PER_kurdish_lur_low_strength_increase_effect = { #increase kurdish lur strength by 5
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_low_strength_increase_tt
	add_to_variable = { PER_kurdish_lur_strength = 5 }
	clamp_variable = {
		var = PER_kurdish_lur_strength
		min = 0
		max = 100
	}
}

PER_kurdish_lur_medium_strength_increase_effect = { #increase kurdish lur strength by 10
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_medium_strength_increase_tt
	add_to_variable = { PER_kurdish_lur_strength = 10 }
	clamp_variable = {
		var = PER_kurdish_lur_strength
		min = 0
		max = 100
	}
}

PER_kurdish_lur_low_strength_decrease_effect = { #decrease kurdish lur strength by 5
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_low_strength_decrease_tt
	add_to_variable = { PER_kurdish_lur_strength = -5 }
	clamp_variable = {
		var = PER_kurdish_lur_strength
		min = 0
		max = 100
	}
}

PER_kurdish_lur_medium_strength_decrease_effect = { #decrease kurdish lur strength by 10
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_medium_strength_decrease_tt
	add_to_variable = { PER_kurdish_lur_strength = -10 }
	clamp_variable = {
		var = PER_kurdish_lur_strength
		min = 0
		max = 100
	}
}

#turkmen
PER_turkmen_low_strength_increase_effect = { #increase turkmen strength by 5
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_low_strength_increase_tt
	add_to_variable = { PER_turkmen_strength = 5 }
	clamp_variable = {
		var = PER_turkmen_strength
		min = 0
		max = 100
	}
}

PER_turkmen_medium_strength_increase_effect = { #increase turkmen strength by 10
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_medium_strength_increase_tt
	add_to_variable = { PER_turkmen_strength = 10 }
	clamp_variable = {
		var = PER_turkmen_strength
		min = 0
		max = 100
	}
}


PER_turkmen_low_strength_decrease_effect = { #decrease turkmen strength by 5
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_low_strength_decrease_tt
	add_to_variable = { PER_turkmen_strength = -5 }
	clamp_variable = {
		var = PER_turkmen_strength
		min = 0
		max = 100
	}
}

PER_turkmen_medium_strength_decrease_effect = { #decrease turkmen strength by 10
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_medium_strength_decrease_tt
	add_to_variable = { PER_turkmen_strength = -10 }
	clamp_variable = {
		var = PER_turkmen_strength
		min = 0
		max = 100
	}
}

#baluch
PER_baluch_low_strength_increase_effect = { #increase baluch strength by 5
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_low_strength_increase_tt
	add_to_variable = { PER_baluch_strength = 5 }
	clamp_variable = {
		var = PER_baluch_strength
		min = 0
		max = 100
	}
}

PER_baluch_medium_strength_increase_effect = { #increase baluch strength by 10
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_medium_strength_increase_tt
	add_to_variable = { PER_baluch_strength = 10 }
	clamp_variable = {
		var = PER_baluch_strength
		min = 0
		max = 100
	}
}

PER_baluch_low_strength_decrease_effect = { #decrease baluch strength by 5
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_low_strength_decrease_tt
	add_to_variable = { PER_baluch_strength = -5 }
	clamp_variable = {
		var = PER_baluch_strength
		min = 0
		max = 100
	}
}

PER_baluch_medium_strength_decrease_effect = { #decrease baluch strength by 10
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_medium_strength_decrease_tt
	add_to_variable = { PER_baluch_strength = -10 }
	clamp_variable = {
		var = PER_baluch_strength
		min = 0
		max = 100
	}
}

#shahsevan afshar
PER_shahsevan_afshar_low_strength_increase_effect = { #increase shahsevan afshar strength by 5
	custom_effect_tooltip = PER_shahsavan_afshar_tt
	custom_effect_tooltip = PER_low_strength_increase_tt
	add_to_variable = { PER_shahsevan_afshar_strength = 5 }
	clamp_variable = {
		var = PER_shahsevan_afshar_strength
		min = 0
		max = 100
	}
}

PER_shahsevan_afshar_medium_strength_increase_effect = { #increase shahsevan afshar strength by 10
	custom_effect_tooltip = PER_shahsavan_afshar_tt
	custom_effect_tooltip = PER_medium_strength_increase_tt
	add_to_variable = { PER_shahsevan_afshar_strength = 10 }
	clamp_variable = {
		var = PER_shahsevan_afshar_strength
		min = 0
		max = 100
	}
}

PER_shahsevan_afshar_low_strength_decrease_effect = { #decrease shahsevan afshar strength by 5
	custom_effect_tooltip = PER_shahsavan_afshar_tt
	custom_effect_tooltip = PER_low_strength_decrease_tt
	add_to_variable = { PER_shahsevan_afshar_strength = -5 }
	clamp_variable = {
		var = PER_shahsevan_afshar_strength
		min = 0
		max = 100
	}
}

PER_shahsevan_afshar_medium_strength_decrease_effect = { #decrease shahsevan afshar strength by 10
	custom_effect_tooltip = PER_shahsavan_afshar_tt
	custom_effect_tooltip = PER_medium_strength_decrease_tt
	add_to_variable = { PER_shahsevan_afshar_strength = -10 }
	clamp_variable = {
		var = PER_shahsevan_afshar_strength
		min = 0
		max = 100
	}
}

#khamseh
PER_khamseh_low_strength_increase_effect = { #increase khamseh strength by 5
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_low_strength_increase_tt
	add_to_variable = { PER_khamseh_strength = 5 }
	clamp_variable = {
		var = PER_khamseh_strength
		min = 0
		max = 100
	}
}

PER_khamseh_medium_strength_increase_effect = { #increase khamseh strength by 10
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_medium_strength_increase_tt
	add_to_variable = { PER_khamseh_strength = 10 }
	clamp_variable = {
		var = PER_khamseh_strength
		min = 0
		max = 100
	}
}

PER_khamseh_low_strength_decrease_effect = { #decrease khamseh strength by 5
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_low_strength_decrease_tt
	add_to_variable = { PER_khamseh_strength = -5 }
	clamp_variable = {
		var = PER_khamseh_strength
		min = 0
		max = 100
	}
}

PER_khamseh_medium_strength_decrease_effect = { #decrease khamseh strength by 10
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_medium_strength_decrease_tt
	add_to_variable = { PER_khamseh_strength = -10 }
	clamp_variable = {
		var = PER_khamseh_strength
		min = 0
		max = 100
	}
}

PER_qajar_low_popularity_increase_effect = { #increase qajar popularity by 1%
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_low_popularity_increase_tt
	add_to_variable = { PER_qajar_popularity = 0.01 }
	clamp_variable = {
		var = PER_qajar_popularity
		min = 0
		max = 1
	}
}

PER_qajar_medium_popularity_increase_effect = { #increase qajar popularity by 2%
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_medium_popularity_increase_tt
	add_to_variable = { PER_qajar_popularity = 0.02 }
	clamp_variable = {
		var = PER_qajar_popularity
		min = 0
		max = 1
	}
}

PER_qajar_high_popularity_increase_effect = { #increase qajar popularity by 3%
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_high_popularity_increase_tt
	add_to_variable = { PER_qajar_popularity = 0.03 }
	clamp_variable = {
		var = PER_qajar_popularity
		min = 0
		max = 1
	}
}

PER_qajar_low_popularity_decrease_effect = { #decrease qajar popularity by 1%
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_low_popularity_decrease_tt
	add_to_variable = { PER_qajar_popularity = -0.01 }
	clamp_variable = {
		var = PER_qajar_popularity
		min = 0
		max = 1
	}
}

PER_qajar_medium_popularity_decrease_effect = { #decrease qajar popularity by 2%
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_medium_popularity_decrease_tt
	add_to_variable = { PER_qajar_popularity = -0.02 }
	clamp_variable = {
		var = PER_qajar_popularity
		min = 0
		max = 1
	}
}

PER_qajar_high_popularity_decrease_effect = { #decrease qajar popularity by 3%
	custom_effect_tooltip = PER_qajar_tt
	custom_effect_tooltip = PER_high_popularity_decrease_tt
	add_to_variable = { PER_qajar_popularity = -0.03 }
	clamp_variable = {
		var = PER_qajar_popularity
		min = 0
		max = 1
	}
}

PER_bakhtiari_low_popularity_increase_effect = { #increase bakhtiari popularity by 1%
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_low_popularity_increase_tt
	add_to_variable = { PER_bakhtiari_popularity = 0.01 }
	clamp_variable = {
		var = PER_bakhtiari_popularity
		min = 0
		max = 1
	}
}

PER_bakhtiari_medium_popularity_increase_effect = { #increase bakhtiari popularity by 2%
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_medium_popularity_increase_tt
	add_to_variable = { PER_bakhtiari_popularity = 0.02 }
	clamp_variable = {
		var = PER_bakhtiari_popularity
		min = 0
		max = 1
	}
}

PER_bakhtiari_high_popularity_increase_effect = { #increase bakhtiari popularity by 3%
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_high_popularity_increase_tt
	add_to_variable = { PER_bakhtiari_popularity = 0.03 }
	clamp_variable = {
		var = PER_bakhtiari_popularity
		min = 0
		max = 1
	}
}

PER_bakhtiari_low_popularity_decrease_effect = { #decrease bakhtiari popularity by 1%
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_low_popularity_decrease_tt
	add_to_variable = { PER_bakhtiari_popularity = -0.01 }
	clamp_variable = {
		var = PER_bakhtiari_popularity
		min = 0
		max = 1
	}
}

PER_bakhtiari_medium_popularity_decrease_effect = { #decrease bakhtiari popularity by 2%
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_medium_popularity_decrease_tt
	add_to_variable = { PER_bakhtiari_popularity = -0.02 }
	clamp_variable = {
		var = PER_bakhtiari_popularity
		min = 0
		max = 1
	}
}

PER_bakhtiari_high_popularity_decrease_effect = { #decrease bakhtiari popularity by 3%
	custom_effect_tooltip = PER_bakhtiari_tt
	custom_effect_tooltip = PER_high_popularity_decrease_tt
	add_to_variable = { PER_bakhtiari_popularity = -0.03 }
	clamp_variable = {
		var = PER_bakhtiari_popularity
		min = 0
		max = 1
	}
}

PER_qashqai_low_popularity_increase_effect = { #increase qashqai popularity by 1%
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_low_popularity_increase_tt
	add_to_variable = { PER_qashqai_popularity = 0.01 }
	clamp_variable = {
		var = PER_qashqai_popularity
		min = 0
		max = 1
	}
}

PER_qashqai_medium_popularity_increase_effect = { #increase qashqai popularity by 2%
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_medium_popularity_increase_tt
	add_to_variable = { PER_qashqai_popularity = 0.02 }
	clamp_variable = {
		var = PER_qashqai_popularity
		min = 0
		max = 1
	}
}

PER_qashqai_high_popularity_increase_effect = { #increase qashqai popularity by 3%
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_high_popularity_increase_tt
	add_to_variable = { PER_qashqai_popularity = 0.03 }
	clamp_variable = {
		var = PER_qashqai_popularity
		min = 0
		max = 1
	}
}

PER_qashqai_low_popularity_decrease_effect = { #decrease qashqai popularity by 1%
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_low_popularity_decrease_tt
	add_to_variable = { PER_qashqai_popularity = -0.01 }
	clamp_variable = {
		var = PER_qashqai_popularity
		min = 0
		max = 1
	}
}

PER_qashqai_medium_popularity_decrease_effect = { #decrease qashqai popularity by 2%
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_medium_popularity_decrease_tt
	add_to_variable = { PER_qashqai_popularity = -0.02 }
	clamp_variable = {
		var = PER_qashqai_popularity
		min = 0
		max = 1
	}
}

PER_qashqai_high_popularity_decrease_effect = { #decrease qashqai popularity by 3%
	custom_effect_tooltip = PER_qashqai_tt
	custom_effect_tooltip = PER_high_popularity_decrease_tt
	add_to_variable = { PER_qashqai_popularity = -0.03 }
	clamp_variable = {
		var = PER_qashqai_popularity
		min = 0
		max = 1
	}
}

PER_kurdish_lur_low_popularity_increase_effect = { #increase kurdish lur popularity by 1%
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_low_popularity_increase_tt
	add_to_variable = { PER_kurdish_lur_popularity = 0.01 }
	clamp_variable = {
		var = PER_kurdish_lur_popularity
		min = 0
		max = 1
	}
}

PER_kurdish_lur_medium_popularity_increase_effect = { #increase kurdish lur popularity by 2%
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_medium_popularity_increase_tt
	add_to_variable = { PER_kurdish_lur_popularity = 0.02 }
	clamp_variable = {
		var = PER_kurdish_lur_popularity
		min = 0
		max = 1
	}
}

PER_kurdish_lur_high_popularity_increase_effect = { #increase kurdish lur popularity by 3%
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_high_popularity_increase_tt
	add_to_variable = { PER_kurdish_lur_popularity = 0.03 }
	clamp_variable = {
		var = PER_kurdish_lur_popularity
		min = 0
		max = 1
	}
}

PER_kurdish_lur_low_popularity_decrease_effect = { #decrease kurdish lur popularity by 1%
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_low_popularity_decrease_tt
	add_to_variable = { PER_kurdish_lur_popularity = -0.01 }
	clamp_variable = {
		var = PER_kurdish_lur_popularity
		min = 0
		max = 1
	}
}

PER_kurdish_lur_medium_popularity_decrease_effect = { #decrease kurdish lur popularity by 2%
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_medium_popularity_decrease_tt
	add_to_variable = { PER_kurdish_lur_popularity = -0.02 }
	clamp_variable = {
		var = PER_kurdish_lur_popularity
		min = 0
		max = 1
	}
}

PER_kurdish_lur_high_popularity_decrease_effect = { #decrease kurdish lur popularity by 3%
	custom_effect_tooltip = PER_kurdish_lur_tt
	custom_effect_tooltip = PER_high_popularity_decrease_tt
	add_to_variable = { PER_kurdish_lur_popularity = -0.03 }
	clamp_variable = {
		var = PER_kurdish_lur_popularity
		min = 0
		max = 1
	}
}

PER_turkmen_low_popularity_increase_effect = { #increase turkmen popularity by 1%
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_low_popularity_increase_tt
	add_to_variable = { PER_turkmen_popularity = 0.01 }
	clamp_variable = {
		var = PER_turkmen_popularity
		min = 0
		max = 1
	}
}

PER_turkmen_medium_popularity_increase_effect = { #increase turkmen popularity by 2%
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_medium_popularity_increase_tt
	add_to_variable = { PER_turkmen_popularity = 0.02 }
	clamp_variable = {
		var = PER_turkmen_popularity
		min = 0
		max = 1
	}
}

PER_turkmen_high_popularity_increase_effect = { #increase turkmen popularity by 3%
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_high_popularity_increase_tt
	add_to_variable = { PER_turkmen_popularity = 0.03 }
	clamp_variable = {
		var = PER_turkmen_popularity
		min = 0
		max = 1
	}
}

PER_turkmen_low_popularity_decrease_effect = { #decrease turkmen popularity by 1%
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_low_popularity_decrease_tt
	add_to_variable = { PER_turkmen_popularity = -0.01 }
	clamp_variable = {
		var = PER_turkmen_popularity
		min = 0
		max = 1
	}
}

PER_turkmen_medium_popularity_decrease_effect = { #decrease turkmen popularity by 2%
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_medium_popularity_decrease_tt
	add_to_variable = { PER_turkmen_popularity = -0.02 }
	clamp_variable = {
		var = PER_turkmen_popularity
		min = 0
		max = 1
	}
}

PER_turkmen_high_popularity_decrease_effect = { #decrease turkmen popularity by 3%
	custom_effect_tooltip = PER_turkmen_tt
	custom_effect_tooltip = PER_high_popularity_decrease_tt
	add_to_variable = { PER_turkmen_popularity = -0.03 }
	clamp_variable = {
		var = PER_turkmen_popularity
		min = 0
		max = 1
	}
}

PER_baluch_low_popularity_increase_effect = { #increase baluch popularity by 1%
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_low_popularity_increase_tt
	add_to_variable = { PER_baluch_popularity = 0.01 }
	clamp_variable = {
		var = PER_baluch_popularity
		min = 0
		max = 1
	}
}

PER_baluch_medium_popularity_increase_effect = { #increase baluch popularity by 2%
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_medium_popularity_increase_tt
	add_to_variable = { PER_baluch_popularity = 0.02 }
	clamp_variable = {
		var = PER_baluch_popularity
		min = 0
		max = 1
	}
}

PER_baluch_high_popularity_increase_effect = { #increase baluch popularity by 3%
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_high_popularity_increase_tt
	add_to_variable = { PER_baluch_popularity = 0.03 }
	clamp_variable = {
		var = PER_baluch_popularity
		min = 0
		max = 1
	}
}

PER_baluch_low_popularity_decrease_effect = { #decrease baluch popularity by 1%
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_low_popularity_decrease_tt
	add_to_variable = { PER_baluch_popularity = -0.01 }
	clamp_variable = {
		var = PER_baluch_popularity
		min = 0
		max = 1
	}
}

PER_baluch_medium_popularity_decrease_effect = { #decrease baluch popularity by 2%
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_medium_popularity_decrease_tt
	add_to_variable = { PER_baluch_popularity = -0.02 }
	clamp_variable = {
		var = PER_baluch_popularity
		min = 0
		max = 1
	}
}

PER_baluch_high_popularity_decrease_effect = { #decrease baluch popularity by 3%
	custom_effect_tooltip = PER_baluch_tt
	custom_effect_tooltip = PER_high_popularity_decrease_tt
	add_to_variable = { PER_baluch_popularity = -0.03 }
	clamp_variable = {
		var = PER_baluch_popularity
		min = 0
		max = 1
	}
}

PER_shahsevan_afshar_low_popularity_increase_effect = { #increase shahsevan afshar popularity by 1%
	custom_effect_tooltip = PER_shahsevan_afshar_tt
	custom_effect_tooltip = PER_low_popularity_increase_tt
	add_to_variable = { PER_shahsevan_afshar_popularity = 0.01 }
	clamp_variable = {
		var = PER_shahsevan_afshar_popularity
		min = 0
		max = 1
	}
}

PER_shahsevan_afshar_medium_popularity_increase_effect = { #increase shahsevan afshar popularity by 2%
	custom_effect_tooltip = PER_shahsevan_afshar_tt
	custom_effect_tooltip = PER_medium_popularity_increase_tt
	add_to_variable = { PER_shahsevan_afshar_popularity = 0.02 }
	clamp_variable = {
		var = PER_shahsevan_afshar_popularity
		min = 0
		max = 1
	}
}

PER_shahsevan_afshar_high_popularity_increase_effect = { #increase shahsevan afshar popularity by 3%
	custom_effect_tooltip = PER_shahsevan_afshar_tt
	custom_effect_tooltip = PER_high_popularity_increase_tt
	add_to_variable = { PER_shahsevan_afshar_popularity = 0.03 }
	clamp_variable = {
		var = PER_shahsevan_afshar_popularity
		min = 0
		max = 1
	}
}

PER_shahsevan_afshar_low_popularity_decrease_effect = { #decrease shahsevan afshar popularity by 1%
	custom_effect_tooltip = PER_shahsevan_afshar_tt
	custom_effect_tooltip = PER_low_popularity_decrease_tt
	add_to_variable = { PER_shahsevan_afshar_popularity = -0.01 }
	clamp_variable = {
		var = PER_shahsevan_afshar_popularity
		min = 0
		max = 1
	}
}

PER_shahsevan_afshar_medium_popularity_decrease_effect = { #decrease shahsevan afshar popularity by 2%
	custom_effect_tooltip = PER_shahsevan_afshar_tt
	custom_effect_tooltip = PER_medium_popularity_decrease_tt
	add_to_variable = { PER_shahsevan_afshar_popularity = -0.02 }
	clamp_variable = {
		var = PER_shahsevan_afshar_popularity
		min = 0
		max = 1
	}
}

PER_shahsevan_afshar_high_popularity_decrease_effect = { #decrease shahsevan afshar popularity by 3%
	custom_effect_tooltip = PER_shahsevan_afshar_tt
	custom_effect_tooltip = PER_high_popularity_decrease_tt
	add_to_variable = { PER_shahsevan_afshar_popularity = -0.03 }
	clamp_variable = {
		var = PER_shahsevan_afshar_popularity
		min = 0
		max = 1
	}
}

PER_khamseh_low_popularity_increase_effect = { #increase khamseh popularity by 1%
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_low_popularity_increase_tt
	add_to_variable = { PER_khamseh_popularity = 0.01 }
	clamp_variable = {
		var = PER_khamseh_popularity
		min = 0
		max = 1
	}
}

PER_khamseh_medium_popularity_increase_effect = { #increase khamseh popularity by 2%
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_medium_popularity_increase_tt
	add_to_variable = { PER_khamseh_popularity = 0.02 }
	clamp_variable = {
		var = PER_khamseh_popularity
		min = 0
		max = 1
	}
}

PER_khamseh_high_popularity_increase_effect = { #increase khamseh popularity by 3%
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_high_popularity_increase_tt
	add_to_variable = { PER_khamseh_popularity = 0.03 }
	clamp_variable = {
		var = PER_khamseh_popularity
		min = 0
		max = 1
	}
}

PER_khamseh_low_popularity_decrease_effect = { #decrease khamseh popularity by 1%
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_low_popularity_decrease_tt
	add_to_variable = { PER_khamseh_popularity = -0.01 }
	clamp_variable = {
		var = PER_khamseh_popularity
		min = 0
		max = 1
	}
}

PER_khamseh_medium_popularity_decrease_effect = { #decrease khamseh popularity by 2%
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_medium_popularity_decrease_tt
	add_to_variable = { PER_khamseh_popularity = -0.02 }
	clamp_variable = {
		var = PER_khamseh_popularity
		min = 0
		max = 1
	}
}

PER_khamseh_high_popularity_decrease_effect = { #decrease khamseh popularity by 3%
	custom_effect_tooltip = PER_khamseh_tt
	custom_effect_tooltip = PER_high_popularity_decrease_tt
	add_to_variable = { PER_khamseh_popularity = -0.03 }
	clamp_variable = {
		var = PER_khamseh_popularity
		min = 0
		max = 1
	}
}

PER_calculate_total_popularity_effect = { #calculates the popuparity of qajar + any integrated tribes
	set_temp_variable = { temp1 = PER_qajar_popularity }
	set_temp_variable = { temp2 = PER_bakhtiari_popularity }
	set_temp_variable = { temp3 = PER_qashqai_popularity }
	set_temp_variable = { temp4 = PER_kurdish_lur_popularity }
	set_temp_variable = { temp5 = PER_turkmen_popularity }
	set_temp_variable = { temp6 = PER_baluch_popularity }
	set_temp_variable = { temp7 = PER_shahsevan_afshar_popularity }
	set_temp_variable = { temp8 = PER_khamseh_popularity }
		
	if = {
				limit = { #checks if qajar in power or integrated
				    OR = {
					has_country_flag = PER_qajar_in_power_flag
					has_country_flag = PER_qajar_integrated_flag
					}
				}
				set_variable = { PER_power_of_the_qajar_ppg = temp1 } #adds value to ppg
				set_variable = { PER_qajar_popularity = temp1 } #returns value to gui
        }
	if = {
				limit = {
					has_country_flag = PER_bakhtiari_integrated_flag #checks if bakhtiari is integrated
				}
				add_to_variable = { PER_power_of_the_qajar_ppg = temp2 } #adds the stored value to ppg on top of qajar
				set_variable = { PER_bakhtiari_popularity = temp2 } #returns value to gui
        }
	else_if = 	{
				limit = {
					NOT = { has_country_flag = PER_bakhtiari_integrated_flag } #if not integrated
					}
				set_variable = { PER_bakhtiari_popularity = temp2 } #returns stored value back to gui
        }
	if = {
				limit = {
					has_country_flag = PER_qashqai_integrated_flag
				}
				add_to_variable = { PER_power_of_the_qajar_ppg = temp3 }
				set_variable = { PER_qashqai_popularity = temp3 } #returns value to gui
        }
	else_if = 	{
				limit = {
					NOT = { has_country_flag = PER_qashqai_integrated_flag }
					}
				set_variable = { PER_qashqai_popularity = temp3 }
        }
	if = {
				limit = {
					has_country_flag = PER_kurdish_lur_integrated_flag
				}
				add_to_variable = { PER_power_of_the_qajar_ppg = temp4 }
				set_variable = { PER_kurdish_lur_popularity = temp4 } #returns value to gui
        }
	else_if = 	{
				limit = {
					NOT = { has_country_flag = PER_kurdish_lur_integrated_flag }
					}
				set_variable = { PER_kurdish_lur_popularity = temp4 }
        }
	if = {
				limit = {
					has_country_flag = PER_turkmen_integrated_flag
				}
				add_to_variable = { PER_power_of_the_qajar_ppg = temp5 }
				set_variable = { PER_turkmen_popularity = temp5 } #returns value to gui
        }
	else_if = 	{
				limit = {
					NOT = { has_country_flag = PER_turkmen_integrated_flag }
					}
				set_variable = { PER_turkmen_popularity = temp5 }
        }
	if = {
				limit = {
					has_country_flag = PER_baluch_integrated_flag
				}
				add_to_variable = { PER_power_of_the_qajar_ppg = temp6 }
				set_variable = { PER_baluch_popularity = temp6 } #returns value to gui
        }
	else_if = 	{
				limit = {
					NOT = { has_country_flag = PER_baluch_integrated_flag }
					}
				set_variable = { PER_baluch_popularity = temp6 }
        }
    if = {
				limit = {
					has_country_flag = PER_shahsevan_afshar_integrated_flag
				}
				add_to_variable = { PER_power_of_the_qajar_ppg = temp7 }
				set_variable = { PER_shahsevan_afshar_popularity = temp7 } #returns value to gui
        }
	else_if = 	{
				limit = {
					NOT = { has_country_flag = PER_shahsevan_afshar_integrated_flag }
					}
				set_variable = { PER_shahsevan_afshar_popularity = temp7 }
        }
	if = {
				limit = {
					has_country_flag = PER_khamseh_integrated_flag
				}
				add_to_variable = { PER_power_of_the_qajar_ppg = temp8 }
				set_variable = { PER_khamseh_popularity = temp8 } #returns value to gui
        }
	else_if = 	{
				limit = {
					NOT = { has_country_flag = PER_khamseh_integrated_flag }
					}
				set_variable = { PER_khamseh_popularity = temp8 }
        }		
}