﻿# Valid culture inputs

# CULTURE_INPUT = dde_abbasid
# CULTURE_INPUT = dde_hre
# CULTURE_INPUT = byzantine
# CULTURE_INPUT = indian
# CULTURE_INPUT = mena
# CULTURE_INPUT = northern
# CULTURE_INPUT = western
# CULTURE_INPUT = western_era1
# CULTURE_INPUT = western_era2
# CULTURE_INPUT = western_era3
# CULTURE_INPUT = western_era4
# CULTURE_INPUT = steppe

# CULTURE_INPUT = fp1_norse
# CULTURE_INPUT = fp2_iberian_christian
# CULTURE_INPUT = fp2_iberian_muslim


clothes_effect = { # Gene modifers to apply for characters wearing or not wearing clothes
    usage = game
    selection_behavior = max
    fallback = unclothed_body
    priority = 1

    clothed_body = {
        dna_modifiers = {
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }            
        }
        weight = {
            base = 0
            modifier = {
                add = 1000
                NOR = {
                    should_be_fully_naked_portrait_trigger = yes
                    should_be_topless_portrait_trigger = yes
                }
            }  
        }    
    }

    unclothed_body = {
        dna_modifiers = {          
        }
        weight = {
            base = 10
        }
    }
}

clothes = { # Special group for the ruler designer only. The game expects this to be named "clothes"

    usage = game
    selection_behavior = weighted_random
    priority = 20

    ruler_designer_clothes = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_bedchamber
                range = { 0 1 }
            }
            morph = {
                mode = modify_multiply
                gene = gene_bs_bust
                value = 0.8 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
                template = bust_clothes
            }    
        }   
        weight = {
            base = 0
            modifier = {
                add = 100
                portrait_ruler_designer_trigger = yes
            }
        }
    }    
}

clothes_base = { # The lowest priority group of clothes with triggers based on rank and culture. All clothes triggers are found in 00_clothing_triggers.txt

    usage = game
    selection_behavior = weighted_random
    fallback = default_clothes
    priority = 1


    default_clothes = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = no_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        outfit_tags = { no_clothes }
        weight = {
            base = -100
        }
    }

## DDE HRE ##

    dde_hre_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = dde_hre # CULTURE_INPUT gets added into the trigger referenced in 00_clothing_triggers.txt so it's important the input is a correct match to an existing culture trigger
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era3_trigger = yes } 
            }
        }
    }
    
    dde_hre_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = dde_hre } # common/scripted_modifiers/00_portrait_modifiers.txt
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = {  
                    CULTURE_INPUT = dde_hre # CULTURE_INPUT gets added into the trigger referenced in 00_clothing_triggers.txt so it's important the input is a correct match to an existing culture trigger
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era3_trigger = yes } 
            }
        }
    }

    dde_hre_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = dde_hre } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_hre
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era3_trigger = yes } 
            }
        }
    }
    

## Western ##

    western_commoners = {

        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        outfit_tags = { western_commoner_outfit }
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = western
                }
            }       
        }
    }

    ep2_western_era1_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_western_era2_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    ep2_western_era3_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes 
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                }     
            }
        }
    }
 
    western_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                }      
            }
            modifier = {
                factor = 0       
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    ep2_western_era1_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
		        portrait_era1_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_western_era2_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
		        portrait_era2_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    ep2_western_era3_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_4_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                } 
		    }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                }      
            }
        }
    }

    western_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
            }
            modifier = {
                factor = 0     
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    ep2_western_era1_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
		        portrait_era1_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes     
            }
        }
    }

    ep2_western_era2_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
		        portrait_era2_trigger = yes 
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes   
                portrait_era2_trigger = yes     
            }
        }
    }

    ep2_western_era3_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era3_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
		    modifier = {
		        add = 50
		        court_fashion_level_5_trigger = {
		            CULTURE_INPUT = western
		        }
		        has_ep2_dlc_trigger = yes 
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                } 
		    }
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = western
                } 
                has_ep2_dlc_trigger = yes  
                OR = {
                	portrait_era3_trigger = yes  
                	portrait_era4_trigger = yes  
                }    
            }
        }
    }

