Methods
LightInventory:addItem(item: string|Item, ignore_dark: boolean?)
@param ignore_dark — Whether to add the item to this inventory even if it is a Dark item
Arguments:
| item: string|Item | The Item class represents all types of item in Kristal. |
| ignore_dark: boolean? | Whether to add the item to this inventory even if it is a Dark item |
Returns:
| 1: Item|nil |
LightInventory:getDefaultStorage(item_type: string|Item)
Arguments:
| item_type: string|Item | The Item class represents all types of item in Kristal. |
Returns:
| storage: table |
LightInventory:tryGiveItem(item: string|Item, ignore_dark: boolean?)
@param ignore_dark — Whether to add the item to this inventory even if it is a Dark 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_dark: boolean? | Whether to add the item to this inventory even if it is a Dark item |
Returns:
| success: boolean | Whether the item was successfully picked up |
| result_text: string | The text that should be displayed |
Fields
Undocumented
LightInventory.convert_order: table
Order the storages are converted to the dark world
LightInventory.storage_enabled: boolean
Never true for the light world, as Undertale doesnt use storage fallback but temporarily set to true during item conversion (to overflow to storage)
LightInventory.storage_for_type: table
Oops ! All "items"