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://cgusn8qne4kjl"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dxl550mv1d5l6" path="res://assets/sprites/Upgrades/3.png" id="1_co2m3"]
|
||||
[ext_resource type="Script" uid="uid://ti87pqqmd7ro" path="res://resources/items/upgrades/item_upgrade.gd" id="2_qhb0c"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_qhb0c")
|
||||
value = 1.0
|
||||
descriptin = "+ 1%"
|
||||
stat_id = "life_steal"
|
||||
item_name = "Life Steal"
|
||||
item_icon = ExtResource("1_co2m3")
|
||||
item_type = 1
|
||||
metadata/_custom_type_script = "uid://ti87pqqmd7ro"
|
||||
Reference in New Issue
Block a user