// MegaSphere

ACTOR IDMMegasphere : CustomInventory
{
  +FLOAT
  +FLOATBOB
  +COUNTITEM
  +INVENTORY.ALWAYSPICKUP
  Inventory.PickupMessage "Megasphere!"
  Inventory.PickupSound "misc/impkup"
  Inventory.PickupAnnouncerEntry "megasphere"
  Inventory.RespawnTics 2100
  States
  {
  Spawn:
    MEGA ABCD 6 Bright
    Loop
  Pickup:
	TNT1 A 0 A_Print("\n\n\n\n\nMegasphere!\n\n\n\n300 Health & random Heavy Armor!")
	TNT1 A 0 Healthing(300)
	TNT1 A 0 A_GiveInventory("IDMMegaSphereHealth")
 	TNT1 A 0 A_Jump(256,"BlueArmor", "RedArmor", "PurpleArmor")
	Stop
  BlueArmor:
	TNT1 A 0 A_GiveInventory("IDMBlueArmor")
	Stop
  RedArmor:
	TNT1 A 0 A_GiveInventory("IDMRedArmor")
	Stop
  PurpleArmor:
	TNT1 A 0 A_GiveInventory("PurpleArmor")
    Stop
  }
}

ACTOR IDMMegaSphereHealth : Health
{
  Inventory.Amount 300
  Inventory.MaxAmount 300
  +INVENTORY.ALWAYSPICKUP
  -INVENTORY.INVBAR
}