ACTOR Salvationsphere : PuzzleItem
{
  Inventory.PickupSound "Powerup/Salvation"
  Inventory.PickupMessage "Salvation Sphere!"
  Inventory.Icon SLVSZ0
  Inventory.Amount 1
  Inventory.MaxAmount 1
  Renderstyle Add
  Tag "Salvation Sphere - Automatically teleports the player to start when at critical health"
  +INVENTORY.ALWAYSPICKUP
  +INVENTORY.FANCYPICKUPSOUND
  +INVBAR
  +COUNTITEM
  +FLOATBOB
  -FLOAT
  States
   {
	Spawn:
	 TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
     SLVS AAAAAABBBBBB 1 Bright A_SpawnItem("BlueSphereFlare",0,38)
	 TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
     SLVS CCCCCCDDDDDD 1 Bright A_SpawnItem("BlueSphereFlare",0,38)
	 TNT1 A 0 A_CustomMissile ("BlueSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
     SLVS CCCCCCBBBBBB 1 Bright A_SpawnItem("BlueSphereFlare",0,38)
     Loop
   }
}

actor Salvate : ArtiTeleport
{
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.ALWAYSPICKUP
}