summaryrefslogtreecommitdiffstats
path: root/src/ItemGrid.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ItemGrid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ItemGrid.h b/src/ItemGrid.h
index c34d5e9e2..6731b0065 100644
--- a/src/ItemGrid.h
+++ b/src/ItemGrid.h
@@ -96,6 +96,9 @@ public:
Returns the total number of items that fit.
*/
int AddItems(cItems & a_ItemStackList, bool a_AllowNewStacks = true, int a_PrioritarySlot = -1);
+
+ /** Remove the specified item with the specified amount from the inventory. Returns the amount from the items were was removed. */
+ int RemoveItem(const cItem & a_ItemStack);
/** Adds (or subtracts, if a_AddToCount is negative) to the count of items in the specified slot.
If the slot is empty, ignores the call.