# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
# SPDX-FileCopyrightText: 2025 SX-7 <92227810+SX-7@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Solstice <solsticeofthewinter@gmail.com>
# SPDX-FileCopyrightText: 2025 Ted Lukin <66275205+pheenty@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 pheenty <fedorlukin2006@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  name: DT-8 "Terminus"
  parent: [BaseItem, BaseSecurityContraband]
  id: Terminus
  description: An advanced melee weapon crafted specifically for an oni. It is also capable of firing a spread of disabler shots from its tip.
  components:
  - type: RestrictedMelee # Omu port
    whitelist:
      tags:
        - Oni
  - type: Sprite
    sprite: _EinsteinEngines/Objects/Weapons/Melee/terminus.rsi
    state: icon
  - type: Clothing
    sprite: _EinsteinEngines/Objects/Weapons/Melee/terminus.rsi
    slots:
    - Back
    - suitStorage
  - type: AmmoCounter
  - type: Gun
    soundGunshot: /Audio/Weapons/Guns/Gunshots/laser_cannon.ogg
    fireRate: 1.5
    useKey: false
  - type: Battery
    maxCharge: 1500
    startingCharge: 1500
  - type: ProjectileBatteryAmmoProvider
    proto: BulletDisablerSmgSpread
    fireCost: 100
  - type: MeleeWeapon
    attackRate: 0.8
    damage:
      types:
        Blunt: 12
        Slash: 12
    soundHit:
      collection: MetalThud
  - type: StaminaDamageOnHit
    damage: 30
  - type: Wieldable
  - type: GunRequiresWield
  - type: MeleeRequiresWield
    fumbleOnAttempt: true
  - type: Item
    size: Huge
    shape:
    - 0,0,4,2
  - type: DisarmMalus
    malus: 0.75
  - type: Tool # Omu
    qualities:
      - Prying
    useSound:
      path: /Audio/Items/crowbar.ogg
  - type: Prying
  - type: UseDelay # Omu
    delay: 0.9
