// Regeneration

ACTOR RegenSphere : CustomInventory 10078
{
    +FLOAT
    +FLOATBOB
	+COUNTITEM
    +NOGRAVITY
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
    Inventory.PickupSound "misc/impkup"
	Inventory.Pickupmessage "Regeneration!"
	Inventory.PickupAnnouncerEntry "regeneration"
	Inventory.RespawnTics 3150
    Inventory.MaxAmount 0
	Tag "Regeneration Sphere"
    //$Category Powerups
	States
	{
	Spawn:
	  REGN ABCD 6 Bright
	  Loop
	Pickup:
	  TNT1 A 0 A_JumpIfInventory("PowerRageInvulnerable",1,"NoProt")
	  TNT1 A 0 A_GiveInventory("PickupProtection")
	NoProt:
	  TNT1 A 0 A_Print("\n\n\n\n\nRegeneration!\n\n\n\n25 health per second!")
	  TNT1 A 0 A_GiveInventory("RegenSphereRegeneration")
	  TNT1 A 0 A_GiveInventory("StrengthPowerupTrail")
	  Stop
	}
}

ACTOR PowerIDMRegeneration : PowerRegeneration
{
	Inventory.Icon "REGNSP1"
}

ACTOR RegenSphereRegeneration : PowerupGiver
{
	Inventory.maxamount 0
	Powerup.Type "IDMRegeneration"
	Powerup.Duration -30
	Powerup.Strength 25
	Powerup.Color "Purple", 0.1
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
}