aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/pot.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-08 13:50:46 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-08 13:50:46 +0200
commit3226addea9b2228ee75b84fc5165771c1935dd99 (patch)
tree5c851120431211ca79a00ddb98f1ff95180c09a0 /client/map/items/pot.gd
parentcd053cb7813160550bd83870c2b23604d147a8bd (diff)
downloadhurrycurry-3226addea9b2228ee75b84fc5165771c1935dd99.tar
hurrycurry-3226addea9b2228ee75b84fc5165771c1935dd99.tar.bz2
hurrycurry-3226addea9b2228ee75b84fc5165771c1935dd99.tar.zst
add item contents
Diffstat (limited to 'client/map/items/pot.gd')
-rw-r--r--client/map/items/pot.gd4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/map/items/pot.gd b/client/map/items/pot.gd
index 2bed6a5c..fb41e3d7 100644
--- a/client/map/items/pot.gd
+++ b/client/map/items/pot.gd
@@ -18,10 +18,12 @@ extends Item
var steam: CPUParticles3D = load("res://map/items/steam.tscn").instantiate()
-func _init(owned_by_: Node3D):
+func _init(owned_by_: Node3D, contents: Array[String]):
super(owned_by_)
add_child(load("res://map/items/pot.tscn").instantiate())
base.add_child(steam)
+ for c in contents:
+ base.add_child(ItemFactory.produce(c, owned_by_))
func progress(position_: float, speed: float, warn: bool):
super(position_, speed, warn)