﻿clothes_armor = { # All clothes triggers are found in 00_clothing_triggers.txt

    usage = game
    selection_behavior = weighted_random
    priority = 4


## DDE HRE ##

    dde_hre_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_war_nobility_clothes
                accessory = m_clothes_sec_dde_hre_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60       # slightly stronger than western war
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = dde_hre
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = dde_hre
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = dde_hre
                    }
                    portrait_low_nobles_armor_in_army_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 } 
            }
        }
    }

    dde_hre_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_war_nobility_clothes
                accessory = m_clothes_sec_dde_hre_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60       # slightly stronger than western war
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = dde_hre
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_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_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_war_nobility_clothes
                accessory = m_clothes_sec_western_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                factor = 0    
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    western_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_war_nobility_clothes
                accessory = m_clothes_sec_western_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                factor = 0    
                has_ep2_dlc_trigger = yes   
            }
        }
    }

    ep2_western_era1_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_war_nobility_clothes
                range = { 0 0.49 }
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 60
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
                has_ep2_dlc_trigger = yes
                portrait_era1_armor_trigger = yes 
            }
            modifier = {
                add = 21
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
                has_ep2_dlc_trigger = yes  
                portrait_era1_armor_trigger = yes  
            }
        }
    }

    ep2_western_era1_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_war_nobility_clothes
                range = { 0.51 1.0 }
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era1_armor_trigger = yes 
            }
            modifier = {
                add = 21
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes  
                portrait_era1_armor_trigger = yes  
            }
        }
    }

    ep2_western_era2_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era2_war_nobility_clothes
                accessory = m_clothes_sec_ep2_western_era2_war_nob_01_lo
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 60
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
                has_ep2_dlc_trigger = yes
                portrait_era2_armor_trigger = yes 
            }
            modifier = {
                add = 21
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
                has_ep2_dlc_trigger = yes  
                portrait_era2_armor_trigger = yes  
            }
        }
    }

    ep2_western_era2_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era2_war_nobility_clothes
                accessory = m_clothes_sec_ep2_western_era2_war_nob_01_hi
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era2_armor_trigger = yes 
            }
            modifier = {
                add = 21
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes  
                portrait_era2_armor_trigger = yes  
            }
        }
    }

    ep2_western_era3_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_war_nobility_clothes
                accessory = m_clothes_sec_western_war_nob_01_lo
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 60
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
                has_ep2_dlc_trigger = yes
                portrait_era3_armor_trigger = yes 
            }
            modifier = {
                add = 21
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                } 
                has_ep2_dlc_trigger = yes  
                portrait_era3_armor_trigger = yes  
            }
        }
    }

    ep2_western_era3_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_war_nobility_clothes
                accessory = m_clothes_sec_western_war_nob_01_hi
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era3_armor_trigger = yes 
            }
            modifier = {
                add = 21
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes  
                portrait_era3_armor_trigger = yes  
            }
        }
    }

    ep2_western_era4_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era4_war_nobility_clothes
                range = { 0 0.49 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 60
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
                has_ep2_dlc_trigger = yes
                portrait_era4_armor_trigger = yes 
            }
            modifier = {
                add = 21
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = western
                    }
                }
                has_ep2_dlc_trigger = yes  
                portrait_era4_armor_trigger = yes  
            }
        }
    }

    ep2_western_era4_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era4_war_nobility_clothes
                range = { 0.51 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era4_armor_trigger = yes 
            }
            modifier = {
                add = 21
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes  
                portrait_era4_armor_trigger = yes  
            }
        }
    }

    western_crusades = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_crusades
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 110
                AND = {
                    current_date >= 900.1.1
                    portrait_western_crusades_trigger = yes
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                AND = {
                    current_date >= 900.1.1
                    portrait_armored_priest_trigger = {
                        RELIGION = christianity_religion
                    }
                }
            }
        }
    }

