refactor(fight): 重构战斗效果和技能初始化逻辑

- 将 InitEffect 重命名为 InitSkillEffect,用于初始化技能效果
- 修改技能效果的 ID,避免和普通效果 ID 冲突
- 优化战斗循环逻辑,增加战斗结束的判断条件
- 调整输入结构,移除未使用的属性和状态容器
- 重构技能解析和攻击处理逻辑,提高代码可读性和维护性
This commit is contained in:
2025-09-14 19:59:58 +08:00
parent 929b0c9006
commit 906bad9e21
617 changed files with 3615605 additions and 42 deletions

View File

@@ -0,0 +1,191 @@
{
"data": [
{
"id": 1,
"difficulty": 1,
"unlockTime": 1754618400,
"inspiration": 4,
"skill": 2,
"observe": 1,
"imagine": 1,
"obstaclesNum": 1,
"reward": "1_1723855_20000|1_2500004_1"
},
{
"id": 2,
"difficulty": 1,
"unlockTime": 1754618400,
"inspiration": 2,
"skill": 3,
"observe": 1,
"imagine": 1,
"obstaclesNum": 1,
"reward": "1_1723855_20000|1_300075_2"
},
{
"id": 3,
"difficulty": 1,
"unlockTime": 1754618400,
"inspiration": 6,
"skill": 3,
"observe": 1,
"imagine": 1,
"obstaclesNum": 1,
"reward": "1_1723855_20000|1_2500004_1"
},
{
"id": 4,
"difficulty": 2,
"unlockTime": 1754668800,
"inspiration": 3,
"skill": 3,
"observe": 2,
"imagine": 2,
"obstaclesNum": 1,
"reward": "1_2500004_2"
},
{
"id": 5,
"difficulty": 2,
"unlockTime": 1754668800,
"inspiration": 5,
"skill": 3,
"observe": 2,
"imagine": 1,
"obstaclesNum": 1,
"reward": "1_1723855_20000|1_300075_2"
},
{
"id": 6,
"difficulty": 2,
"unlockTime": 1754755200,
"inspiration": 6,
"skill": 4,
"observe": 2,
"imagine": 2,
"obstaclesNum": 1,
"reward": "1_1723855_20000|1_2500004_1"
},
{
"id": 7,
"difficulty": 2,
"unlockTime": 1754755200,
"inspiration": 8,
"skill": 5,
"observe": 2,
"imagine": 3,
"obstaclesNum": 1,
"reward": "2_4802_1"
},
{
"id": 8,
"difficulty": 3,
"unlockTime": 1754841600,
"inspiration": 10,
"skill": 4,
"observe": 2,
"imagine": 2,
"obstaclesNum": 2,
"reward": "1_1723855_20000|1_300075_2"
},
{
"id": 9,
"difficulty": 3,
"unlockTime": 1754928000,
"inspiration": 3,
"skill": 6,
"observe": 3,
"imagine": 3,
"obstaclesNum": 2,
"reward": "3_156_1|1_300075_2"
},
{
"id": 10,
"difficulty": 3,
"unlockTime": 1755014400,
"inspiration": 6,
"skill": 2,
"observe": 2,
"imagine": 5,
"obstaclesNum": 2,
"reward": "1_1723855_20000|1_2500004_1"
},
{
"id": 11,
"difficulty": 3,
"unlockTime": 1755100800,
"inspiration": 6,
"skill": 2,
"observe": 5,
"imagine": 2,
"obstaclesNum": 2,
"reward": "1_1723855_20000|1_2500004_1"
},
{
"id": 12,
"difficulty": 4,
"unlockTime": 1755187200,
"inspiration": 5,
"skill": 5,
"observe": 3,
"imagine": 3,
"obstaclesNum": 2,
"reward": "1_2500004_2"
},
{
"id": 13,
"difficulty": 4,
"unlockTime": 1755273600,
"inspiration": 10,
"skill": 3,
"observe": 3,
"imagine": 3,
"obstaclesNum": 2,
"reward": "1_1723855_20000|1_2500004_1"
},
{
"id": 14,
"difficulty": 4,
"unlockTime": 1755360000,
"inspiration": 8,
"skill": 2,
"observe": 4,
"imagine": 4,
"obstaclesNum": 2,
"reward": "1_1723855_20000|1_2500004_1"
},
{
"id": 15,
"difficulty": 5,
"unlockTime": 1755446400,
"inspiration": 4,
"skill": 5,
"observe": 4,
"imagine": 5,
"obstaclesNum": 3,
"reward": "3_157_1|1_300075_2"
},
{
"id": 16,
"difficulty": 5,
"unlockTime": 1755532800,
"inspiration": 5,
"skill": 5,
"observe": 5,
"imagine": 5,
"obstaclesNum": 3,
"reward": "1_2500004_1"
},
{
"id": 17,
"difficulty": 5,
"unlockTime": 1755619200,
"inspiration": 4,
"skill": 4,
"observe": 6,
"imagine": 6,
"obstaclesNum": 1,
"reward": "1_1723855_20000"
}
]
}