Methods
DarkInventory:addItem(item: string|Item, ignore_light: boolean?)
@param ignore_light
— Whether to add the item to this inventory even if it is a Light item
Arguments:
item: string|Item | The Item class represents all types of item in Kristal. |
ignore_light: boolean? | Whether to add the item to this inventory even if it is a Light item |
Returns:
1: Item|nil |
DarkInventory:tryGiveItem(item: string|Item, ignore_light: boolean?)
@param ignore_light
— Whether to add the item to this inventory even if it is a Light item
@return success
— Whether the item was successfully picked up
@return result_text
— The text that should be displayed
Arguments:
item: string|Item | The Item class represents all types of item in Kristal. |
ignore_light: boolean? | Whether to add the item to this inventory even if it is a Light item |
Returns:
success: boolean | Whether the item was successfully picked up |
result_text: string | The text that should be displayed |