/// decorate/health.txt by Kaapeli47

/// Health ///

ACTOR IDMHealthBonusPickup : CustomInventory replaces HealthBonus
{
  Radius 20
  Height 16
  Inventory.PickupMessage "Health bonus."
  Inventory.PickupSound "misc/bhapkup"
  Inventory.RespawnTics 2100
  +BASEHEALTH
  +COUNTITEM
  States
  {
  Spawn:
    BON1 ABCDDCB 6
    Loop
  Pickup:
	TNT1 A 0 A_JumpIfInventory("PowerSoul",1,"Soulbonus")
	TNT1 A 0 A_GiveInventory("IDMHealthbonus")
	Stop
  Soulbonus:
	TNT1 A 0 A_GiveInventory("SoulHealthbonus",1)
	Stop
  }
}

ACTOR IDMHealthBonus : MaxHealth
{
  +COUNTITEM
  +INVENTORY.ALWAYSPICKUP
  Inventory.Amount 2
  Inventory.MaxAmount 100
  Health 200
  Inventory.PickupMessage "Health bonus."
  Inventory.PickupSound "misc/bhapkup"
  Inventory.RespawnTics 1050
  States
  {
  Spawn:
    BON1 ABCDDDCB 4
    Loop
  }
}

ACTOR SoulHealthBonus : IDMHealthbonus
{
  Inventory.Amount 5
}

ACTOR IDMMedikitPickup : CustomInventory replaces Medikit
{
  Radius 20
  Height 16
  Inventory.PickupMessage "Medikit."
  Inventory.PickupSound "misc/hppkup"
  Inventory.RespawnTics 1050
  +BASEHEALTH
  +COUNTITEM
  States
  {
  Spawn:
    MEDI A -1
    Stop
  Pickup:
	TNT1 A 0 A_JumpIfInventory("PowerSoul",1,"Soulbonus")
	TNT1 A 0 A_GiveInventory("IDMMedikit")
	Stop
  Soulbonus:
	TNT1 A 0 A_GiveInventory("SoulMedikit",1)
	Stop
  }
}

ACTOR IDMMedikit : Health
{
  Inventory.Amount 50
  Inventory.PickupMessage "Medikit."
  Inventory.PickupSound "misc/hppkup"
  Health.LowMessage 25, "Ooh, I needed that!"
  States
  {
  Spawn:
    MEDI A -1
    Stop
  }
}

ACTOR SoulMedikit : IDMMedikit
{
  Inventory.Amount 100
  Inventory.MaxAmount 300
}

ACTOR IDMStimpackPickup : CustomInventory replaces Stimpack
{
  Radius 20
  Height 16
  Inventory.PickupMessage "Stimpack."
  Inventory.PickupSound "misc/hppkup"
  Inventory.RespawnTics 1050
  +BASEHEALTH
  +COUNTITEM
  States
  {
  Spawn:
    STIM A -1
    Stop
  Pickup:
	TNT1 A 0 A_JumpIfInventory("PowerSoul",1,"Soulbonus")
	TNT1 A 0 A_GiveInventory("IDMStimpack")
	Stop
  Soulbonus:
	TNT1 A 0 A_GiveInventory("SoulStimpack",1)
	Stop
  }
}

ACTOR IDMStimpack : Health
{
  Inventory.Amount 25
  Inventory.PickupMessage "Stimpack."
  Inventory.PickupSound "misc/hppkup"
  States
  {
  Spawn:
    STIM A -1
    Stop
  }
}

ACTOR SoulStimpack : IDMStimpack
{
  Inventory.Amount 50
  Inventory.MaxAmount 300
}
