Add logic to convert item to other

This commit is contained in:
JonShard
2026-07-14 15:38:01 +02:00
parent 6dbade14a2
commit 32f4b92983
8 changed files with 206 additions and 24 deletions
+9
View File
@@ -0,0 +1,9 @@
class_name CookableItem
extends Node
@export_range(0.0, 30.0, 0.5, "or_greater", "suffix:s") var cooking_time: float = 4.0
@export var turns_into: PackedScene
func _ready() -> void:
if not turns_into:
push_error("Cooking Error: 'turns_into' PackedScene is missing on ", name, ". Please assign a scene in the Inspector.")