GunkNode has distinct destroy & collect methods

This commit is contained in:
Rob Kelly 2025-04-06 21:05:39 -06:00
parent 455b12971c
commit 517d903e9c

View File

@ -41,7 +41,13 @@ func _process(_delta: float) -> void:
_hit_this_frame = false
if _sustained_damage >= durability:
destroy()
collect()
## Destroy this node, with the player collecting the grunk value.
func collect() -> void:
Game.manager.collect_grunk(value)
destroy()
## Destroy this node. Called automatically when this node sustains damage beyond its durability.