Damage source and effect fix

This commit is contained in:
Фёдор Веселов 2024-10-06 19:55:42 +05:00
commit c89d93cf24
15 changed files with 52 additions and 34 deletions

View file

@ -1,9 +1,22 @@
[gd_scene load_steps=3 format=3 uid="uid://eegv1qihfv2q"]
[gd_scene load_steps=5 format=3 uid="uid://eegv1qihfv2q"]
[ext_resource type="PackedScene" uid="uid://dy41q1kxray5t" path="res://scenes/entities/plants/peashooter.tscn" id="1_muntu"]
[ext_resource type="Script" path="res://scripts/components/plants/ThreepeaterShooter.cs" id="2_ieami"]
[ext_resource type="Script" path="res://scripts/components/plants/PlantEyesightLimiter.cs" id="3_dqn6w"]
[sub_resource type="SegmentShape2D" id="SegmentShape2D_yb26d"]
[node name="Threepeater" instance=ExtResource("1_muntu")]
[node name="Shooter" parent="." index="3"]
script = ExtResource("2_ieami")
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Eysight" index="1"]
position = Vector2(0, 60)
shape = SubResource("SegmentShape2D_yb26d")
script = ExtResource("3_dqn6w")
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Eysight" index="2"]
position = Vector2(0, -60)
shape = SubResource("SegmentShape2D_yb26d")
script = ExtResource("3_dqn6w")