sfx de minage fonctionnels #109

This commit is contained in:
Nilou 2026-01-11 20:57:43 +01:00
parent 65c6b61c64
commit a3a665118f

View File

@ -33,6 +33,7 @@ func can_use(_player : Player, zone : Player.ActionZone) -> bool:
return false
func use(player : Player, zone : Player.ActionZone) -> bool:
AudioManager.play_sfx("Pickaxe")
for area in zone.get_affected_areas():
if area and area is Plant:
harvest(area, player)