// Regeneration

ACTOR RegenSphere : CustomInventory
{
    +FLOAT
    +FLOATBOB
	+COUNTITEM
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
    Inventory.PickupSound "misc/impkup"
	Inventory.Pickupmessage "Regeneration!"
	Inventory.PickupAnnouncerEntry "regeneration"
	Inventory.RespawnTics 3150
    Inventory.MaxAmount 0
	States
	{
	Spawn:
		REGN ABCD 6 Bright
		Loop
	Pickup:
		TNT1 A 0 A_GiveInventory("PickupProtection")
		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("IDMPowerupTrail")
		Stop
	}
}

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

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
}