diff options
author | tpart <tpart120@proton.me> | 2024-09-04 21:04:07 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-04 21:06:41 +0200 |
commit | 9c953125445760dbf5c0562854caaa0d1866fda9 (patch) | |
tree | 98dd3f567d65efc0dcaf8d09dcec7bf84b16fe2e /client/map/items/item.gd | |
parent | 55922742c94d8abca2361377ca616ea5143731c2 (diff) | |
download | hurrycurry-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/item.gd')
-rw-r--r-- | client/map/items/item.gd | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/client/map/items/item.gd b/client/map/items/item.gd index 2d046700..e67edcca 100644 --- a/client/map/items/item.gd +++ b/client/map/items/item.gd @@ -50,12 +50,13 @@ func _process(delta): if p: rotation.y = G.interpolate_angle(rotation.y, owned_by.global_rotation.y, delta * ispeed) else: rotation.y = G.interpolate_angle_closest_quarter(rotation.y, owned_by.global_rotation.y, delta * ispeed) -func progress(p: float, warn: bool): +func progress(position_: float, speed: float, warn: bool): progress_instance.visible = true - progress_instance.set_progress(p, warn) - # this shoukd be removed when the server is fixed - if p >= 1.: - finish(warn) + progress_instance.update(position_, speed, warn) + + # TODO: Fix finish + # if p >= 1.: + # finish(warn) func finish(_warn: bool): progress_instance.visible = false |