diff --git a/src/world/gunk_node/gunk_node.gd b/src/world/gunk_node/gunk_node.gd index 228a494..5f6c074 100644 --- a/src/world/gunk_node/gunk_node.gd +++ b/src/world/gunk_node/gunk_node.gd @@ -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.