Actor EnragedLegendaryAmmoSphere : CustomInventory
{
//$Sprite DEEM
//$Title "Enraged Legendary Ammo Sphere"
+INVBAR
+FLOATBOB
+COUNTITEM
+NOTIMEFREEZE
+INVENTORY.BIGPOWERUP
Inventory.MaxAmount 1
Inventory.Icon "DEEMC0"
Inventory.UseSound "legammo/use"
Inventory.PickupSound "legammo/pickup"
Inventory.PickupMessage "Enraged Legendary Ammo Sphere! Do you like big guns, dont you?"
Tag "Enraged Legendary Ammo Sphere"
States
{
  Spawn:
	TNT1 A 0 NoDelay A_JumpIf(ACS_NamedExecuteWithResult("NexusNoFloat") == 0,2)
	TNT1 A 0 A_ChangeFlag(FLOATBOB,0)
	DEEM AAAA 10 Bright A_CustomMissile("ELegendaryDRuneFlameSpawner",-20,0,random(0,360),CMF_AIMDIRECTION,random(0,360))
	Loop	
  Use:
	TNT1 A 0
	TNT1 AAAAAAAAAA 0 A_GiveInventory("ModdedBackpack",1)
	TNT1 A 0 A_GiveInventory("SpringMine",1)
	TNT1 A 1 A_GiveInventory("EnragedLegInfiniteAmmo",1)
	TNT1 A 0 A_GiveInventory("Backpack")
	Stop
	}
}

Actor EnragedLegInfiniteAmmo : PowerupGiver
{
Inventory.MaxAmount 0
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
Powerup.Duration -65
Powerup.Color Red 0.2
Powerup.Type "PowerInfiniteAmmo"
}