small changes
This commit is contained in:
@@ -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")
|
||||
|
||||
|
@@ -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")
|
||||
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user