## Byzantine ##

    byzantine_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = byzantine
                }
            }
        }
    }

    byzantine_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = byzantine }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                }  
            }
        }
    }

    byzantine_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = byzantine } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = byzantine
                } 
            }
        }
    }
    roman_commoners = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = male_clothes_roman_nobility_01
				range = { 0 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8 
				template = bust_clothes
			}

		}	
		weight = {
			base = 0
			modifier = {
				add = 40
				scope:highest_held_title_tier < tier_county
				trigger_if = {
					limit = { exists = this }
					NOR = {
						AND = {
							exists = primary_spouse
							primary_spouse = {
								highest_held_title_tier > tier_county
							}
						}
						AND = {
							has_government = republic_government
							primary_title.tier > 1
						}
						AND = { is_ruler = yes has_government = theocracy_government }
					}
				}
				culture = {
					has_cultural_pillar = heritage_latin
				}
			}
		}
	}

	roman_low_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = male_clothes_roman_nobility_02
				range = { 0 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8 
				template = bust_clothes
			}

		}	
		weight = {
			base = 0
			modifier = {
				add = 70
				exists = court_owner
				court_owner = {
					has_royal_court = yes
					amenity_level = { type = court_fashion value >= 4 }
				}
				culture = {
					has_cultural_pillar = heritage_latin
				}
			}
			modifier = {
				add = 70
				trigger_if = {
					limit = { exists = this }
					OR = {
						AND = {
							OR = {
								highest_held_title_tier = tier_county
								highest_held_title_tier = tier_duchy
							}
							NOR = {
								# has_dynasty = no
								AND = {
									has_government = republic_government
									primary_title.tier > 1
								}
								AND = { is_ruler = yes has_government = theocracy_government }
							}
							culture = {
								has_cultural_pillar = heritage_latin
							}
						}
						AND = {
							exists = primary_spouse
							OR = {
								is_ruler = no
								highest_held_title_tier = tier_barony
							}
							primary_spouse = {
								OR = {
									highest_held_title_tier = tier_county
									highest_held_title_tier = tier_duchy
								}
								NOR = {
									# has_dynasty = no
									AND = {
									has_government = republic_government
										primary_title.tier > 1
									}
									AND = { is_ruler = yes has_government = theocracy_government }
								}
								culture = {
									has_cultural_pillar = heritage_latin
								}
							}
						}
					}
				}
				trigger_else = {
					OR = {
						scope:highest_held_title_tier = tier_county
						scope:highest_held_title_tier = tier_duchy
					}
					culture = {
						has_cultural_pillar = heritage_latin
					}
				}
			}
		}
	}

	roman_high_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = male_clothes_roman_nobility_03
				range = { 0 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8 
				template = bust_clothes
			}

		}
		
		weight = {
			base = 0
			modifier = {
				add = 300
				exists = court_owner
				court_owner = {
					has_royal_court = yes
					amenity_level = { type = court_fashion value = 5 }
				}
				culture = {
					has_cultural_pillar = heritage_latin
				}
			}
			modifier = {
				add = 300
				trigger_if = {
					limit = { exists = this }
					OR = {
						AND = {
							OR = {
								highest_held_title_tier >= tier_kingdom
								AND = {
									has_government = republic_government
									primary_title.tier > 1
								}
								AND = { is_ruler = yes has_government = theocracy_government }
							}
							NOT = { AND = { is_ruler = yes has_government = mercenary_government  } } # Blocked for mercenaries
							culture = {
								has_cultural_pillar = heritage_latin
							}
						}
						AND = {
							exists = primary_spouse
							OR = {
								is_ruler = no
								highest_held_title_tier = tier_barony
							}
							primary_spouse = {
								OR = {
									highest_held_title_tier >= tier_kingdom
									AND = {
									has_government = republic_government
										primary_title.tier > 1
									}
									AND = { is_ruler = yes has_government = theocracy_government }
								}
								culture = {
									has_cultural_pillar = heritage_latin
								}
							}
						}
					}
				}
				trigger_else = {
					scope:highest_held_title_tier > tier_county
					culture = {
						has_cultural_pillar = heritage_latin
					}
				}
			}
		}
	}
	roman_toga = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = roman_senate_clothes
				range = { 0 1 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8 
				template = bust_clothes
			}

		}
		
		weight = {
			base = 0
			modifier = {
				add = 800
				OR = {
					has_trait = low_senator
					has_trait = senator
					has_trait = high_senator
				}
			}
		}
	}

## INDIAN ##

    indian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = indian
                }
            }
        }
    }

    indian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = indian }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = indian
                } 
            }
        }
    }

    indian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = indian } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = indian
                } 
            }
        }
    }

