Aura.Channel.World.Inventory.BankInventory.RemoveGold C# (CSharp) Method

RemoveGold() public method

Removes gold to bank, sends update, and returns the new amount.
public RemoveGold ( Creature creature, int amount ) : int
creature Aura.Channel.World.Entities.Creature Creature adding gold (needed for updating)
amount int Amount of gold
return int
		public int RemoveGold(Creature creature, int amount)
		{
			this.Gold -= amount;
			Send.BankUpdateGold(creature, this.Gold);

			return this.Gold;
		}