# SPDX-FileCopyrightText: 2021 Paul <ritter.paul1+git@googlemail.com>
# SPDX-FileCopyrightText: 2021 Paul Ritter <ritter.paul1@googlemail.com>
# SPDX-FileCopyrightText: 2021 Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
# SPDX-FileCopyrightText: 2021 Swept <sweptwastaken@protonmail.com>
# SPDX-FileCopyrightText: 2021 Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
# SPDX-FileCopyrightText: 2021 Vera Aguilera Puerto <zddm@outlook.es>
# SPDX-FileCopyrightText: 2022 20kdc <asdd2808@gmail.com>
# SPDX-FileCopyrightText: 2022 DrSmugleaf <DrSmugleaf@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 EmoGarbage404 <98561806+EmoGarbage404@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 Jezithyr <Jezithyr@gmail.com>
# SPDX-FileCopyrightText: 2022 Moony <moonheart08@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 Rane <60792108+Elijahrane@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 Willhelm53 <97707302+Willhelm53@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 fishfish458 <fishfish458>
# SPDX-FileCopyrightText: 2022 metalgearsloth <comedian_vs_clown@hotmail.com>
# SPDX-FileCopyrightText: 2022 mirrorcult <lunarautomaton6@gmail.com>
# SPDX-FileCopyrightText: 2023 Alex Evgrashin <aevgrashin@yandex.ru>
# SPDX-FileCopyrightText: 2023 DrSmugleaf <drsmugleaf@gmail.com>
# SPDX-FileCopyrightText: 2023 Kara <lunarautomaton6@gmail.com>
# SPDX-FileCopyrightText: 2023 Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 Visne <39844191+Visne@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 Whisper <121047731+QuietlyWhisper@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 lzk <124214523+lzk228@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 CatMagic <135462166+CatMagic1@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Jezithyr <jezithyr@gmail.com>
# SPDX-FileCopyrightText: 2024 Kira Bridgeton <161087999+Verbalase@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <aiden@djkraz.com>
# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
# SPDX-FileCopyrightText: 2025 Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Ted Lukin <66275205+pheenty@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 deltanedas <39013340+deltanedas@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 deltanedas <@deltanedas:kde.org>
# SPDX-FileCopyrightText: 2025 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 gluesniffler <linebarrelerenthusiast@gmail.com>
# SPDX-FileCopyrightText: 2025 pheenty <fedorlukin2006@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
# this file is fully reorganized by shitmed
- type: entity
  abstract: true
  parent: BasePartInorganic
  id: PartSkeletonBase
  name: skeleton body part
  components:
  - type: Sprite
    sprite: Mobs/Species/Skeleton/parts.rsi
  - type: Icon
    sprite: Mobs/Species/Skeleton/parts.rsi
  - type: BodyPart
    species: Skeleton # Shitmed Change
  - type: StaticPrice
    price: 20
  - type: Tag
    tags:
    - Trash
  - type: WoundableVisuals
    damageOverlayGroups:
      Brute:
        sprite: _Shitmed/Mobs/Effects/brute_damage.rsi
        color: "#555555AA"
      Burn:
        sprite: _Shitmed/Mobs/Effects/burn_damage.rsi
  - type: Damageable # Shitmed
    damageModifierSet: Skeleton

- type: entity
  parent: [ PartSkeletonBase, BaseChestInorganic ]
  id: ChestSkeleton
  name: skeleton chest
  components:
    - type: Sprite
      sprite: Mobs/Species/Skeleton/parts.rsi
      state: "chest_m"
    - type: Icon
      sprite: Mobs/Species/Skeleton/parts.rsi
      state: "chest_m"

- type: entity
  parent: [ PartSkeletonBase, BaseGroinInorganic ]
  id: GroinSkeleton
  name: skeleton groin
  components:
    - type: Sprite
      sprite: Mobs/Species/Skeleton/parts.rsi
      state: "groin_m"
    - type: Icon
      sprite: Mobs/Species/Skeleton/parts.rsi
      state: "groin_m"

- type: entity
  parent: [ PartSkeletonBase, BaseHead ]
  id: HeadSkeleton
  name: skull
  description: Alas poor Yorick...
  components:
  - type: Sprite
    state: "skull_icon"
  - type: Icon
    state: "skull_icon"
  - type: Input
    context: "human"
  - type: Speech
    speechVerb: Skeleton
  - type: SkeletonAccent
  - type: Actions
  - type: Vocal
    sounds:
      Male: Skeleton
      Female: Skeleton
      Unsexed: Skeleton
  - type: Emoting
  - type: Grammar
    attributes:
      proper: true
  - type: Examiner
  - type: DoAfter
  - type: MobState
    allowedStates:
    - Alive
  - type: Tag
    tags:
    - MindTransferTarget
    - Head
  - type: Construction # Goobstation - Wraith
    graph: SpiritCandle
    node: start

- type: entity
  parent: [ PartSkeletonBase, BaseLeftArm ]
  id: LeftArmSkeleton
  name: "left skeleton arm"

- type: entity
  parent: [ PartSkeletonBase, BaseRightArm ]
  id: RightArmSkeleton
  name: "right skeleton arm"

- type: entity
  parent: [ PartSkeletonBase, BaseLeftHand ]
  id: LeftHandSkeleton
  name: "left skeleton hand"

- type: entity
  parent: [ PartSkeletonBase, BaseRightHand ]
  id: RightHandSkeleton
  name: "right skeleton hand"

- type: entity
  parent: [ PartSkeletonBase, BaseLeftLeg ]
  id: LeftLegSkeleton
  name: "left skeleton leg"

- type: entity
  parent: [ PartSkeletonBase, BaseRightLeg ]
  id: RightLegSkeleton
  name: "right skeleton leg"

- type: entity
  parent: [ PartSkeletonBase, BaseLeftFoot ]
  id: LeftFootSkeleton
  name: "left skeleton foot"

- type: entity
  parent: [ PartSkeletonBase, BaseRightFoot ]
  id: RightFootSkeleton
  name: "right skeleton foot"