## Byzantine ##

    byzantine_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_war_nobility_clothes
                accessory = m_clothes_sec_byzantine_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = byzantine
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = byzantine
                    }
                }
            }
        }
    }

    byzantine_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_war_nobility_clothes
                accessory = m_clothes_sec_byzantine_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = byzantine
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = byzantine
                }
            }
        }
    }

    byzantine_war_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_war_nobility_clothes
                accessory = m_clothes_sec_byzantine_war_nob_01_roy
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_royalty_armor_trigger = {
                    CULTURE_INPUT = byzantine
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_royalty_armor_in_army_trigger = {
                    CULTURE_INPUT = byzantine
                }
            }
        }
    }

    ep2_byzantine_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_byzantine_war_nobility_clothes
                accessory = m_clothes_sec_ep2_byzantine_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = byzantine
                    }
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = byzantine
                    }
                }  
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ep2_byzantine_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_byzantine_war_nobility_clothes
                accessory = m_clothes_sec_ep2_byzantine_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = byzantine
                } 
                has_ep2_dlc_trigger = yes
            }
        }
    }
    persian_war_clothing = {
		dna_modifiers = {
	        accessory = {
	            mode = add
	            gene = clothes
	            template = tfe_sasanian_war_nobility_clothes
	            range = { 0 0.5 }
	        }
	    }
        outfit_tags = { military_outfit }
		weight = {
	        base = 0
	        modifier = {
				add = 400
				AND = {
					portrait_wear_armor_trigger = yes
					culture = {
						OR = {
							has_cultural_pillar = heritage_semitic
							has_cultural_pillar = heritage_iranian
                            has_cultural_pillar = heritage_caucasian
						}
					}

					NOT = {
						any_equipped_character_artifact = {
							has_variable = aurelianhelmet
						}
					}
				}
			}
	    }
	}
    iranian_war_clothing = {
		dna_modifiers = {
	        accessory = {
	            mode = add
	            gene = clothes
	            template = tfe_sasanian_war_nobility_clothes
	            range = { 0.5 1 }
	        }
	    }
        outfit_tags = { military_outfit }
		weight = {
	        base = 0
	        modifier = {
				add = 600
				AND = {
					portrait_wear_armor_trigger = yes
                    exists = culture
					culture = culture:persian 

					NOT = {
						any_equipped_character_artifact = {
							has_variable = aurelianhelmet
						}
					}
				}
			}
	    }
	}
    roman_war_clothing = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = male_clothes_roman_war
				range = { 0 1 } # For the randomness to work correctly
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8 
				template = bust_clothes
			}

		}
		outfit_tags = { military_outfit }
		weight = {
	        base = 0
	        modifier = {
				add = 600
				AND = {
					portrait_wear_armor_trigger = yes
					culture = {
						has_cultural_pillar = heritage_latin
					}
				}
			}
	    }
	}
	gladiator_war_clothes = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = gladiator_war_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8 
				template = bust_clothes
			}

		}
		outfit_tags = { military_outfit }
		weight = {
	        base = 0
	        modifier = {
				add = 600
				OR = {
					has_trait = gladiator_trait
					has_trait = former_gladiator_trait
				}
			}
	    }
	}
	roman_high_war_clothing = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = male_clothes_roman_war_high
				range = { 0 1 } # For the randomness to work correctly
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8 
				template = bust_clothes
			}

		}
		outfit_tags = { military_outfit }
		weight = {
	        base = 0
	        modifier = {
				add = 700
				AND = {
					portrait_wear_armor_trigger = yes
					culture = {
						has_cultural_pillar = heritage_latin
					}
					highest_held_title_tier = tier_empire
				}
			}
	    }
	}
    alexanderarmor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = male_clothes_greek_war
				range = { 0 1 } # For the randomness to work correctly
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_bust
				value = 0.8 
				template = bust_clothes
			}

		}
		outfit_tags = { military_outfit }
		weight = {
	        base = 0
	        modifier = {
				add = 900
				AND = {
					portrait_wear_armor_trigger = yes
					any_equipped_character_artifact = {
						has_variable = arms_of_alex
					}
				}
			}
	    }
	}

