extends Comparable ## Base unit of manipulated objects class_name Item ## Name of item that is displayed @export var display_name : StringName ## Preview in UI @export var preview : Texture2D ## Maximum amount of items that can be held in inventory @export var stack_size : int @export var scene : PackedScene func is_equal(to: Comparable) -> bool: if to is Item: return to == self elif to is ItemTag: return self in to.items return false