/*
CREDITS:
Pickup sprite - 3DRealms (Shadow Warrior)
Sounds:
Pickup - Epic Games (UT99)
Use - ID (Quake 2 & Quake 3)
*/

Actor DeadCheck : Inventory //tracks if you died, so it can stop the jet thruster giving... I think?
{
	+INVENTORY.IGNORESKILL
	Inventory.Amount 1
	Inventory.MaxAmount 1
}

ACTOR PowerFlymo : PowerupGiver
{
	Inventory.Amount 1
	powerup.duration -1
	Powerup.Type PowerFlight
	Powerup.Color White 0.00
	Inventory.PickupMessage "I BELIEEVE I CAN FLYYYYYYYY!"
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.ALWAYSPICKUP
}

actor JetThruster : CustomInventory
{
  Tag "Jet Thruster"
  Inventory.PickupMessage "Picked up a jet thruster."
  Inventory.Amount 1
  Inventory.MaxAmount 10
  Inventory.InterHubAmount 10
  Inventory.PickupSound "items/jetthruster"
  Inventory.UseSound "used/jetthruster"
  Inventory.Icon ARTIJET
  +INVENTORY.FANCYPICKUPSOUND
  +INVBAR
  //+COUNTITEM
  states
  {
  Spawn:
	JETT A -1
	Stop
  Use:
	TNT1 A 0 A_GiveInventory("PowerFlymo")
	Stop
  }
}

ACTOR JetBox : CustomInventory
{
   Inventory.PickupSound "items/jetthruster"
   inventory.pickupmessage "Picked up a box of jet thrusters!"
   +INVENTORY.AUTOACTIVATE
   //+INVENTORY.ALWAYSPICKUP
   //+COUNTITEM
   States
   {
   Spawn:
    JETT B -1
    Stop
   Pickup:
    TNT1 A 0 A_JumpIfInventory("JetThruster",10,"Failure")
    TNT1 A 0 A_GiveInventory("JetThruster",10)
    Stop
  Failure:
    TNT1 A 0
    fail
   }
}
