From fc4de182fa5c9afca17069f09f362109c0a957a2 Mon Sep 17 00:00:00 2001 From: nokoe Date: Mon, 6 Oct 2025 20:12:13 +0200 Subject: allow every item to have contents --- client/map/items/plate.gd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/map/items/plate.gd') diff --git a/client/map/items/plate.gd b/client/map/items/plate.gd index d6df1c46..b4ae8baf 100644 --- a/client/map/items/plate.gd +++ b/client/map/items/plate.gd @@ -16,10 +16,11 @@ class_name Plate extends Item -func _init(owned_by_: Node3D, contents: Array): +func _init(owned_by_: Node3D): super(owned_by_) add_child(load("res://map/items/plate.tscn").instantiate()) - + +func add_contents(contents: Array[String]): # Custom logic for handling burgers with buns on bottom and top if contents.has("sliced-bun") and contents.size() > 1: contents.erase("sliced-bun") -- cgit v1.2.3-70-g09d2