From 656fdfc0baf4479fc1e1c30309c763e68e983520 Mon Sep 17 00:00:00 2001 From: tpart Date: Wed, 4 Sep 2024 22:46:42 +0200 Subject: Only emit slice particles while cutting tomato --- client/map/items/tomato.gd | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'client') diff --git a/client/map/items/tomato.gd b/client/map/items/tomato.gd index 082b2b19..65b7fc28 100644 --- a/client/map/items/tomato.gd +++ b/client/map/items/tomato.gd @@ -26,8 +26,4 @@ func _init(owned_by_: Node3D): func progress(position_: float, speed: float, warn: bool): super(position_, speed, warn) - cut.emitting = true - -func finish(): - super() - cut.emitting = false + cut.emitting = speed > 0 -- cgit v1.2.3-70-g09d2