# SPDX-FileCopyrightText: 2022 Alex Evgrashin <aevgrashin@yandex.ru>
# SPDX-FileCopyrightText: 2023 lzk <124214523+lzk228@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Magnus Larsen <i.am.larsenml@gmail.com>
# SPDX-FileCopyrightText: 2024 TGRCDev <tgrc@tgrc.dev>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  parent: BaseItem
  id: GeigerCounter
  name: Geiger counter
  description: A handheld device used for detecting and measuring radiation pulses.
  components:
  - type: Sprite
    sprite: Objects/Tools/geiger.rsi
    layers:
      - state: geiger_base
      - state: geiger_on_idle
        map: ["enum.GeigerLayers.Screen"]
        shader: unshaded
        visible: false
  - type: Item
    sprite: Objects/Tools/geiger.rsi
  - type: Geiger
    showControl: true
    showExamine: true
    broadcastAudio: true
  - type: Appearance
  - type: GenericVisualizer
    visuals:
      enum.GeigerVisuals.IsEnabled:
        GeigerLayers.Screen:
          True: { visible: True }
          False: { visible: False }
      enum.GeigerVisuals.DangerLevel:
        GeigerLayers.Screen:
          None: {state: geiger_on_idle}
          Low: {state: geiger_on_low}
          Med: {state: geiger_on_med}
          High: {state: geiger_on_high}
          Extreme: {state: geiger_on_ext}
  - type: PhysicalComposition
    materialComposition:
      Plastic: 100
  - type: Tag # goob edit
    tags:
      - GeigerCounter
