﻿should_be_naked_trigger = {
	# Character must be an adult.
	is_adult = yes

	# Nude portraits have not been disabled in game rules.
	NOT = {
		has_game_rule = never_nudity
	}

	# Character must have a valid reasion to be naked.
	OR = {
		faith = {
			has_doctrine_parameter = naked_adherents_active
		}
		AND = {
			faith = {
				has_doctrine_parameter = naked_priests_active
			}
			OR = {
				ai_zeal >= 50
				has_trait = devoted
				has_trait = zealous
				has_government = theocracy_government
				has_council_position = councillor_court_chaplain
			}
		}
		has_character_modifier = diplomacy_majesty_4090_no_raiment_modifier # Lunatic event where character goes naked instead of buying new clothes.
		has_character_flag = is_naked # Special flag used in certain events.
	}

}


portrait_wear_armor_trigger = {
	OR = {
		has_government = mercenary_government
		is_commanding_army = yes
		AND = {
			is_knight = yes
			OR = {
				is_landed = no
				liege = {
					is_at_war = yes
				}
			}
		}
		AND = {
			has_council_position = councillor_marshal
			OR = {
				is_landed = no
				primary_title.tier < tier_kingdom
			}
		}				
	}
}


portrait_wear_helmet_trigger = { # Different from Armor, as Counts+ should show their crowns!
	OR = {
		has_government = mercenary_government
		AND = {
			is_commanding_army = yes
			OR = {
				is_landed = no
				AND = {
					exists = primary_title
					primary_title.tier < tier_duchy
				}
			}
		}
		AND = {
			is_knight = yes
			OR = {
				is_landed = no
				AND = {
					exists = primary_title
					primary_title.tier < tier_duchy
					liege = {
						is_at_war = yes
					}
				}
			}
		}
		AND = {
			has_council_position = councillor_marshal
			OR = {
				is_landed = no
				primary_title.tier < tier_duchy
			}
		}				
	}
}



portrait_byzantine_clothing_trigger = {
	culture = { has_graphical_culture = byzantine_clothing_gfx }
}

portrait_indian_clothing_trigger = {
	culture = { has_graphical_culture = indian_clothing_gfx }
}

portrait_mena_clothing_trigger = {
	culture = { has_graphical_culture = mena_clothing_gfx }
}
portrait_african_clothing_trigger = {
	culture = { has_graphical_culture = african_clothing_gfx }
}

portrait_northern_clothing_trigger = {
	culture = { has_graphical_culture = northern_clothing_gfx }
}

portrait_steppe_clothing_trigger = {
	culture = { has_graphical_culture = mongol_clothing_gfx }
}

portrait_western_clothing_trigger = {
	culture = {
		has_graphical_culture = western_clothing_gfx
		NOR = {
			has_graphical_culture = byzantine_clothing_gfx
			has_graphical_culture = northern_clothing_gfx
		}
	}
		NOT={
		has_trait = ak_lappland
}
	}

portrait_dde_hre_clothing_trigger = {
	culture = { has_graphical_culture = dde_hre_clothing_gfx }
	has_dlc = "Garments of the Holy Roman Empire"
}

portrait_dde_abbasid_clothing_trigger = {
	culture = { has_graphical_culture = dde_abbasid_clothing_gfx }
	has_dlc = "Fashion of the Abbasid Court"
}
