//Ammo Satchel
ACTOR "NonBrokenAmmoPack" : "AmmoPack " Replaces "AmmoPack "
{
Scale 0.8
Inventory.Amount 1
Inventory.MaxAmount 5
Inventory.InterHubAmount 5
Inventory.PickupSound "pickups/iammosatchel"
Inventory.UseSound "Null"
Inventory.PickupMessage "Ammo Satchel"
Tag "Ammo Satchel"
Inventory.Icon "INASA0"
+INVENTORY.INVBAR
+FLOORCLIP
States
  {
  Spawn:
      ASAT A -1
      Stop
  Use:
      TNT1 A 0 A_JumpIf(ACS_NamedExecuteWithResult("AmmoFull", 0) == 2, "Full")
	  TNT1 A 0 A_PlaySound("ammosatchel/use")
	  TNT1 A 0 A_GiveInventory("BulletMag",20)
	  TNT1 A 0 A_GiveInventory("LegendaryLMGBulletMag",5)
	  TNT1 A 0 A_GiveInventory("LegendaryBulletMag",5)
	  TNT1 A 0 A_GiveInventory("ELegendaryLMGBulletMag",7)
	  TNT1 A 0 A_GiveInventory("ELegendaryLMGBulletMag",0)
	  TNT1 A 0 A_GiveInventory("NewShell",8)
	  TNT1 A 0 A_GiveInventory("LegendaryShell",2)
	  //TNT1 A 0 A_GiveInventory("LegendaryCell",6)
	  TNT1 A 0 A_GiveInventory("EnragedLegendaryShell",4)
	  TNT1 A 0 A_GiveInventory("Missile",4)
	  TNT1 A 0 A_GiveInventory("Gas",10)
	  TNT1 A 0 A_GiveInventory("NewCell",20)
	  TNT1 A 0 A_GiveInventory("DemonAmmo",15)
	  TNT1 A 0 A_GiveInventory("LDemonAmmo",6)
	  TNT1 A 0 A_GiveInventory("ILDemonAmmo",8)
	  //TNT1 A 0 A_GiveInventory("HadesCrystal",10)
	  //TNT1 A 0 A_GiveInventory("AcidAmmo",10)
	  TNT1 A 0 A_GiveInventory("DustMana",10)
	  TNT1 A 0 A_GiveInventory("ProxMines",2)
	  TNT1 A 0 A_GiveInventory("HandGrenadeAmmo",1)
	  TNT1 A 0 A_GiveInventory("MineAmmo",1)
	  Stop
  Full:
      TNT1 A 0
	  Fail
  }
}

//Starting Armor
ACTOR UltraSphereNoAmmo : CustomInventory 32603
{
  Inventory.PickupSound "powerups/ultrasphere"
  Inventory.Pickupmessage "Ultra Sphere"
  +FLOATBOB
  +COUNTITEM
  -INVENTORY.ALWAYSPICKUP
  -FLOAT
  States
  {
  Spawn:
     TNT1 A 0 A_CustomMissile ("PurpleSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360)) 
     ARSP AAAAAABBBBBB 1 Bright A_SpawnItem("PurpleSphereFlare",0,38)
     TNT1 A 0 A_CustomMissile ("PurpleSparkleSpawner", 0, 0, random(0,-360), 2, random(0,360))
     ARSP CCCCCCBBBBBB 1 Bright A_SpawnItem("PurpleSphereFlare",0,38)
    Loop
  Pickup:
    TNT1 A 0 A_GiveInventory("UltraSphereHealth", 1)
    TNT1 A 0 A_GiveInventory("RedArmor", 1)
	TNT1 A 0 A_GiveInventory("UltraSphereToken",1)
    Stop
  }
}

ACTOR UltraSphereToken : Inventory {Inventory.MaxAmount 1}

ACTOR StartingTemporalInvul : PowerupGiver
{
+INVENTORY.AUTOACTIVATE
+INVENTORY.ALWAYSPICKUP
Inventory.MaxAmount 0
Powerup.Duration -7
Powerup.Type "Invulnerable"
Powerup.Mode Reflective
Powerup.Color White 0.15
}