## Indian ##

    indian_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_war_nobility_clothes
                accessory = m_clothes_sec_indian_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = indian
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = indian
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = indian
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = indian
                    }
                }
            }
        }
    }

    indian_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_war_nobility_clothes
                accessory = m_clothes_sec_indian_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = indian
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = indian
                }
            }
        }
    }

    indian_war_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_war_nobility_clothes
                accessory = m_clothes_sec_indian_war_nob_01_roy
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_royalty_armor_trigger = {
                    CULTURE_INPUT = indian
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_royalty_armor_in_army_trigger = {
                    CULTURE_INPUT = indian
                }
            }
        }
    }

    ep2_indian_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_indian_war_nobility_clothes
                accessory = m_clothes_sec_ep2_indian_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = indian
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = indian
                    }
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = indian
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = indian
                    }
                }  
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ep2_indian_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_indian_war_nobility_clothes
                accessory = m_clothes_sec_ep2_indian_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = indian
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = indian
                } 
                has_ep2_dlc_trigger = yes
            }
        }
    }

## DDE Abbasid ##

    dde_abbasid_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_war_nobility_clothes
                accessory = m_clothes_sec_dde_abbasid_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = dde_abbasid
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = dde_abbasid
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = dde_abbasid
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = dde_abbasid
                    }
                }
            }
        }
    }

    dde_abbasid_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_war_nobility_clothes
                accessory = m_clothes_sec_dde_abbasid_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
            }
        }
    }

    dde_abbasid_war_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_war_nobility_clothes
                accessory = m_clothes_sec_dde_abbasid_war_nob_01_roy
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_royalty_armor_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_royalty_armor_in_army_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
            }
        }
    }

## MENA ##

    mena_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_war_nobility_clothes
                accessory = m_clothes_sec_mena_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = mena
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = mena
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = mena
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = mena
                    }
                }
            }
        }
    }

    mena_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_war_nobility_clothes
                accessory = m_clothes_sec_mena_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = mena
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = mena
                }
            }
        }
    }

    ep2_mena_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_mena_war_nobility_clothes
                accessory = m_clothes_sec_ep2_mena_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = mena
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = mena
                    }
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = mena
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = mena
                    }
                }  
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ep2_mena_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_mena_war_nobility_clothes
                accessory = m_clothes_sec_ep2_mena_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = mena
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = mena
                } 
                has_ep2_dlc_trigger = yes
            }
        }
    }

## Steppe ##

    steppe_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_war_nobility_clothes
                accessory = m_clothes_sec_steppe_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = steppe
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = steppe
                    }
                }
            }
        }
    }

    steppe_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_war_nobility_clothes
                accessory = m_clothes_sec_steppe_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = steppe
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = steppe
                }
            }
        }
    }

    ep2_steppe_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_steppe_war_nobility_clothes
                accessory = m_clothes_sec_ep2_steppe_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = steppe
                    }
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = steppe
                    }
                }  
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ep2_steppe_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_steppe_war_nobility_clothes
                accessory = m_clothes_sec_ep2_steppe_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = steppe
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = steppe
                } 
                has_ep2_dlc_trigger = yes
            }
        }
    }

## Northern ##

    northern_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_war_nobility_clothes
                accessory = m_clothes_sec_northern_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = northern
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = northern
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = northern
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = northern
                    }
                }
            }
        }
    }

    northern_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_war_nobility_clothes
                accessory = m_clothes_sec_northern_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = northern
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = northern
                }
            }
        }
    }

## FP2 Fate of Iberia ##

