1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-07-11 04:22:54 +08:00

refactor(武器系统): 用emitType枚举替换chargable和oneShoot布尔值

重构武器发射逻辑,使用枚举类型EmitType来管理不同的武器发射方式
更新相关武器配置文件和角色控制逻辑
This commit is contained in:
2026-04-13 23:07:48 +08:00
parent a4f923a14f
commit d6680bf506
6 changed files with 38 additions and 17 deletions
+7 -1
View File
@@ -9,7 +9,7 @@ script = ExtResource("2_p67v7")
avatarTexture = ExtResource("2_mmtf8")
displayName = "钢管"
costBeachball = 350
chargable = true
emitType = 2
store = {
"atk": 5
}
@@ -30,5 +30,11 @@ count = 350
[node name="name" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="0" unique_id=1576068972]
displayName = "钢管"
[node name="source" parent="container/info/displays" parent_id_path=PackedInt32Array(784441328) index="1" unique_id=365191794]
text = "MEME"
[node name="description" parent="container" parent_id_path=PackedInt32Array(575698869) index="2" unique_id=566230682]
text = "[center]按住蓄力扔出钢管,蓄力越久伤害越高,至少造成[color=cyan]5[/color]点伤害,发射钢管后继续按住鼠标可进行连续发射。[/center]"
[node name="tease" parent="container" parent_id_path=PackedInt32Array(575698869) index="3" unique_id=689277044]
visible = false