- type: entity
  parent: [BaseItem, BaseXenoborgContraband]
  id: WeaponNaniteGun
  name: nanite gun
  description: A strange gun that shoots nanites encased in crystal shards that heals borgs but hurts fleshy inferior beings.
  components:
  - type: Sprite
    sprite: Objects/Weapons/Guns/Rifles/nanite.rsi
    layers:
    - state: base
      map: ["enum.GunVisualLayers.Base"]
    - state: mag-unshaded-5
      map: ["enum.GunVisualLayers.Mag"]
  - type: AmmoCounter
  - type: Gun
    fireRate: 0.9
    selectedMode: SemiAuto
    availableModes:
    - SemiAuto
    soundGunshot:
      path: /Audio/Weapons/Guns/Gunshots/nanite_gun.ogg
    soundEmpty:
      path: /Audio/Weapons/Guns/Empty/empty.ogg
  - type: BallisticAmmoProvider
    capacity: 5
    proto: CartridgeNanite
    soundInsert:
      path: /Audio/Weapons/Guns/MagIn/shotgun_insert.ogg
    cycleable: false # No synthesizing ammo
  - type: BallisticAmmoSelfRefiller
    autoRefillRate: 9s
    affectedByEmp: true
  - type: StaticPrice
    price: 5000
  - type: MagazineVisuals
    magState: mag-unshaded
    steps: 6
    zeroVisible: true
  - type: CustomSpriteAmmoCounter
    loadedAmmoSprite: Interface/ItemStatus/Crystals/not_spent.png
    spentAmmoSprite: Interface/ItemStatus/Crystals/spent.png
    numberOfRows: 1
  - type: Appearance
  - type: ContainerContainer
    containers:
      ballistic-ammo: !type:Container
        ents: [ ]
