ACTOR "Steroids" : CustomInventory Replaces BlurSphere 31040
{
	//$Category DN3D Items
	Inventory.PickupMessage "\ciSteroids"
    Inventory.PickupSound "Steroids/Pick"
	Inventory.Icon "PILLB0"
    Inventory.Amount 100
    Inventory.MaxAmount 100
	Inventory.InterHubAmount 100
	+INVENTORY.PERSISTENTPOWER
    +INVENTORY.INVBAR
	+COUNTITEM
    Scale 0.55
	Tag "Steroids"
    States
    {
    Spawn:
        PILL A -1
        Stop
	Pickup:
	    TNT1 A 1 A_JumpIfInventory("Steroids",100,"Nope")
		TNT1 A 1 A_GiveInventory("SteroidsAmmo",100)
		TNT1 A 1 ACS_Execute(520,0,0,0,0)
		Stop
	Nope:
	    TNT1 A 1
	    Fail
    Use:
   	    TNT1 A 1 ACS_NamedExecuteAlways("ActivateSteroids")
		Fail
        }
}

ACTOR SteroidsAmmo : Ammo
{
	+IGNORESKILL
	Inventory.Amount 1
	Inventory.MaxAmount 100
}

ACTOR SteroidsActive : PuzzleItem
{	
    Inventory.MaxAmount 1		
    -INVENTORY.INVBAR	
}

ACTOR PowerTurboST : PowerSpeed
{
}

ACTOR SteroidsEffect : PowerupGiver
{
	Inventory.MaxAmount 0
	PowerUp.Type "TurboST"
	PowerUp.Duration 10
	+INVENTORY.AUTOACTIVATE
    +INVENTORY.ALWAYSPICKUP
    -INVENTORY.INVBAR
    +INVENTORY.QUIET
}

ACTOR PowerHalfDamage : PowerProtection 
{    
}

ACTOR SteroidsEffect2 : PowerupGiver 
{ 
    Inventory.MaxAmount 0 
    Powerup.Type "HalfDamage" 
    Powerup.Duration 30
	+INVENTORY.AUTOACTIVATE
    +INVENTORY.ALWAYSPICKUP
    -INVENTORY.INVBAR
    +INVENTORY.QUIET 
}