refactor(fight): 重构战斗效果和技能初始化逻辑
- 将 InitEffect 重命名为 InitSkillEffect,用于初始化技能效果 - 修改技能效果的 ID,避免和普通效果 ID 冲突 - 优化战斗循环逻辑,增加战斗结束的判断条件 - 调整输入结构,移除未使用的属性和状态容器 - 重构技能解析和攻击处理逻辑,提高代码可读性和维护性
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"firstData": {
|
||||
"id": 1,
|
||||
"name": "SPT精灵",
|
||||
"panelCls": "SptPetView"
|
||||
},
|
||||
"childData": []
|
||||
},
|
||||
{
|
||||
"firstData": {
|
||||
"id": 2,
|
||||
"name": "珍贵道具",
|
||||
"panelCls": "SptItemView"
|
||||
},
|
||||
"childData": []
|
||||
},
|
||||
{
|
||||
"firstData": {
|
||||
"id": 3,
|
||||
"name": "SPT成就",
|
||||
"panelCls": "SptAchieveView"
|
||||
},
|
||||
"childData": []
|
||||
},
|
||||
{
|
||||
"firstData": {
|
||||
"id": 4,
|
||||
"name": "能力提升",
|
||||
"panelCls": "SptPowerView"
|
||||
},
|
||||
"childData": []
|
||||
},
|
||||
{
|
||||
"firstData": {
|
||||
"id": 5,
|
||||
"name": "限定头像",
|
||||
"panelCls": "SptHeadView"
|
||||
},
|
||||
"childData": []
|
||||
},
|
||||
{
|
||||
"firstData": {
|
||||
"id": 6,
|
||||
"name": "精灵因子",
|
||||
"panelCls": "SptPetFactorView"
|
||||
},
|
||||
"childData": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user