fix gathering depositing distance and tweak audio import

This commit is contained in:
2024-10-21 15:55:14 +10:00
parent 737e1c7530
commit 16463f9980
4 changed files with 7 additions and 4 deletions

View File

@@ -237,7 +237,10 @@ func _on_nav_agent_navigation_finished() -> void:
if state == State.PICKING_UP:
_pick_up()
if state == State.DEPOSITING:
if (
state == State.DEPOSITING
and global_position.distance_to(_unit.anthill.global_position) < 1
):
_deposit()