Class ItemBehaviour
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
[DisallowMultipleComponent]
[RequireComponent(typeof(InteractiveBehaviour))]
[RequireComponent(typeof(AddressableReference))]
[DefaultExecutionOrder(-1)]
public class ItemBehaviour : MonoBehaviour
- Inheritance
-
objectItemBehaviour
Fields
- Container
The container this item is stored IN (e.g. the hero's inventory, a chest, a bag). Set by AddItem(ItemBehaviour, Vector3) / RemoveItem(ItemBehaviour).
- OwnContainer
This item's own inventory container, if this item IS a container (e.g. a bag or chest). Not the same as Container — that tracks where this item is stored.
Properties
- ColorHex
Hex color string for this item's rarity (e.g. "#4D80E6"). Handy for UI mods.
- IsEquipped
Returns true if this item is currently equipped on a character.
- IsWeapon
Returns true if this item is a weapon (has WeaponBehaviour component).