Added Itemsmanager

Items now can be stored. I wanna kill myself
This commit is contained in:
Nikolai Fesenko
2025-08-18 20:31:52 +02:00
parent 7ba255334d
commit e4667a3a47
25 changed files with 233 additions and 49 deletions

View File

@@ -11,15 +11,4 @@ func _ready() -> void:
func _on_interact(person, object):
object.ActionNode.start_action(person, object)
func give_item(person, item_id):
var item = get_item_form_id(item_id)
person.hold_item(item)
func get_item_form_id(id):
match id:
0:
return food_item
print(object)