# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 SX_7 <sn1.test.preria.2002@gmail.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-License-Identifier: AGPL-3.0-or-later

- type: entity
  parent: BaseLathe
  id: MedicalBiofabricator
  name: medical biofabricator
  description: Produces organs and other organic matter that can be surgically grafted onto patients with biomass.
  components:
  - type: Sprite
    sprite: _Shitmed/Structures/Machines/limbgrower.rsi
    snapCardinals: true
    layers:
    - state: limbgrower_idleoff
      map: ["enum.LatheVisualLayers.IsRunning"]
#    - state: limbgrower_idleoff
#      shader: unshaded
#      map: ["enum.PowerDeviceVisualLayers.Powered"]
#    - state: inserting
#      map: ["enum.MaterialStorageVisualLayers.Inserting"]
#    - state: panel
#      map: ["enum.WiresVisualLayers.MaintenancePanel"]
  - type: Machine
    board: MedicalBiofabMachineBoard
  - type: MaterialStorage
    whitelist:
      tags:
      - Sheet
      - RawMaterial
  - type: Lathe
    idleState: limbgrower_idleoff
    runningState: limbgrower_idleon
    staticPacks:
    - BiofabPartsStatic
  - type: EmagLatheRecipes
    emagStaticPacks:
    - BiofabPartsEmagStatic