# SPDX-FileCopyrightText: 2025 Armok <155400926+ARMOKS@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
# SPDX-FileCopyrightText: 2025 Solstice <solsticeofthewinter@gmail.com>
# SPDX-FileCopyrightText: 2025 pheenty <fedorlukin2006@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  id: GlassBoxLawbringer
  parent: GlassBox
  suffix: Lawbringer
  components:
  - type: Sprite
    noRot: true
    sprite: Structures/Storage/glassbox.rsi
    layers:
    - state: base
    - state: lawbringer
      map: [ "enum.ItemCabinetVisuals.Layer" ]
      visible: true
    - state: glass
      map: [ "enum.OpenableVisuals.Layer" ]
    - state: locked
      shader: unshaded
      map: [ "enum.LockVisualLayers.Lock" ]
  - type: AccessReader
    access: [["HeadOfSecurity"]]
  - type: Construction
    graph: GlassBox
    node: glassBox
  - type: ItemSlots
    slots:
      ItemCabinet:
        ejectOnInteract: true
        whitelist:
          tags:
          - WeaponEnergyGunLawbringer
        ejectSound: /Audio/Machines/machine_switch.ogg

- type: entity
  id: GlassBoxLawbringerFilled
  parent: GlassBoxLawbringer
  suffix: Lawbringer, Filled
  components:
  - type: ContainerFill
    containers:
      ItemCabinet:
      - WeaponEnergyGunLawbringer
