ACTOR NC_HPBlue : Inventory {}
ACTOR NC_HPGreen : Inventory {}
ACTOR NC_HPYellow : Inventory {}
ACTOR NC_HPRed : Inventory {}

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

ACTOR NC_HealthAboveHundred : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_HPGreen", 1)
    TNT1 A 0 A_TakeInventory("NC_HPRed", 1)
    TNT1 A 0 A_TakeInventory("NC_HPYellow", 1)
    TNT1 A 0 A_GiveInventory("NC_HPBlue", 1)
    Stop
  }
}

ACTOR NC_HealthGood : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_HPBlue", 1)
    TNT1 A 0 A_TakeInventory("NC_HPRed", 1)
    TNT1 A 0 A_TakeInventory("NC_HPYellow", 1)
    TNT1 A 0 A_GiveInventory("NC_HPGreen", 1)
    Stop
  }
}

ACTOR NC_HealthWarning : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_HPBlue", 1)
    TNT1 A 0 A_TakeInventory("NC_HPGreen", 1)
    TNT1 A 0 A_TakeInventory("NC_HPRed", 1)
    TNT1 A 0 A_GiveInventory("NC_HPYellow", 1)
    Stop
  }
}

ACTOR NC_HealthCritical : CustomInventory
{
  States
  {
  Pickup:
    TNT1 A 0 A_TakeInventory("NC_HPBlue", 1)
    TNT1 A 0 A_TakeInventory("NC_HPGreen", 1)
    TNT1 A 0 A_TakeInventory("NC_HPYellow", 1)
    TNT1 A 0 A_GiveInventory("NC_HPRed", 1)
    Stop
  }
}