Damage rework

This commit is contained in:
Фёдор Веселов 2024-09-25 15:12:56 +05:00
commit 8f66b9e565
2 changed files with 3 additions and 2 deletions

View file

@ -149,7 +149,7 @@ graph_offset = Vector2(-17, -2)
[node name="Zombie" type="Node2D"] [node name="Zombie" type="Node2D"]
script = ExtResource("1_qq3f1") script = ExtResource("1_qq3f1")
_maxHP = 10 _maxHP = 100
[node name="Sprite" type="Sprite2D" parent="."] [node name="Sprite" type="Sprite2D" parent="."]
position = Vector2(0, -44) position = Vector2(0, -44)
@ -167,7 +167,7 @@ shape = SubResource("RectangleShape2D_hxyad")
collision_layer = 0 collision_layer = 0
collision_mask = 2 collision_mask = 2
script = ExtResource("3_2aulo") script = ExtResource("3_2aulo")
_damage = 50 _damage = 10
_animationTree = NodePath("../AnimationTree") _animationTree = NodePath("../AnimationTree")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Eatbox"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Eatbox"]

View file

@ -129,6 +129,7 @@ shape = SubResource("CircleShape2D_v0g5b")
collision_layer = 0 collision_layer = 0
collision_mask = 8 collision_mask = 8
script = ExtResource("3_2hd5y") script = ExtResource("3_2hd5y")
damage = 6000
[node name="CollisionShape2D" type="CollisionShape2D" parent="ExplosionBox" index="0"] [node name="CollisionShape2D" type="CollisionShape2D" parent="ExplosionBox" index="0"]
position = Vector2(0, 9) position = Vector2(0, 9)