// Strength / Weapon Upgrade

ACTOR PowerIDMWeaponLevel2 : PowerWeaponLevel2
{
	Inventory.Icon "BERSA1"
}

ACTOR StrengthSphere : CustomInventory
{
	+COUNTITEM
	+FLOAT
	+FLOATBOB
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	Inventory.PickupMessage "Strength!"
	Inventory.PickupSound "misc/impkup"
	Inventory.PickupAnnouncerEntry "strength"
	Inventory.RespawnTics 3150
	States
	{
	Spawn:
		BERS ABCDCB 6 Bright
		Loop
	Pickup:
		TNT1 A 0 A_GiveInventory("PickupProtection")
		TNT1 A 0 A_Print("\n\n\n\n\nStrength!\n\n\n\nYour weapons are powered up!")
		TNT1 A 0 Healthing(100,100)
		TNT1 A 0 A_GiveInventory("StrengthSphereLevel2")
		TNT1 A 0 A_GiveInventory("StrengthPowerupTrail")
		Stop
	}
}

ACTOR StrengthSphereLevel2 : PowerupGiver
{
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
	-INVENTORY.INVBAR
	Powerup.Type IDMWeaponLevel2
	Powerup.Color "White", 0.125
	Powerup.Duration -30
	States
	{
	Held:
		TNT1 A 945
		TNT1 A 1 A_Playsound("misc/wearoff",CHAN_AUTO)
		Stop
	}
}

ACTOR StrengthPowerupTrail : PowerSpeed
{
	+CLIENTSIDEONLY
	-INVENTORY.INVBAR
	Powerup.Duration -30
	Inventory.Amount 1
	Inventory.MaxAmount 10
	Speed 1.0
}