refactor(fight): 重构战斗效果和技能初始化逻辑
- 将 InitEffect 重命名为 InitSkillEffect,用于初始化技能效果 - 修改技能效果的 ID,避免和普通效果 ID 冲突 - 优化战斗循环逻辑,增加战斗结束的判断条件 - 调整输入结构,移除未使用的属性和状态容器 - 重构技能解析和攻击处理逻辑,提高代码可读性和维护性
This commit is contained in:
24
public/seer_data-main/resource/config/json/box_choice.json
Normal file
24
public/seer_data-main/resource/config/json/box_choice.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": 2600001,
|
||||
"name": "测试礼盒1",
|
||||
"type": 1,
|
||||
"count": 1,
|
||||
"rewardinfo": "1_300744_1;1_300745_1;1_300701_2;1_300702_1",
|
||||
"maxnum": "1;1;1;1",
|
||||
"probability": "1500;1500;10000;1500",
|
||||
"NewStatLog": 2209090100
|
||||
},
|
||||
{
|
||||
"id": 2600002,
|
||||
"name": "测试礼盒2",
|
||||
"type": 2,
|
||||
"count": 3,
|
||||
"rewardinfo": "1_300744_1;1_300745_1;1_300701_2;1_300702_2",
|
||||
"maxnum": "",
|
||||
"probability": "",
|
||||
"NewStatLog": 2209090100
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user