From f1389c16aee688fd7dd67abb56b5e5c83aaf2c1c Mon Sep 17 00:00:00 2001 From: tpart Date: Wed, 4 Sep 2024 21:15:47 +0200 Subject: Fix crash because of incomplete refactor --- client/map/items/bread.gd | 4 ++-- client/map/items/food_processor.gd | 4 ++-- client/map/items/pot.gd | 4 ++-- client/map/items/strawberry.gd | 4 ++-- client/map/items/tomato.gd | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'client/map/items') diff --git a/client/map/items/bread.gd b/client/map/items/bread.gd index d869aeb1..a3c109e1 100644 --- a/client/map/items/bread.gd +++ b/client/map/items/bread.gd @@ -29,6 +29,6 @@ func progress(position_: float, speed: float, warn: bool): super(position_, speed, warn) steam.emitting = warn -func finish(warn: bool): - super(warn) +func finish(): + super() steam.emitting = false diff --git a/client/map/items/food_processor.gd b/client/map/items/food_processor.gd index ad4a6349..4a73cac5 100644 --- a/client/map/items/food_processor.gd +++ b/client/map/items/food_processor.gd @@ -37,8 +37,8 @@ func progress(position_: float, speed: float, warn: bool): -10. ) -func finish(warn: bool): - super(warn) +func finish(): + super() if sound_id != null: processing.emitting = false Sound.item_finished(sound_id) diff --git a/client/map/items/pot.gd b/client/map/items/pot.gd index 7a4fe40b..2bed6a5c 100644 --- a/client/map/items/pot.gd +++ b/client/map/items/pot.gd @@ -31,8 +31,8 @@ func progress(position_: float, speed: float, warn: bool): else: steam.color = Color(1.,1.,1.) -func finish(warn: bool): - super(warn) +func finish(): + super() steam.emitting = false func setup_sounds(): diff --git a/client/map/items/strawberry.gd b/client/map/items/strawberry.gd index e663464f..f2a1165a 100644 --- a/client/map/items/strawberry.gd +++ b/client/map/items/strawberry.gd @@ -28,6 +28,6 @@ func progress(position_: float, speed: float, warn: bool): super(position_, speed, warn) cut.emitting = true -func finish(warn: bool): - super(warn) +func finish(): + super() cut.emitting = false diff --git a/client/map/items/tomato.gd b/client/map/items/tomato.gd index 7ecff374..082b2b19 100644 --- a/client/map/items/tomato.gd +++ b/client/map/items/tomato.gd @@ -28,6 +28,6 @@ func progress(position_: float, speed: float, warn: bool): super(position_, speed, warn) cut.emitting = true -func finish(warn: bool): - super(warn) +func finish(): + super() cut.emitting = false -- cgit v1.2.3-70-g09d2