# SPDX-FileCopyrightText: 2023 lapatison <100279397+lapatison@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: alert
  id: Essence
  category: Health #it's like ghostie health
  icons:
  - sprite: /Textures/Interface/Alerts/essence_counter.rsi
    state: essence0
  alertViewEntity: AlertEssenceSpriteView
  name: alerts-revenant-essence-name
  description: alerts-revenant-essence-desc

- type: alert
  id: Corporeal
  icons: [ /Textures/_Goobstation/Wraith/wraith.rsi/icon.png ] # Goobstation sprite change, revenant is dead and we killed him. Glory to Goonstation Wraith!!!
  name: alerts-revenant-corporeal-name
  description: alerts-revenant-corporeal-desc

- type: entity
  id: AlertEssenceSpriteView
  categories: [ HideSpawnMenu ]
  components:
  - type: GenericCounterAlert
    centerGlyph: false
    hideLeadingZeroes: false
  - type: Sprite
    sprite: /Textures/Interface/Alerts/essence_counter.rsi
    layers:
    - map: [ "enum.AlertVisualLayers.Base" ]
    - map: [ "1" ]
      offset: 0.25, 0
    - map: [ "10" ]
      offset: 0.125, 0
    - map: [ "100" ]
