feat: implement consume item behavior (#1098)

* feature: implement consume item behavior

* Cleanup

* tested with skill 456 and fixed some things

* remove logs
This commit is contained in:
Aaron Kimbrell
2023-11-14 19:38:52 -06:00
committed by GitHub
parent 8a9883c224
commit 8cd5bf7b8d
6 changed files with 63 additions and 22 deletions

View File

@@ -118,8 +118,9 @@ public:
* @param count the number of items to remove
* @param inventoryType optional inventory type to remove the item from
* @param ignoreBound ignores bound items
* @param silent silently remove the item
*/
void RemoveItem(LOT lot, uint32_t count, eInventoryType inventoryType = INVALID, bool ignoreBound = false);
bool RemoveItem(LOT lot, uint32_t count, eInventoryType inventoryType = INVALID, bool ignoreBound = false, bool silent = false);
/**
* Moves an existing item to an inventory of the entity