From a12b46e64c41324e97a5cda35a84673a9d6f6c77 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 22 Apr 2024 01:00:14 +0200 Subject: [PATCH] Get rid of `FallTimer`s --- entities/imp.tscn | 6 ------ entities/sheep.tscn | 6 ------ 2 files changed, 12 deletions(-) diff --git a/entities/imp.tscn b/entities/imp.tscn index 9945124..70e2a7a 100644 --- a/entities/imp.tscn +++ b/entities/imp.tscn @@ -101,10 +101,6 @@ alternative_priority = 50 shape = SubResource("CircleShape2D_50iad") debug_color = Color(1, 1, 1, 0) -[node name="FallTimer" type="Timer" parent="MovementDrag"] -wait_time = 0.5 -one_shot = true - [node name="Eater" parent="." instance=ExtResource("14_w2h8x")] acceptable_diets = Array[StringName]([&"Meat"]) @@ -126,7 +122,6 @@ debug_color = Color(1, 0, 0, 0) [connection signal="target_changed" from="MovementHunt/TrackerMeat/TargetPicker" to="MovementHunt" method="set_target" unbinds=1] [connection signal="target_changed" from="MovementHunt/TrackerMeat/TargetPicker" to="MovementHunt/TrackerMeat/TargetPicker" method="sample_target_if_null" unbinds=2] [connection signal="dragged" from="MovementDrag" to="MovementDrag/DragPriority" method="priority_alternative" unbinds=1] -[connection signal="dropped" from="MovementDrag" to="MovementDrag/FallTimer" method="start"] [connection signal="fallen" from="MovementDrag" to="MovementDrag/DragPriority" method="priority_default"] [connection signal="move" from="MovementDrag" to="." method="_on_move"] [connection signal="priority_changed_no_args" from="MovementDrag/DragPriority" to="MovementSampler" method="enable"] @@ -134,5 +129,4 @@ debug_color = Color(1, 0, 0, 0) [connection signal="dragged" from="MovementDrag/Draggable" to="MovementDrag" method="drag"] [connection signal="dropped" from="MovementDrag/Draggable" to="." method="_on_draggable_dropped"] [connection signal="dropped" from="MovementDrag/Draggable" to="MovementDrag" method="drop"] -[connection signal="timeout" from="MovementDrag/FallTimer" to="MovementDrag" method="fall"] [connection signal="eaten" from="Eater" to="." method="_on_eater_eaten"] diff --git a/entities/sheep.tscn b/entities/sheep.tscn index 285e785..e9c22d9 100644 --- a/entities/sheep.tscn +++ b/entities/sheep.tscn @@ -176,10 +176,6 @@ scale = Vector2(3, 3) shape = SubResource("CircleShape2D_c5tcn") debug_color = Color(1, 1, 1, 0) -[node name="FallTimer" type="Timer" parent="MovementDrag"] -wait_time = 0.5 -one_shot = true - [connection signal="ready" from="MovementSampler" to="MovementSampler" method="enable"] [connection signal="move" from="MovementIdle" to="." method="_on_move"] [connection signal="move_disabled" from="MovementIdle" to="MovementIdle/BoredTimer" method="stop"] @@ -206,7 +202,6 @@ one_shot = true [connection signal="untracked" from="MovementRunFromHunter/HunterSense" to="MovementRunFromHunter/HunterSense/TargetPicker" method="clear_if_target"] [connection signal="target_changed" from="MovementRunFromHunter/HunterSense/TargetPicker" to="MovementRunFromHunter" method="set_target" unbinds=1] [connection signal="dragged" from="MovementDrag" to="MovementDrag/DragPriority" method="priority_alternative" unbinds=1] -[connection signal="dropped" from="MovementDrag" to="MovementDrag/FallTimer" method="start"] [connection signal="fallen" from="MovementDrag" to="MovementDrag/DragPriority" method="priority_default"] [connection signal="move" from="MovementDrag" to="." method="_on_move"] [connection signal="move_enabled" from="MovementDrag" to="MovementWander" method="clear_direction"] @@ -215,4 +210,3 @@ one_shot = true [connection signal="dragged" from="MovementDrag/Draggable" to="MovementDrag" method="drag"] [connection signal="dropped" from="MovementDrag/Draggable" to="." method="_on_draggable_dropped"] [connection signal="dropped" from="MovementDrag/Draggable" to="MovementDrag" method="drop"] -[connection signal="timeout" from="MovementDrag/FallTimer" to="MovementDrag" method="fall"]