mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-18 07:33:47 +00:00
Fixed healing stations
This commit is contained in:
parent
d4b420052e
commit
f1ddee18c4
9 changed files with 84 additions and 30 deletions
|
|
@ -74,8 +74,8 @@ animation = &"Default"
|
|||
z_index = 2
|
||||
emitting = false
|
||||
amount = 50
|
||||
process_material = SubResource("ParticleProcessMaterial_we5sc")
|
||||
lifetime = 0.8
|
||||
process_material = SubResource("ParticleProcessMaterial_we5sc")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="area_exited" from="." to="." method="_on_area_Exited"]
|
||||
|
|
|
|||
|
|
@ -252,11 +252,13 @@ shape = SubResource("CircleShape2D_7n10g")
|
|||
[node name="Error" type="AudioStreamPlayer2D" parent="InteractionProvider"]
|
||||
stream = ExtResource("24_5tmtw")
|
||||
|
||||
[node name="InteractionController" type="Area2D" parent="."]
|
||||
[node name="InteractionController" type="Area2D" parent="." node_paths=PackedStringArray("Health", "Shield")]
|
||||
visible = false
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
script = ExtResource("27_vwjki")
|
||||
Health = NodePath("../DamageReceiver/HealthProvider")
|
||||
Shield = NodePath("../DamageReceiver/ShieldProvider")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="InteractionController"]
|
||||
shape = SubResource("CircleShape2D_g3wua")
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
using Godot;
|
||||
using System;
|
||||
using Cirno.Scripts.Components.Actors;
|
||||
|
||||
public partial class InteractionController : Area2D
|
||||
{
|
||||
[Export] public ActorResourceProvider Health { get; private set; }
|
||||
[Export] public ActorResourceProvider Shield { get; private set; }
|
||||
|
||||
private bool _enabled = false;
|
||||
|
||||
public bool Enabled
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@
|
|||
[sub_resource type="Resource" id="Resource_6wo78"]
|
||||
script = ExtResource("4_u1i8n")
|
||||
EggIndex = 0
|
||||
StartingEquipment = Array[ExtResource("5_u1i8n")]([])
|
||||
StartingEquipment = []
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rff8l"]
|
||||
size = Vector2(30, 52.5)
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue