feat: 创建 upgrade 数据resource,编写upgrade_panel.gd动态生成升级卡片
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
[gd_resource type="Resource" script_class="ItemUpgrade" format=3 uid="uid://3pjreo5epl8m"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ceccthrgto2um" path="res://assets/sprites/Upgrades/13.png" id="1_spl5c"]
|
||||
[ext_resource type="Script" uid="uid://ti87pqqmd7ro" path="res://resources/items/upgrades/item_upgrade.gd" id="2_8r7f1"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_8r7f1")
|
||||
value = 1.0
|
||||
descriptin = "+ 1"
|
||||
stat_id = "hp_regen"
|
||||
item_name = "HP Regen"
|
||||
item_icon = ExtResource("1_spl5c")
|
||||
item_type = 1
|
||||
metadata/_custom_type_script = "uid://ti87pqqmd7ro"
|
||||
Reference in New Issue
Block a user