# Empty mags
- type: entity
  id: magazine_9mm_empty
  name: "9mm magazine - empty"
  parent: BaseItem
  components:
  - type: BallisticMagazine
    caliber: A9mm
    magazine: A9mm
    capacity: 10
  - type: Sprite 
    netsync: false

- type: entity
  id: magazine_9mm_smg_empty
  name: "9mm SMG magazine - empty"
  parent: BaseItem
  components:
  - type: BallisticMagazine
    caliber: A9mm
    magazine: A9mmSMG
    capacity: 35
  - type: Sprite
    netsync: false

# Magazines
- type: entity
  id: magazine_9mmtm
  name: "9mm Magazine (Top-Mounted)"
  parent: magazine_9mm_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm
    caliber: A9mm
    magazine: A9mmTopMounted
    capacity: 30
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9mmt.rsi
    state: 9mmt-5
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9mmt.rsi
    state: 9mmt-5
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: 9mmt
      steps: 6

- type: entity
  id: magazine_9mm
  name: "9mm Magazine"
  parent: magazine_9mm_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm
    caliber: A9mm
    capacity: 10
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19p.rsi
    state: 9x19p-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19p.rsi
    state: 9x19p-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: 9x19p
      steps: 2

- type: entity
  id: magazine_9mmf
  name: "9mm Magazine (Flash)"
  parent: magazine_9mm_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm_flash
    caliber: A9mm
    capacity: 10
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19pf.rsi
    state: 9x19pf-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19pf.rsi
    state: 9x19pf-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: 9x19pf
      steps: 2

- type: entity
  id: magazine_9mmhv
  name: "9mm Magazine (High Velocity)"
  parent: magazine_9mm_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm_hv
    caliber: A9mm
    capacity: 10
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19phv.rsi
    state: 9x19phv-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19phv.rsi
    state: 9x19phv-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: 9x19phv
      steps: 2

- type: entity
  id: magazine_9mml
  name: "9mm Magazine (L)"
  parent: magazine_9mm_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm_l
    caliber: A9mm
    capacity: 10
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19pl.rsi
    state: 9x19pl-0
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19pl.rsi
    state: 9x19pl-0
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: 9x19pl
      steps: 1

- type: entity
  id: magazine_9mmp
  name: "9mm Magazine (Practice)"
  parent: magazine_9mm_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm_p
    caliber: A9mm
    capacity: 10
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19pp.rsi
    state: 9x19pp-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19pp.rsi
    state: 9x19pp-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: 9x19pp
      steps: 2

- type: entity
  id: magazine_9mmr
  name: "9mm Magazine (Rubber)"
  parent: magazine_9mm_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm_r
    caliber: A9mm
    capacity: 10
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19pr.rsi
    state: 9x19pr-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/9x19pr.rsi
    state: 9x19pr-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: 9x19pr
      steps: 2

- type: entity
  id: magazine_9mm_smg
  name: "9mm SMG Magazine"
  parent: magazine_9mm_smg_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm
    caliber: A9mm
    capacity: 30
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mm.rsi
    state: smg9mm-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mm.rsi
    state: smg9mm-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: smg9mm
      steps: 2

- type: entity
  id: magazine_9mmf_smg
  name: "9mm SMG Magazine (Flash)"
  parent: magazine_9mm_smg_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm_f
    caliber: A9mm
    capacity: 30
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mmf.rsi
    state: smg9mmf-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mmf.rsi
    state: smg9mmf-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: smg9mmf
      steps: 2

- type: entity
  id: magazine_9mmhv_smg
  name: "9mm SMG Magazine (High Velocity)"
  parent: magazine_9mm_smg_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm_hv
    caliber: A9mm
    capacity: 30
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mmhv.rsi
    state: smg9mmhv-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mmhv.rsi
    state: smg9mmhv-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: smg9mmhv
      steps: 2

- type: entity
  id: magazine_9mml_smg
  name: "9mm SMG Magazine (L)"
  parent: magazine_9mm_smg_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm_l
    caliber: A9mm
    capacity: 30
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mml.rsi
    state: smg9mml-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mml.rsi
    state: smg9mml-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: smg9mml
      steps: 2

- type: entity
  id: magazine_9mmp_smg
  name: "9mm SMG Magazine (Practice)"
  parent: magazine_9mm_smg_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm_p
    caliber: A9mm
    capacity: 30
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mmp.rsi
    state: smg9mmp-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mmp.rsi
    state: smg9mmp-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: smg9mmp
      steps: 2

- type: entity
  id: magazine_9mmr_smg
  name: "9mm SMG Magazine (Rubber)"
  parent: magazine_9mm_smg_empty
  components:
  - type: BallisticMagazine
    fill: ammo_casing_9mm_r
    caliber: A9mm
    capacity: 30
  - type: Icon
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mmr.rsi
    state: smg9mmr-1
  - type: Sprite
    sprite: Objects/Guns/Ammunition/Magazine/9mm/smg9mmr.rsi
    state: smg9mmr-1
  - type: Appearance
    visuals:
    - type: BallisticMagazineVisualizer2D
      base_state: smg9mmr
      steps: 2

# Casings - magazines above here
- type: entity
  id: ammo_casing_9mm
  name: "9mm casing"
  parent: BaseItem
  components:
  - type: BallisticBullet
    caliber: A9mm
    projectile: bullet_9mm
  - type: Sprite
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing
    drawdepth: FloorObjects
  - type: Icon
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing

- type: entity
  id: ammo_casing_9mm_flash
  name: "9mm casing (Flash)"
  parent: BaseItem
  components:
  - type: BallisticBullet
    caliber: A9mm
    projectile: bullet_9mmf
  - type: Sprite
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing
    drawdepth: FloorObjects
  - type: Icon
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing

- type: entity
  id: ammo_casing_9mm_hv
  name: "9mm casing (High Velocity)"
  parent: BaseItem
  components:
  - type: BallisticBullet
    caliber: A9mm
    projectile: bullet_9mmhv
  - type: Sprite
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing
    drawdepth: FloorObjects
  - type: Icon
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing

- type: entity
  id: ammo_casing_9mm_l
  name: "9mm casing (L)"
  parent: BaseItem
  components:
  - type: BallisticBullet
    caliber: A9mm
    projectile: bullet_9mml
  - type: Sprite
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing
    drawdepth: FloorObjects
  - type: Icon
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing

- type: entity
  id: ammo_casing_9mm_p
  name: "9mm casing (Practice)"
  parent: BaseItem
  components:
  - type: BallisticBullet
    caliber: A9mm
    projectile: bullet_9mmp
  - type: Sprite
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing
    drawdepth: FloorObjects
  - type: Icon
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing

- type: entity
  id: ammo_casing_9mm_r
  name: "9mm casing (Rubber)"
  parent: BaseItem
  components:
  - type: BallisticBullet
    caliber: A9mm
    projectile: bullet_9mmr
  - type: Sprite
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing
    drawdepth: FloorObjects
  - type: Icon
    sprite: Objects/Guns/Ammunition/ammo_casing.rsi
    state: s-casing
