12 lines
286 B
Text
12 lines
286 B
Text
///use_item_in_inventory(slot)
|
|
|
|
var slotno = argument0;
|
|
var count = obj_inv_controller.inventoryCount[slot];
|
|
count--;
|
|
obj_inv_controller.inventoryCount[slot] = count;
|
|
if(count <= 0)
|
|
{
|
|
obj_inv_controller.inventory[slot] = 0;
|
|
obj_inv_controller.inventoryCount[slot] = 0;
|
|
}
|
|
|