# SPDX-FileCopyrightText: 2024 Piras314 <p1r4s@proton.me>
# SPDX-FileCopyrightText: 2024 username <113782077+whateverusername0@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 whateverusername0 <whateveremail>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aidenkrz <aiden@djkraz.com>
# SPDX-FileCopyrightText: 2025 Aviu00 <93730715+Aviu00@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  parent: BaseAction
  id: ActionHereticIceSpear
  name: Mysteries of Creation
  description: Activate to create the Glacier Spear or summon already existing spear.
  categories: [ HideSpawnMenu ]
  components:
  - type: Action
    checkCanInteract: true
    raiseOnUser: true
    useDelay: 5
    itemIconStyle: NoItem
    sound:
      path: /Audio/_Goobstation/Heretic/ice_shovel.ogg
    icon:
      sprite: _Goobstation/Heretic/abilities_heretic.rsi
      state: ice_spear
  - type: InstantAction
    event: !type:EventHereticIceSpear
  - type: HereticAction
    requireMagicItem: true
    messageLoc: heretic-speech-ice-spear
  - type: IceSpearAction

- type: entity
  parent: BaseAction
  id: ActionHereticCleave
  name: Cleave
  description: Causes severe bleeding on a target and several targets around them.
  categories: [ HideSpawnMenu ]
  components:
  - type: Action
    useDelay: 45
    itemIconStyle: NoItem
    icon:
      sprite: _Goobstation/Heretic/abilities_heretic.rsi
      state: cleave
    checkCanInteract: false
    raiseOnUser: true
  - type: TargetAction
    checkCanAccess: false
    range: 4
  - type: WorldTargetAction
    event: !type:EventHereticCleave
  - type: HereticAction
    requireMagicItem: true
    messageLoc: heretic-speech-cleave
