﻿#EK2

## BARBERSHOP ##

facepaint = {

	facepaint_none = { # empty
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = no_facepaint
				value = 0.0
			}
		}
	}  
	facepaint_nord_01 = { # Eye-Stripe
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = nordic
				value = 0.11
			}
		}
		weight = {
			base = 0
		}
	}  
	facepaint_nord_02 = { # Morrowind Cross
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = nordic
				value = 0.24
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nord_03 = { # Skyrim Cross
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = nordic
				value = 0.37
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nord_04 = { # Top Half
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = nordic
				value = 0.50
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nord_05 = { # Morrowind Bear
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = nordic
				value = 0.62
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nord_06 = { # ESO Trailer
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = nordic
				value = 0.75
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nord_07 = { # Braveheart
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = nordic
				value = 0.87
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_riekling_01 = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = riekling
				value = 0.2
			}
		}
		weight = {
			base = 0
		}	
	}
	facepaint_riekling_02 = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = riekling
				value = 0.45
			}
		}
		weight = {
			base = 0
		}	
	}
	facepaint_riekling_03 = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = riekling
				value = 0.7
			}
		}
		weight = {
			base = 0
		}
	}
	
	facepaint_dunmer_01 = { # Rings
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = dunmer
				value = 0.2 
			}
		}
		weight = {
			base = 0
		}	
	}
	facepaint_dunmer_02 = { # Stripe
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = dunmer
				value = 0.45
			}
		}
		weight = {
			base = 0
		}	
	}
	facepaint_dunmer_03 = { # Cross
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = dunmer
				value = 0.7
			}
		}
		weight = {
			base = 0
		}	
	}
	facepaint_dunmer_04 = { # Cross 2
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = dunmer
				value = 0.95
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nibenese_01 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nibenese
				value = 0.10
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nibenese_02 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nibenese
				value = 0.20
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nibenese_03 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nibenese
				value = 0.35
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nibenese_04 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nibenese
				value = 0.48
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nibenese_05 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nibenese
				value = 0.55
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nibenese_06 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nibenese
				value = 0.70
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nibenese_07 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nibenese
				value = 0.80
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nibenese_08 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nibenese
				value = 0.95
			}
		}
		weight = {
			base = 0
		}
	}

	facepaint_nede_south_01 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nede_south
				value = 0.20
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nede_south_02 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nede_south
				value = 0.35
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nede_south_03 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nede_south
				value = 0.70
			}
		}
		weight = {
			base = 0
		}
	}

	facepaint_nede_reachfolk_01 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nede_reachfolk
				value = 0.22
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nede_reachfolk_02 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nede_reachfolk
				value = 0.44
			}
		}
		weight = {
			base = 0
		}
	}
	facepaint_nede_reachfolk_03 = { # ???
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nede_reachfolk
				value = 0.88
			}
		}
		weight = {
			base = 0
		}
	}
}
	
#EK


facepaint_colour = {

	facepaint_colour_1 = { # Color slot 1
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint_colour
				template = facepaint_colour_selection
				value = 0.1
			}
		}
		weight = {
			base = 0
		}
	}  

	facepaint_colour_2 = { # Color slot 2
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint_colour
				template = facepaint_colour_selection
				value = 0.3
			}
		}
		weight = {
			base = 0
		}
	}

	facepaint_colour_3 = { # Color slot 3
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint_colour
				template = facepaint_colour_selection
				value = 0.5
			}
		}
		weight = {
			base = 0
		}
	}
	
	facepaint_colour_4 = { # Color slot 4
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint_colour
				template = facepaint_colour_selection
				value = 0.7
			}
		}
		weight = {
			base = 0
		}
	}
	
	facepaint_colour_5 = { # Color slot 5
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint_colour
				template = facepaint_colour_selection
				value = 0.9
			}
		}
		weight = {
			base = 0
		}
	}
}



 






## RANDOM ##

