[Item]|[nil] item = Inventory.at(slot)


Returns the item in the specified slot or nil if the slot is empty

Parameters


slot

integer

The inventory slot

Return Value


item

Item | nil

The item in the specified slot, nil if the slot is empty