refactor(fight): 重构战斗效果和技能初始化逻辑
- 将 InitEffect 重命名为 InitSkillEffect,用于初始化技能效果 - 修改技能效果的 ID,避免和普通效果 ID 冲突 - 优化战斗循环逻辑,增加战斗结束的判断条件 - 调整输入结构,移除未使用的属性和状态容器 - 重构技能解析和攻击处理逻辑,提高代码可读性和维护性
This commit is contained in:
52
public/seer_data-main/resource/config/json/toolbar.json
Normal file
52
public/seer_data-main/resource/config/json/toolbar.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"chs": "精灵",
|
||||
"key": "btnPet",
|
||||
"res": "main_btnPet_png",
|
||||
"pos": 1,
|
||||
"type": "leftbottom",
|
||||
"limitFlag": "3|5",
|
||||
"reddot": "",
|
||||
"response": "1|10",
|
||||
"stat": "精灵背包"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"chs": "个人",
|
||||
"key": "btnInfo",
|
||||
"res": "main_btnInfo_png",
|
||||
"pos": 2,
|
||||
"type": "leftbottom",
|
||||
"limitFlag": "",
|
||||
"reddot": "1004",
|
||||
"response": "1|27",
|
||||
"stat": "个人信息"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"chs": "图鉴",
|
||||
"key": "btnBook",
|
||||
"res": "main_btnBook_png",
|
||||
"pos": 3,
|
||||
"type": "leftbottom",
|
||||
"limitFlag": "",
|
||||
"reddot": "",
|
||||
"response": "1|7",
|
||||
"stat": "图鉴"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"chs": "物品",
|
||||
"key": "btnBag",
|
||||
"res": "main_btnBag_png",
|
||||
"pos": 4,
|
||||
"type": "leftbottom",
|
||||
"limitFlag": "",
|
||||
"reddot": "",
|
||||
"response": "1|15",
|
||||
"stat": "物品"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user