Item
Part of openmw.types
Usage:
local Item = require('openmw.types').Item
Type types
| types.Item |
#Item functions (all pickable items that can be placed to an inventory or container) |
Type Item
| Item.getEnchantmentCharge(item) |
Get this item's current enchantment charge. |
| Item.objectIsInstance(object) |
Whether the object is an item. |
| Item.setEnchantmentCharge(item, charge) |
Set this item's enchantment charge. |
Type types
Field(s)
- #Item types.Item
-
#Item functions (all pickable items that can be placed to an inventory or container)
Type Item
Functions for pickable items that can be placed to an inventory or container
Field(s)
- Item.getEnchantmentCharge(item)
-
Get this item's current enchantment charge.
Parameter
-
#Item item:
Return value
#number: The charge remaining. -1 if the enchantment has never been used, implying the charge is full. Unenchanted items will always return a value of -1.
-
- Item.objectIsInstance(object)
-
Whether the object is an item.
Parameter
-
openmw.core#GameObject object:
Return value
#boolean:
-
- Item.setEnchantmentCharge(item, charge)
-
Set this item's enchantment charge.
Parameters
-
#Item item: -
#number charge:
-