# SPDX-FileCopyrightText: 2020 DrSmugleaf <DrSmugleaf@users.noreply.github.com>
# SPDX-FileCopyrightText: 2020 Swept <sweptwastaken@protonmail.com>
# SPDX-FileCopyrightText: 2021 CrudeWax <75271456+CrudeWax@users.noreply.github.com>
# SPDX-FileCopyrightText: 2021 Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
# SPDX-FileCopyrightText: 2021 Metal Gear Sloth <metalgearsloth@gmail.com>
# SPDX-FileCopyrightText: 2021 Peptide90 <78795277+Peptide90@users.noreply.github.com>
# SPDX-FileCopyrightText: 2021 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 Fishfish458 <47410468+Fishfish458@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 Flareguy <78941145+Flareguy@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 fishfish458 <fishfish458>
# SPDX-FileCopyrightText: 2023 MagnusCrowe <whiterider1988@yahoo.com>
# SPDX-FileCopyrightText: 2023 Maxtone <124747282+MagnusCrowe@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 brainfood1183 <113240905+brainfood1183@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 cOrigin <96662984+c0rigin@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 potato1234_x <79580518+potato1234x@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Jackal298 <129199891+Jackal298@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 themias <89101928+themias@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
# SPDX-FileCopyrightText: 2025 YoungThug <ramialanbagy@gmail.com>
# SPDX-FileCopyrightText: 2025 pheenty <fedorlukin2006@gmail.com>
#
# SPDX-License-Identifier: MIT

- type: entity
  parent: [ClothingHeadBaseButcherable, BaseFoldable]
  id: ClothingHeadHeadHatBaseFlippable
  abstract: true
  components:
  - type: Appearance
  - type: Foldable
    canFoldInsideContainer: true
    unfoldVerbText: fold-flip-verb
    foldVerbText: fold-flip-verb
  - type: FoldableClothing
    foldedEquippedPrefix: flipped
    foldedHeldPrefix: flipped
  - type: Sprite
    layers:
    - state: icon
      map: [ "unfoldedLayer" ]
    - state: icon_flipped
      map: ["foldedLayer"]
      visible: false

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHeadHatBaseFlipped
  suffix: flipped
  abstract: true
  components:
  - type: Foldable
    folded: true
  - type: Clothing
    equippedPrefix: flipped
  - type: Item
    heldPrefix: flipped
  - type: Sprite
    layers:
    - state: icon
      map: [ "unfoldedLayer" ]
      visible: false
    - state: icon_flipped
      map: ["foldedLayer"]
      visible: true

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatBluesoft
  name: blue cap
  description: A blue baseball cap.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/bluesoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/bluesoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatBluesoft]
  id: ClothingHeadHatBluesoftFlipped
  name: blue cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatCargosoft
  name: cargo cap
  description: A baseball cap colored to match cargo's uniforms.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/cargosoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/cargosoft.rsi
  - type: Tag
    tags:
    - ClothMade
    - Recyclable
    - HamsterWearable
    - WhitelistChameleon

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatCargosoft]
  id: ClothingHeadHatCargosoftFlipped
  name: cargo cap
  components:
  - type: Tag
    tags:
    - ClothMade
    - Recyclable
    - HamsterWearable
    - WhitelistChameleon

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatQMsoft
  name: quartermaster's cap
  description: A baseball cap colored to match the Quartermaster's uniform.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/qmsoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/qmsoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatQMsoft]
  id: ClothingHeadHatQMsoftFlipped
  name: quartermaster's cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatCommandSoft
  name: command cap
  description: A baseball cap in command's distinctive shade of blue.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/commandsoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/commandsoft.rsi

- type: entity
  parent: [ ClothingHeadHeadHatBaseFlipped, ClothingHeadHatCommandSoft ]
  id: ClothingHeadHatCommandSoftFlipped
  name: command cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatCorpsoft
  name: corporate cap
  description: A baseball cap in corporation colors.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/corpsoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/corpsoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatCorpsoft]
  id: ClothingHeadHatCorpsoftFlipped
  name: corporate cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatGreensoft
  name: green cap
  description: A green baseball cap.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/greensoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/greensoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatGreensoft]
  id: ClothingHeadHatGreensoftFlipped
  name: green cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatBlacksoft
  name: black cap
  description: A black baseball cap.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/blacksoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/blacksoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatBlacksoft]
  id: ClothingHeadHatBlacksoftFlipped
  name: black cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatGreysoft
  name: grey cap
  description: A grey baseball cap.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/greysoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/greysoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatGreysoft]
  id: ClothingHeadHatGreysoftFlipped
  name: grey cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatMimesoft
  name: white cap
  description: A white baseball cap.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/mimesoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/mimesoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatMimesoft]
  id: ClothingHeadHatMimesoftFlipped
  name: white cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatOrangesoft
  name: orange cap
  description: An orange baseball cap.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/orangesoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/orangesoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatOrangesoft]
  id: ClothingHeadHatOrangesoftFlipped
  name: orange cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatPurplesoft
  name: purple cap
  description: A purple baseball cap.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/purplesoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/purplesoft.rsi
  - type: Tag
    tags:
    - ClothMade
    - Recyclable
    - HamsterWearable
    - WhitelistChameleon

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatPurplesoft]
  id: ClothingHeadHatPurplesoftFlipped
  name: purple cap
  components:
  - type: Tag
    tags:
    - ClothMade
    - Recyclable
    - HamsterWearable
    - WhitelistChameleon

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatRedsoft
  name: red cap
  description: A red baseball cap.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/redsoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/redsoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatRedsoft]
  id: ClothingHeadHatRedsoftFlipped
  name: red cap

- type: entity
  parent: [ClothingHeadHeadHatBaseFlippable, BaseSecurityContraband] #goobstation - contraband marking
  id: ClothingHeadHatSecsoft
  name: security cap
  description: A baseball cap colored to match security's uniforms.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/secsoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/secsoft.rsi
  - type: Armor # Goob
    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

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatSecsoft]
  id: ClothingHeadHatSecsoftFlipped
  name: security cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatYellowsoft
  name: yellow cap
  description: A yellow baseball cap.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/yellowsoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/yellowsoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatYellowsoft]
  id: ClothingHeadHatYellowsoftFlipped
  name: yellow cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatBizarreSoft
  name: troublemaker's cap
  description: A truly.. bizarre accessory.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/bizarresoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/bizarresoft.rsi

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatBizarreSoft]
  id: ClothingHeadHatBizarreSoftFlipped
  name: troublemaker's cap

- type: entity
  parent: ClothingHeadHeadHatBaseFlippable
  id: ClothingHeadHatParamedicsoft
  name: paramedic cap
  description: A blue baseball cap with a cross on the front.
  components:
  - type: Sprite
    sprite: Clothing/Head/Soft/paramedicsoft.rsi
  - type: Clothing
    sprite: Clothing/Head/Soft/paramedicsoft.rsi
  - type: Tag
    tags:
    - ClothMade
    - Recyclable
    - HamsterWearable
    - WhitelistChameleon

- type: entity
  parent: [ClothingHeadHeadHatBaseFlipped, ClothingHeadHatParamedicsoft]
  id: ClothingHeadHatParamedicsoftFlipped
  name: paramedic cap
  components:
  - type: Tag
    tags:
    - ClothMade
    - Recyclable
    - HamsterWearable
    - WhitelistChameleon
