#region Ammo
//$Color 6

//Longhorn

class LonghornAmmo : Ammo replaces GoldWandAmmo
{
	Default
	{
		//$Title Longhorn Bullets (2)
		Tag "Longhorn Bullets";
		Inventory.PickupMessage "Picked up a pair of ''Longhorn'' bullets.";
		Inventory.PickupSound "Longhorn/Ammo";
		Inventory.Amount 2;
		Inventory.MaxAmount 40;
		Ammo.BackpackAmount 8;
		Ammo.BackpackMaxAmount 80;
		Inventory.Icon "LGHAC0";
		Scale 0.9;
	}
	
	override void PostBeginPlay()
	{
		if(!bDROPPED && random(0,75) == 0)
		{
			A_DropItem("LonghornStratGiver",-1,256);
		}
		Super.PostBeginPlay();
		Return;
	}
	
	States
	{
	Spawn:
		LGHA A -1;
		Loop;
	}
}

class LonghornBox : LonghornAmmo replaces GoldWandHefty
{
	Default
	{
		//$Title Longhorn Cylinder (12)
		Tag "Longhorn Cylinder";
		Inventory.PickupMessage "Picked up a ''Longhorn'' cylinder, and a few spare bullets.";
		Inventory.PickupSound "Longhorn/Ammo";
		Inventory.Amount 12;
		Scale 0.7;
	}
	
	States
	{
	Spawn:
		LGHA B -1;
		Loop;
	}
}

//Strucker
class ShotgunAmmo : Ammo replaces CrossbowAmmo
{
	Default
	{
		//$Title Strucker Shells (6)
		Tag "Shotgun Shells";
		Inventory.PickupMessage "Picked up a fistful of shotgun shells.";
		Inventory.PickupSound "Strucker/Ammo";
		Inventory.Amount 6;
		Inventory.MaxAmount 150;
		Ammo.BackpackAmount 30;
		Ammo.BackpackMaxAmount 300;
		Inventory.Icon "STRAC0";
		Scale 0.9;
	}
	
	States
	{
	Spawn:
		STRA A 0 NoDelay A_Jump(256,"SpriteA","SpriteE","SpriteF","SpriteG");
	SpriteA:
		STRA A -1;
		Stop;
	SpriteE:
		STRA E -1;
		Stop;
	SpriteF:
		STRA F -1;
		Stop;
	SpriteG:
		STRA G -1;
		Stop;
	}
}

class ShotgunBandolier : ShotgunAmmo replaces CrossbowHefty
{
	Default
	{
		//$Title Strucker Shell Box (30)
		Tag "Shotgun Shellbox";
		Inventory.PickupMessage "Obtained contents of a shotgun shell box.";
		Inventory.PickupSound "Strucker/Ammo";
		Inventory.Amount 30;
		Scale 1.0;
	}
	
	States
	{
	Spawn:
		STRA B -1;
		Loop;
	}
}

//Pulverizer
class PulverizerAmmo : Ammo replaces BlasterAmmo
{
	Default
	{
		//$Title Pulverizer Bullets (20)
		Tag "Pulverizer Drum";
		Inventory.PickupMessage "Picked up a drum of ''Pulverizer'' bullets.";
		Inventory.PickupSound "Pulverizer/Ammo";
		Inventory.Amount 20;
		Inventory.MaxAmount 400;
		Ammo.BackpackAmount 60;
		Ammo.BackpackMaxAmount 800;
		Inventory.Icon "PVGAC0";
		Scale 0.75;
	}
	
	States
	{
	Spawn:
		PVGA A -1;
		Loop;
	}
}

class PulverizerBox : PulverizerAmmo replaces BlasterHefty
{
	Default
	{
		//$Title Pulverizer Ammo Box (80)
		Tag "Pulverizer Ammo Box";
		Inventory.PickupMessage "Picked up a box of ''Pulverizer'' bullets.";
		Inventory.PickupSound "Pulverizer/Ammo";
		Inventory.Amount 80;
		Scale 1.0;
	}
	
	States
	{
	Spawn:
		PVGA B -1;
		Loop;
	}
}

//Matriarch
class MatriarchAmmo : Ammo
{
	Default
	{
		//$Title Matriarch Slugs (3)
		Tag "Matriarch Slugs";
		Inventory.PickupMessage "Picked up a bunch of ''Matriarch'' slugs.";
		Inventory.PickupSound "Matriarch/Ammo";
		Inventory.Amount 3;
		Inventory.MaxAmount 50;
		Ammo.BackpackAmount 9;
		Ammo.BackpackMaxAmount 100;
		Inventory.Icon "WINAD0";
		Scale 0.7;
	}
	
