# SPDX-FileCopyrightText: 2024 Aviu00 <93730715+Aviu00@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 BombasterDS <115770678+BombasterDS@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Piras314 <p1r4s@proton.me>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aidenkrz <aiden@djkraz.com>
# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
# SPDX-FileCopyrightText: 2025 Marty <martynashagriefer@gmail.com>
# SPDX-FileCopyrightText: 2025 SX-7 <sn1.test.preria.2002@gmail.com>
# SPDX-FileCopyrightText: 2025 Ted Lukin <66275205+pheenty@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 absurd-shaman <165011607+absurd-shaman@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 pheenty <fedorlukin2006@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  parent: [BaseSyndicateContraband, ClothingHeadHelmetBase]
  id: ClothingHeadHelmetHelldiver
  name: salvage NT-01 tactical helmet
  description: This armor is the NanoTrasen standard issue, made from the same titanium alloy as the Goliath hull.
  components:
  - type: Armor
    coverage:
    - Head
    traumaDeductions:
      Dismemberment: 0.2
      OrganDamage: 0.2
      BoneDamage: 0.2
      VeinsDamage: 0
      NerveDamage: 0
    modifiers:
      coefficients:
        Blunt: 0.35
        Slash: 0.35
        Piercing: 0.35
        Heat: 0.35
        Caustic: 0.35
  - type: BreathMask
  - type: Sprite
    sprite: _Goobstation/Clothing/Head/Helmets/helldiver.rsi
  - type: Clothing
    sprite: _Goobstation/Clothing/Head/Helmets/helldiver.rsi
  - type: TemperatureProtection
    heatingCoefficient: 0.1
    coolingCoefficient: 0.1
  - type: HideLayerClothing
    slots:
    - Hair
    - HeadTop
    - HeadSide

- type: entity
  parent: ClothingHeadHelmetBase
  id: ClothingHeadHelmetHEV
  name: H.E.V helmet
  description: Not included in a set with crowbar, long jump module and gravity manipulation device.
  components:
  - type: Sprite
    sprite: _Goobstation/Clothing/Head/Helmets/hev.rsi
  - type: Clothing
    sprite: _Goobstation/Clothing/Head/Helmets/hev.rsi
  - type: Armor
    modifiers:
      coefficients:
        Blunt: 0.75
        Shock: 0.7
        Radiation: 0.01
        Caustic: 0.5
  - type: HideLayerClothing
    layers:
      HeadTop : HEAD
      HeadSide : HEAD

- type: entity
  parent: ClothingHeadHelmetBasic
  id: ClothingHeadHelmetBasicAlt
  suffix: Alt
  components:
  - type: Sprite
    sprite: _Goobstation/Clothing/Head/Helmets/security.rsi
  - type: Clothing
    sprite: _Goobstation/Clothing/Head/Helmets/security.rsi
  - type: Tag
    tags:
    - WhitelistChameleon

- type: entity
  parent: [ ClothingHeadBase, BaseMajorContraband ]
  id: ReverseBearTrap
  name: reverse bear trap
  description: A horrifying set of shut metal jaws, rigged to a kitchen timer and secured by padlock to a head-mounted clamp. To apply, hit someone with it
  components:
  - type: ReverseBearTrap
    countdownDuration: 60
    baseEscapeChance: 0
    delayOptions: # escape odds for each duration.
      - 30 # 2.48%
      - 60 # 10.76%
      - 90 # 23.57%
      - 120 # 38.88%
  - type: Sprite
    sprite: _Goobstation/Clothing/Head/Helmets/reverse_bear_trap.rsi
  - type: Clothing
    sprite: _Goobstation/Clothing/Head/Helmets/reverse_bear_trap.rsi
  - type: MeleeWeapon
    damage:
      types:
        Blunt: 5

- type: entity
  parent: [ ClothingHeadBase, BaseSyndicateContraband ]
  id: ClothingHeadHatHoodCloakSith
  name: dark lord hood
  description: What began as a simple cosplay hood was illegally reinforced with armored plates, transforming it into a functional piece of armor. Looks like it's even capable of protecting the user from the lack of pressure in space.
  components:
  - type: Sprite
    sprite: Clothing/Head/Hoods/voidcloak.rsi
    state: icon
  - type: Clothing
    sprite: Clothing/Head/Hoods/voidcloak.rsi
  - type: Armor
    coverage:
    - Head
    modifiers:
      coefficients:
        Blunt: 0.55
        Slash: 0.55
        Piercing: 0.55
        Heat: 0.75
  - type: PressureProtection
    lowPressureMultiplier: 1000

- type: entity  # Helmets hide / show hair verb
  parent: [ClothingHeadHelmetBase, BaseFoldable]
  id: ClothingHeadHelmetBaseFoldable 
  abstract: true
  components:
  - type: Foldable
    canFoldInsideContainer: true
    unfoldVerbText: fold-hidehair-verb
    foldVerbText: fold-showhair-verb
  - type: FoldableClothing
    foldedEquippedPrefix: ""
    foldedSlots:
    - HEAD
    unfoldedSlots:
    - HEAD
    unfoldedHideLayers:
    - Hair
    foldedHideLayers: []
