aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/bread.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-14 19:02:47 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-14 19:02:47 +0200
commit721b9ecb282f84839eb096de4d269176f8ab389f (patch)
tree1471e5395f80d9aeb04d19ea00436fe628820456 /client/map/items/bread.gd
parent52f422a01be059a120908a8d1f63335116ccf0e1 (diff)
parent3da43172332caf76e111639281c81916e7202c4b (diff)
downloadhurrycurry-721b9ecb282f84839eb096de4d269176f8ab389f.tar
hurrycurry-721b9ecb282f84839eb096de4d269176f8ab389f.tar.bz2
hurrycurry-721b9ecb282f84839eb096de4d269176f8ab389f.tar.zst
Merge branch 'master' of codeberg.org:hurrycurry/hurrycurry
Diffstat (limited to 'client/map/items/bread.gd')
-rw-r--r--client/map/items/bread.gd13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/map/items/bread.gd b/client/map/items/bread.gd
index b049b450..b5143c53 100644
--- a/client/map/items/bread.gd
+++ b/client/map/items/bread.gd
@@ -16,6 +16,19 @@
class_name Bread
extends Item
+var steam: CPUParticles3D = preload("res://map/items/steam.tscn").instantiate()
+
func _init(owned_by_: Node3D):
super(owned_by_)
base.add_child(load("res://map/items/bread.tscn").instantiate())
+ steam.position.y += .1
+ steam.color = Color(.6, .6, .6, .4)
+ base.add_child(steam)
+
+func progress(p: float, warn: bool):
+ super(p, warn)
+ steam.emitting = warn
+
+func finish(warn: bool):
+ super(warn)
+ steam.emitting = false