﻿HRT_headgear = {

	usage = game
	selection_behavior = weighted_random
	priority = 4
	
	HRT_brunhilde = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = headgear_HRT
				template = HRT_brunhilde
				range = { 0 1 }
			}
			accessory = {
			  mode = add
			  gene = headgear
			  template = no_headgear
			  range = { 0 1 }
			}
			accessory = {
			  mode = add
			  gene = headgear_2
			  template = no_headgear
			  range = { 0 1 }
			}
			accessory = {
			  mode = add
			  gene = headgear_CFP
			  template = no_headgear
			  range = { 0 1 }
			}
			accessory = {
                mode = add
                gene = additive_headgear
                template = no_additive
                range = { 0 1 } # For the randomness to work correctly
            }
		}
        weight = {
			base = 0
			modifier = {
				add = 99
				exists = this
				NOT = { portrait_wear_no_headgear_trigger = yes }
				OR = {
					any_equipped_character_artifact = {
						artifact_slot_type = helmet
						has_variable = HRT_valkyr_helmet
					}
					has_character_flag = HRT_nibelungen_found_price
				}
			}
		}
	}
}