	States
	{
	Spawn:
		WINA A -1;
		Loop;
	}
}

class MatriarchBox : MatriarchAmmo
{
	Default
	{
		//$Title Matriarch Slug Box (12)
		Tag "Box of Matriarch Slugs";
		Inventory.PickupMessage "Picked up a box of ''Matriarch'' slugs.";
		Inventory.PickupSound "Matriarch/Ammo";
		Inventory.Amount 12;
		Scale 0.9;
	}
	
	States
	{
	Spawn:
		WINA B -1;
		Loop;
	}
}

class Phoenix_Giver : RandomSpawner replaces PhoenixRodAmmo
{
	Default
	{
		DropItem "MatriarchAmmo", 255, 3;
		DropItem "TNTAmmo", 255, 1;
	}
}

class PhoenixHefty_Giver : RandomSpawner replaces PhoenixRodHefty
{
	Default
	{
		Dropitem "MatriarchBox", 255, 3;
		Dropitem "TNTBox", 255, 1;
	}
}

//Dynamite
class TNTAmmo : Ammo replaces ArtiTimeBomb
{
	Default
	{
		//$Title TNT Bundle (1)
		Tag "Bundle of TNT";
		Inventory.PickupMessage "Picked up a bundle of TNT.";
		Inventory.PickupSound "TNT/Pick";
		Inventory.Amount 1;
		Inventory.MaxAmount 15;
		Ammo.BackpackAmount 3;
		Ammo.BackpackMaxAmount 30;
		Inventory.Icon "DYNAA0";
	}
	
	override void PostBeginPlay()
	{
		if(!bDROPPED && random(0,70) == 0)
		{
			A_DropItem("DynamiteStratGiver",-1,256);
		}
		Super.PostBeginPlay();
		Return;
	}
	
	States
	{
	Spawn:
		DYNG X -1;
		Loop;
	}
}

class TNTBox : TNTAmmo
{
	Default
	{
		//$Title TNT Crate (5)
		Tag "TNT Crate";
		Inventory.PickupMessage "Picked up a box of TNT.";
		Inventory.Amount 5;
	}
	
	States
	{
	Spawn:
		DYNB A -1;
		Loop;
	}
}

//Augur
class AugurAmmo : Ammo replaces SkullrodAmmo
{
	Default
	{
		//$Title Augur Shell (1)
		Tag "Augur Shell";
		Inventory.PickupMessage "Picked up an ''Augur'' shell.";
		Inventory.PickupSound "Augur/Ammo";
		Inventory.Amount 1;
		Inventory.MaxAmount 16;
		Ammo.BackpackAmount 2;
		Ammo.BackpackMaxAmount 32;
		Inventory.Icon "JEFAC0";
		Scale 0.9;
	}
	
	States
	{
	Spawn:
		JEFA A -1;
		Loop;
	}
}

class AugurBox : AugurAmmo replaces SkullrodHefty
{
	Default
	{
		//$Title Augur Magazine (4)
		Tag "Augur Magazine";
		Inventory.PickupMessage "Picked up an ''Augur'' magazine.";
		Inventory.PickupSound "Augur/Ammo";
		Inventory.Amount 4;
		Scale 0.8;
	}
	
	States
	{
	Spawn:
		JEFA B -1;
		Loop;
	}
}

//Dreadful
class TiberiumAmmo : Ammo
{
	Default
	{
		//$Title Tiberium Canister (1)
		Tag "Tiberium Canister";
		Inventory.PickupMessage "Picked up an ''Old Dreadful'' liquid tiberium canister.";
		Inventory.PickupSound "Dreadful/Ammo";
		Inventory.Amount 1;
		Inventory.MaxAmount 8;
		Ammo.BackpackAmount 1;
		Ammo.BackpackMaxAmount 16;
		Inventory.Icon "TIBAC0";
	}
	
	States
	{
	Spawn:
		TIBA A -1;
		Loop;
	}
}

class TiberiumAmmoHeretic : RandomSpawner replaces MaceAmmo
{
	Default
	{
		Dropitem "TiberiumAmmo", 255, 5;
		Dropitem "TiberiumBomb", 255, 1;
	}
}

class TiberiumBloat : TiberiumAmmo replaces MaceHefty
{
	Default
	{
		//$Title Tiberium Tank (3)
		Tag "Tiberium Tank";
		Inventory.PickupMessage "Picked up a tank of ''Old Dreadful'' liquid tiberium.";
		Inventory.PickupSound "Dreadful/Ammo";
		Inventory.Amount 3;
	}
	
	States
	{
	Spawn:
		TIBA B -1;
		Loop;
	}
}

#endregion
