﻿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
				portrait_armor_generic_trigger = yes
                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_armor_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_armor_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
				portrait_armor_generic_trigger = yes
                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
                portrait_high_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
                portrait_high_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
                portrait_era1_armor_trigger = yes
				portrait_armor_generic_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                add = 21
                portrait_era1_armor_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
        }
    }

    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
                portrait_era2_armor_trigger = yes
				portrait_armor_generic_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                add = 21
                portrait_era2_armor_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
        }
    }

    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
                portrait_era3_armor_trigger = yes
				portrait_armor_generic_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                add = 21
                portrait_era3_armor_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
        }
    }

    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
                portrait_era4_armor_trigger = yes
				portrait_armor_generic_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
            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
            }
        }
    }

    #AGOT Disabled
    # 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
    #             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
    #             portrait_armored_priest_trigger = {
    #                 RELIGION = christianity_religion
    #             }
    #         }
    #         modifier = {
    #             factor = 0       # Should NOT show up if EP2 is active and we're in the early era
    #             has_ep2_dlc_trigger = yes
    #             portrait_era1_trigger = yes
    #         }
    #     }
    # }

    ## 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
				portrait_armor_generic_trigger = yes
                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
				portrait_armor_generic_trigger = yes
                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
            }
        }
    }

    ep3_byzantine_era1_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_war_nobility_clothes
                accessory = m_clothes_sec_ep3_byzantine_era1_war_nob_01
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                }
                has_ep3_dlc_trigger = yes
                OR = {
                    portrait_era1_armor_trigger = yes
                    portrait_era2_armor_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_ep3_dlc_trigger = yes
                OR = {
                    portrait_era1_armor_trigger = yes
                    portrait_era2_armor_trigger = yes
                }
            }
        }
    }

    ep3_byzantine_era1_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_war_nobility_clothes
                accessory = m_clothes_sec_ep3_byzantine_era1_war_nob_01
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep3_dlc_trigger = yes
                portrait_era1_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_ep3_dlc_trigger = yes
                OR = {
                    portrait_era1_armor_trigger = yes
                    portrait_era2_armor_trigger = yes
                }
            }
        }
    }

    ep3_byzantine_era2_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_war_nobility_clothes
                accessory = m_clothes_sec_ep3_byzantine_era2_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                }
                has_ep3_dlc_trigger = yes
                OR = {
                    portrait_era3_armor_trigger = yes
                    portrait_era4_armor_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_ep3_dlc_trigger = yes
                OR = {
                    portrait_era3_armor_trigger = yes
                    portrait_era4_armor_trigger = yes
                }
            }
        }
    }

    ep3_byzantine_era2_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_war_nobility_clothes
                accessory = m_clothes_sec_ep3_byzantine_era2_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep3_dlc_trigger = yes
                OR = {
                    portrait_era3_armor_trigger = yes
                    portrait_era4_armor_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_ep3_dlc_trigger = yes
                OR = {
                    portrait_era3_armor_trigger = yes
                    portrait_era4_armor_trigger = yes
                }
            }
        }
    }

    ## 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
				portrait_armor_generic_trigger = yes
                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
                    }
                }
            }
			modifier = {
				add = 50
				portrait_armor_generic_trigger = yes
				OR = {
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = southeast_asian
					}
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = southeast_asian
					}
				}
				has_tgp_dlc_trigger = no
			}
        }
    }

    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
                }
            }
			modifier = {
				add = 50
				portrait_high_nobles_armor_trigger = {
					CULTURE_INPUT = southeast_asian
				}
				has_tgp_dlc_trigger = no
			}
        }
    }

    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
				portrait_armor_generic_trigger = yes
                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
				portrait_armor_generic_trigger = yes
                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
				portrait_armor_generic_trigger = yes
                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
				portrait_armor_generic_trigger = yes
                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
				portrait_armor_generic_trigger = yes
                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
                    }
                }
            }
			modifier = { # For Chinese, Japanese and Korean characters for players without AUH
				add = 50
				portrait_armor_generic_trigger = yes
				OR = {
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = japanese
					}
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = japanese
					}
				}
				has_tgp_dlc_trigger = no
			}
        }
    }

    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
                portrait_armor_generic_trigger = yes
                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
            }
        }
    }

    mpo_mongol_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_war_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = steppe
                    }
                }
                has_mpo_dlc_trigger = yes
            }
            modifier = {
                add = 61        # 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_mpo_dlc_trigger = yes
            }
            modifier = { # Not used by Turkic peoples of the Western steppes
                factor = 0
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = fp3_turkic
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = fp3_turkic
                    }
					portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = fp3_turkic
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = fp3_turkic
                    }
                }
				OR = {
					has_fp3_dlc_trigger = yes
					has_mpo_dlc_trigger = yes
				}
            }
			modifier = { # For Chinese, Japanese and Korean characters for players without AUH
				add = 50
				portrait_armor_generic_trigger = yes
				OR = {
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = japanese
					}
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = japanese
					}
				}
				has_tgp_dlc_trigger = no
			}
        }
    }

    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
                }
            }
			modifier = { # For Chinese, Japanese and Korean characters for players without AUH
				add = 50
				OR = {
					portrait_high_nobles_armor_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_high_nobles_armor_trigger = {
						CULTURE_INPUT = japanese
					}
				}
				has_tgp_dlc_trigger = no
			}
        }
    }

    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 = 41        # 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
            }
        }
    }

    mpo_mongol_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_war_nobility_clothes
                range = { 0 1 } 
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = steppe
                }
                has_mpo_dlc_trigger = yes
            }
            modifier = {
                add = 81        # 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_mpo_dlc_trigger = yes
            }
            modifier = { # Not used by Turkic peoples of the Western steppes
                factor = 0
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = fp3_turkic
                }
				OR = {
					has_fp3_dlc_trigger = yes
					has_mpo_dlc_trigger = yes
				}
            }
			modifier = { # For Chinese, Japanese and Korean characters for players without AUH
				add = 60
				OR = {
					portrait_high_nobles_armor_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_high_nobles_armor_trigger = {
						CULTURE_INPUT = japanese
					}
				}
				has_mpo_dlc_trigger = yes
				has_tgp_dlc_trigger = no
			}
		}
	}

	chinese_war_low_nobles_no_dlc = { # For Chinese, Japanese and Korean characters for players without AUH
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = steppe_war_nobility_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = 50
				portrait_armor_generic_trigger = yes
				OR = {
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = japanese
					}
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = japanese
					}
				}
				has_tgp_dlc_trigger = no
			}
        }
    }

    ## 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
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = northern
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = northern
                    }
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = sami
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = sami
                    }
                }
            }
            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
                    }
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = sami
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = sami
                    }
                }
            }
        }
    }

    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
                OR = {
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = northern
                }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = sami
                    }
                }
            }
            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_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = northern
                }
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = sami
                    }
                }
            }
        }
    }

    ## 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
				portrait_armor_generic_trigger = yes
                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
                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
                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
                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
				portrait_armor_generic_trigger = yes
                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
                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
                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
                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
				portrait_armor_generic_trigger = yes
                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
				portrait_armor_generic_trigger = yes
                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
                }
            }
        }
    }

	## AFR ##

	afr_berber_war = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = afr_war_nobility_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
		}
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 100 # slightly stronger than mena war
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = afr_berber
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = afr_berber
                    }
					portrait_high_nobles_armor_trigger = {
						CULTURE_INPUT = afr_berber
					}
                }
            }
            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 = afr_berber
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = afr_berber
                    }
					portrait_high_nobles_armor_in_army_trigger = {
						CULTURE_INPUT = afr_berber
					}
                }
            }
        }
	}

	## POL ##

	pol_west_slavic_war = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = pol_war_nobility_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
		}
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 101
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = west_slavic
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = west_slavic
                    }
					portrait_high_nobles_armor_trigger = {
						CULTURE_INPUT = west_slavic
					}
                }
            }
            modifier = {
                add = 101        # 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 = west_slavic
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = west_slavic
                    }
					portrait_high_nobles_armor_in_army_trigger = {
						CULTURE_INPUT = west_slavic
					}
                }
            }
            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_era1_armor_trigger = yes
					portrait_era2_armor_trigger = yes
				}
            }
            #AGOT Added
            modifier = {
                factor = 0
            }
        }
	}

    ## CCP4 khanty ##

    ccp4_khanty_war_com = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp4_khanty_war_nobility_clothes
                range = { 0 0.3 } # For the randomness to work correctly
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 101
                portrait_commoner_armor_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
            modifier = {
                add = 101        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_commoner_armor_in_army_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
        }
    }

    ccp4_khanty_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp4_khanty_war_nobility_clothes
                range = { 0.1 0.6 } # For the randomness to work correctly
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 101
                portrait_low_nobles_armor_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
            modifier = {
                add = 101        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_low_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
        }
    }

    ccp4_khanty_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp4_khanty_war_nobility_clothes
                range = { 0.7 1.0 } # For the randomness to work correctly
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 101
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
            modifier = {
                add = 101        # 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 = ugro_permian
                }
            }
        }
    }
    

    ## FP3 Iranian ##

    fp3_iranian_war = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_war_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 100 # slightly stronger than mena war
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = fp3_iranian
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = fp3_iranian
                    }
                }
            }
            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_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = fp3_iranian
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = fp3_iranian
                    }
                }
            }
        }
    }

	## TGP Chinese ##

	tgp_chinese_war_low_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_war_nobility_clothes
				accessory = m_clothes_sec_tgp_chinese_war_nob_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = tgp_chinese_war_legwear
				range = { 0 1 } 
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_armor_generic_trigger = yes
				OR = {
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = chinese
					}
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = chinese
					}
				}
				has_tgp_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_low_nobles_armor_in_army_trigger = {
					CULTURE_INPUT = chinese
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}
	tgp_chinese_war_high_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_chinese_war_nobility_clothes
				accessory = m_clothes_sec_tgp_chinese_war_nob_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = tgp_chinese_war_legwear
				range = { 0 1 } 
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_armor_generic_trigger = yes
				portrait_high_nobles_armor_trigger = {
					CULTURE_INPUT = chinese
				}
				has_tgp_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 = chinese
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	## TGP Japanese ##

	tgp_japanese_war_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_japanese_war_nobility_clothes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = legwear
				template = tgp_japanese_war_legwear
				range = { 0 1 } 
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_armor_generic_trigger = yes
				OR = {
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = japanese
					} 
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = japanese
					}   
					portrait_high_nobles_armor_trigger = {
						CULTURE_INPUT = japanese
					}							   
				}
				has_tgp_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_low_nobles_armor_in_army_trigger = {
						CULTURE_INPUT = japanese
					}  
					portrait_high_nobles_armor_in_army_trigger = {
						CULTURE_INPUT = japanese
					}				
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	## TGP Japanese ##

	tgp_japanese_war_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = tgp_japanese_war_nobility_clothes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = legwear
				template = tgp_japanese_war_legwear
				range = { 0 1 } 
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_armor_generic_trigger = yes
				OR = {
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = japanese
					} 
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = japanese
					}   
					portrait_high_nobles_armor_trigger = {
						CULTURE_INPUT = japanese
					}							   
				}
				has_tgp_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_low_nobles_armor_in_army_trigger = {
						CULTURE_INPUT = japanese
					}  
					portrait_high_nobles_armor_in_army_trigger = {
						CULTURE_INPUT = japanese
					}				
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	## TGP Southeast Asian ##

	tgp_southeast_war_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = indian_war_nobility_clothes
				range = { 0 1 }
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_armor_generic_trigger = yes
				OR = {
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = southeast_asian
					} 
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = southeast_asian
					}								 
				}
				has_tgp_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_low_nobles_armor_in_army_trigger = {
						CULTURE_INPUT = southeast_asian
					}				
				}
				has_tgp_dlc_trigger = yes
			}
		}
	}

	tgp_ainu_war_nobles = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = steppe_war_nobility_clothes
				range = { 0 1 }
			}
		}
		weight = {
			base = 0
			modifier = {
				add = 100
				portrait_armor_generic_trigger = yes
				OR = {
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = ainu
					} 
					portrait_low_nobles_armor_trigger = {
						CULTURE_INPUT = ainu
					}								 
				}
			}
			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_low_nobles_armor_in_army_trigger = {
						CULTURE_INPUT = ainu
					}				
				}
			}
		}
	}

	## CCP5 ##


	ccp5_french_era3_war_commoners = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_french_era3_war_commoners_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 140
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
				portrait_armor_generic_trigger = yes
                has_cp5_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = norman
                    }
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = french
                    }
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = breton
                    }
                }
            }
            modifier = {
                add = 101  # 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 = norman
                    }
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = french
                    }
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = breton
                    }
                }
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
                has_cp5_dlc_trigger = yes
            }
        }
    }

   	ccp5_french_era3_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_french_era3_war_nobility_clothes
                range = { 0 0.49 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 90
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
				portrait_armor_generic_trigger = yes
                has_cp5_dlc_trigger = yes
                OR = {
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = norman
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = french
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = breton
                    }
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = english
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = cornish
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = welsh
                    }    
                }
            }
            modifier = {
                add = 101 # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = norman
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = french
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = breton
                    }
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = english
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = cornish
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = welsh
                    } 
                }
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
                has_cp5_dlc_trigger = yes
            }
        }
    }

    ccp5_french_era3_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_french_era3_war_nobility_clothes
                range = { 0.51 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 90
                OR = {
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = norman
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = french
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = breton
                    }
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = english
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = cornish
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = welsh
                    }    
                }
                has_cp5_dlc_trigger = yes
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
            }
            modifier = {
                add = 101  # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = norman
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = french
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = breton
                    }
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = english
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = cornish
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = welsh
                    }    
                }
            	portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
                has_cp5_dlc_trigger = yes
            }
        }
    }

    ccp5_french_late_era3_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_french_late_era3_war_nobility_clothes
                range = { 0 0.49 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 90
				portrait_era3_trigger = yes
				portrait_armor_generic_trigger = yes
                has_cp5_dlc_trigger = yes
                OR = {
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = norman
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = french
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = breton
                    }
                }
            }
            modifier = {
                add = 101 # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = norman
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = french
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = breton
                    }
                }
				portrait_era3_trigger = yes
                has_cp5_dlc_trigger = yes
            }
        }
    }

    ccp5_french_late_era3_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_french_late_era3_war_nobility_clothes
                range = { 0.51 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 250
                OR = {
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = norman
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = french
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = breton
                    }
                }
                has_cp5_dlc_trigger = yes
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
            }
            modifier = {
                add = 101  # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = norman
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = french
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = breton
                    }
                }
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
                has_cp5_dlc_trigger = yes
            }
        }
    }

	ccp5_german_era3_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_german_era3_war_nobility_clothes
                range = { 0 0.49 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 90
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
				portrait_armor_generic_trigger = yes
                has_cp5_dlc_trigger = yes
                OR = {
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = dde_hre
                    }
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = dde_hre
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = swabian
                    }
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = swabian
                    }
                }
            }
            modifier = {
                add = 101 # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = dde_hre
                    }
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = dde_hre
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = swabian
                    }
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = swabian
                    }
                }
                portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
                has_cp5_dlc_trigger = yes
            }
        }
    }

    ccp5_german_era3_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_german_era3_war_nobility_clothes
                range = { 0.51 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 90
                OR = {
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = dde_hre
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = swabian
                    }
                }
                has_cp5_dlc_trigger = yes
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
            }
            modifier = {
                add = 101  # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = dde_hre
                    } 
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = swabian
                    }    
                }
                portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
                has_cp5_dlc_trigger = yes
            }
        }
    }

	ccp5_english_era3_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_english_era3_war_nobility_clothes
                range = { 0 0.49 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 90
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
				portrait_armor_generic_trigger = yes
                has_cp5_dlc_trigger = yes
                OR = {
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = english
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = welsh
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = cornish
                    }
                }
            }
            modifier = {
                add = 101 # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = english
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = cornish
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = welsh
                    }    
                }
                portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
                has_cp5_dlc_trigger = yes
            }
        }
    }

    ccp5_english_era3_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_english_era3_war_nobility_clothes
                range = { 0.51 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 90
                OR = {
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = english
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = welsh
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = cornish
                    }
                }
                has_cp5_dlc_trigger = yes
				portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
            }
            modifier = {
                add = 101  # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = english
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = cornish
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = welsh
                    }    
                }
                portrait_era3_trigger = yes # not using the armor trigger here because that was changed to be less historically accurate
                has_cp5_dlc_trigger = yes
            }
        }
    }

	ccp5_english_era4_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_english_era4_war_nobility_clothes
                range = { 0 0.49 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 120
				portrait_era4_armor_trigger = yes
				portrait_armor_generic_trigger = yes
                has_cp5_dlc_trigger = yes
                OR = {
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = english
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = welsh
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = cornish
                    }
                }
            }
            modifier = {
                add = 121
                OR = {
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = english
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = welsh
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = cornish
                    }
                }
                has_cp5_dlc_trigger = yes
				portrait_era4_armor_trigger = yes
            }
        }
    }

    ccp5_english_era4_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp5_english_era4_war_nobility_clothes
                range = { 0.51 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 120
				portrait_era4_armor_trigger = yes
				portrait_armor_generic_trigger = yes
                has_cp5_dlc_trigger = yes
                OR = {
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = english
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = welsh
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = cornish
                    }
                }
            }
            modifier = {
                add = 121
                OR = {
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = english
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = cornish
                    }  
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = welsh
                    }    
                }
                has_cp5_dlc_trigger = yes
                portrait_era4_armor_trigger = yes
            }
        }
    }

    #AGOT Added, keep in sync with headgear_armor

    agot_clothing_valyrian_steel_armor = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
				template = agot_all_armors
				accessory = male_clothes_secular_valyrian_steel_armor_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_steel_armor_01
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_artifact_portrait_modifier
				portrait_wear_armor_trigger = yes
				agot_has_artifact_equipped = { ARTIFACT_VARIABLE = valyrian_steel_armor_artifact }
			}
		}
	}

	agot_clothing_decorated_dragon_plate_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_war_03_high_decorated
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_03_high_decorated
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_artifact_portrait_modifier
				portrait_wear_armor_trigger = yes
				agot_has_artifact_equipped = { ARTIFACT_VARIABLE = decorated_dragon_plate_armor_artifact }
			}
		}
	}

	agot_clothing_maelys_blackfyre_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_clothes_special
				accessory = male_clothes_secular_valyrian_war_05
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_05
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_artifact_portrait_modifier
				agot_has_artifact_equipped = { ARTIFACT_VARIABLE = maelys_armor_artifact }
				has_character_flag = is_Blackfyre_14
			}
		}
	}

	agot_clothing_closed_maelys_blackfyre_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_secular_valyrian_war_06
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_05
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_artifact_portrait_modifier
				portrait_wear_armor_trigger = yes
				agot_has_artifact_equipped = { ARTIFACT_VARIABLE = maelys_armor_artifact }
				NOT = { has_character_flag = is_Blackfyre_14 }
			}
		}
	}

	agot_clothing_rhaegar_targaryen_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_war_04
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_04
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_artifact_portrait_modifier
				exists = this
				portrait_wear_armor_trigger = yes
				agot_has_artifact_equipped = { ARTIFACT_VARIABLE = rhaegar_armor }
			}
		}
	}

	agot_clothing_robert_baratheon_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_stormlands_war_04
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_stormlands_war_04
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_artifact_portrait_modifier
				exists = this
				portrait_wear_armor_trigger = yes
				agot_has_artifact_equipped = { ARTIFACT_VARIABLE = robert_armor }
			}
		}
	}

	agot_clothing_bittersteel_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_north_war_ned_coa_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_north_stark_war_03
			}
			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
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.8
				template = body_shape_average_clothed
			}

		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_character_portrait_modifier
				has_character_flag = is_Targaryen_95
			}
		}
	}

	agot_clothing_northern_ned_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_north_war_ned_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_north_stark_war_03
			}
			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
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.8
				template = body_shape_average_clothed
			}

		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_house_portrait_modifier
				portrait_wear_armor_trigger = yes
				house ?= dynasty:dynn_Stark.dynasty_founder.house
			}
			modifier = {
				add = agot_character_portrait_modifier
				has_character_flag = needs_ned_armor
			}
		}
	}

	agot_clothing_royce_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_royce_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_special_royce_war_03
			}
			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
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.8
				template = body_shape_average_clothed
			}

		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				portrait_wear_armor_trigger = yes
				dynasty ?= dynasty:dynn_Royce
			}
			modifier = {
				add = agot_artifact_portrait_modifier
				agot_has_artifact_equipped = { ARTIFACT_VARIABLE = royce_runic_armor_artifact }
				portrait_wear_armor_trigger = yes
			}
		}
	}

	agot_clothing_lydden_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_lydden_war_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_lydden_war_01
			}
			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
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.8
				template = body_shape_average_clothed
			}

		}
			outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				is_male = yes
				portrait_wear_armor_trigger = yes
				dynasty ?= dynasty:dynn_Lydden
			}
		}
	}

	agot_clothing_westerland_highlands_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_lydden_war_dynastic_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_lydden_war_dynastic_01
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				is_male = yes
				OR = {
					portrait_commoner_armor_trigger = {
						CULTURE_INPUT = westerman
					}
					AND = {
						portrait_low_nobles_armor_trigger = {
							CULTURE_INPUT = westerman
						}
						martial < high_skill_rating
					}
				}
			}
		}
	}

	agot_clothing_osgrey_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_osgrey_war_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_osgrey_war_01
			}
			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
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.8
				template = body_shape_average_clothed
			}

		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				portrait_wear_armor_trigger = yes
				dynasty ?= dynasty:dynn_Osgrey
			}
		}
	}

	agot_clothing_chequey_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_osgrey_war_dynastic_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_osgrey_war_01
			}
			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
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.8
				template = body_shape_average_clothed
			}

		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				portrait_wear_armor_trigger = yes
				agot_chequey_house_armor = yes
				NOT = { dynasty ?= dynasty:dynn_Osgrey }
			}
		}
	}

	agot_clothing_quartered_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_osgrey_war_dynastic_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_osgrey_war_01
			}
			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
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.8
				template = body_shape_average_clothed
			}

		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_house_portrait_modifier
				portrait_wear_armor_trigger = yes
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = crownlander
				}
			}
		}
	}

	agot_clothing_rowan_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_rowan_war_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_rowan_war_01
			}
			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
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.8
				template = body_shape_average_clothed
			}

		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				is_male = yes
				portrait_wear_armor_trigger = yes
				dynasty ?= dynasty:dynn_Rowan
			}
		}
	}

	agot_clothing_stormlander_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_stormlands_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_stormlands_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit stormlander_armor }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = stormlander
				}
			}
		}
	}

	agot_clothing_stormlander_baratheon_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_stormlands_baratheon_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_stormlands_baratheon_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = stormlander
				}
				dynasty ?= dynasty:dynn_Baratheon
			}
		}
	}

	agot_clothing_stormlander_armor_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_stormlands_war_dynastic_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_stormlands_war_dynastic_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = stormlander
				}
			}
		}
	}

	agot_clothing_stormlander_baratheon_armor_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_stormlands_war_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_stormlands_war_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = stormlander
				}
				dynasty ?= dynasty:dynn_Baratheon
			}
		}
	}

	agot_clothing_westerlander_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_westerlands_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_westerlands_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit westerlander_armor }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = westerman
				}
			}
		}
	}

	agot_clothing_westerlander_lannister_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_westerlands_lannister_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_westerlands_lannister_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = westerman
				}
				dynasty ?= dynasty:dynn_Lannister
			}
		}
	}

	agot_clothing_westerlander_tywin_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_westerlands_tywin_war
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_westerlands_tywin_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_character_portrait_modifier
				OR = {
					AND = {
						exists = this
						has_character_flag = is_Lannister_1
						portrait_wear_armor_trigger = yes
					}
					AND = {
						exists = this
						has_character_flag = is_Lannister_120
						portrait_wear_armor_trigger = yes
					}
					AND = {
						prestige_level > 3
						has_title = title:c_casterly_rock
						dynasty = dynasty:dynn_Lannister
						portrait_wear_armor_trigger = yes
					}
				}
			}
		}
	}

	agot_clothing_westerlander_jimothy_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_westerlands_jimothy_war
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_westerlands_jimothy_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_character_portrait_modifier
				OR = {
					AND = {
						exists = this
						has_character_flag = is_Lannister_7
						portrait_wear_armor_trigger = yes
					}
				}
			}
		}
	}

	agot_clothing_westerlander_reyne_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_westerlands_reyne_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_westerlands_reyne_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = westerman
				}
				dynasty ?= dynasty:dynn_Reyne
			}
		}
	}

	agot_clothing_westerlander_armor_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_westerlands_war_dynastic_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_westerlands_war_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				is_male = yes
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = westerman
				}
			}
		}
	}

	agot_clothing_westerlander_armor_lannister_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_westerlands_war_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_westerlands_war_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				is_male = yes
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = westerman
				}
				dynasty ?= dynasty:dynn_Lannister
			}
		}
	}

	agot_clothing_valeman_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_vale_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_vale_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				OR = {
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = valeman
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = valeman_upper
					}
				}
			}
		}
	}

	agot_clothing_valeman_armor_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_vale_war_dynastic_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_vale_war_dynastic_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				is_male = yes
				OR = {
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = valeman
					}
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = valeman_upper
					}
				}
			}
		}
	}

	agot_clothing_valeman_armor_arryn_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_vale_war_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_vale_war_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				is_male = yes
				OR = {
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = valeman
					}
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = valeman_upper
					}
				}
				dynasty ?= dynasty:dynn_Arryn
			}
		}
	}

	agot_clothing_riverman_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_riverlands_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_riverlands_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = riverlander
				}
			}
		}
	}

	agot_clothing_riverman_tully_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_riverlands_tully_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_riverlands_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = riverlander
				}
				dynasty ?= dynasty:dynn_Tully
			}
		}
	}

	agot_clothing_reachman_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_reach_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_reach_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = reachman
				}
			}
		}
	}

	agot_clothing_reachman_tyrell_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_reach_tyrell_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_reach_tyrell_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = reachman
				}
				dynasty ?= dynasty:dynn_Tyrell
			}
		}
	}

	agot_clothing_reachman_armor_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_reach_war_dynastic_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_reach_war_dynastic_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				is_male = yes
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = reachman
				}
			}
		}
	}

	agot_clothing_reachman_armor_tyrell_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_reach_war_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_reach_war_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				is_male = yes
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = reachman
				}
				dynasty ?= dynasty:dynn_Tyrell
			}
		}
	}

	agot_clothing_hightower_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_honeywiner_war_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_honeywiner_war_01
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				OR = {
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = honeywiner
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = vineman
					}
				}
				dynasty ?= dynasty:dynn_Hightower
			}
		}
	}

	agot_clothing_honeywiner_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_honeywiner_war_dynastic_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_honeywiner_war_01
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				OR = {
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = honeywiner
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = vineman
					}
				}
			}
		}
	}

	agot_clothing_honeywiner_armor_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_honeywiner_war_dynastic_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_honeywiner_war_01
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				OR = {
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = honeywiner
					}
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = vineman
					}
				}
			}
		}
	}

	agot_clothing_braavos_high_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_secular_braavos_war_high_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_braavos_war_high_01
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = braavosi
				}
			}
		}
	}

	agot_clothing_braavos_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_secular_braavos_war_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_braavos_war_01
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = braavosi
				}
			}
		}
	}

	agot_clothing_dornish_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_stone_dornish_war_dynastic_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_stone_dornish_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				OR = {
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = stone_dornish
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = stone_dornish
					}
				}
			}
		}
	}

	agot_clothing_dornish_iron_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_dornish_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_dornish_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				OR = {
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = salt_dornish
					}
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = sand_dornish
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = salt_dornish
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = sand_dornish
					}
				}
			}
		}
	}

	agot_clothing_dornish_copper_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_dornish_copper_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_dornish_martell_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				OR = {
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = salt_dornish
					}
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = sand_dornish
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = salt_dornish
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = sand_dornish
					}
				}
			}
		}
	}

	agot_clothing_dornish_martell_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_dornish_martell_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_dornish_martell_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = dornish
				}
				dynasty ?= dynasty:dynn_Martell
			}
		}
	}

	agot_clothing_ironborn_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_ironborn_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_ironborn_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				OR = {
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = ironborn
					}
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = ironborn
					}
				}
			}
		}
	}

	agot_clothing_ironborn_greyjoy_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_ironborn_greyjoy_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_ironborn_greyjoy_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				OR = {
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = ironborn
					}
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = ironborn
					}
				}
				dynasty ?= dynasty:dynn_Greyjoy
			}
		}
	}

	agot_clothing_dragon_high_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_war_dynastic_03_high
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_03_high
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				is_landed = yes
				capital_county.title_province = { geographical_region = world_westeros }
				OR = {
					AND = {
						agot_portrait_low_armor_trigger = {
							CULTURE_INPUT = valyrian
						}
						martial >= high_skill_rating
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = valyrian
					}
				}
			}
		}
	}

	agot_clothing_dragon_high_targaryen_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_war_03_high
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_03_high
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				OR = {
					AND = {
						agot_portrait_low_armor_trigger = {
							CULTURE_INPUT = valyrian
						}
						martial >= high_skill_rating
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = valyrian
					}
				}
				dynasty ?= dynasty:dynn_Targaryen
			}
		}
	}

	agot_clothing_dragon_high_blackfyre_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_war_blackfyre_03_high
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_blackfyre_03_high
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_house_portrait_modifier
				exists = this
				OR = {
					AND = {
						agot_portrait_low_armor_trigger = {
							CULTURE_INPUT = valyrian
						}
						martial >= high_skill_rating
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = valyrian
					}
				}
				house = house:house_Blackfyre
			}
		}
	}

	agot_clothing_valyrian_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit valyrian_armor }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				OR = {
					AND = {
						agot_portrait_low_armor_trigger = {
							CULTURE_INPUT = valyrian
						}
						martial >= high_skill_rating
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = valyrian
					}
				}
			}
			modifier = {
				add = agot_character_portrait_modifier
				has_court_position = head_dragonkeeper_court_position
			}
		}
	}

	agot_clothing_valyrian_targaryen_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_targaryen_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_targaryen_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				OR = {
					AND = {
						agot_portrait_low_armor_trigger = {
							CULTURE_INPUT = valyrian
						}
						martial >= high_skill_rating
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = valyrian
					}
				}
				dynasty ?= dynasty:dynn_Targaryen
			}
		}
	}

	agot_clothing_valyrian_blackfyre_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_blackfyre_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_blackfyre_war_03
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_house_portrait_modifier
				exists = this
				OR = {
					AND = {
						agot_portrait_low_armor_trigger = {
							CULTURE_INPUT = valyrian
						}
						martial >= high_skill_rating
					}
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = valyrian
					}
				}
				house = house:house_Blackfyre
			}
		}
	}

	agot_clothing_valyrian_armor_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_war_dynastic_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				exists = this
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = valyrian
				}
				martial < high_skill_rating
			}
		}
	}

	agot_clothing_valyrian_armor_targaryen_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_war_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				exists = this
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = valyrian
				}
				martial < high_skill_rating
				dynasty ?= dynasty:dynn_Targaryen
			}
		}
	}

	agot_clothing_valyrian_armor_blackfyre_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_valyrian_war_blackfyre_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_valyrian_war_blackfyre_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_house_portrait_modifier
				exists = this
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = valyrian
				}
				martial < high_skill_rating
				house = house:house_Blackfyre
			}
		}
	}

	agot_clothing_bolton_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_bolton_war_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_bolton_war_01
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = the_north
				}
				dynasty ?= dynasty:dynn_Bolton
			}
		}
	}

	agot_clothing_northern_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_north_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_north_war_03
			}
			accessory = {
				mode = add
				gene = cloaks
				template = agot_coa_cloaks_fp1_dynamic_high_war
				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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				agot_portrait_high_armor_trigger = {
					CULTURE_INPUT = the_north
				}
			}
			modifier = {
				add = agot_character_portrait_modifier        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
				portrait_the_north_clothing_trigger = yes
				portrait_wear_armor_currently_in_army_trigger = yes
			}
		}
	}

	agot_clothing_northern_stark_armor = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_north_stark_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_north_stark_war_03
			}
			accessory = {
				mode = add
				gene = cloaks
				template = agot_coa_cloaks_fp1_dynamic_stark_war
				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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_dynasty_portrait_modifier
				OR = {
					agot_portrait_high_armor_trigger = {
						CULTURE_INPUT = the_north
					}
					agot_portrait_low_armor_trigger = {
						CULTURE_INPUT = the_north
					}
				}
				house ?= dynasty:dynn_Stark.dynasty_founder.house
			}
			modifier = {
				add = agot_character_portrait_modifier        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
				portrait_the_north_clothing_trigger = yes
				house ?= dynasty:dynn_Stark.dynasty_founder.house
				portrait_wear_armor_currently_in_army_trigger = yes
			}
		}
	}

	agot_clothing_northern_armor_low = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_north_war_03
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_secular_north_war_03
			}
			accessory = {
				mode = add
				gene = cloaks
				template = agot_coa_cloaks_fp1_dynamic_low_war
				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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_culture_portrait_modifer
				agot_portrait_low_armor_trigger = {
					CULTURE_INPUT = the_north
				}
			}
			modifier = {
				add = agot_character_portrait_modifier        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
				portrait_the_north_clothing_trigger = yes
				portrait_wear_armor_currently_in_army_trigger = yes
			}
		}
	}

	agot_clothing_skinchangers_second_pelt = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = cloaks
				template = agot_skinchangers_second_pelt
				range = { 0 1 }
			}
		}
		weight = {
			base = 0
			modifier = {
				add = agot_artifact_portrait_modifier
				exists = this
				agot_has_artifact_equipped = { ARTIFACT_VARIABLE = skinchangers_second_pelt }
			}
		}
	}

	agot_clothing_skinchangers_military = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = no_clothes
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = legwear
				template = fp1_common_legwear
				range = { 0 1 }
			}
			accessory = {
				mode = add
				gene = cloaks
				template = agot_skinchangers_second_pelt
				range = { 0 1 }
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_artifact_portrait_modifier
				exists = this
				portrait_wear_armor_trigger = yes
				agot_has_artifact_equipped = { ARTIFACT_VARIABLE = skinchangers_second_pelt }
			}
		}
	}

	agot_hedge_knight_armor_1 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_hedge_knight_war_01
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_hedge_knight_war_01
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_character_portrait_modifier
				exists = this
				portrait_wear_armor_trigger = yes
				is_lowborn = yes
				is_agot_knight_trigger = yes
				OR = {
					liege ?= { is_landless_adventurer = yes }
					NOT = { exists = liege }
				}
			}
		}
	}

	agot_hedge_knight_armor_2 = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = agot_all_armors
				accessory = male_clothes_hedge_knight_war_02
			}
			accessory = {
				mode = add
				gene = legwear
				template = agot_all_legwear
				accessory = male_legwear_hedge_knight_war_02
			}
			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
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = agot_character_portrait_modifier
				exists = this
				portrait_wear_armor_trigger = yes
				is_lowborn = yes
				is_agot_knight_trigger = yes
				OR = {
					is_landless_adventurer = yes
					liege ?= { highest_held_title_tier = tier_county }
				}
			}
		}
	}
	
    goldenCompany_normal = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = legwear
				template = tgc_pants
                accessory = male_legwear_standardPants_01
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1003
                tgc_standard_equipment_trigger = yes
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_normal_swords = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = legwear
				template = tgc_pants
                accessory = male_legwear_twoSwordsPants_01
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 2003
                tgc_standard_equipment_trigger = yes
                tgc_swords_trigger = yes
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_normal_captain = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = legwear
				template = tgc_pants
                accessory = male_legwear_captainsPants_01
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 10004
                tgc_standard_equipment_trigger = yes
                any_equipped_character_artifact = { 
                    has_variable = captains_sword
                }
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_black = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = legwear
				template = tgc_pants_black
                accessory = male_legwear_standardPants_black_01
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1003
                tgc_standard_equipment_trigger = yes
                tgc_black_balaq_trigger = yes
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_black_captains = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = legwear
				template = tgc_pants_black
                accessory = male_legwear_captainsPants_black_01
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 10003
                any_equipped_character_artifact = { 
                    has_variable = captains_sword
                }
                tgc_standard_equipment_trigger = yes
                tgc_black_balaq_trigger = yes
			}
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_normal_blackfyre = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = legwear
				template = tgc_pants_blackfyre
                range = { 0.33 0.66 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 1003
                OR = {
					tgc_blackfyre_or_targ_equipment_trigger = yes
                    tgc_blackfyre_house_equipment_trigger = yes
                }				
            }
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}

    goldenCompany_captains_blackfyre = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = legwear
				template = tgc_pants_blackfyre
                range = { 0.0 0.33 }
			}
			morph = {
				mode = modify_multiply
				gene = gene_bs_body_shape
				value = 0.3 # Setting this lower to reduce the exaggerated effect of large bust size when wearing clothes
				template = body_shape_average_clothed
			}

		}	
		weight = {
			base = -100
			modifier = {
				add = 10003
                any_equipped_character_artifact = { 
                    has_variable = captains_sword
                }
                OR = {
					tgc_blackfyre_or_targ_equipment_trigger = yes
                    tgc_blackfyre_house_equipment_trigger = yes
                }				
            }
			modifier = {
				factor = 0
				OR = {
					is_adult = no
					should_be_naked_trigger = yes
				}
			}			
		}
	}
	
	agot_brightboar_swordman_armor = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = brightboar_swordsman_armour
                accessory = male_clothes_secular_brightboar_swordsman
            }
            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
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
			modifier = {
                add = 1000
                agot_has_artifact_equipped = { ARTIFACT_VARIABLE = swordman_armor_artifact }
				is_brightboar_loaded_trigger = yes
            }
        }
    }
}