10 lines
326 B
GDScript
10 lines
326 B
GDScript
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.")
|