removes an item from the inventory (reduces it's count by one...if there is no more, then it goes bye-bye) to remove an object that was added via objhandle, then pass the objhandle in the 'type' parameter, and don't pass in an id.
| 257 | // to remove an object that was added via objhandle, then pass the objhandle |
| 258 | // in the 'type' parameter, and don't pass in an id. |
| 259 | bool dInven_Remove(Inventory *inven, int type, int id) { return inven->Remove(type, id); } |
| 260 | |
| 261 | // uses an item in the inventory (also reduces its count by one...if there is no more, then it goes bye-bye) |
| 262 | bool dInven_Use(Inventory *inven, int type, int id, object *parent) { return inven->Use(type, id, parent); } |