facepaint_random = {

    usage = game
    selection_behavior = weighted_random

	facepaint_nordic = { # Random
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = nordic
				range = { 0 1 } # For the randomness to work correctly
			}
		}
		weight = {
			base = 0

			modifier = {
				add = 100
				AND = {
					culture = { has_cultural_pillar = heritage_atmoran }
					OR = {
						prowess > high_skill_rating
					#	martial > high_skill_rating   
						portrait_wear_armor_trigger = yes
					}
				}
			}		
			modifier = {
				add = 100
				AND = {
					has_trait = berserker
					culture = { has_cultural_pillar = heritage_atmoran }
				}
			}

		}
	}
	
	facepaint_nord_01 = { # Eye-Stripe
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = nordic
				value = 0.12
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 1000
				exists = character:frostvoice_hemming
				this = character:frostvoice_hemming
			}
		}
	}  

	
	facepaint_riekling = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = riekling
				range = { 0 1 }
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				culture = {
					OR = {
						this = culture:riekling
						any_parent_culture_or_above = { this = culture:riekling }
					}
				}
			}						
			modifier = {
				add = -100
				OR = {
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}				
			}
		}
	}

	no_facepaint = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = facepaint
				template = no_facepaint
				value = 1.0
			}
		}
		weight = {
			base = 50
			modifier = {
				add = 100
				OR = {
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}
			}
            modifier = {
                add = 200
                exists = character:whitestrake_100 # Pelinal Whitestrake
                this = character:whitestrake_100
            }
            modifier = {
                add = 200
                exists = character:indoril_alma_rula # Alma Rula Farwil
                this = character:indoril_alma_rula
            }
            modifier = {
                add = 200
                exists = character:fyr_100 # Daddy Divayth
                this = character:fyr_100
            }

		}
	}
}

tattoos_random = {

    usage = game
    selection_behavior = weighted_random
	

	tattoos_dremora = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = dremora
				range = { 0 1 }
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				has_character_flag = race_daedra
			}
		}
	}
	tattoos_dunmer = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = dunmer
				range = { 0 1 }
			}
		}
		weight = {
			base = 0

			modifier = {
				add = 50
				trigger_if = {		## trigger_if thing ensures that characters retain their tattoos when they die, so long as they're the correct culture
					limit = { is_alive = no }
					OR = {
						culture = culture:ashlander
					}
				}
				trigger_else = { has_character_flag = ashlander_tattoo_flag } ## ensures that characters keep their tattoos upon culture conversion (but will lose them if they die)
			}
			modifier = {
				add = 10
				trigger_if = {
					limit = { is_alive = no }
					OR = {							
						culture = culture:gah_julan   ## this should match the ek_tattoo_on_action condition, whether thats tradition or heritage, or in this case culture
						culture = culture:armun_an
						culture = culture:chuzei
						culture = culture:chi_addun
						culture = culture:marduhn_oad
					}
				}
				trigger_else = { has_character_flag = dunmer_tattoo_flag }
			}
			modifier = {
				add = -100
				OR = {
					is_from_ruler_designer = yes
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}				
			}			
		}
	}

	tattoos_nede_reachfolk_03 = { #lightning bolts or roses or whatever idk
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nede_reachfolk
				value = 1.0
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 1000
				exists = character:duimnach_1000
				this = character:duimnach_1000
			}
		}
	} 

	tattoos_nede_south_01 = { #lightning bolts or roses or whatever idk
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nede_south
				value = 0.17
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 1000
				exists = character:shuluni_100
				this = character:shuluni_100
			}
		}
	} 	

	tattoos_nibenese = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nibenese
				range = { 0 1 }
			}
		}
		weight = {
			base = 0
			
			modifier = {
				add = 50
				trigger_if = {
					limit = { is_alive = no }
					OR = {							
						culture = culture:nibenese
						culture = culture:blackwood
					}
				}
				trigger_else = { has_character_flag = nibenese_tattoo_flag }
			}
			modifier = {
				add = -100
				OR = {
					is_from_ruler_designer = yes
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}				
			}
		}
	}
	
	tattoos_south_nedic = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nede_south
				range = { 0 1 }
			}
		}
		weight = {
			base = 0
			
			modifier = {
				add = 100
				trigger_if = {
					limit = { is_alive = no }	
					culture = culture:horwalli
				## this should match the ek_tattoo_on_action condition, whether thats tradition or heritage, or in this case culture
				}
				trigger_else = { has_character_flag = nede_south_tattoo_flag }
			}
			modifier = {
				add = -100
				OR = {
					is_from_ruler_designer = yes
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}				
			}
		}
	}	

	tattoos_reachman = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = nede_reachfolk
				range = { 0.0 0.9 }
			}
		}
		weight = {
			base = 0
			
			modifier = {
				add = 70
				trigger_if = {
					limit = { is_alive = no }
					culture = culture:reachfolk ## this should match the ek_tattoo_on_action condition, whether thats tradition or heritage, or in this case culture
				}
				trigger_else = { has_character_flag = nede_reachfolk_tattoo_flag }
			}
			modifier = {
				add = 100
				has_trait = briarheart
			}
			modifier = {
				add = -100
				OR = {
					is_from_ruler_designer = yes
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}				
			}
		}
	}		

	no_tattoos = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = no_tattoos
				value = 1.0
			}
		}
		weight = {
			base = 50
			modifier = {
				add = 100
				OR = {
					is_from_ruler_designer = yes
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}
			}
            modifier = {
                add = 200
                exists = character:whitestrake_100 # Pelinal Whitestrake
                this = character:whitestrake_100
            }
            modifier = {
                add = 200
                exists = character:indoril_alma_rula # Alma Rula Farwil
                this = character:indoril_alma_rula
            }
            modifier = {
                add = 200
                exists = character:fyr_100 # Daddy Divayth
                this = character:fyr_100
            }
		}
	}

	vivec_decal = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = tattoos
				template = vivec_decal
				range = { 0 1 }
			}
		}	
		weight = {
			base = 0
			#Currently unused
			#modifier = {
			#	add = 1000		
			#	OR = {
			#		has_character_flag = god_vivec_m_flag
			#		has_character_flag = god_vivec_f_flag
			#	}
			#}
		}
	}	
	
}

