From fc63ac8ce0b6757e4b61a633f93f4f4c27fd7e03 Mon Sep 17 00:00:00 2001 From: tpart Date: Wed, 4 Sep 2024 21:14:33 +0200 Subject: Fix crash on item finished; Clean up code; Update knife model --- client/map/items/item.gd | 2 +- client/map/tiles/knife.res | Bin 5530 -> 5546 bytes client/map/tiles/tile.gd | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/map') diff --git a/client/map/items/item.gd b/client/map/items/item.gd index e67edcca..11914eef 100644 --- a/client/map/items/item.gd +++ b/client/map/items/item.gd @@ -58,7 +58,7 @@ func progress(position_: float, speed: float, warn: bool): # if p >= 1.: # finish(warn) -func finish(_warn: bool): +func finish(): progress_instance.visible = false func setup_sounds(): diff --git a/client/map/tiles/knife.res b/client/map/tiles/knife.res index 77e95cc7..622d9eb3 100644 Binary files a/client/map/tiles/knife.res and b/client/map/tiles/knife.res differ diff --git a/client/map/tiles/tile.gd b/client/map/tiles/tile.gd index 4075593d..be78883e 100644 --- a/client/map/tiles/tile.gd +++ b/client/map/tiles/tile.gd @@ -61,9 +61,9 @@ func progress(position_: float, speed: float, warn: bool): if item != null: item.progress(position_, speed, warn) -func finish(warn: bool): +func finish(): if item != null: - item.finish(warn) + item.finish() func put_item(i: Item): if item != null: -- cgit v1.2.3-70-g09d2