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,496 @@
{
"data": [
{
"id": 1,
"lineID": 5,
"roomID": 1,
"isEnd": 0,
"type": 4,
"showNpc": "1",
"showDialog": "1_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 2,
"lineID": 5,
"roomID": 2,
"isEnd": 1,
"type": 4,
"showNpc": "",
"showDialog": "2_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 3,
"lineID": 5,
"roomID": 3,
"isEnd": 1,
"type": 4,
"showNpc": "2",
"showDialog": "3_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 4,
"lineID": 5,
"roomID": 4,
"isEnd": 0,
"type": 4,
"showNpc": "2_1",
"showDialog": "4_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 5,
"lineID": 5,
"roomID": 5,
"isEnd": 0,
"type": 1,
"showNpc": "2_1",
"showDialog": "5_6_7",
"param": "18811",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 6,
"lineID": 5,
"roomID": 6,
"isEnd": 1,
"type": 4,
"showNpc": "2",
"showDialog": "81_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 7,
"lineID": 5,
"roomID": 7,
"isEnd": 0,
"type": 4,
"showNpc": "2",
"showDialog": "8_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 8,
"lineID": 5,
"roomID": 8,
"isEnd": 0,
"type": 4,
"showNpc": "2_3",
"showDialog": "9_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 9,
"lineID": 5,
"roomID": 9,
"isEnd": 0,
"type": 4,
"showNpc": "2",
"showDialog": "10_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 10,
"lineID": 5,
"roomID": 10,
"isEnd": 1,
"type": 1,
"showNpc": "2",
"showDialog": "11_12_13",
"param": "18812",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 11,
"lineID": 5,
"roomID": 11,
"isEnd": 1,
"type": 3,
"showNpc": "2",
"showDialog": "14_15_16",
"param": "19_4_10_0_0_0_0_0_0",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 12,
"lineID": 5,
"roomID": 12,
"isEnd": 0,
"type": 4,
"showNpc": "4",
"showDialog": "17_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 13,
"lineID": 5,
"roomID": 13,
"isEnd": 0,
"type": 3,
"showNpc": "4",
"showDialog": "18_19_20",
"param": "16_4_20_5_20_10_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 14,
"lineID": 5,
"roomID": 14,
"isEnd": 1,
"type": 1,
"showNpc": "4",
"showDialog": "21_22_23",
"param": "18814",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 15,
"lineID": 5,
"roomID": 15,
"isEnd": 0,
"type": 4,
"showNpc": "",
"showDialog": "24_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 16,
"lineID": 5,
"roomID": 16,
"isEnd": 0,
"type": 3,
"showNpc": "5",
"showDialog": "25_26_27",
"param": "17_5_40_0_0_11_12_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 17,
"lineID": 5,
"roomID": 17,
"isEnd": 1,
"type": 1,
"showNpc": "5",
"showDialog": "28_29_30",
"param": "18816",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 18,
"lineID": 6,
"roomID": 1,
"isEnd": 0,
"type": 4,
"showNpc": "",
"showDialog": "31_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 19,
"lineID": 6,
"roomID": 2,
"isEnd": 0,
"type": 4,
"showNpc": "6",
"showDialog": "32_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 20,
"lineID": 6,
"roomID": 3,
"isEnd": 1,
"type": 1,
"showNpc": "6",
"showDialog": "33_34_35",
"param": "18817",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 21,
"lineID": 6,
"roomID": 4,
"isEnd": 0,
"type": 4,
"showNpc": "",
"showDialog": "36_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 22,
"lineID": 6,
"roomID": 5,
"isEnd": 0,
"type": 1,
"showNpc": "7_10",
"showDialog": "37_38_40",
"param": "18821",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 23,
"lineID": 6,
"roomID": 6,
"isEnd": 1,
"type": 1,
"showNpc": "7",
"showDialog": "39_41_42",
"param": "18818",
"stoneReward": 10,
"coreReward": 1
},
{
"id": 24,
"lineID": 6,
"roomID": 7,
"isEnd": 0,
"type": 4,
"showNpc": "8",
"showDialog": "43_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 25,
"lineID": 6,
"roomID": 8,
"isEnd": 1,
"type": 1,
"showNpc": "8",
"showDialog": "44_45_46",
"param": "18819",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 26,
"lineID": 6,
"roomID": 9,
"isEnd": 0,
"type": 4,
"showNpc": "6_7_8",
"showDialog": "47_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 27,
"lineID": 6,
"roomID": 10,
"isEnd": 1,
"type": 1,
"showNpc": "6_7_8",
"showDialog": "48_49_50",
"param": "18822",
"stoneReward": 10,
"coreReward": 1
},
{
"id": 28,
"lineID": 6,
"roomID": 11,
"isEnd": 0,
"type": 4,
"showNpc": "27",
"showDialog": "51_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 29,
"lineID": 6,
"roomID": 12,
"isEnd": 0,
"type": 1,
"showNpc": "27",
"showDialog": "52_53_54",
"param": "18820",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 30,
"lineID": 6,
"roomID": 13,
"isEnd": 1,
"type": 4,
"showNpc": "6_7_8",
"showDialog": "55_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 31,
"lineID": 7,
"roomID": 1,
"isEnd": 0,
"type": 4,
"showNpc": "9",
"showDialog": "56_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 32,
"lineID": 7,
"roomID": 2,
"isEnd": 1,
"type": 3,
"showNpc": "9",
"showDialog": "57_58_59",
"param": "4_6_20_0_0_0_0_0_0",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 33,
"lineID": 7,
"roomID": 3,
"isEnd": 0,
"type": 4,
"showNpc": "",
"showDialog": "60_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 34,
"lineID": 7,
"roomID": 4,
"isEnd": 0,
"type": 4,
"showNpc": "9",
"showDialog": "61_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 35,
"lineID": 7,
"roomID": 5,
"isEnd": 0,
"type": 3,
"showNpc": "9_12",
"showDialog": "62_63_64",
"param": "5_4_30_0_0_9_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 36,
"lineID": 7,
"roomID": 6,
"isEnd": 1,
"type": 2,
"showNpc": "12",
"showDialog": "82",
"param": "18834",
"stoneReward": 10,
"coreReward": 0
},
{
"id": 37,
"lineID": 7,
"roomID": 7,
"isEnd": 0,
"type": 4,
"showNpc": "0_28",
"showDialog": "65_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 38,
"lineID": 7,
"roomID": 8,
"isEnd": 0,
"type": 4,
"showNpc": "9_28",
"showDialog": "66_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 39,
"lineID": 7,
"roomID": 9,
"isEnd": 0,
"type": 3,
"showNpc": "0_28",
"showDialog": "67_68_69",
"param": "18_5_20_6_20_10_11_0_0",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 40,
"lineID": 7,
"roomID": 10,
"isEnd": 0,
"type": 2,
"showNpc": "0_28",
"showDialog": "70",
"param": "18835",
"stoneReward": 0,
"coreReward": 0
},
{
"id": 41,
"lineID": 7,
"roomID": 11,
"isEnd": 1,
"type": 4,
"showNpc": "9",
"showDialog": "71_0_0_0_0",
"param": "0_0_0_0_0",
"stoneReward": 10,
"coreReward": 0
}
]
}