# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Creatorbot01 <creatorbot02@gmail.com>
# SPDX-FileCopyrightText: 2025 Creatorbot01 <creatorbot20@gmail.com>
# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  id: EnergyRifleMagBase #god i hope i know sprite comp and yes i copy speedloader yml code fight me
  abstract: true
  parent: BaseItem
  components:
  - type: Sprite
    sprite: /Textures/_Goobstation/Objects/Weapons/Guns/Ammunition/Magazine/energyriflemag.rsi
  - type: Battery
    maxCharge: 1000
    startingCharge: 1000
  - type: AmmoCounter
  - type: Appearance
  - type: Tag
    tags:
      - EnergyMagAmmo

- type: entity
  id: EnergyMagRifleLethal
  parent: [ EnergyRifleMagBase, BaseSecurityContraband ]
  name: energy rifle magazine (lethal)
  description: Powercell with an attached power converter that create lethal bolt at the end of energy rifle.
  components:
  - type: Sprite
    layers:
    - state: erifle_lethal
      map: [ "enum.GunVisualLayers.Base" ]
  - type: ProjectileBatteryAmmoProvider
    proto: RifleBulletEnergyGunLethal
    fireCost: 50

- type: entity
  id: EnergyMagRifleDisabler
  parent: [ EnergyRifleMagBase, BaseSecurityContraband ]
  name: energy rifle magazine (disabler)
  description: Powercell with an attached power converter that create disabler bolt at the end of energy rifle.
  components:
  - type: Sprite
    layers:
    - state: erifle_disabler
      map: [ "enum.GunVisualLayers.Base" ]
  - type: ProjectileBatteryAmmoProvider
    proto: RifleBulletEnergyGunDisabler
    fireCost: 50

- type: entity
  id: EnergyMagRifleIon
  parent: [ EnergyRifleMagBase, BaseSecurityContraband ]
  name: energy rifle magazine (Ion)
  description: Powercell with an attached power converter that create Ionize bolt at the end of energy rifle.
  components:
  - type: Sprite
    layers:
    - state: erifle_ion
      map: [ "enum.GunVisualLayers.Base" ]
  - type: ProjectileBatteryAmmoProvider
    proto: RifleBulletEnergyGunIon
    fireCost: 50

- type: entity
  id: EnergyMagRifleOverchargeLethal
  parent: [ EnergyRifleMagBase, BaseSecurityContraband ]
  name: energy rifle magazine (overcharge)
  description: The power converter on this magazine has been modified to shot even more powerfull bolt in exchanged of more power consumption.
  components:
  - type: Sprite
    layers:
    - state: erifle_overcharge
      map: [ "enum.GunVisualLayers.Base" ]
  - type: ProjectileBatteryAmmoProvider
    proto: RifleBulletEnergyGunOverchargeLethal
    fireCost: 66 #15 shot hopefully
