ACTOR NC_ArmorBlue : Inventory {}
ACTOR NC_ArmorGreen : Inventory {}
ACTOR NC_ArmorYellow : Inventory {}
ACTOR NC_ArmorRed : Inventory {}

ACTOR NC_GreenArmorIcon : Inventory {}

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

ACTOR NC_ArmorAboveHundred : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_ArmorGreen", 1)
    TNT1 A 0 A_TakeInventory("NC_ArmorRed", 1)
    TNT1 A 0 A_TakeInventory("NC_ArmorYellow", 1)
    TNT1 A 0 A_GiveInventory("NC_ArmorBlue", 1)
    Stop
  }
}

ACTOR NC_ArmorOk : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_ArmorBlue", 1)
    TNT1 A 0 A_TakeInventory("NC_ArmorRed", 1)
    TNT1 A 0 A_TakeInventory("NC_ArmorYellow", 1)
    TNT1 A 0 A_GiveInventory("NC_ArmorGreen", 1)
    Stop
  }
}

ACTOR NC_ArmorLow : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_ArmorBlue", 1)
    TNT1 A 0 A_TakeInventory("NC_ArmorGreen", 1)
    TNT1 A 0 A_TakeInventory("NC_ArmorRed", 1)
    TNT1 A 0 A_GiveInventory("NC_ArmorYellow", 1)
    Stop
  }
}

ACTOR NC_ArmorVeryLow : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_ArmorBlue", 1)
    TNT1 A 0 A_TakeInventory("NC_ArmorGreen", 1)
    TNT1 A 0 A_TakeInventory("NC_ArmorYellow", 1)
    TNT1 A 0 A_GiveInventory("NC_ArmorRed", 1)
    Stop
  }
}