ajout de 3 nouvelles plantes : ferno, philea et solita #93
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user