- type: entity
  parent: [ClothingHeadBase, BaseToggleClothing]
  id: ClothingHeadHatWelding
  name: welding mask
  description: A head-mounted face cover designed to protect the wearer completely from space-arc eye.
  components:
  - type: Sprite
    sprite: Clothing/Head/Welding/welding.rsi
    layers:
    - state: icon
      map: [ "enum.ToggleableVisuals.Layer" ]
  - type: Clothing
    sprite: Clothing/Head/Welding/welding.rsi
  - type: Item
    storedRotation: 0
  - type: ItemToggle # Welding mask starts in an activated state
    activated: true
  - type: ToggleClothing
    action: ActionToggleWeldingMask
  - type: HideLayerClothing
    slots:
    - Snout
    hideOnToggle: true
  - type: Appearance
  - type: WeldingMask
  - type: GenericVisualizer
    visuals:
      enum.ToggleableVisuals.Enabled:
        enum.ToggleableVisuals.Layer:
          True: {state: icon}
          False: {state: icon-up}
  - type: PhysicalComposition
    materialComposition:
      Steel: 200
      Glass: 100
  - type: StaticPrice
    price: 50
  - type: ComponentToggler
    components:
    - type: IngestionBlocker
    - type: FlashImmunity
    - type: IdentityBlocker
    - type: EyeProtection
    - type: VisionDarkener
      strength: 6
  - type: Tag
    tags:
    - HamsterWearable
    - WhitelistChameleon
    - WeldingMask
    - CorgiWearable #Starlight

- type: entity
  parent: ClothingHeadHatWelding
  id: ClothingHeadHatWeldingMaskFlame
  name: flame welding mask
  description: A painted welding helmet, this one has flames on it.
  components:
  - type: Sprite
    sprite: Clothing/Head/Welding/flame_welding_mask.rsi
    layers:
    - state: icon
      map: [ "enum.ToggleableVisuals.Layer" ]
  - type: Clothing
    sprite: Clothing/Head/Welding/flame_welding_mask.rsi
  - type: Tag
    tags:
    - WhitelistChameleon
    - WeldingMask
    - CorgiWearable #Starlight

- type: entity
  parent: ClothingHeadHatWelding
  id: ClothingHeadHatWeldingMaskFlameBlue
  name: blue-flame welding mask
  description: A painted welding helmet, this one has blue flames on it.
  components:
  - type: Sprite
    sprite: Clothing/Head/Welding/blue_flame_welding_mask.rsi
    layers:
    - state: icon
      map: [ "enum.ToggleableVisuals.Layer" ]
  - type: Clothing
    sprite: Clothing/Head/Welding/blue_flame_welding_mask.rsi
  - type: Tag
    tags:
    - WhitelistChameleon
    - WeldingMask
    - CorgiWearable #Starlight

- type: entity
  parent: ClothingHeadHatWelding
  id: ClothingHeadHatWeldingMaskPainted
  name: painted welding mask
  description: A welding helmet, painted in crimson.
  components:
  - type: Sprite
    sprite: Clothing/Head/Welding/paintedwelding.rsi
    layers:
    - state: icon
      map: [ "enum.ToggleableVisuals.Layer" ]
  - type: Clothing
    sprite: Clothing/Head/Welding/paintedwelding.rsi
  - type: Tag
    tags:
    - WhitelistChameleon
    - WeldingMask
    - CorgiWearable #Starlight

- type: entity
  id: ActionToggleWeldingMask
  name: Adjust Welding Mask
  description: Covers or reveals your face.
  components:
  - type: Action
    useDelay: 1
    itemIconStyle: BigItem
  - type: InstantAction
    event: !type:ToggleActionEvent
