# 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
  name: carving knife
  description: A small knife made of cold steel, pure and perfect. Its sharpness can carve into titanium itself - but only few can evoke the dangers that lurk beneath reality.
  parent: [ BaseKnife, BaseMagicalContraband ]
  id: CarvingKnife
  components:
  - type: UnholyItem
  - type: Sprite
    sprite: _Goobstation/Heretic/items.rsi
    state: rune_carver
  - type: Item
    sprite: Objects/Weapons/Melee/combat_knife.rsi
    size: Small
    storedRotation: -45
  - type: MeleeWeapon
    wideAnimationRotation: -135
    attackRate: 1.5
    damage:
      types:
        Slash: 10
    soundHit:
      path: /Audio/Weapons/bladeslice.ogg
  - type: Sharp
  - type: EmbeddableProjectile
    sound: /Audio/Weapons/star_hit.ogg
  - type: ThrowingAngle
    angle: -135
  - type: DamageOtherOnHit
    ignoreResistances: true
    damage:
      types:
        Slash: 20
  - type: CarvingKnife
    carvings:
    - GraspingCarving
    - MadCarving
    - AlertCarving
  - type: UserInterface
    interfaces:
      enum.CarvingKnifeUiKey.Key:
        type: CarvingKnifeBoundUserInterface
  - type: ActivatableUI
    inHandsOnly: true
    key: enum.CarvingKnifeUiKey.Key
  - type: ActivatableUiUserWhitelist
    whitelist:
      components:
      - Heretic
      - Ghoul
