1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

refactor(武器系统): 调整武器数值显示格式和数据结构

统一武器数值显示格式,将浮点数显示为整数或保留两位小数。修改storeType从数组改为字典结构以提高可读性。调整部分武器参数平衡性,包括BigLaser的时间系数和LGBTWeapon的power增量。移除VectorStarWeapon的mincount升级逻辑。为所有武器组件添加debugRebuild标志和默认500点costBeachball值。在FieldShow.gd中新增INTEGER数据类型处理。更新武器描述模板中的数值格式化逻辑。
This commit is contained in:
2025-09-06 16:11:59 +08:00
parent 38390e7ded
commit 19e7d7691d
11 changed files with 59 additions and 28 deletions
+9 -5
View File
@@ -11,19 +11,20 @@ avatarTexture = ExtResource("2_qe8gb")
displayName = "湮灭激光"
quality = 2
typeTopic = 1
costs = Array[int]([0, 1])
costCounts = Array[int]([100, 50])
store = {
"atk": 40,
"time": 0.1
}
storeType = Array[int]([0, 0])
storeType = {
"atk": 1,
"time": 0.0
}
descriptionTemplate = "每$time秒造成$atk点伤害。"
needEnergy = 100.0
cooldown = 6000.0
debugRebuild = true
[node name="attack" parent="sounds" index="0"]
process_mode = 3
stream = ExtResource("4_cb5nh")
[node name="avatar" parent="container/info" index="0"]
@@ -32,10 +33,13 @@ texture = ExtResource("2_qe8gb")
[node name="energy" parent="container/info/infos/energyInfo" index="1"]
text = "100.0"
[node name="beachball" parent="container/info/infos/beachballInfo" index="1"]
text = "500"
[node name="name" parent="container/info" index="2"]
displayName = "湮灭激光"
quality = 2
typeTopic = 1
[node name="description" parent="container" index="2"]
text = "[center]每[color=cyan]0.1[/color]秒造成[color=cyan]40.0[/color]点伤害。[/center]"
text = "[center]每[color=cyan]0.10[/color]秒造成[color=cyan]40[/color]点伤害。[/center]"
+12 -2
View File
@@ -18,10 +18,17 @@ store = {
"power": 0.15,
"trace": 2.0
}
storeType = Array[int]([2, 0, 0, 1, 0])
storeType = {
"angle": 3.0,
"atk": 1,
"count": 1.0,
"power": 2.0,
"trace": 0.0
}
descriptionTemplate = "发射$count条,每条间分隔$angle,可追踪$trace秒,效率为$power的带状彩虹,每条造成$atk点伤害。"
needEnergy = 50.0
cooldown = 500.0
debugRebuild = true
[node name="attack" parent="sounds" index="0"]
stream = ExtResource("4_c5xse")
@@ -32,6 +39,9 @@ texture = ExtResource("2_ou6jo")
[node name="energy" parent="container/info/infos/energyInfo" index="1"]
text = "50.0"
[node name="beachball" parent="container/info/infos/beachballInfo" index="1"]
text = "500"
[node name="name" parent="container/info" index="2"]
displayName = "彩虹旗"
quality = 4
@@ -43,5 +53,5 @@ typeTopicNameMap = {
[node name="description" parent="container" index="2"]
size_flags_vertical = 3
text = "[center]发射[color=cyan]7.0[/color]条,每条间分隔[color=cyan]30.0°[/color],可追踪[color=cyan]2.0[/color]秒,效率为[color=cyan]15.0%[/color]的带状彩虹,每条造成[color=cyan]20.0[/color]点伤害。[/center]"
text = "[center]发射[color=cyan]7[/color]条,每条间分隔[color=cyan]30.0°[/color],可追踪[color=cyan]2.00[/color]秒,效率为[color=cyan]15%[/color]的带状彩虹,每条造成[color=cyan]20[/color]点伤害。[/center]"
autowrap_mode = 2
+8 -1
View File
@@ -10,8 +10,12 @@ offset_bottom = 302.0
script = ExtResource("2_0xgcv")
avatarTexture = ExtResource("2_wgtcw")
displayName = "紫水晶簇"
storeType = {
"atk": 1
}
descriptionTemplate = "撞击造成$atk点伤害。"
cooldown = 200.0
debugRebuild = true
[node name="attack" parent="sounds" index="0"]
stream = ExtResource("4_16daa")
@@ -19,8 +23,11 @@ stream = ExtResource("4_16daa")
[node name="avatar" parent="container/info" index="0"]
texture = ExtResource("2_wgtcw")
[node name="beachball" parent="container/info/infos/beachballInfo" index="1"]
text = "500"
[node name="name" parent="container/info" index="2"]
displayName = "紫水晶簇"
[node name="description" parent="container" index="2"]
text = "[center]撞击造成[color=cyan]10.0[/color]点伤害。[/center]"
text = "[center]撞击造成[color=cyan]10[/color]点伤害。[/center]"
+12 -3
View File
@@ -15,9 +15,15 @@ store = {
"maxcount": 6,
"mincount": 3
}
storeType = Array[int]([0, 0, 0, 0])
descriptionTemplate = "发射$mincount~$maxcount个[b]无主的矢量星[/b],在$forwardtime秒后向目标冲刺并造成$atk点伤害。"
storeType = {
"atk": 1,
"forwardtime": 0.0,
"maxcount": 1.0,
"mincount": 1.0
}
descriptionTemplate = "发射$mincount~$maxcount个[b]无主[/b]的矢量星,在$forwardtime秒后向目标冲刺并造成$atk点伤害。"
needEnergy = 20.0
debugRebuild = true
[node name="avatar" parent="container/info" index="0"]
texture = ExtResource("3_wfty8")
@@ -25,9 +31,12 @@ texture = ExtResource("3_wfty8")
[node name="energy" parent="container/info/infos/energyInfo" index="1"]
text = "20.0"
[node name="beachball" parent="container/info/infos/beachballInfo" index="1"]
text = "500"
[node name="name" parent="container/info" index="2"]
displayName = "星辰核心"
quality = 2
[node name="description" parent="container" index="2"]
text = "[center]发射[color=cyan]3.0[/color]~[color=cyan]6.0[/color]个[b]无主的矢量星[/b],在[color=cyan]1.0[/color]秒后向目标冲刺并造成[color=cyan]5.0[/color]点伤害。[/center]"
text = "[center]发射[color=cyan]3[/color]~[color=cyan]6[/color]个[b]无主[/b]的矢量星,在[color=cyan]1.00[/color]秒后向目标冲刺并造成[color=cyan]5[/color]点伤害。[/center]"