ajout de 3 nouvelles plantes : ferno, philea et solita #93

This commit is contained in:
2025-10-12 20:48:57 +02:00
parent d90d4c5df6
commit 433b3dfd28
24 changed files with 288 additions and 25 deletions

View File

@@ -39,10 +39,10 @@ func use(player : Player, zone : Player.ActionZone) -> bool:
func dig(areas: Array[Area2D], player: Player):
for area in areas :
if area is Plant:
if area and area is Plant:
player.play_sfx("harvest")
area.harvest()
if area is UndergroundLoot:
if area and area is UndergroundLoot:
player.play_sfx("dig")
area.dig()
await player.get_tree().create_timer(USE_INTERVAL).timeout