# SPDX-FileCopyrightText: 2024 Aidenkrz <aiden@djkraz.com>
# SPDX-FileCopyrightText: 2024 DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Kira Bridgeton <161087999+Verbalase@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Piras314 <p1r4s@proton.me>
# SPDX-FileCopyrightText: 2024 portfiend <109661617+portfiend@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 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

- type: entity
  abstract: true
  parent: BasePartInorganic
  id: PartIPCBase
  name: "ipc body part"
  components:
  - type: Sprite
    sprite: _EinsteinEngines/Mobs/Species/IPC/parts.rsi
  - type: Icon
    sprite: _EinsteinEngines/Mobs/Species/IPC/parts.rsi
  - type: Damageable
    damageContainer: SiliconRadiation
    damageModifierSet: IPC
  - type: WoundableVisuals
    thresholds: [ 10, 20, 30, 50, 70, 100 ]
    damageOverlayGroups:
      Brute:
        sprite: _Shitmed/Mobs/Effects/brute_damage.rsi
        color: "#DD8822"
      Burn:
        sprite: _Shitmed/Mobs/Effects/burn_damage.rsi
    bleedingOverlay: null
  - type: Nerve
  - type: Boneless # Goob Edit
    bonePenalty: 1

- type: entity
  parent: [ PartIPCBase, BaseChestInorganic ]
  id: ChestIPC
  name: "ipc chest"
  components:
  - type: BodyPart
    organs:
      posbrain:
        id: "posbrain"
      pump:
        id: "pump"

- type: entity
  parent: [ PartIPCBase, BaseGroinInorganic ]
  id: GroinIPC
  name: "ipc groin"

- type: entity
  parent: [ PartIPCBase, BaseHead ]
  id: HeadIPC
  name: "ipc head"
  components:
  - type: BodyPart
    organs: # posibrain is stored in the torso
      eyes:
        id: "eyes"

- type: entity
  parent: [ PartIPCBase, BaseLeftArm ]
  id: LeftArmIPC
  name: "left ipc arm"

- type: entity
  parent: [ PartIPCBase, BaseRightArm ]
  id: RightArmIPC
  name: "right ipc arm"

- type: entity
  parent: [ PartIPCBase, BaseLeftHand ]
  id: LeftHandIPC
  name: "left ipc hand"

- type: entity
  parent: [ PartIPCBase, BaseRightHand ]
  id: RightHandIPC
  name: "right ipc hand"

- type: entity
  parent: [ PartIPCBase, BaseLeftLeg ]
  id: LeftLegIPC
  name: "left ipc leg"

- type: entity
  parent: [ PartIPCBase, BaseRightLeg ]
  id: RightLegIPC
  name: "right ipc leg"

- type: entity
  parent: [ PartIPCBase, BaseLeftFoot ]
  id: LeftFootIPC
  name: "left ipc foot"

- type: entity
  parent: [ PartIPCBase, BaseRightFoot ]
  id: RightFootIPC
  name: "right ipc foot"
