# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  parent: BaseAction
  id: ActionHereticJaunt
  name: Ashen Passage
  description: A short range spell that allows you to pass unimpeded through walls.
  categories: [ HideSpawnMenu ]
  components:
  - type: Action
    checkCanInteract: false
    useDelay: 15
    itemIconStyle: NoItem
    icon:
      sprite: _Goobstation/Heretic/abilities_heretic.rsi
      state: ashen_shift
  - type: InstantAction
    event: !type:EventHereticAshenShift
  - type: HereticAction
    requireMagicItem: true
  - type: SpeakOnAction
    sentence: heretic-speech-ash-jaunt

- type: entity
  parent: ActionHereticJaunt
  id: ActionHereticJauntLong
  name: Ashen Passage
  description: A long range spell that allows you to pass unimpeded through walls.
  categories: [ HideSpawnMenu ]
  components:
  - type: InstantAction
    event: !type:EventHereticAshenShift
      jaunt: AshJauntLong

- type: entity
  parent: BaseAction
  id: ActionHereticVolcanoBlast
  name: Volcano Blast
  description: Charge up a blast of fire that chains between nearby targets, setting them ablaze. Targets already on fire will take priority. If the target fails to catch ablaze, or extinguishes themselves before it bounces, the chain will stop.
  categories: [ HideSpawnMenu ]
  components:
  - type: Action
    checkCanInteract: false
    useDelay: 45
    itemIconStyle: NoItem
    icon:
      sprite: _Goobstation/Heretic/abilities_heretic.rsi
      state: volcano_blast
  - type: InstantAction
    event: !type:EventHereticVolcanoBlast
  - type: HereticAction
    requireMagicItem: true
  - type: SpeakOnAction
    sentence: heretic-speech-ash-volcano
  - type: ChangeUseDelayOnAscension
    newUseDelay: 30
    requiredPath: Ash

- type: entity
  parent: BaseAction
  id: ActionHereticNightwatcherRebirth
  name: Nightwatcher's Rebirth
  description: Drains nearby heathens engulfed in flames of their life force.
  categories: [ HideSpawnMenu ]
  components:
  - type: Action
    checkCanInteract: false
    useDelay: 60
    itemIconStyle: NoItem
    icon:
      sprite: _Goobstation/Heretic/abilities_heretic.rsi
      state: nightwatcher_rebirth
  - type: InstantAction
    event: !type:EventHereticNightwatcherRebirth
  - type: HereticAction
    requireMagicItem: true
  - type: SpeakOnAction
    sentence: heretic-speech-ash-rebirth
  - type: ChangeUseDelayOnAscension
    newUseDelay: 10
    requiredPath: Ash

- type: entity
  parent: BaseAction
  id: ActionHereticAscension1
  name: Oath of Flame
  description: Create a ring of fire around you.
  categories: [ HideSpawnMenu ]
  components:
  - type: Action
    checkCanInteract: false
    useDelay: 90
    itemIconStyle: NoItem
    icon:
      sprite: _Goobstation/Heretic/abilities_heretic.rsi
      state: ashlord_rite1
  - type: InstantAction
    event: !type:EventHereticFlames
  - type: HereticAction
    requireMagicItem: true
  - type: SpeakOnAction
    sentence: heretic-speech-ash-flame

- type: entity
  parent: BaseAction
  id: ActionHereticAscension2
  name: Fire Cascade
  description: Burn everything in a large distance.
  categories: [ HideSpawnMenu ]
  components:
  - type: Action
    checkCanInteract: false
    useDelay: 30
    itemIconStyle: NoItem
    icon:
      sprite: _Goobstation/Heretic/abilities_heretic.rsi
      state: ashlord_rite2
  - type: InstantAction
    event: !type:EventHereticCascade
  - type: HereticAction
    requireMagicItem: true
  - type: SpeakOnAction
    sentence: heretic-speech-ash-cascade
