//=============================================================================
// 
//=============================================================================
class MMRPGButtonCard extends DeusExDecoration;

var int CreditCost;

function Frob(Actor Frobber, Inventory frobWith)
{
      local MMRPGCreditCard Inv;
      local DeusExPlayer Player;
      Player = DeusExPlayer(Frobber);
		foreach AllActors(class'MMRPGCreditCard', Inv)
		{
			if (Inv.Owner == Player)
			{
				if (Inv.CreditAmount >= CreditCost)
				{

					Super.Frob(Frobber, FrobWith);
					Inv.CreditAmount -= CreditCost;
					Player.ClientMessage(""$CreditCost$" credits deducted from your credit card.");
				}
				else Player.ClientMessage("You do not have enough money");
			}
		}
}

defaultproperties
{
     CreditCost=20
     bInvincible=True
     ItemName="Button"
     bPushable=False
     Physics=PHYS_None
     RemoteRole=ROLE_SimulatedProxy
     Mesh=LodMesh'DeusExDeco.Button1'
     CollisionRadius=2.000000
     CollisionHeight=2.000000
     bCollideWorld=False
     bBlockActors=False
     Mass=5.000000
     Buoyancy=2.000000
}
