Basic recipe
This commit is contained in:
parent
4bae29f29f
commit
11d928c4f3
9 changed files with 59 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue