Init commit

This commit is contained in:
2025-02-06 09:56:39 +01:00
commit 8f61ab6c6b
48 changed files with 5511 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
extends Area3D
@export var damage_multiplexer: float = 1.0
@export var body_part: String = ""
signal body_part_hit(damage: int)
func _ready() -> void:
add_to_group("target")
func hit(base_damage: int):
var final_damage = round(base_damage * damage_multiplexer)
body_part_hit.emit(final_damage)