# Rockets

- type: entity
  id: CartridgeRocket
  name: PG-7VL grenade
  parent: BaseItem
  description: A 1.5 warhead designed for the RPG-7 launcher. Has tubular shape.
  components:
  - type: Tag
    tags:
      - CartridgeRocket
  - type: Item
    size: Small
  - type: CartridgeAmmo
    proto: BulletRocket
    deleteOnSpawn: true
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    state: rpg
  - type: StaticPrice
    price: 20

- type: entity
  id: CartridgeRocketSlow
  name: PG-7VL grenade "Snail-Rocket"
  parent: BaseItem
  description: A 1.5 warhead designed for the RPG-7 launcher. It's unusually slow.
  components:
    - type: Tag
      tags:
        - CartridgeRocket
    - type: Item
      size: Small
    - type: CartridgeAmmo
      proto: BulletWeakRocket
      deleteOnSpawn: true
    - type: Sprite
      sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
      state: frag
    - type: StaticPrice
      price: 20

# Grenades

- type: entity
  id: BaseGrenade
  name: base grenade
  parent: BaseItem
  abstract: true
  components:
  - type: Tag
    tags:
    - Grenade
  - type: Item
    size: Small
  - type: Sprite

- type: entity
  id: 40mmGrenadeBaton
  name: 40mm baton grenade
  parent: BaseGrenade
  components:
  - type: CartridgeAmmo
    proto: Bullet40mmGrenadeBaton
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    layers:
    - state: baton
      map: ["enum.AmmoVisualLayers.Base"]
  - type: Appearance
  - type: SpentAmmoVisuals
    state: baton
    suffix: false
  - type: Tag
    tags:
    - LessLethalGrenade

- type: entity
  id: 40mmGrenadeThermobaric
  name: 40mm thermobaric grenade
  parent: BaseGrenade
  components:
  - type: CartridgeAmmo
    proto: Bullet40mmGrenadeThermobaric
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    layers:
    - state: blast
      map: ["enum.AmmoVisualLayers.Base"]
  - type: Appearance
  - type: SpentAmmoVisuals
    state: blast
    suffix: false

- type: entity
  id: 40mmGrenadeFlash
  name: 40mm flash grenade
  parent: BaseGrenade
  components:
  - type: CartridgeAmmo
    proto: Bullet40mmGrenadeFlash
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    layers:
    - state: flash
      map: ["enum.AmmoVisualLayers.Base"]
  - type: Appearance
  - type: SpentAmmoVisuals
    state: flash
    suffix: false
  - type: Tag
    tags:
    - LessLethalGrenade

- type: entity
  id: 40mmGrenadeFragmentation
  name: 40mm Fragmentation grenade
  parent: BaseGrenade
  components:
  - type: CartridgeAmmo
    proto: Bullet40mmGrenadeFragmentation
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    layers:
    - state: frag
      map: ["enum.AmmoVisualLayers.Base"]
  - type: Appearance
  - type: SpentAmmoVisuals
    state: frag
    suffix: false

- type: entity
  id: 40mmGrenadeEMP
  name: 40mm EMP grenade
  parent: BaseGrenade
  components:
  - type: CartridgeAmmo
    proto: Bullet40mmGrenadeEMP
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    layers:
    - state: emp
      map: ["enum.AmmoVisualLayers.Base"]
  - type: Appearance
  - type: SpentAmmoVisuals
    state: frag
    suffix: false
  - type: EmpDescription # Frontier
    range: 5 # Frontier
    energyConsumption: 2700000 # Frontier
    disableDuration: 10 # Frontier
  - type: Tag
    tags:
    - LessLethalGrenade

# Cannon Balls

- type: entity
  id: BaseCannonBall
  name: base cannon ball
  parent: BaseItem
  abstract: true
  components:
  - type: Tag
    tags:
    - CannonBall
  - type: Item
    size: Small
  - type: Sprite

- type: entity
  id: CannonBall
  name: cannonball
  suffix: Rogue
  parent: BaseCannonBall
  components:
  - type: CartridgeAmmo
    proto: BulletCannonBall
    deleteOnSpawn: true
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    state: ball

- type: entity
  id: CannonBallGrapeshot
  name: grapeshot
  suffix: Rogue
  parent: BaseCannonBall
  components:
  - type: CartridgeAmmo
    proto: Pellet12_gaugeGrapeshotSpread
    deleteOnSpawn: true
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    state: grapeshot

- type: entity
  id: CannonBallGlassshot
  name: glassshot
  suffix: Rogue
  parent: BaseCannonBall
  components:
  - type: CartridgeAmmo
    proto: Pellet12_gaugeGlassSpread
    deleteOnSpawn: true
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    state: glassshot

# Rockets

- type: entity
  id: CartridgeRocketEmp
  name: PG-7VL emp
  parent: BaseItem
  description: A 1.5 emp warhead designed for the RPG-7 launcher. Has tubular shape.
  components:
  - type: Tag
    tags:
      - CartridgeRocket
      - CartridgeRocketEmp
  - type: Item
    size: Tiny
  - type: CartridgeAmmo
    proto: BulletRocketEmp
    deleteOnSpawn: true
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    state: rpg-emp
  - type: EmpDescription
    range: 6
    energyConsumption: 4500000
    disableDuration: 25

# Cannon Balls
- type: entity
  id: CannonBallEmp
  name: shockshot
  suffix: EMP
  parent: BaseCannonBall
  components:
  - type: CartridgeAmmo
    proto: BulletCannonBallEmp
    deleteOnSpawn: true
  - type: Sprite
    sprite: _NF/Objects/Weapons/Guns/Projectiles/projectiles2.rsi
    state: ball-emp

# MPSSM

- type: entity
  id: CartridgeMPSSMMissile
  name: MPSSM ASM-19 missile tube
  parent: BaseItem
  description: A missile tube designed for the MPSSM launcher. Fires a ship-tracking EMP-HE missile with a lockon range of 1.2km
  components:
  - type: Tag
    tags:
    - MPSSMMissile
  - type: Item
    size: Large
  - type: CartridgeAmmo
    proto: ShipMissileASM19
    deleteOnSpawn: true
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    state: mpssm
  - type: StaticPrice
    price: 1500
  - type: EmpDescription
    range: 2
    energyConsumption: 2700000
    disableDuration: 20

- type: entity
  id: CartridgeMPSSMHEAT
  name: MPSSM Mk.248 rocket tube
  parent: BaseItem
  description: A missile tube designed for the MPSSM launcher. Fires an unguided HEAT rocket for precise structural destruction and AT usage.
  components:
  - type: Tag
    tags:
    - MPSSMMissile
  - type: Item
    size: Large
  - type: CartridgeAmmo
    proto: RocketMk248
    deleteOnSpawn: true
  - type: Sprite
    sprite: _Mono/Objects/Weapons/Guns/Ammunition/Explosives/explosives.rsi
    state: mpssm-he
  - type: StaticPrice
    price: 1500
