diff options
author | nokoe <nokoe@mailbox.org> | 2025-10-06 20:12:13 +0200 |
---|---|---|
committer | nokoe <nokoe@mailbox.org> | 2025-10-06 20:13:30 +0200 |
commit | fc4de182fa5c9afca17069f09f362109c0a957a2 (patch) | |
tree | 9e8c35475dfc1c9e26e9ac8d235983d4026a4888 /client/map/items/plate.gd | |
parent | a251cf726551935b59072ffc01b87876968715c2 (diff) | |
download | hurrycurry-fc4de182fa5c9afca17069f09f362109c0a957a2.tar hurrycurry-fc4de182fa5c9afca17069f09f362109c0a957a2.tar.bz2 hurrycurry-fc4de182fa5c9afca17069f09f362109c0a957a2.tar.zst |
allow every item to have contents
Diffstat (limited to 'client/map/items/plate.gd')
-rw-r--r-- | client/map/items/plate.gd | 5 |
1 files changed, 3 insertions, 2 deletions
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") |