class BBallButton extends Button1;


function Frob(Actor Frobber, Inventory frobWith)
{
	local Inventory hmm;
	local Inventory hmm2;

	local Inventory Test;
	local RPGSpawn SpawnObject;
	local MMRPGCreditCard Inv;
	local DeusExPlayer Player;
	Player = DeusExPlayer(Frobber);

	foreach AllActors(class'MMRPGCreditCard', Inv)
	{
		if (Inv.Owner == Player)
		{
			if (Inv.CreditAmount >= 15)
			{
				Inv.CreditAmount -= 15;
				Super.Frob(Frobber, frobwith);
				return;
			}
			else Player.ClientMessage("You do not have enough money!");
		}
	}
}

defaultproperties
{
     ItemName="Purchase"
}
