# 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: []

# Western Undetermined Set
- type: entity
  parent: [ClothingHeadHatCowboyBrown, BaseMajorContraband]
  id: ClothingHeadHatCowboyBrownRobust
  name: authentic brown cowboy hat
  description: "\"This station ain't big enough for the two of us.\""
  components:
    - type: Armor
      coverage:
      - Head
      traumaDeductions:
        Dismemberment: 0.2
        OrganDamage: 0.2
        BoneDamage: 0.2
        VeinsDamage: 0
        NerveDamage: 0
      modifiers:
        coefficients:
          Blunt: 0.7
          Slash: 0.7
          Piercing: 0.7
          Heat: 0.8

# Shitchap
- type: entity
  parent: ClothingHeadBase
  id: ClothingHeadHatHelmetTemplar
  name: crusader helmet
  description: Deus Vult.
  components:
  - type: Sprite
    sprite: _ShitChap/Clothing/Head/Misc/templar.rsi
    state: icon
  - type: Clothing
    sprite: _ShitChap/Clothing/Head/Misc/templar.rsi
  - type: Armor
    coverage:
    - Head
    modifiers:
      coefficients:
        Blunt: 0.5
        Slash: 0.5
        Piercing: 0.9
  - type: Tag
    tags:
    - HidesHair
    - WhitelistChameleon
  - type: FireProtection
    reduction: 0.1
  - type: HideLayerClothing
    layers:
      Hair: HEAD
      HeadTop: HEAD
      HeadSide: HEAD

- type: entity
  parent: ClothingHeadHatHelmetTemplar
  id: ClothingHeadHatHelmetCage
  name: cage
  description: A cage that restrains the will of the self, allowing one to see the profane world for what it is.
  components:
  - type: Sprite
    sprite: _ShitChap/Clothing/Head/Misc/cage.rsi
    state: icon
  - type: Clothing
    sprite: _ShitChap/Clothing/Head/Misc/cage.rsi
    clothingVisuals:
      head:
      - state: equipped-HELMET
        offset: "0, 0.21875"
  - type: Tag
    tags:
    - WhitelistChameleon
  - type: HideLayerClothing
    layers: {}

- type: entity
  parent: ClothingHeadHatHelmetTemplar
  id: ClothingHeadHatHelmetAncient
  name: ancient helmet
  description: None may pass!
  components:
  - type: Sprite
    sprite: _ShitChap/Clothing/Head/Misc/ancient.rsi
    state: icon
  - type: Clothing
    sprite: _ShitChap/Clothing/Head/Misc/ancient.rsi

- type: entity
  parent: ClothingHeadHatHelmetTemplar
  id: ClothingHeadHatHelmetWitchhunter
  name: witchunter hat
  description: This hat saw much use back in the day.
  components:
  - type: Sprite
    sprite: _ShitChap/Clothing/Head/Misc/witchhunter.rsi
    state: icon
  - type: Clothing
    sprite: _ShitChap/Clothing/Head/Misc/witchhunter.rsi
  - type: Tag
    tags:
    - WhitelistChameleon
  - type: HideLayerClothing
    layers: {}

- type: entity
  parent: ClothingHeadHatHelmetTemplar
  id: ClothingHeadHatHelmetAdept
  name: adept hood
  description: Its only heretical when others do it.
  components:
  - type: Sprite
    sprite: _ShitChap/Clothing/Head/Misc/adept.rsi
    state: icon
  - type: Clothing
    sprite: _ShitChap/Clothing/Head/Misc/adept.rsi

- type: entity
  parent: ClothingHeadHatHelmetTemplar
  id: ClothingHeadHatHelmetClock
  name: forgotten helmet
  description: It has the unyielding gaze of a god eternally forgotten.
  components:
  - type: Sprite
    sprite: _ShitChap/Clothing/Head/Misc/clock.rsi
    state: icon
  - type: Clothing
    sprite: _ShitChap/Clothing/Head/Misc/clock.rsi

- type: entity
  parent: ClothingHeadHatHelmetTemplar
  id: ClothingHeadHatHelmetMonk
  name: monk's hood
  description: For when a man wants to cover up his tonsure.
  components:
  - type: Sprite
    sprite: _ShitChap/Clothing/Head/Misc/monkhood.rsi
    state: icon
  - type: Clothing
    sprite: _ShitChap/Clothing/Head/Misc/monkhood.rsi

- type: entity
  parent: ClothingHeadHatHelmetTemplar
  id: ClothingHeadHatHelmetBishop
  name: bishop mitre
  description: An opulent hat that functions as a radio to God. Or as a lightning rod, depending on who you ask.
  components:
  - type: Sprite
    sprite: _ShitChap/Clothing/Head/Misc/bishop.rsi
    state: icon
  - type: Clothing
    sprite: _ShitChap/Clothing/Head/Misc/bishop.rsi
  - type: Tag
    tags:
    - WhitelistChameleon
  - type: HideLayerClothing
    layers: {}

- type: entity
  parent: ClothingHeadHatHelmetTemplar
  id: ClothingHeadHatHelmetDragon
  name: dragon hood
  description: Fireball spewing not included.
  components:
  - type: Sprite
    sprite: _ShitChap/Clothing/Head/Misc/dragonhood.rsi
    state: icon
  - type: Clothing
    sprite: _ShitChap/Clothing/Head/Misc/dragonhood.rsi
  - type: TemperatureProtection
    heatingCoefficient: 0.01
  - type: Armor
    modifiers:
      coefficients:
        Blunt: 0.75
        Slash: 0.75
        Piercing: 0.95
  - type: FireProtection
    reduction: 0.2
  - type: FactionClothing
    faction: Dragon

- type: entity
  parent: ClothingHeadHatHelmetTemplar
  id: ClothingHeadHatHelmetInquisitor
  name: inquisitor cap
  description: A majestic gilded cap. The personification of the punishment that will befall heretics!
  components:
  - type: Sprite
    sprite: _ShitChap/Clothing/Head/Misc/inquisitor.rsi
  - type: Clothing
    sprite: _ShitChap/Clothing/Head/Misc/inquisitor.rsi
  - type: Tag
    tags:
    - WhitelistChameleon
  - type: HideLayerClothing
    layers: {}
