From 2d520a708fc1b04c422be6d08385b4a5289a922b Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Sun, 31 Aug 2025 03:01:24 +0200 Subject: [PATCH] Add SkillManager node to village levels and update references --- objects/entities/brick_player.tscn | 7 ++++--- scenes/level_village_1.tscn | 3 +++ scenes/level_village_4.tscn | 3 +++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/objects/entities/brick_player.tscn b/objects/entities/brick_player.tscn index 82ccaa9..abe19d3 100644 --- a/objects/entities/brick_player.tscn +++ b/objects/entities/brick_player.tscn @@ -25,7 +25,6 @@ [ext_resource type="Script" uid="uid://cecelixl41t3j" path="res://scripts/components/InvulnerabilityComponent.cs" id="15_xuhvf"] [ext_resource type="Script" uid="uid://dvyd26ricriql" path="res://scripts/components/FlashingComponent.cs" id="16_uno3u"] [ext_resource type="Script" uid="uid://dtg6115je7b5s" path="res://scripts/components/StompDamageComponent.cs" id="17_bl1gx"] -[ext_resource type="Script" path="res://Autoloads/SkillManager.cs" id="18_6lsog"] [ext_resource type="AudioStream" uid="uid://duj2q0rqytaxg" path="res://sfx/jump.wav" id="18_pysae"] [ext_resource type="AudioStream" uid="uid://bmfn6p88gy575" path="res://sfx/player_hurt.wav" id="19_7anly"] [ext_resource type="Script" uid="uid://d4crrfmbgxnqf" path="res://scripts/Resources/SkillData.cs" id="19_yysbb"] @@ -37,6 +36,7 @@ [ext_resource type="Resource" uid="uid://d3bjre2etov1n" path="res://resources/skills/magnetic.tres" id="24_xuhvf"] [ext_resource type="Script" uid="uid://dlh5xcv2sy82s" path="res://scripts/components/SkillUnlockerComponent.cs" id="25_yysbb"] [ext_resource type="Script" uid="uid://bo506l4x0808e" path="res://scripts/components/HitComponent.cs" id="26_6n1ss"] +[ext_resource type="Script" uid="uid://di572axt0c3s8" path="res://scripts/SkillManager.cs" id="26_uno3u"] [ext_resource type="Script" uid="uid://cjcc7fia15wu3" path="res://scripts/components/CanBeLaunchedComponent.cs" id="27_oefns"] [ext_resource type="PackedScene" uid="uid://bg76mtpcmfm2j" path="res://objects/ui/charging_bar_layer.tscn" id="28_3f5nm"] [ext_resource type="Script" uid="uid://cqau0810tjk4d" path="res://scripts/components/TriggerLeverComponent.cs" id="28_bnap0"] @@ -224,11 +224,12 @@ Area = NodePath("../StompDamageArea") Root = NodePath("..") [node name="SkillManager" type="Node" parent="."] -script = ExtResource("18_6lsog") +script = ExtResource("26_uno3u") AvailableSkills = Array[ExtResource("19_yysbb")]([ExtResource("20_o1ihh"), ExtResource("21_ur2y5"), ExtResource("22_7til7"), ExtResource("23_e5pae"), ExtResource("24_xuhvf")]) -[node name="SkillUnlockerComponent" type="Node" parent="."] +[node name="SkillUnlockerComponent" type="Node" parent="." node_paths=PackedStringArray("SkillManager")] script = ExtResource("25_yysbb") +SkillManager = NodePath("../SkillManager") [node name="HitComponent" type="Node" parent="." node_paths=PackedStringArray("Sprite", "Health", "HitFx")] script = ExtResource("26_6n1ss") diff --git a/scenes/level_village_1.tscn b/scenes/level_village_1.tscn index a721fd0..a2c1bc0 100644 --- a/scenes/level_village_1.tscn +++ b/scenes/level_village_1.tscn @@ -57,6 +57,9 @@ ease = 2 [node name="Brick Player" parent="." instance=ExtResource("1_dnj2y")] z_index = 10 +[node name="SkillManager" parent="Brick Player" index="15"] +script = null + [node name="HitParticles" parent="Brick Player" index="26"] process_material = SubResource("ParticleProcessMaterial_lgb3u") diff --git a/scenes/level_village_4.tscn b/scenes/level_village_4.tscn index 13a9489..f4f5c17 100644 --- a/scenes/level_village_4.tscn +++ b/scenes/level_village_4.tscn @@ -194,6 +194,9 @@ process_mode = 4 [node name="OneWayPlatformAbility" parent="Brick Player/Movements" index="3"] process_mode = 4 +[node name="SkillManager" parent="Brick Player" index="15"] +script = null + [node name="HitParticles" parent="Brick Player" index="26"] process_material = SubResource("ParticleProcessMaterial_lgb3u")