# SPDX-FileCopyrightText: 2024 BombasterDS <115770678+BombasterDS@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Piras314 <p1r4s@proton.me>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  id: WeaponStasisGunBase
  abstract: true
  parent: BaseItem
  components:
  - type: Sprite
    sprite: _Goobstation/Objects/Weapons/Guns/ChronoLegionnaire/stasisgun.rsi
    state: icon
  - type: Item
    sprite: _Goobstation/Objects/Weapons/Guns/ChronoLegionnaire/stasisgun.rsi
    size: Large
  - type: GunWieldBonus
    minAngle: -43
    maxAngle: -43
  - type: Wieldable
  - type: Gun
    cameraRecoilScalar: 0.1
    fireRate: 0.5
    selectedMode: SemiAuto
    angleDecay: 45
    minAngle: 44
    maxAngle: 45
    availableModes:
    - SemiAuto
    soundGunshot:
      path: /Audio/_Goobstation/Weapons/ChronoLegionnaire/stasisgun_shoot.ogg
  - type: Appearance
  - type: Clothing
    sprite: _Goobstation/Objects/Weapons/Guns/ChronoLegionnaire/stasisgun.rsi
    quickEquip: false
    slots:
    - Belt
  - type: UseDelay
    delay: 0.25
  - type: ClothingSlotAmmoProvider
    targetSlot: BACK
    providerWhitelist:
      tags:
      - StasisBattery

- type: entity
  id: WeaponStasisGun
  parent: WeaponStasisGunBase
  name: stasis gun
  description: A device to stop the temporal flow of any living (or not) creature
  components:
  - type: Sprite
    sprite: _Goobstation/Objects/Weapons/Guns/ChronoLegionnaire/stasisgun.rsi
    state: icon
  - type: StasisGun