refactor(fight): 重构战斗效果和技能初始化逻辑
- 将 InitEffect 重命名为 InitSkillEffect,用于初始化技能效果 - 修改技能效果的 ID,避免和普通效果 ID 冲突 - 优化战斗循环逻辑,增加战斗结束的判断条件 - 调整输入结构,移除未使用的属性和状态容器 - 重构技能解析和攻击处理逻辑,提高代码可读性和维护性
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"wishtype": 0,
|
||||
"wishrealid": "",
|
||||
"wishoutput": ""
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"wishtype": 0,
|
||||
"wishrealid": "",
|
||||
"wishoutput": ""
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"wishtype": 0,
|
||||
"wishrealid": "",
|
||||
"wishoutput": ""
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"wishtype": 0,
|
||||
"wishrealid": "",
|
||||
"wishoutput": ""
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"wishtype": 0,
|
||||
"wishrealid": "",
|
||||
"wishoutput": ""
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"wishtype": 0,
|
||||
"wishrealid": "",
|
||||
"wishoutput": ""
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"wishtype": 0,
|
||||
"wishrealid": "",
|
||||
"wishoutput": ""
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"wishtype": 1,
|
||||
"wishrealid": "300063_300065_300874_300673_300070_300075",
|
||||
"wishoutput": "1_1_1_1_1_1"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"wishtype": 2,
|
||||
"wishrealid": "300010_300696_300064_300135_300157_300019",
|
||||
"wishoutput": "1_1_1_1_1_1"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"wishtype": 3,
|
||||
"wishrealid": "1706926_1706826_1706925_1706924_1706928_1706927",
|
||||
"wishoutput": "1_1_1_1_5_5"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"wishtype": 4,
|
||||
"wishrealid": "40506_40507_40508_40509_40510_40511",
|
||||
"wishoutput": "1_1_1_1_1_1"
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"wishtype": 5,
|
||||
"wishrealid": "300405_300404_300403_300402_300401",
|
||||
"wishoutput": "1_1_1_1_1"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user