aboutsummaryrefslogtreecommitdiff
path: root/client/map/items/food_processor.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-09-04 21:04:07 +0200
committertpart <tpart120@proton.me>2024-09-04 21:06:41 +0200
commit9c953125445760dbf5c0562854caaa0d1866fda9 (patch)
tree98dd3f567d65efc0dcaf8d09dcec7bf84b16fe2e /client/map/items/food_processor.gd
parent55922742c94d8abca2361377ca616ea5143731c2 (diff)
downloadhurrycurry-9c953125445760dbf5c0562854caaa0d1866fda9.tar
hurrycurry-9c953125445760dbf5c0562854caaa0d1866fda9.tar.bz2
hurrycurry-9c953125445760dbf5c0562854caaa0d1866fda9.tar.zst
Add new progress protocol; Add knife model; Add knife to cutting board; Add cutting animation; Bump protocol version
Diffstat (limited to 'client/map/items/food_processor.gd')
-rw-r--r--client/map/items/food_processor.gd9
1 files changed, 5 insertions, 4 deletions
diff --git a/client/map/items/food_processor.gd b/client/map/items/food_processor.gd
index 66d78168..ad4a6349 100644
--- a/client/map/items/food_processor.gd
+++ b/client/map/items/food_processor.gd
@@ -23,11 +23,12 @@ func _init(owned_by_: Node3D):
add_child(load("res://map/items/food_processor.tscn").instantiate())
add_child(processing)
-func progress(p: float, warn: bool):
- super(p, warn)
+func progress(position_: float, speed: float, warn: bool):
+ super(position_, speed, warn)
processing.emitting = true
- processing.rotation.y += p * TAU
- base.rotation.y += p * TAU
+ # TODO: Fix animation
+ # processing.rotation.y += p * TAU
+ # base.rotation.y += p * TAU
if sound_id == null:
sound_id = Sound.item_progress(
self,