# p4 beard
4 = {
	0 = { # 0 - Beardless when young
		factor = 40

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_beard value = 0 } }
				OR = {
					practical_age < 22
					trait = eunuch
				}
			}
			trigger_else = {
				is_variable_equal = { which = ca_beard value = 1 }
			}
		}
	}

	1 = { # a - Light beard
		factor = 1

		trigger = {
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 2 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_norse = yes
				blg_beard_celtic = yes
				blg_beard_persian = yes
			}
		}
	}

	2 = { # b - Beard
		factor = 1

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_beard value = 0 } }
				trigger_if = {
					limit = {
						blg_hair_tidy_all = yes
					}
					blg_beard_celtic = no
				}
			}
			trigger_else = {
				is_variable_equal = { which = ca_beard value = 3 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_southern = yes
				blg_beard_egyptian = yes
				blg_beard_turkish = yes
				blg_beard_easternslavic = yes
				blg_beard_mongol = yes
			}
		}
	}

	3 = { # c - Beard
		factor = 1

		trigger = {
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 4 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			blg_beard_ugric = yes
		}
	}

	4 = { # d - Small mustache and beard
		factor = 1

		trigger = {
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 5 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_byzantine = yes
				blg_beard_persian = yes
				blg_beard_ugric = yes
				blg_beard_chinese = yes
			}
		}
	}

	5 = { # e - Spanish mustache
		factor = 1

		trigger = {
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 6 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_roman = yes
				blg_beard_mongol = yes
			}
		}
	}

	6 = { # f - Beard no mustache
		factor = 1

		trigger = {
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 7 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_byzantine = yes
				blg_beard_southern = yes
				blg_beard_norse = yes
				blg_beard_celtic = yes
				blg_beard_cuman = yes
				blg_beard_turkish = yes
				blg_beard_easternslavic = yes
				blg_beard_southindian = yes
				blg_beard_roman = yes
			}
		}
	}

	7 = { # g - Evil stache
		factor = 1

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_beard value = 0 } }
				trigger_if = {
					limit = {
						blg_hair_tidy_all = yes
					}
					blg_beard_celtic = no
				}
			}
			trigger_else = {
				is_variable_equal = { which = ca_beard value = 8 }
			}
		}

		modifier = {
			factor = 50
			blg_beard_uncommon = yes
			blg_beard_mongol = yes
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_english = yes
				blg_beard_frankish = yes
				blg_beard_roman = yes
			}
		}
	}

	8 = { # h - Beard
		factor = 1

		trigger = {
			blg_beard_mongol = no
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 9 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_english = yes
				blg_beard_frankish = yes
				blg_beard_norse = yes
				blg_beard_egyptian = yes
				blg_beard_ugric = yes
				blg_beard_easternslavic = yes
				blg_beard_indian = yes
				blg_beard_turkish = yes
				blg_beard_roman = yes
			}
		}
	}

	9 = { # i - Beard
		factor = 1

		trigger = {
			blg_beard_mongol = no
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 10 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_german = yes
				blg_beard_muslim = yes
				blg_beard_egyptian = yes
				blg_beard_southslavic = yes
				blg_beard_easternslavic = yes
				blg_beard_westernslavic = yes
			}
		}
	}

	10 = { # j - Beard
		factor = 1

		trigger = {
			blg_beard_mongol = no
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 11 }
			}
		}

		modifier = {
			factor = 10
			blg_beard_uncommon = yes
			OR = {
				blg_beard_celtic = yes
				blg_beard_persian = yes
				blg_beard_turkish = yes
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_english = yes
				blg_beard_german = yes
				blg_beard_african = yes
				blg_beard_southindian = yes
				blg_beard_chinese = yes
			}
		}
	}

	11 = { # k - Beard
		factor = 1

		trigger = {
			blg_beard_celtic = no
			blg_beard_persian = no
			blg_beard_turkish = no
			blg_beard_mongol = no

			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 12 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_byzantine = yes
				blg_beard_frankish = yes
				blg_beard_german = yes
				blg_beard_southslavic = yes
				blg_beard_westernslavic = yes
				blg_beard_muslim = yes
				blg_beard_indian = yes
				blg_beard_roman = yes
			}
		}
	}

	12 = { # l - Beard
		factor = 1

		trigger = {
			blg_beard_celtic = no
			blg_beard_persian = no
			blg_beard_turkish = no
			blg_beard_mongol = no

			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 13 }
			}
		}

		modifier = {
			factor = 10
			blg_beard_uncommon = yes
			blg_beard_indian = yes
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_byzantine = yes
				blg_beard_german = yes
				blg_beard_ugric = yes
				blg_beard_bodpa = yes
			}
		}
	}

	13 = { # m - Beard
		factor = 1

		trigger = {
			blg_beard_celtic = no
			blg_beard_persian = no
			blg_beard_turkish = no
			blg_beard_indian = no
			blg_beard_mongol = no

			trigger_if = {
				limit = { is_variable_equal = { which = ca_beard value = 0 } }
				trigger_if = {
					limit = {
						blg_hair_tidy_ranking = yes
					}
					blg_beard_westernslavic = no
				}
			}
			trigger_else = {
				is_variable_equal = { which = ca_beard value = 14 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_southslavic = yes
				blg_beard_westernslavic = yes
				blg_beard_cuman = yes
				blg_beard_bodpa = yes
			}
		}
	}

	14 = { # n - Beard
		factor = 1

		trigger = {
			blg_beard_celtic = no
			blg_beard_persian = no
			blg_beard_turkish = no
			blg_beard_indian = no
			blg_beard_mongol = no

			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 15 }
			}
		}

		modifier = { # Uncouth hairstyle
			factor = 4
			OR = {
				trait = uncouth
				prisoner = yes
			}
			OR = {
				blg_beard_english = yes
				blg_beard_norse = yes
				blg_beard_ugric = yes
				blg_beard_african = yes
				blg_beard_easternslavic = yes
			}
		}
	}

	15 = { # o - Loopback to beardless
		factor = 4

		trigger = {
			blg_beard_celtic = no
			blg_beard_persian = no
			blg_beard_turkish = no
			blg_beard_indian = no
			blg_beard_mongol = no

			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 16 }
			}
		}
	}

	16 = {
		factor = 1
		trigger = {
			blg_beard_ek = yes
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 17 }
			}
		}
	}

	17 = {
		factor = 1
		trigger = {
			blg_beard_ek = yes
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 18 }
			}
		}
	}

	18 = {
		factor = 1
		trigger = {
			blg_beard_ek = yes
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 19 }
			}
		}
	}

	19 = {
		factor = 1
		trigger = {
			blg_beard_ek = yes
			OR = {
				is_variable_equal = { which = ca_beard value = 0 }
				is_variable_equal = { which = ca_beard value = 20 }
			}
		}
	}
}
