small changes

This commit is contained in:
2025-03-02 03:36:09 +01:00
parent 590ca23728
commit b19eaa5fbf
3 changed files with 2 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ scale = Vector2(0.8, 0.5)
[node name="DamageComponent" type="Node" parent="." node_paths=PackedStringArray("area2d")]
script = ExtResource("3_sog2h")
damage = 0.1
area2d = NodePath("..")
status_effect_data = ExtResource("4_xx5l4")

View File

@@ -39,6 +39,7 @@ scale = Vector2(0.8, 0.5)
[node name="DamageComponent" type="Node" parent="." node_paths=PackedStringArray("area2d")]
script = ExtResource("3_3yf4g")
damage = 0.05
area2d = NodePath("..")
status_effect_data = ExtResource("4_da7hn")

View File

@@ -29,7 +29,6 @@ func on_area2d_body_entered(body: Node2D) -> void:
if status_effect_data and status_effect_data.effect_type != StatusEffectComponent.EffectType.NONE:
effect_inflicted.emit(body, status_effect_data)
return
deal_damage(health_component)