diff options
author | tpart <tpart120@proton.me> | 2024-09-04 21:14:33 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2024-09-04 21:14:33 +0200 |
commit | fc63ac8ce0b6757e4b61a633f93f4f4c27fd7e03 (patch) | |
tree | 353cbf03272028ad5d63c15d6182ea1e67b48806 /client/map | |
parent | 9c953125445760dbf5c0562854caaa0d1866fda9 (diff) | |
download | hurrycurry-fc63ac8ce0b6757e4b61a633f93f4f4c27fd7e03.tar hurrycurry-fc63ac8ce0b6757e4b61a633f93f4f4c27fd7e03.tar.bz2 hurrycurry-fc63ac8ce0b6757e4b61a633f93f4f4c27fd7e03.tar.zst |
Fix crash on item finished; Clean up code; Update knife model
Diffstat (limited to 'client/map')
-rw-r--r-- | client/map/items/item.gd | 2 | ||||
-rw-r--r-- | client/map/tiles/knife.res | bin | 5530 -> 5546 bytes | |||
-rw-r--r-- | client/map/tiles/tile.gd | 4 |
3 files changed, 3 insertions, 3 deletions
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 Binary files differindex 77e95cc7..622d9eb3 100644 --- a/client/map/tiles/knife.res +++ b/client/map/tiles/knife.res 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: |