1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-27 22:12:29 +08:00

feat(物品系统): 新增灵魂物品类型及相关功能

- 在ItemStore.gd中添加SOUL物品类型及其映射
- 在EntityBase.gd中为物品栏添加SOUL类型及其上限
- 新增灵魂物品的SVG图标及导入配置
- 为角色(KukeMC, Bear, Chick)添加灵魂掉落配置
- 在武器卡片界面添加灵魂提炼和镶嵌按钮
This commit is contained in:
2025-09-19 22:38:25 +08:00
parent fcfa648b86
commit ac7183e78b
8 changed files with 73 additions and 6 deletions
+21 -1
View File
@@ -41,12 +41,32 @@ layout_mode = 2
theme_override_constants/separation = 10
alignment = 1
[node name="updateBtn" type="Button" parent="container"]
[node name="wrapper" type="VBoxContainer" parent="container"]
layout_mode = 2
[node name="updateBtn" type="Button" parent="container/wrapper"]
unique_name_in_owner = true
layout_mode = 2
theme = ExtResource("2_fwkd3")
text = "升级"
[node name="souls" type="HBoxContainer" parent="container/wrapper"]
layout_mode = 2
[node name="extractBtn" type="Button" parent="container/wrapper/souls"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("2_fwkd3")
text = "提炼灵魂"
[node name="inlayBtn" type="Button" parent="container/wrapper/souls"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("2_fwkd3")
text = "镶嵌灵魂"
[node name="info" type="VBoxContainer" parent="container"]
layout_mode = 2
theme_override_constants/separation = 10
+2
View File
@@ -143,6 +143,8 @@ alpha_curve = SubResource("CurveTexture_8q862")
[node name="Bear" instance=ExtResource("1_3ves7")]
script = ExtResource("2_kh2af")
displayName = "熊谷凌"
drops = Array[int]([0, 1, 4])
dropCounts = Array[Vector2]([Vector2(50, 100), Vector2(70, 140), Vector2(4, 10)])
metadata/_edit_vertical_guides_ = [-50.0]
[node name="attack0" parent="sounds" index="5"]
+2 -2
View File
@@ -37,8 +37,8 @@ animations = [{
script = ExtResource("2_r6bub")
isBoss = true
displayName = "小鸡"
drops = Array[int]([0, 1])
dropCounts = Array[Vector2]([Vector2(10, 30), Vector2(15, 50)])
drops = Array[int]([0, 1, 4])
dropCounts = Array[Vector2]([Vector2(10, 30), Vector2(15, 50), Vector2(1, 3)])
appleCount = Vector2i(2, 4)
[node name="hurt" parent="sounds" index="3"]
+2
View File
@@ -29,6 +29,8 @@ size = Vector2(150, 150)
[node name="KukeMC" instance=ExtResource("1_r4q7y")]
script = ExtResource("2_s2dg5")
displayName = "酷可mc"
drops = Array[int]([0, 1, 4])
dropCounts = Array[Vector2]([Vector2(20, 40), Vector2(25, 100), Vector2(2, 3)])
metadata/_edit_vertical_guides_ = [76.0]
[node name="collect" parent="sounds" index="4"]