﻿roa_headgear_armor = {

	usage = game
	selection_behavior = weighted_random
	priority = 4

    ## Austronesian/SEAsian ##

    austronesian_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = headgear
                template = indian_war
                accessory = m_headgear_sec_indian_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50 # larger than the western war headgear
                portrait_war_nobles_helmet_trigger = {
                    CULTURE_INPUT = austronesian
                }
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = austronesian
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = austronesian
                    }
                }
            }
        }
    }

    austronesian_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = headgear
                template = indian_war
                accessory = m_headgear_sec_indian_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50 # larger than the western war headgear
                portrait_war_nobles_helmet_trigger = {
                    CULTURE_INPUT = austronesian
                }
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = austronesian
                }
            }
        }
    }

    austronesian_war_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = headgear
                template = indian_war
                accessory = m_headgear_sec_indian_war_nob_01_roy
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 101
                portrait_war_nobles_helmet_trigger = {
                    CULTURE_INPUT = austronesian
                }
                portrait_royalty_armor_trigger = {
                    CULTURE_INPUT = austronesian
                }
            }
        }
    }

	#######################
	###   Han Chinese   ###
	#######################

	chinese_war = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = headgear
				template = chinese_war
				range = { 0 1 } # For the randomness to work correctly
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = 60
				portrait_war_nobles_helmet_trigger = {
					CULTURE_INPUT = chinese
				}
			}
		}
	}

	#######################
	###    Shogunate    ###
	#######################

	shogunate_war = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = headgear
				template = shogunate_war
				range = { 0 1 } # For the randomness to work correctly
			}
		}
		outfit_tags = { military_outfit }
		weight = {
			base = 0
			modifier = {
				add = 60
				portrait_war_nobles_helmet_trigger = {
					CULTURE_INPUT = japanese
				}
			}
		}
	}
}
