-
Notifications
You must be signed in to change notification settings - Fork 0
ItemDrop.ItemData
Empio edited this page Feb 19, 2021
·
2 revisions
The instance of an item in the inventory of a creature/player. The item will be contained in an ItemDrop when the item is dropped out of the inventory.
Variable | Type | Description |
---|---|---|
m_crafterID | long | The ID of the player who crafted the item. |
m_crafterName | string | The name of the player who crafted the item. |
m_dropPrefab | GameObject | The object that spawns when the item is dropped. |
m_durability | float | How much the item can be used before it needs to be repaired. |
m_equiped | bool | If the item is equipped. |
m_gridPos | Vector2i | The location of the item in the inventory. |
m_lastAttackTime | float | The last time the item was used to attack. |
m_lastProjectile | GameObject | The last projectile that was created by the item. |
m_quality | int | The rank/level of the item. |
m_shared | ItemDrop.ItemData.SharedData | Contains information shared between all instances of the item. |
m_stack | int | The number of items in the stack. |
m_variant | int | Used for different types of the same item. |