Add terrain hit effects, progressive damage component, and update collectable signals

This commit is contained in:
2025-05-29 01:00:19 +02:00
parent 37b96c0f11
commit 26af7a591d
29 changed files with 406 additions and 22 deletions

View File

@@ -19,7 +19,8 @@ func _ready() -> void:
collectable.collected.connect(on_collected)
func on_collected(amount: int, type: CollectableResource.CollectableType) -> void:
func on_collected(amount: int, type: CollectableResource.CollectableType, _body: Node2D) -> void:
if type != requirement_type:
return
add_progress(amount)