ACTOR Dosh : Ammo
{
	Height 24
	Radius 36
	Inventory.Amount 1
	Inventory.MaxAmount 99999
	Ammo.BackpackAmount 0
	Ammo.BackpackMaxAmount 99999
	Inventory.PickupMessage ""
	Inventory.PickupSound ""
	Inventory.PickupFlash None
	Inventory.Icon "MONEY"
	+INVENTORY.NOSCREENFLASH
	+INVENTORY.IGNORESKILL
	+DONTGIB
	Tag "Gold"
}

Actor DoshPickup : CustomInventory
{
	Height 24
	Radius 36
	Inventory.PickupMessage ""
	Inventory.PickupSound ""
	+INVENTORY.AUTOACTIVATE
	+INVENTORY.NOSCREENFLASH
	+INVENTORY.IGNORESKILL
	+DONTGIB
	Tag "Gold"
	States
	{
		Spawn:
			TNT1 A -1
			Stop
		Pickup:
			TNT1 A 0 A_JumpIfInventory("Dosh",0,"Nope")
			TNT1 A 0 A_PlaySound("Money/Pickup")
			TNT1 A 0 A_Jump(256, "PickupMain")
		PickupMain:
			TNT1 A 0 A_GiveInventory("Dosh",1)
			Stop
		Nope:
			TNT1 A 0
			Fail
	}
}


ACTOR Dosh1 : DoshPickup
{
	States
	{
	Spawn:
		TNT1 AA 0 A_Jump(256,"SpriteA","SpriteB")
	SpriteA:
		DOSH A -1
		Stop
	SpriteB:
		DOSH B -1
		Stop
	PickupMain:
		TNT1 A 0 A_GiveInventory("Dosh",1)
		Stop
	}
}

ACTOR Dosh5 : DoshPickup
{
	States
	{
	Spawn:
		DOSH C -1
		Stop
	PickupMain:
		TNT1 A 0 A_GiveInventory("Dosh",5)
		Stop
	}
}

ACTOR Dosh10 : DoshPickup
{
	States
	{
	Spawn:
		DOSH D -1
		Stop
	Pickup:
		TNT1 A 0 A_JumpIfInventory("Dosh",0,"Nope")
		TNT1 A 0 A_PlaySound("Money/Pickup")
		TNT1 A 0 A_GiveInventory("Dosh",random(10,15))
		Stop
	}
}

ACTOR Dosh25 : DoshPickup
{
	States
	{
	Spawn:
		CBAG A -1
		Stop
	PickupMain:
		TNT1 A 0 A_GiveInventory("Dosh",random(25,35))
		Stop
	}
}

ACTOR Dosh35 : DoshPickup
{
	States
	{
	Spawn:
		DOSH E -1
		Stop
	PickupMain:
		TNT1 A 0 A_GiveInventory("Dosh",random(35,45))
		Stop
	}
}

ACTOR Amber : Dosh
{
	Inventory.PickupSound "Gem/Pickup"
	Inventory.PickupMessage "Obtained an amber. (worth 50 gold pieces)"
	Ammo.DropAmount 50
	Inventory.Amount 50
	-INVENTORY.NOSCREENFLASH
	Scale 1
	States
	{
	Spawn:
	GEMS A -1
	Stop
	}
}

ACTOR Ruby : Dosh
{
	Inventory.PickupSound "Gem/Pickup"
	Inventory.PickupMessage "Obtained a ruby. (worth 100 gold pieces)"
	Ammo.DropAmount 100
	Inventory.Amount 100
	-INVENTORY.NOSCREENFLASH
	Scale 1
	States
	{
	Spawn:
	GEMS C -1
	Stop
	}
}

ACTOR Emerald : Dosh
{
	Inventory.PickupSound "Gem/Pickup"
	Inventory.PickupMessage "Obtained an emerald. (worth 250 gold pieces)"
	Ammo.DropAmount 250
	Inventory.Amount 250
	-INVENTORY.NOSCREENFLASH
	Scale 1
	States
	{
	Spawn:
	GEMS B -1
	Stop
	}
}

ACTOR Sapphire : Dosh
{
	Inventory.PickupSound "Gem/Pickup"
	Inventory.PickupMessage "Obtained a sapphire. (worth 400 gold pieces!)"
	Ammo.DropAmount 400
	Inventory.Amount 400
	-INVENTORY.NOSCREENFLASH
	Scale 1
	States
	{
	Spawn:
	GEMS D -1
	Stop
	}
}

ACTOR Diamond : Dosh
{
	Inventory.PickupSound "Gem/Pickup"
	Inventory.PickupMessage "Obtained a diamond! (worth whopping 1000 gold pieces!)"
	Ammo.DropAmount 1000
	Inventory.Amount 1000
	-INVENTORY.NOSCREENFLASH
	Scale 1
	States
	{
	Spawn:
	GEMS E -1
	Stop
	}
}