aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/basket.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2025-10-06 23:08:19 +0200
committernokoe <nokoe@mailbox.org>2025-10-06 23:08:53 +0200
commit41a176ee24495007131121efcfd19cce4613e40a (patch)
tree93d365460f6139de7713e9ebab427f2d7ef1e7e0 /client/map/items/basket.gd
parent176e6bc6c4c29bea3be2aceca99743b997c76c97 (diff)
downloadhurrycurry-41a176ee24495007131121efcfd19cce4613e40a.tar
hurrycurry-41a176ee24495007131121efcfd19cce4613e40a.tar.bz2
hurrycurry-41a176ee24495007131121efcfd19cce4613e40a.tar.zst
implement add_contents of remaining container items
Diffstat (limited to 'client/map/items/basket.gd')
-rw-r--r--client/map/items/basket.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/map/items/basket.gd b/client/map/items/basket.gd
index 3434727e..df37b5dd 100644
--- a/client/map/items/basket.gd
+++ b/client/map/items/basket.gd
@@ -19,19 +19,20 @@ extends Item
var steam: CPUParticles3D = load("res://map/items/steam.tscn").instantiate()
var bubbles: CPUParticles3D = load("res://map/items/deep_frying.tscn").instantiate()
-func _init(owned_by_: Node3D, contents: Array):
+func _init(owned_by_: Node3D):
super(owned_by_)
add_child(load("res://map/items/basket.tscn").instantiate())
base.add_child(steam)
base.add_child(bubbles)
base.position.z = -.075
+func add_contents(contents: Array[String]):
for i in contents:
match i:
"french-fries":
base.add_child(load("res://map/items/french_fries_basket.tscn").instantiate())
_:
- base.add_child(ItemFactory.produce(i, self))
+ super([i])
func progress(position_: float, speed: float, warn: bool):
super(position_, speed, warn)