﻿
cloaks = {

	western_kings = {
		# outfit_tags = { rank_headgear } 
		dna_modifiers = {
			accessory = {
				mode = add
				
				gene = cloaks
				template = western_royalty
				range = { 0 1 }
			}
		}	
		weight = {
			base = 0
			modifier = {
				add = 100
				OR = {
					portrait_western_clothing_trigger = yes
					portrait_northern_clothing_trigger = yes
					portrait_byzantine_clothing_trigger = yes
				}
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					operator_trigger = yes
					highest_held_title_tier < tier_kingdom
					has_government = theocracy_government
					has_government = republic_government
				}
			}			
		}
	}
#
#	pope = {
#	    dna_modifiers = {
#	        accessory = {
#	            mode = add
#	            gene = capes
#	            template = pope_capes
#	            range = { 0 1 }
#	        }
#	    }
#	    weight = {
#	        base = 100
#	        modifier = {
#	            factor = 0
#				NAND = {
#					is_ruler = yes
#					primary_title = {
#						exists = controlled_faith
#						controlled_faith = faith:catholic
#					}
#				}
#	        }
#	    }
#	}
	#empty_capes_modifier = {
	#	dna_modifiers = {
	#		accessory = {
	#			mode = add				
	#			gene = capes
	#			template = empty_capes_template
	#			#value = 0.75
	#		}
	#	}
	#	weight = {
	#		base = 0.001
	#	}
	#}	
	# western_kings_capes_modifier = {
	# 	dna_modifiers = {
	# 		accessory = {
	# 			mode = add				
	# 			gene = capes
	# 			template = western_kings_capes_template
	# 			#value = 0.75
	# 		}
	# 	}
	# 	weight = {
	# 		base = 0	#if weight is >= 100, this one will be picked without ever doing the weighted random selection
			
	# 		#TODO only for Christian religion group
	# 		#TODO not for tribal
			
	# 		modifier = {
	# 			#humble people just wanna wear rags
	# 			add = -100
	# 			has_trait = humble
	# 		}
	# 		modifier = {
	# 			add = 50
	# 			#arrogant people just wanna show off...
	# 			has_trait = arrogant
	# 			OR = {
	# 				highest_held_title_tier = tier_empire
	# 				highest_held_title_tier = tier_kingdom
	# 				AND = {
	# 					#...and love acting above their station
	# 					highest_held_title_tier = tier_duchy
	# 					is_independent_ruler = yes
	# 				}
	# 			}
	# 		}
	# 		modifier = {
	# 			#kings and emperors will usually have to look fancy anyway
	# 			add = 50
	# 			OR = {
	# 				highest_held_title_tier = tier_empire
	# 				highest_held_title_tier = tier_kingdom
	# 			}
	# 		}
	# 	}
	# }	
}