- type: entity
  id: BoxSRifleBase
  name: "ammunition box (.20 rifle)"
  parent: BaseItem
  abstract: true
  components:
  - type: AmmoBox
    caliber: SRifle
    capacity: 30

  - type: Sprite
    netsync: false
    layers:
    - state: base
      map: ["enum.RangedBarrelVisualLayers.Base"]
    - state: mag-1
      map: ["enum.RangedBarrelVisualLayers.Mag"]
  - type: Appearance
    visuals:
    - type: MagVisualizer
      magState: mag
      steps: 2
      zeroVisible: false

# Boxes
- type: entity
  id: BoxSRifleBigBox
  name: "ammunition box (.20 rifle)"
  parent: BoxSRifleBase
  components:
  - type: AmmoBox
    capacity: 200
    fillPrototype: CartridgeSRifle

  - type: Sprite
    sprite: Objects/Weapons/Guns/Ammunition/Boxes/SRifle/s_rifle_big_box.rsi

- type: entity
  id: BoxSRifleBigBoxRubber
  name: "ammunition box (.20 rifle rubber)"
  parent: BoxSRifleBase
  components:
  - type: AmmoBox
    capacity: 200
    fillPrototype: CartridgeSRifleRubber

  - type: Sprite
    sprite: Objects/Weapons/Guns/Ammunition/Boxes/SRifle/s_rifle_big_box_rubber.rsi

- type: entity
  id: BoxSRifleBox
  name: "ammunition box (.20 rifle)"
  parent: BoxSRifleBase
  components:
  - type: AmmoBox
    capacity: 60
    fillPrototype: CartridgeSRifle

  - type: Sprite
    sprite: Objects/Weapons/Guns/Ammunition/Boxes/SRifle/s_rifle_box.rsi

- type: entity
  id: BoxSRifleBoxFlash
  name: "ammunition box (.20 rifle flash)"
  parent: BoxSRifleBase
  components:
  - type: AmmoBox
    capacity: 60
    fillPrototype: CartridgeSRifleFlash

  - type: Sprite
    sprite: Objects/Weapons/Guns/Ammunition/Boxes/SRifle/s_rifle_box_flash.rsi

- type: entity
  id: BoxSRifleBoxHV
  name: "ammunition box (.20 rifle high-velocity)"
  parent: BoxSRifleBase
  components:
  - type: AmmoBox
    capacity: 60
    fillPrototype: CartridgeSRifleHV

  - type: Sprite
    sprite: Objects/Weapons/Guns/Ammunition/Boxes/SRifle/s_rifle_box_hv.rsi

- type: entity
  id: BoxSRifleBoxPractice
  name: "ammunition box (.20 rifle practice)"
  parent: BoxSRifleBase
  components:
  - type: AmmoBox
    capacity: 60
    fillPrototype: CartridgeSRiflePractice

  - type: Sprite
    sprite: Objects/Weapons/Guns/Ammunition/Boxes/SRifle/s_rifle_box_practice.rsi

- type: entity
  id: BoxSRifleBoxRubber
  name: "ammunition box (.20 rifle rubber)"
  parent: BoxSRifleBase
  components:
  - type: AmmoBox
    capacity: 60
    fillPrototype: CartridgeSRifleRubber

  - type: Sprite
    sprite: Objects/Weapons/Guns/Ammunition/Boxes/SRifle/s_rifle_box_rubber.rsi
