summaryrefslogtreecommitdiff
path: root/client/map/items/tomato.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-06-24 18:21:51 +0200
committermetamuffin <metamuffin@disroot.org>2024-06-24 18:21:51 +0200
commit28077fda347b7aaf5cc482409164a93d85e9a4dc (patch)
tree38d8aa8ddcfa974fc3ca70550015d9a90f6203d2 /client/map/items/tomato.gd
parente72b9cc631290ec2d3d8d3cc9451d6dced9f984a (diff)
parent9905a63865545ef118bd6e2d0ce1b290f307bf81 (diff)
downloadhurrycurry-28077fda347b7aaf5cc482409164a93d85e9a4dc.tar
hurrycurry-28077fda347b7aaf5cc482409164a93d85e9a4dc.tar.bz2
hurrycurry-28077fda347b7aaf5cc482409164a93d85e9a4dc.tar.zst
Merge branch 'master' of https://codeberg.org/metamuffin/undercooked
Diffstat (limited to 'client/map/items/tomato.gd')
-rw-r--r--client/map/items/tomato.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/map/items/tomato.gd b/client/map/items/tomato.gd
index 989e4a54..43e2e64d 100644
--- a/client/map/items/tomato.gd
+++ b/client/map/items/tomato.gd
@@ -16,6 +16,18 @@
class_name Tomato
extends Item
+var cut: CPUParticles3D = load("res://map/items/cut.tscn").instantiate()
+
func _init(owned_by_: Node3D):
super(owned_by_)
base.add_child(load("res://map/items/tomato.tscn").instantiate())
+ base.add_child(cut)
+ cut.color = Color(1., 0., 0.)
+
+func progress(p: float, warn: bool):
+ super(p, warn)
+ cut.emitting = true
+
+func finish(warn: bool):
+ super(warn)
+ cut.emitting = false