Name | Type | Description |
---|---|---|
kind |
ItemKind | Kind of item (item, weapon, or armor) |
id |
number | The ID of the item |
nb |
number | The occurence of the item in the inventory |
Properties:
Name | Type | Description |
---|---|---|
k |
ItemKind | Kind of item (item, weapon, or armor) |
id |
number | The ID of the item |
nb |
number | The occurence of the item in the inventory |
Methods
-
Find an item in the inventory
Name Type Description kind
ItemKind The kind of item id
number The item ID Returns:
Type Description Object -
Remove item from inventory
Name Type Description nb
number Number of item to remove Returns:
Type Description Object -
Add item in inventory
Name Type Description nb
number Number of item to add Returns:
Type Description Object -
getItemInformations ()SystemCommonSkillItem
-
Get the item informations system
Returns:
Type Description SystemCommonSkillItem -
Modify items only if already in inventory
Name Type Description callback
function callback function for action Returns:
Type Description boolean Indicates if the item is already inside the inventory -
Modify the number of the item
-
Add the number of the item
-
Remove the number of the item
-
Multiply the number of the item
-
Modify the number of the item
-
Modulo the number of the item
-
Use one item and check if the is at least one item left
Returns:
Type Description boolean