Actor LegendaryRandomSphere : CustomInventory
{
  Inventory.PickupMessage "Legendary Random Sphere!"
  Inventory.PickupSound "legendarycrystal/take"
  Inventory.Icon "LRANZ0"
  Inventory.MaxAmount 1
  Renderstyle Add
  +INVBAR
  +COUNTITEM
  +INVENTORY.BIGPOWERUP
  +NOTIMEFREEZE
  +FLOAT
  +FLOATBOB
  States
  {
  Spawn:
	TNT1 AA 0 Bright A_CustomMissile("YellowSparkleSpawner",0,0,random(0,-360),2,random(0,360))
	LRAN A 5 Bright A_CustomMissile("LegendarySphereFlameSpawner",-20,0,random(0,-360),2,random(0,360))
	Loop
  Use:
	TNT1 A 0
	TNT1 A 1 ACS_NamedExecutealways("LegendaryRandomSphere",0)
	Stop  
	}
}