scarification_random = {

    usage = game
    selection_behavior = weighted_random

	scarification_dunmer = {  # full range
		dna_modifiers = {
			morph = {
				mode = add
				gene = scarification
				template = dunmer
				range = { 0 1 }
			}
		}
		weight = {
			base = 0
			
			modifier = {
				add = 70
				trigger_if = {
					limit = { is_alive = no }						
					OR = {
						culture = culture:ashlander
					}
				}
				trigger_else = { has_character_flag = ashlander_tattoo_flag }
			}
			modifier = {
				add = 70
				trigger_if = {
					limit = { is_alive = no }
					OR = {							
						culture = culture:chimer
						culture = culture:cantemiric
						culture = culture:chimeriquey
					}
				}
				trigger_else = { has_character_flag = chimer_tattoo_flag }
			}
			modifier = {
				add = 70
				trigger_if = {
					limit = { is_alive = no }						
					culture = culture:malahk_orc
				}
				trigger_else = { has_character_flag = malahk_tattoo_flag }
			}
			modifier = {
				add = -100
				OR = {
					is_from_ruler_designer = yes
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}				
			}
		}
	}

	scarification_dunmer_2 = {  # all except the most extreme one
		dna_modifiers = {
			morph = {
				mode = add
				gene = scarification
				template = dunmer
				range = { 0 0.8 }
			}
		}
		weight = {
			base = 0

			modifier = {
				add = 1
				trigger_if = {
					limit = { is_alive = no }
					OR = {							
						culture = culture:gah_julan
						culture = culture:armun_an
						culture = culture:chuzei
						culture = culture:chi_addun
						culture = culture:marduhn_oad
					}
				}
				trigger_else = { has_character_flag = dunmer_tattoo_flag }
			}	
			modifier = {
				add = -50
				OR = {
					is_from_ruler_designer = yes
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}				
			}
		}
	}  

	scarification_yokudan = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = scarification
				template = yokudan
				range = { 0 1 }
			}
		}
		weight = {
			base = 0
			
			modifier = {
				add = 70
				trigger_if = {
					limit = { is_alive = no }						
					OR = {
						culture = culture:yokudan
						culture = culture:horsefolk
					}
				}
				trigger_else = { has_character_flag = yokudan_tattoo_flag }
			}

			modifier = {
				add = -100
				OR = {
					is_from_ruler_designer = yes
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}				
			}
		}
	}

	no_scarification = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = scarification
				template = no_scarification
				value = 1.0
			}
		}
		weight = {
			base = 25
			modifier = {
				add = 100
				OR = {
					is_from_ruler_designer = yes
					has_character_flag = has_scripted_appearance
					has_trait = line_of_x
				}
			}
            modifier = {
                add = 200
                exists = character:indoril_alma_rula # Alma Rula Farwil
                this = character:indoril_alma_rula
            }
			modifier = {
				add = 200
				exists = character:vehk_100
				this = character:vehk_100
			}
		}
	}  
}
