From cd2e7522b518ab208d1827a0ddacfcab2a86227d Mon Sep 17 00:00:00 2001 From: KirbyKidJ <70983335+KirbyKid256@users.noreply.github.com> Date: Mon, 22 Sep 2025 21:51:48 -0700 Subject: [PATCH] Renamed `CrouchShape` to `SmallCrouchShape` Easier to search for on VSC --- Scenes/Prefabs/Entities/Player.tscn | 6 +++--- Scripts/Classes/Entities/Player.gd | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Scenes/Prefabs/Entities/Player.tscn b/Scenes/Prefabs/Entities/Player.tscn index 6081579..923a7db 100644 --- a/Scenes/Prefabs/Entities/Player.tscn +++ b/Scenes/Prefabs/Entities/Player.tscn @@ -1043,7 +1043,7 @@ mode = 1 resource_json = ExtResource("10_xy8gq") metadata/_custom_type_script = "uid://cbal8ms2oe1ik" -[node name="CrouchCollision" type="CollisionPolygon2D" parent="." groups=["SmallCollisions"]] +[node name="SmallCrouchCollision" type="CollisionPolygon2D" parent="." groups=["SmallCollisions"]] visible = false polygon = PackedVector2Array(4, -2, 4, -8, 1, -11, -1, -11, -4, -8, -4, -2, -2, 0, 2, 0) one_way_collision = true @@ -1100,14 +1100,14 @@ hit_from_inside = true collision_layer = 0 collision_mask = 4 -[node name="CrouchShape" type="CollisionShape2D" parent="BlockCollision" node_paths=PackedStringArray("link") groups=["SmallCollisions"]] +[node name="SmallCrouchShape" type="CollisionShape2D" parent="BlockCollision" node_paths=PackedStringArray("link") groups=["SmallCollisions"]] visible = false position = Vector2(0, -12.75) shape = SubResource("RectangleShape2D_fqdtv") debug_color = Color(1, 0, 0, 0.419608) script = ExtResource("21_jl70t") offset = Vector2(0, 10.5) -link = NodePath("../../CrouchCollision") +link = NodePath("../../SmallCrouchCollision") [node name="SmallShape" type="CollisionShape2D" parent="BlockCollision" node_paths=PackedStringArray("link") groups=["SmallCollisions"]] visible = false diff --git a/Scripts/Classes/Entities/Player.gd b/Scripts/Classes/Entities/Player.gd index 7a49178..a5b16dc 100644 --- a/Scripts/Classes/Entities/Player.gd +++ b/Scripts/Classes/Entities/Player.gd @@ -440,7 +440,7 @@ func handle_power_up_states(delta) -> void: var big_crouch := power_state.hitbox_size == "Big" and crouching for i in get_tree().get_nodes_in_group("SmallCollisions"): if i.owner == self: - if i.name.begins_with("Crouch"): + if i.name.begins_with("SmallCrouch"): i.set_deferred("disabled", power_state.hitbox_size == "Small" and !crouching) else: i.set_deferred("disabled", small_crouch or power_state.hitbox_size == "Big" and !crouching)