- type: entity
  abstract: true
  parent: BaseItem
  id: BoxLRifleBase
  name: ammunition box (.30 rifle)
  components:
  - type: AmmoBox
    caliber: LRifle
    capacity: 50
  - type: Sprite
    sprite: Objects/Weapons/Guns/Ammunition/Boxes/l_rifle.rsi
    netsync: false
  - type: Appearance
    visuals:
    - type: MagVisualizer
      magState: mag
      steps: 2
      zeroVisible: false

# Boxes
- type: entity
  parent: BoxLRifleBase
  id: BoxLRifleBigBox
  name: ammunition box (.30 rifle)
  components:
  - type: AmmoBox
    capacity: 200
    fillPrototype: CartridgeLRifle
  - type: Sprite
    layers:
    - state: base-b
      map: ["enum.RangedBarrelVisualLayers.Base"]
    - state: magb-1
      map: ["enum.RangedBarrelVisualLayers.Mag"]
  - type: Appearance
    visuals:
    - type: MagVisualizer
      magState: magb
      steps: 2
      zeroVisible: false

- type: entity
  parent: BoxLRifleBase
  id: BoxLRifleBox
  name: ammunition box (.30 rifle)
  components:
  - type: AmmoBox
    fillPrototype: CartridgeLRifle
  - type: Sprite
    layers:
    - state: base
      map: ["enum.RangedBarrelVisualLayers.Base"]
    - state: mag-1
      map: ["enum.RangedBarrelVisualLayers.Mag"]

- type: entity
  parent: BoxLRifleBase
  id: BoxLRifleBoxHV
  name: ammunition box (.30 rifle high-velocity)
  components:
  - type: AmmoBox
    fillPrototype: CartridgeLRifleHV
  - type: Sprite
    layers:
    - state: base
      map: ["enum.RangedBarrelVisualLayers.Base"]
    - state: mag-1
      map: ["enum.RangedBarrelVisualLayers.Mag"]
    - state: hv

- type: entity
  parent: BoxLRifleBase
  id: BoxLRifleBoxPractice
  name: ammunition box (.30 rifle practice)
  components:
  - type: AmmoBox
    fillPrototype: CartridgeLRiflePractice
  - type: Sprite
    layers:
    - state: base
      map: ["enum.RangedBarrelVisualLayers.Base"]
    - state: mag-1
      map: ["enum.RangedBarrelVisualLayers.Mag"]
    - state: practice

- type: entity
  parent: BoxLRifleBase
  id: BoxLRifleBoxRubber
  name: ammunition box (.30 rifle rubber)
  components:
  - type: AmmoBox
    fillPrototype: CartridgeLRifleRubber
  - type: Sprite
    layers:
    - state: base
      map: ["enum.RangedBarrelVisualLayers.Base"]
    - state: mag-1
      map: ["enum.RangedBarrelVisualLayers.Mag"]
    - state: rubber
