diff --git a/Facepunch.Steamworks/Structs/InventoryItem.cs b/Facepunch.Steamworks/Structs/InventoryItem.cs index 7036d1a..4472118 100644 --- a/Facepunch.Steamworks/Structs/InventoryItem.cs +++ b/Facepunch.Steamworks/Structs/InventoryItem.cs @@ -73,12 +73,12 @@ public struct InventoryItem } /// - /// Transfer x quantity from this item to the target item + /// Add x units of the target item to this item /// - public async Task TransferItemQuantity( InventoryItem toItem, int quantity ) + public async Task Add( InventoryItem add, int quantity = 1 ) { var sresult = default( SteamInventoryResult_t ); - if ( !SteamInventory.Internal.TransferItemQuantity( ref sresult, Id, (uint)quantity, toItem.Id ) ) + if ( !SteamInventory.Internal.TransferItemQuantity( ref sresult, add.Id, (uint)quantity, Id ) ) return null; return await InventoryResult.GetAsync( sresult );