Basic recipe

This commit is contained in:
Rendo 2025-10-15 09:58:24 +05:00
commit 11d928c4f3
9 changed files with 59 additions and 1 deletions

View file

@ -1,4 +1,4 @@
extends Resource
extends Comparable
## Base unit of manipulated objects
@ -14,3 +14,10 @@ class_name Item
@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