# p3 Clothes
3 = {
	0 = { # 0 - Royal clothes 1
		factor = 10

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_royal = yes
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 1 }
			}
		}

		modifier = {
			factor = 0.05
			OR = {
				trait = humble
				blg_merchant_clothes = yes
			}
		}
	}

	1 = { # a - Royal clothes 2
		factor = 10

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_royal = yes
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 2 }
			}
		}

		modifier = {
			factor = 0.05
			OR = {
				trait = humble
				blg_merchant_clothes = yes
			}
		}
	}

	2 = { # b - Royal clothes 3
		factor = 10

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_royal = yes
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 3 }
			}
		}

		modifier = {
			factor = 0.05
			OR = {
				trait = humble
				blg_merchant_clothes = yes
			}
		}
	}

	3 = { # c - Noble clothes 1
		factor = 2

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_noble = yes
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 4 }
			}
		}
	}

	4 = { # d - Noble clothes 2
		factor = 2

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_noble = yes
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 5 }
			}
		}
	}

	5 = { # e - Noble clothes 3
		factor = 2

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_noble = yes
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 6 }
			}
		}
	}

	6 = { # f - Modest clothes 1
		factor = 1

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_common = yes
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 7 }
			}
		}
	}

	7 = { # g - Modest clothes 2
		factor = 1

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_common = yes
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 8 }
			}
		}
	}

	8 = { # h - Modest clothes 3
		factor = 1

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_common = yes
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 9 }
			}
		}
	}

	9 = { # i - Shady clothes
		factor = 99

		trigger = {
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_intrigue = yes
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 10 }
			}
		}
	}

	10 = { # j - Martial
		factor = 100

		trigger = {
			trigger_if = {
				limit = { NOT = { is_variable_equal = { which = ca_clothes value = 11 } } }
				trigger_if = {
					limit = {
						blg_merchant_clothes = yes
					}
					is_variable_equal = { which = ca_clothes value = 0 }
				}
				trigger_else = {
					NOT = { check_variable = { which = ca_clothes value = 13 } }
					blg_clothes_military = yes
					trigger_if = {
						limit = { is_female = no }
						OR = {
							blg_elite_commander = no
							blg_peasant = yes
						}
					}
				}
			}
		}

		modifier = {
			factor = 0.01
			blg_merchant_clothes = yes
		}
	}

	11 = { # k - Ragged clothes
		factor = 100

		trigger = {
			trigger_if = {
				limit = { NOT = { is_variable_equal = { which = ca_clothes value = 12 } } }
				trigger_if = {
					limit = {
						blg_merchant_clothes = yes
					}
					is_variable_equal = { which = ca_clothes value = 0 }
				}
				trigger_else = {
					OR = {
						blg_prisoner = yes
						blg_slave = yes
					}
					NOT = { has_character_modifier = house_arrest }
				}
			}
		}

		modifier = {
			factor = 0.01
			blg_merchant_clothes = yes
		}
	}

	12 = { # l - Royal war gear / Emperor
		factor = 100

		trigger = {
			trigger_if = {
				limit = { NOT = { is_variable_equal = { which = ca_clothes value = 13 } } }
				trigger_if = {
					limit = {
						blg_ek_clothing = yes
					}
					OR = {
						real_tier = emperor
						spouse_even_if_dead = { real_tier = emperor }
					}
					is_variable_equal = { which = ca_clothes value = 0 }
				}
				trigger_else_if = {
					limit = {
						blg_merchant_clothes = yes
					}
					is_variable_equal = { which = ca_clothes value = 0 }
				}
				trigger_else = {
					NOT = { check_variable = { which = ca_clothes value = 14 } }
					blg_clothes_military = yes
					trigger_if = {
						limit = { is_nomadic = yes }
						OR = {
							real_tier = emperor
							spouse_even_if_dead = { real_tier = emperor }
						}
					}
					trigger_else = {
						OR = {
							higher_real_tier_than = duke
							spouse_even_if_dead = { higher_real_tier_than = duke }
						}
					}
				}
			}
		}

		modifier = {
			factor = 0.01
			blg_merchant_clothes = yes
		}
	}

	13 = { # m - Noble war gear / Agent 2
		factor = 100

		trigger = {
			trigger_if = {
				limit = { NOT = { is_variable_equal = { which = ca_clothes value = 14 } } }
				trigger_if = {
					limit = {
						blg_ek_clothing = yes
					}
					blg_clothes_intrigue = yes
					is_variable_equal = { which = ca_clothes value = 0 }
				}
				trigger_else_if = {
					limit = {
						blg_merchant_clothes = yes
					}
					is_variable_equal = { which = ca_clothes value = 0 }
				}
				trigger_else = {
					NOT = { check_variable = { which = ca_clothes value = 15 } }
					blg_elite_commander = yes
					blg_clothes_military = yes
				}
			}
		}

		modifier = {
			factor = 0.01
			blg_merchant_clothes = yes
		}

		modifier = {
			factor = 0.99
			OR = {
				blg_clothes_chinese = yes
				blg_ek_clothing = yes
			}
		}
	}

	14 = { # n - Chinese war gear / Martial 2
		factor = 99

		trigger = {
			trigger_if = {
				limit = { NOT = { is_variable_equal = { which = ca_clothes value = 15 } } }
				trigger_if = {
					limit = {
						blg_merchant_clothes = yes
					}
					is_variable_equal = { which = ca_clothes value = 0 }
				}
				trigger_else = {
					OR = {
						blg_ek_clothing = yes
						blg_clothes_chinese = yes
					}
					blg_elite_commander = yes
					blg_clothes_military = yes
				}
			}
		}

		modifier = {
			factor = 0.01
			blg_merchant_clothes = yes
		}
	}

	15 = { # Mage 1
		factor = 50

		trigger = {
			blg_ek_clothing = yes
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_mage = yes
				NOR = {
					higher_real_tier_than = duke
					spouse = { higher_real_tier_than = duke }
					has_job_title = job_marshal
					has_job_title = job_spymaster
				}
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 16 }
			}
		}
	}

	16 = { # Mage 2
		factor = 50

		trigger = {
			blg_ek_clothing = yes
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_mage = yes
				NOR = {
					higher_real_tier_than = duke
					spouse = { higher_real_tier_than = duke }
					has_job_title = job_marshal
					has_job_title = job_spymaster
				}
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 17 }
			}
		}
	}

	17 = { # Priest 1
		factor = 99

		trigger = {
			blg_ek_clothing = yes
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_priest = yes
				NOR = {
					higher_real_tier_than = duke
					spouse = { higher_real_tier_than = duke }
					has_job_title = job_marshal
					has_job_title = job_spymaster
				}
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 18 }
			}
		}
	}

	18 = { # Priest 2
		factor = 99

		trigger = {
			blg_ek_clothing = yes
			trigger_if = {
				limit = { is_variable_equal = { which = ca_clothes value = 0 } }
				blg_clothes_priest = yes
				NOR = {
					higher_real_tier_than = duke
					spouse = { higher_real_tier_than = duke }
					has_job_title = job_marshal
					has_job_title = job_spymaster
				}
			}
			trigger_else = {
				is_variable_equal = { which = ca_clothes value = 19 }
			}
		}
	}
}
