// Soulsphere

ACTOR IDMSoulsphere : CustomInventory
{
  +COUNTITEM
  +FLOAT
  +FLOATBOB
  +INVENTORY.AUTOACTIVATE
  -INVENTORY.INVBAR
  +INVENTORY.ALWAYSPICKUP
  +SUPERHEALTH
  Inventory.RespawnTics 2100
  Inventory.PickupMessage "Soulsphere!"
  Inventory.PickupSound "misc/impkup"
  Inventory.PickupAnnouncerEntry "soulsphere"
  States
  {
  Spawn:
    SOUL ABCDCB 6 Bright
    Loop
  Pickup:
	TNT1 A 0 A_Print("\n\n\n\n\n\nSoulsphere!\n\n\n\n300 Maximum Health!\nHealth pickups are doubled!",4)
	TNT1 A 0 A_GiveInventory("SoulHealth")
	TNT1 A 0 A_GiveInventory("PowerSoul")
	Stop
  }
}

ACTOR SoulHealth : MaxHealth
{
  Inventory.Amount 300
  Inventory.MaxAmount 200
  Health 100
  +INVENTORY.ALWAYSPICKUP
  -INVENTORY.INVBAR
}

ACTOR SoulsphereGiver : Healthpickup
{
	Health 300
	Tag "Soul Restoration"
	Inventory.UseSound "misc/impkup"
	Inventory.MaxAmount 1
	HealthPickup.AutoUse 2
	Inventory.Icon "SOULF0"
	+INVENTORY.ALWAYSPICKUP
}

ACTOR PowerSoul : PowerStrength
{
	-INVENTORY.INVBAR
	Powerup.Color 0, 0, 255, 0.5
}