## DDE ABBASID ##

    dde_abbasid_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
            }
        }
    }

    dde_abbasid_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = dde_abbasid }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                }   
            }
        }
    }

    dde_abbasid_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = dde_abbasid } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = dde_abbasid
                } 
            }
        }
    }

## MENA ##

    mena_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { mena_commoner_clothes }
        weight = {
            base = 0
            modifier = {
                add = 40
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = mena
                }
            }
        }
    }

    mena_mayors = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_mayor_trigger = {
                    CULTURE_INPUT = mena
                }
            }
        }
    }

    mena_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   

        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = mena } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = mena
                }  
            }
        }
    }

    mena_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = mena } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = mena
                } 
            }
        }
    }


    

## Steppe ##

    steppe_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 20
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = steppe
                }
            }
        }
    }

    steppe_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = steppe } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                }  
            }
        }
    }

    steppe_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = steppe } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = steppe
                } 
            }
        }
    }

## Northern Pagans ##

    northern_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = northern
                }
            }
        }
    }

    northern_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = northern } 
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = northern
                }  
            }
        }
    }

    northern_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = northern } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = northern
                }
            }
        }
    }
    
## FP2 Fate of Iberia ##

    fp2_iberian_christian_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 41 # Slightly higher
                current_date >= 900.1.1
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = fp2_iberian_christian
                }
            }
        }

    }

    fp2_iberian_muslim_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 41 # Slightly higher
                current_date >= 900.1.1
                portrait_commoner_no_mayors_trigger = {
                    CULTURE_INPUT = fp2_iberian_muslim
                }
            }
        }

    }

    fp2_iberian_christian_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = fp2_iberian_christian } 
            modifier = {
                add = 51 # Slightly higher
                current_date >= 900.1.1
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_christian
                }   
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes
            }
        }
    }

    fp2_iberian_muslim_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = fp2_iberian_muslim } 
            modifier = {
                add = 51 # Slightly higher
                current_date >= 900.1.1
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                } 
            }
        }
    }

    fp2_iberian_christian_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = fp2_iberian_christian } 
            modifier = {
                add = 51 # Slightly higher
                current_date >= 900.1.1
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_christian
                } 
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes
            }
        }
    }

    fp2_iberian_muslim_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = fp2_iberian_muslim } 
            modifier = {
                add = 51 # Slightly higher
                current_date >= 900.1.1
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                } 
            }
        }
    }

## FP1 NORSE ##

    fp1_norse_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 41 # Slightly higher
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = fp1_norse
                }
            }
        }
    }

    fp1_norse_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = fp1_norse }
            modifier = {
                add = 51 # Slightly higher
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp1_norse
                }
            }
        }
    }

    fp1_norse_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }       
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = fp1_norse } 
            modifier = {
                add = 51 # Slightly higher
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = fp1_norse
                } 
            }
        }
    }

## Sub-Saharan Africans ##

    sub_saharan_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_commoner_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_commoner_clothing_trigger = {
                    CULTURE_INPUT = african
                }
            }
        }
    }

    sub_saharan_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_low_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            court_fashion_level_4_modifier = { INPUT_PARAMETER = african }
            modifier = {
                add = 50
                portrait_low_nobles_clothing_trigger = { 
                    CULTURE_INPUT = african
                }
            }
        }
    }

    sub_saharan_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_high_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { sub_saharan_high_nobility_clothes }     
        weight = {
            base = 0
            court_fashion_level_5_modifier = { INPUT_PARAMETER = african } 
            modifier = {
                add = 50
                portrait_high_nobles_clothing_trigger = { 
                    CULTURE_INPUT = african
                } 
            }
        }
    }

## SP2 Elegance of the Empire ##

    sp2_western_imperial = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sp2_western_royalty_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 90
                has_dlc_feature = elegance_of_the_empire
                portrait_imperial_trigger = {
                    CULTURE_INPUT = western
                }
            }
            modifier = {
                add = 40
                has_dlc_feature = elegance_of_the_empire
                portrait_royalty_trigger = {
                    CULTURE_INPUT = western
                }                  
            }
            modifier = {
                factor = 0
                has_ep2_dlc_trigger = yes  
                NOR = {
                    portrait_era2_trigger = yes   
                    portrait_era3_trigger = yes 
                }             
            }
        }
    }
}