fp2_iberian_christian_war_low_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = fp2_christian_war_nobility_clothes
            accessory = m_clothes_sec_fp2_iberian_christian_war_nob_01_lo
        }
    }   
    weight = {
        base = 0
        modifier = {
            add = 60 # slightly stronger than western war
            current_date >= 900.1.1
            OR = {
                portrait_commoner_armor_trigger = { 
                    CULTURE_INPUT = fp2_iberian_christian
                }
                portrait_low_nobles_armor_trigger = { 
                    CULTURE_INPUT = fp2_iberian_christian
                }
            }
        }
        modifier = {
            add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
            current_date >= 900.1.1
            OR = {
                portrait_commoner_armor_in_army_trigger = { 
                    CULTURE_INPUT = fp2_iberian_christian
                }
                portrait_low_nobles_armor_in_army_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   
            NOR = { 
                portrait_era2_trigger = yes
                portrait_era3_trigger = yes 
            } 
        }
    }
}

fp2_iberian_christian_war_high_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = fp2_christian_war_nobility_clothes
            accessory = m_clothes_sec_fp2_iberian_christian_war_nob_01_hi
        }
    }   
    weight = {
        base = 0
        modifier = {
            add = 60 # slightly stronger than western war
            current_date >= 900.1.1
            portrait_high_nobles_armor_trigger = {
                CULTURE_INPUT = fp2_iberian_christian
            }
        }
        modifier = {
            add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
            current_date >= 900.1.1
            portrait_high_nobles_armor_in_army_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   
            NOR = { 
                portrait_era2_trigger = yes
                portrait_era3_trigger = yes 
            } 
        }
    }
}

fp2_iberian_muslim_war_low_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = fp2_muslim_war_nobility_clothes
            accessory = m_clothes_sec_fp2_iberian_muslim_war_nob_01_lo
        }
    }   
    weight = {
        base = 0
        modifier = {
            add = 60 # slightly stronger than western war
            current_date >= 900.1.1
            OR = {
                portrait_commoner_armor_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                }
                portrait_low_nobles_armor_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                }
            }
        }
        modifier = {
            add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
            current_date >= 900.1.1
            OR = {
                portrait_commoner_armor_in_army_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                }
                portrait_low_nobles_armor_in_army_trigger = { 
                    CULTURE_INPUT = fp2_iberian_muslim
                }
            }
        }
    }
}

fp2_iberian_muslim_war_high_nobles = {
    dna_modifiers = {
        accessory = {
            mode = add
            gene = clothes
            template = fp2_muslim_war_nobility_clothes
            accessory = m_clothes_sec_fp2_iberian_muslim_war_nob_01_hi
        }
    }   
    weight = {
        base = 0
        modifier = {
            add = 60 # slightly stronger than western war
            current_date >= 900.1.1
            portrait_high_nobles_armor_trigger = {
                CULTURE_INPUT = fp2_iberian_muslim
            }
        }
        modifier = {
            add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
            current_date >= 900.1.1
            portrait_high_nobles_armor_in_army_trigger = {
                CULTURE_INPUT = fp2_iberian_muslim
            }
        }
    }
}

## FP1 Norse ## 

    fp1_norse_war = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_war_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }   
        weight = {
            base = 0
            modifier = {
                add = 60 # slightly stronger than northern war
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = fp1_norse
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = fp1_norse
                    }
                    portrait_high_nobles_armor_trigger = { 
                        CULTURE_INPUT = fp1_norse
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = fp1_norse
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = fp1_norse
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = fp1_norse
                    }
                }
            }
        }
    }

## Sub-Saharan Africans ##

    sub_saharan_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_war_nobility_clothes
                accessory = m_clothes_sec_mena_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60       # slightly stronger than western war
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = african
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = african
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = african
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = african
                    }
                }
            }
        }
    }

    sub_saharan_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_war_nobility_clothes
                accessory = m_clothes_sec_mena_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60       # slightly stronger than western war
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = african
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = african
                }
            }
        }
    }

}