Feat/2 weapons foundation #6

Merged
Dotts merged 30 commits from feat/2-weapons-foundation into main 2026-06-04 22:22:16 -07:00
Showing only changes of commit dcd0df2b2c - Show all commits
+6 -1
View File
@@ -147,7 +147,12 @@ func _shoot_hitscan() -> void:
result.collider.take_damage(damage, result.position, player)
# Add this hit to exclude so next loop goes through it
query.exclude.append(result.rid)
var exc = query.exclude
exc.append(result.rid)
# If the collider has multiple shapes, we should really exclude the whole collision object
# but RID of the body should be enough.
query.exclude = exc
hits_remaining -= 1
current_damage_mult *= penetration_damage_penalty