Function get_inventory_item_charge

Source
pub fn get_inventory_item_charge(pid: u16, index: u16) -> i16
Expand description

Get the charge of the item at a certain index in a player’s latest inventory
changes.

pid The player ID whose inventory changes should be used.
index The index of the inventory item.

Returns the charge.