From b19eaa5fbf5088faf437288a1fddc422502d0d74 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Sun, 2 Mar 2025 03:36:09 +0100 Subject: [PATCH] small changes --- objects/fire_brick.tscn | 1 + objects/ice_brick.tscn | 1 + scripts/components/damage_component.gd | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/objects/fire_brick.tscn b/objects/fire_brick.tscn index 77ff759..4c3f6bb 100644 --- a/objects/fire_brick.tscn +++ b/objects/fire_brick.tscn @@ -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") diff --git a/objects/ice_brick.tscn b/objects/ice_brick.tscn index 0e094b8..692c4f6 100644 --- a/objects/ice_brick.tscn +++ b/objects/ice_brick.tscn @@ -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") diff --git a/scripts/components/damage_component.gd b/scripts/components/damage_component.gd index 94b22c4..3a47220 100644 --- a/scripts/components/damage_component.gd +++ b/scripts/components/damage_component.gd @@ -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)