/// <summary> /// Implementação de <see cref="IInventory.Remove(int, int)"/> /// </summary> public void Remove(int uid, int amount) { InventoryItems.ForEach(o => { if (o.UniqueID == uid) { var newAmount = o.GetAttributeValue <int>(Attribute.AMOUNT) - 1; o.SetAttributeValue(Attribute.AMOUNT, newAmount.ToString()); } }); GameUI.RefreshInventory(); }