Add marketplace component for skill unlocking and update related resources

This commit is contained in:
2025-04-27 17:09:54 +02:00
parent 49a652a5b1
commit fd78f4f5b3
17 changed files with 257 additions and 13 deletions

View File

@@ -0,0 +1,17 @@
[gd_resource type="Resource" script_class="SkillData" load_steps=4 format=3 uid="uid://cdp8sex36vdq2"]
[ext_resource type="PackedScene" uid="uid://5surx230gfw3" path="res://objects/exploding_brick.tscn" id="1_6pfoa"]
[ext_resource type="PackedScene" uid="uid://coayig4dxelo2" path="res://objects/player_skills/brick_throw_skill.tscn" id="2_e0o8w"]
[ext_resource type="Script" path="res://scripts/resources/skill_data.gd" id="3_cgsq1"]
[resource]
script = ExtResource("3_cgsq1")
name = "Explosive brick"
description = "Allows you to throw explosive bricks at enemies"
node = ExtResource("2_e0o8w")
config = {
"brick_scene": ExtResource("1_6pfoa"),
"player_controller": NodePath("."),
"timer": NodePath("ThrowTimer")
}
cost = 180

View File

@@ -0,0 +1,17 @@
[gd_resource type="Resource" script_class="SkillData" load_steps=4 format=3 uid="uid://2glvryih82t1"]
[ext_resource type="PackedScene" uid="uid://daau4j5hbklk0" path="res://objects/fire_brick.tscn" id="1_2g43l"]
[ext_resource type="Script" path="res://scripts/resources/skill_data.gd" id="1_2j5ko"]
[ext_resource type="PackedScene" uid="uid://coayig4dxelo2" path="res://objects/player_skills/brick_throw_skill.tscn" id="1_g53fp"]
[resource]
script = ExtResource("1_2j5ko")
name = "Fire brick"
description = "Allows you to throw fire bricks at enemies"
node = ExtResource("1_g53fp")
config = {
"brick_scene": ExtResource("1_2g43l"),
"player_controller": NodePath("."),
"timer": NodePath("ThrowTimer")
}
cost = 150

View File

@@ -0,0 +1,17 @@
[gd_resource type="Resource" script_class="SkillData" load_steps=4 format=3 uid="uid://cx5fsbexblp60"]
[ext_resource type="PackedScene" uid="uid://bcmx07k12gcsc" path="res://objects/ice_brick.tscn" id="1_ci3d1"]
[ext_resource type="PackedScene" uid="uid://coayig4dxelo2" path="res://objects/player_skills/brick_throw_skill.tscn" id="1_rflri"]
[ext_resource type="Script" path="res://scripts/resources/skill_data.gd" id="2_pspkt"]
[resource]
script = ExtResource("2_pspkt")
name = "Ice brick"
description = "Allows you to throw ice bricks at enemies"
node = ExtResource("1_rflri")
config = {
"brick_scene": ExtResource("1_ci3d1"),
"player_controller": NodePath("."),
"timer": NodePath("ThrowTimer")
}
cost = 150

View File

@@ -1,5 +1,6 @@
[gd_resource type="Resource" script_class="SkillData" load_steps=3 format=3 uid="uid://d3bjre2etov1n"]
[gd_resource type="Resource" script_class="SkillData" load_steps=4 format=3 uid="uid://d3bjre2etov1n"]
[ext_resource type="Texture2D" uid="uid://cvhoq7aubxlmq" path="res://sprites/ui/magnetic_skill_icon.png" id="1_16qcg"]
[ext_resource type="PackedScene" uid="uid://cunyndudjh2he" path="res://objects/player_skills/magnetic_skill.tscn" id="1_er41s"]
[ext_resource type="Script" path="res://scripts/resources/skill_data.gd" id="1_r01oq"]
@@ -14,3 +15,4 @@ config = {
"root": NodePath(".")
}
cost = 70
icon = ExtResource("1_16qcg")