// These items are for the "highlight" feature for the
// all-ammo/reserve ammo display. By default it supports
// 30 ammo types. The first four (0-3) are reserved by
// default for Doom's 4 ammunition types. The rest (4-29)
// are for custom ammo types. If you require more than 30
// ammo types for some reason, just increase the count by
// making more items.

ACTOR NC_ReserveAmmo0 : Inventory {} // Clip
ACTOR NC_ReserveAmmo1 : Inventory {} // Shell
ACTOR NC_ReserveAmmo2 : Inventory {} // RocketAmmo
ACTOR NC_ReserveAmmo3 : Inventory {} // Cell

ACTOR NC_ReserveAmmo4 : Inventory {}
ACTOR NC_ReserveAmmo5 : Inventory {}
ACTOR NC_ReserveAmmo6 : Inventory {}
ACTOR NC_ReserveAmmo7 : Inventory {}
ACTOR NC_ReserveAmmo8 : Inventory {}
ACTOR NC_ReserveAmmo9 : Inventory {}
ACTOR NC_ReserveAmmo10 : Inventory {}
ACTOR NC_ReserveAmmo11 : Inventory {}
ACTOR NC_ReserveAmmo12 : Inventory {}
ACTOR NC_ReserveAmmo13 : Inventory {}
ACTOR NC_ReserveAmmo14 : Inventory {}
ACTOR NC_ReserveAmmo15 : Inventory {}
ACTOR NC_ReserveAmmo16 : Inventory {}
ACTOR NC_ReserveAmmo17 : Inventory {}
ACTOR NC_ReserveAmmo18 : Inventory {}
ACTOR NC_ReserveAmmo19 : Inventory {}
ACTOR NC_ReserveAmmo20 : Inventory {}
ACTOR NC_ReserveAmmo21 : Inventory {}
ACTOR NC_ReserveAmmo22 : Inventory {}
ACTOR NC_ReserveAmmo23 : Inventory {}
ACTOR NC_ReserveAmmo24 : Inventory {}
ACTOR NC_ReserveAmmo25 : Inventory {}
ACTOR NC_ReserveAmmo26 : Inventory {}
ACTOR NC_ReserveAmmo27 : Inventory {}
ACTOR NC_ReserveAmmo28 : Inventory {}
ACTOR NC_ReserveAmmo29 : Inventory {}

//---------------------------------------------------------

ACTOR NC_PrimaryAmmoGreen : Inventory {}
ACTOR NC_PrimaryAmmoYellow : Inventory {}
ACTOR NC_PrimaryAmmoRed : Inventory {}

ACTOR NC_SecondaryAmmoGreen : Inventory {}
ACTOR NC_SecondaryAmmoYellow : Inventory {}
ACTOR NC_SecondaryAmmoRed : Inventory {}

ACTOR NoPrimary : Ammo {}
ACTOR NoSecondary : Ammo {}

//---------------------------------------------------------

ACTOR NC_PrimaryAmmoOk : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_PrimaryAmmoYellow", 1)
    TNT1 A 0 A_TakeInventory("NC_PrimaryAmmoRed", 1)
    TNT1 A 0 A_GiveInventory("NC_PrimaryAmmoGreen", 1)
    Stop
  }
}

ACTOR NC_PrimaryAmmoLow : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_PrimaryAmmoGreen", 1)
    TNT1 A 0 A_TakeInventory("NC_PrimaryAmmoRed", 1)
    TNT1 A 0 A_GiveInventory("NC_PrimaryAmmoYellow", 1)
    Stop
  }
}

ACTOR NC_PrimaryAmmoVeryLow : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_PrimaryAmmoGreen", 1)
    TNT1 A 0 A_TakeInventory("NC_PrimaryAmmoYellow", 1)
    TNT1 A 0 A_GiveInventory("NC_PrimaryAmmoRed", 1)
    Stop
  }
}

//---------------------------------------------------------

ACTOR NC_SecondaryAmmoOk : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_SecondaryAmmoYellow", 1)
    TNT1 A 0 A_TakeInventory("NC_SecondaryAmmoRed", 1)
    TNT1 A 0 A_GiveInventory("NC_SecondaryAmmoGreen", 1)
    Stop
  }
}

ACTOR NC_SecondaryAmmoLow : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_SecondaryAmmoGreen", 1)
    TNT1 A 0 A_TakeInventory("NC_SecondaryAmmoRed", 1)
    TNT1 A 0 A_GiveInventory("NC_SecondaryAmmoYellow", 1)
    Stop
  }
}

ACTOR NC_SecondaryAmmoVeryLow : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_SecondaryAmmoGreen", 1)
    TNT1 A 0 A_TakeInventory("NC_SecondaryAmmoYellow", 1)
    TNT1 A 0 A_GiveInventory("NC_SecondaryAmmoRed", 1)
    Stop
  }
}