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,859 @@
{
"Root": {
"Recovery": {
"Needs": {
"Need": [
{
"ID": 1,
"ItemID": 1702819,
"Price": 5,
"Name": "毁灭之力"
},
{
"ID": 2,
"ItemID": 1702826,
"Price": 5,
"Name": "云能"
},
{
"ID": 3,
"ItemID": 1702867,
"Price": 5,
"Name": "全场5折打折券"
},
{
"ID": 4,
"ItemID": 1702970,
"Price": 5,
"Name": "静月香蕉"
},
{
"ID": 5,
"ItemID": 1702971,
"Price": 5,
"Name": "静月苹果"
},
{
"ID": 6,
"ItemID": 1702972,
"Price": 5,
"Name": "静月面包"
},
{
"ID": 7,
"ItemID": 1702992,
"Price": 5,
"Name": "格林精华"
},
{
"ID": 8,
"ItemID": 1703000,
"Price": 5,
"Name": "友谊之心"
},
{
"ID": 9,
"ItemID": 1704041,
"Price": 5,
"Name": "开学狂欢鱼龙王券"
},
{
"ID": 10,
"ItemID": 1704105,
"Price": 5,
"Name": "始祖灵兽专属天赋改造药剂"
},
{
"ID": 11,
"ItemID": 1704106,
"Price": 5,
"Name": "开学狂欢始祖灵兽券"
},
{
"ID": 12,
"ItemID": 1704112,
"Price": 5,
"Name": "邪魔圣血"
},
{
"ID": 13,
"ItemID": 1704130,
"Price": 5,
"Name": "勇气值"
},
{
"ID": 14,
"ItemID": 1704165,
"Price": 5,
"Name": "开学狂欢灵兽之尊券"
},
{
"ID": 15,
"ItemID": 1704166,
"Price": 5,
"Name": "灵兽之尊专属天赋改造药剂"
},
{
"ID": 16,
"ItemID": 1704174,
"Price": 5,
"Name": "升级能源"
},
{
"ID": 17,
"ItemID": 1704179,
"Price": 5,
"Name": "必胜意志"
},
{
"ID": 18,
"ItemID": 1704265,
"Price": 5,
"Name": "时空错乱符"
},
{
"ID": 19,
"ItemID": 1704292,
"Price": 5,
"Name": "月仙之力"
},
{
"ID": 20,
"ItemID": 1704295,
"Price": 5,
"Name": "炽热之火"
},
{
"ID": 21,
"ItemID": 1704296,
"Price": 5,
"Name": "极寒之火"
},
{
"ID": 22,
"ItemID": 1704297,
"Price": 5,
"Name": "光明之火"
},
{
"ID": 23,
"ItemID": 1704298,
"Price": 5,
"Name": "混沌青火"
},
{
"ID": 24,
"ItemID": 1704337,
"Price": 5,
"Name": "未来芯片"
},
{
"ID": 25,
"ItemID": 1704341,
"Price": 5,
"Name": "极品蟠桃"
},
{
"ID": 26,
"ItemID": 1704422,
"Price": 5,
"Name": "一堆垃圾"
},
{
"ID": 27,
"ItemID": 1704479,
"Price": 5,
"Name": "曾经的提示"
},
{
"ID": 28,
"ItemID": 1704493,
"Price": 5,
"Name": "闹海之心"
},
{
"ID": 29,
"ItemID": 1706016,
"Price": 5,
"Name": "圣光之息"
},
{
"ID": 30,
"ItemID": 1706107,
"Price": 5,
"Name": "火元素结晶"
},
{
"ID": 31,
"ItemID": 1706111,
"Price": 5,
"Name": "马尔修斯变身能量块"
},
{
"ID": 32,
"ItemID": 1706164,
"Price": 5,
"Name": "白色数据卡"
},
{
"ID": 33,
"ItemID": 1706165,
"Price": 5,
"Name": "粉色数据卡"
},
{
"ID": 34,
"ItemID": 1706166,
"Price": 5,
"Name": "黄色数据卡"
},
{
"ID": 35,
"ItemID": 1706231,
"Price": 5,
"Name": "秘典残章"
},
{
"ID": 36,
"ItemID": 1706232,
"Price": 5,
"Name": "暗金粉尘"
},
{
"ID": 37,
"ItemID": 1706234,
"Price": 5,
"Name": "乐园入场券"
},
{
"ID": 38,
"ItemID": 1706333,
"Price": 5,
"Name": "虚铜之匙"
},
{
"ID": 39,
"ItemID": 1706335,
"Price": 5,
"Name": "精金之匙"
},
{
"ID": 40,
"ItemID": 1706337,
"Price": 5,
"Name": "破损秘卷"
},
{
"ID": 41,
"ItemID": 1706338,
"Price": 5,
"Name": "古朴秘卷"
},
{
"ID": 42,
"ItemID": 1706339,
"Price": 5,
"Name": "微光秘卷"
},
{
"ID": 43,
"ItemID": 1706340,
"Price": 5,
"Name": "辉耀秘卷"
},
{
"ID": 44,
"ItemID": 1706380,
"Price": 5,
"Name": "战神联盟挑战赛荣誉点"
},
{
"ID": 45,
"ItemID": 1706389,
"Price": 5,
"Name": "皇者气息"
},
{
"ID": 46,
"ItemID": 1706436,
"Price": 5,
"Name": "上古神符壹"
},
{
"ID": 47,
"ItemID": 1706437,
"Price": 5,
"Name": "上古神符贰"
},
{
"ID": 48,
"ItemID": 1706438,
"Price": 5,
"Name": "上古神符叁"
},
{
"ID": 49,
"ItemID": 1706439,
"Price": 5,
"Name": "上古神符肆"
},
{
"ID": 50,
"ItemID": 1706440,
"Price": 5,
"Name": "上古神符伍"
},
{
"ID": 51,
"ItemID": 1706441,
"Price": 5,
"Name": "上古神符陆"
},
{
"ID": 52,
"ItemID": 1706442,
"Price": 5,
"Name": "上古神符柒"
},
{
"ID": 53,
"ItemID": 1706443,
"Price": 5,
"Name": "上古神符捌"
},
{
"ID": 54,
"ItemID": 1706444,
"Price": 5,
"Name": "上古神符玖"
},
{
"ID": 55,
"ItemID": 1706445,
"Price": 5,
"Name": "上古神符拾"
},
{
"ID": 56,
"ItemID": 1706446,
"Price": 5,
"Name": "龙骑覆铠"
},
{
"ID": 57,
"ItemID": 1706471,
"Price": 5,
"Name": "联盟宝藏魔印"
},
{
"ID": 58,
"ItemID": 1706472,
"Price": 5,
"Name": "联盟宝藏瞳印"
},
{
"ID": 59,
"ItemID": 1706480,
"Price": 5,
"Name": "月亮碎片"
},
{
"ID": 60,
"ItemID": 1706503,
"Price": 5,
"Name": "战神联盟No皮肤活跃度"
},
{
"ID": 61,
"ItemID": 1706504,
"Price": 5,
"Name": "圣能之尘"
},
{
"ID": 62,
"ItemID": 1706507,
"Price": 5,
"Name": "梵天之怒"
},
{
"ID": 63,
"ItemID": 1706508,
"Price": 5,
"Name": "梵天法印"
},
{
"ID": 64,
"ItemID": 1706515,
"Price": 5,
"Name": "深海鱼卵"
},
{
"ID": 65,
"ItemID": 1706522,
"Price": 5,
"Name": "许愿点数"
},
{
"ID": 66,
"ItemID": 1706524,
"Price": 5,
"Name": "圣灵之爪"
},
{
"ID": 67,
"ItemID": 1706540,
"Price": 5,
"Name": "月之精华"
},
{
"ID": 68,
"ItemID": 1706608,
"Price": 5,
"Name": "头盔精华"
},
{
"ID": 69,
"ItemID": 1706609,
"Price": 5,
"Name": "腰带精华"
},
{
"ID": 70,
"ItemID": 1706610,
"Price": 5,
"Name": "护手精华"
},
{
"ID": 71,
"ItemID": 1706611,
"Price": 5,
"Name": "魔靴精华"
},
{
"ID": 72,
"ItemID": 1706613,
"Price": 5,
"Name": "圣灵火球"
},
{
"ID": 73,
"ItemID": 1706650,
"Price": 5,
"Name": "欢乐国庆券"
},
{
"ID": 74,
"ItemID": 1706670,
"Price": 5,
"Name": "黄帝召集令"
},
{
"ID": 75,
"ItemID": 1706671,
"Price": 5,
"Name": "青帝召集令"
},
{
"ID": 76,
"ItemID": 1706672,
"Price": 5,
"Name": "炎帝召集令"
},
{
"ID": 77,
"ItemID": 1706673,
"Price": 5,
"Name": "白帝召集令"
},
{
"ID": 78,
"ItemID": 1706674,
"Price": 5,
"Name": "黑帝召集令"
},
{
"ID": 79,
"ItemID": 1706675,
"Price": 5,
"Name": "超级精灵币"
},
{
"ID": 80,
"ItemID": 1706676,
"Price": 5,
"Name": "圣灵之力"
},
{
"ID": 81,
"ItemID": 1706678,
"Price": 5,
"Name": "谱尼专属全能刻印B兑换券"
},
{
"ID": 82,
"ItemID": 1706679,
"Price": 5,
"Name": "封印异能"
},
{
"ID": 83,
"ItemID": 1706686,
"Price": 5,
"Name": "魔幻灵石"
},
{
"ID": 84,
"ItemID": 1706703,
"Price": 5,
"Name": "普通星际物资"
},
{
"ID": 85,
"ItemID": 1706704,
"Price": 5,
"Name": "高级星际物资"
},
{
"ID": 86,
"ItemID": 1706729,
"Price": 5,
"Name": "星际能量"
},
{
"ID": 87,
"ItemID": 1706739,
"Price": 5,
"Name": "妮可之能"
},
{
"ID": 88,
"ItemID": 1706740,
"Price": 5,
"Name": "佐伊之能"
},
{
"ID": 89,
"ItemID": 1706750,
"Price": 5,
"Name": "六周年庆典邀请函"
},
{
"ID": 90,
"ItemID": 1706757,
"Price": 5,
"Name": "新星之殒"
},
{
"ID": 91,
"ItemID": 1706832,
"Price": 5,
"Name": "红色豪华礼包预约券"
},
{
"ID": 92,
"ItemID": 1706833,
"Price": 5,
"Name": "橙色豪华礼包预约券"
},
{
"ID": 93,
"ItemID": 1706834,
"Price": 5,
"Name": "黄色豪华礼包预约券"
},
{
"ID": 94,
"ItemID": 1706835,
"Price": 5,
"Name": "绿色豪华礼包预约券"
},
{
"ID": 95,
"ItemID": 1706836,
"Price": 5,
"Name": "青色豪华礼包预约券"
},
{
"ID": 96,
"ItemID": 1706837,
"Price": 5,
"Name": "蓝色豪华礼包预约券"
},
{
"ID": 97,
"ItemID": 1706838,
"Price": 5,
"Name": "紫色豪华礼包预约券"
},
{
"ID": 98,
"ItemID": 1706845,
"Price": 5,
"Name": "幻影燃料"
},
{
"ID": 99,
"ItemID": 1706846,
"Price": 5,
"Name": "E59车身"
},
{
"ID": 100,
"ItemID": 1706847,
"Price": 5,
"Name": "K07轮胎"
},
{
"ID": 101,
"ItemID": 1706848,
"Price": 5,
"Name": "A82气管"
},
{
"ID": 102,
"ItemID": 1706849,
"Price": 5,
"Name": "座驾原型"
},
{
"ID": 103,
"ItemID": 1706850,
"Price": 5,
"Name": "玫瑰涂料"
},
{
"ID": 104,
"ItemID": 1706851,
"Price": 5,
"Name": "琥珀涂料"
},
{
"ID": 105,
"ItemID": 1706852,
"Price": 5,
"Name": "翡翠涂料"
},
{
"ID": 106,
"ItemID": 1706877,
"Price": 5,
"Name": "红炎铠甲碎片"
},
{
"ID": 107,
"ItemID": 1706909,
"Price": 5,
"Name": "傲慢封印封·傲慢"
},
{
"ID": 108,
"ItemID": 1706922,
"Price": 5,
"Name": "傲慢之焰"
},
{
"ID": 109,
"ItemID": 1706930,
"Price": 5,
"Name": "圣辉灵魂"
},
{
"ID": 110,
"ItemID": 1706939,
"Price": 5,
"Name": "南瓜怪味糖"
},
{
"ID": 111,
"ItemID": 1706947,
"Price": 5,
"Name": "南瓜太妃糖"
},
{
"ID": 112,
"ItemID": 1706976,
"Price": 5,
"Name": "萌萌超进化"
},
{
"ID": 113,
"ItemID": 1706979,
"Price": 5,
"Name": "太阳炎睛"
},
{
"ID": 114,
"ItemID": 1706986,
"Price": 5,
"Name": "邪恶红水晶"
},
{
"ID": 115,
"ItemID": 1706987,
"Price": 5,
"Name": "邪恶黄水晶"
},
{
"ID": 116,
"ItemID": 1706988,
"Price": 5,
"Name": "邪恶蓝水晶"
},
{
"ID": 117,
"ItemID": 1706989,
"Price": 5,
"Name": "邪恶绿水晶"
}
],
"ContributionAdd": 1,
"CoinDailyMax": 15000,
"SpPrice": 1,
"DailyAddMax": 1000,
"MaxCount": 256,
"Desc": "回收道具"
},
"Rewards": {
"Type": [
{
"Reward": [
{
"ID": 1,
"ItemID": 1721124,
"CoinNeed": 1323,
"OutQua": 1,
"DayMax": 2
},
{
"ID": 2,
"ItemID": 1721125,
"CoinNeed": 2700,
"OutQua": 1,
"BeansFlag": 1,
"DayMax": 2
},
{
"ID": 3,
"ItemID": 1721596,
"CoinNeed": 2,
"OutQua": 1,
"BeansFlag": 1,
"DayMax": 200
},
{
"ID": 4,
"ItemID": 400065,
"CoinNeed": 60,
"OutQua": 1,
"PerMax": 300
},
{
"ID": 5,
"ItemID": 400063,
"CoinNeed": 600,
"OutQua": 1,
"PerMax": 30
},
{
"ID": 6,
"ItemID": 300129,
"CoinNeed": 1800,
"OutQua": 1,
"DayMax": 2
},
{
"ID": 7,
"ItemID": 300669,
"CoinNeed": 1200,
"OutQua": 1,
"DayMax": 2
},
{
"ID": 8,
"ItemID": 300853,
"CoinNeed": 6000,
"OutQua": 1,
"DayMax": 1
}
],
"ID": 1,
"Title": "消耗物资",
"Desc": "xxxxxxxxx",
"MaxCount": 36,
"ContributionAdd": 10,
"DailyAddMax": 1000,
"BeanRate": 250,
"GlobalKey": 243
},
{
"Reward": [
{
"ID": 1,
"ItemID": 540024,
"CoinNeed": 10000,
"OutQua": 1,
"BeansFlag": 1,
"PerMax": 1
},
{
"ID": 2,
"ItemID": 540025,
"CoinNeed": 10000,
"OutQua": 1,
"BeansFlag": 1,
"PerMax": 1
},
{
"ID": 3,
"ItemID": 540026,
"CoinNeed": 10000,
"OutQua": 1,
"BeansFlag": 1,
"PerMax": 1
},
{
"ID": 4,
"ItemID": 500891,
"CoinNeed": 10000,
"OutQua": 1,
"BeansFlag": 1,
"PerMax": 1
},
{
"ID": 5,
"ItemID": 540027,
"CoinNeed": 10000,
"OutQua": 1,
"BeansFlag": 1,
"PerMax": 1
}
],
"ID": 2,
"Title": "基地物资",
"Desc": "xxxxxxxxxx",
"MaxCount": 6,
"ContributionAdd": 10,
"DailyAddMax": 1000,
"BeanRate": 250,
"GlobalKey": 231
}
],
"Desc": "奖励兑换"
},
"FragmentSyn": {
"Item": {
"ID": 1721596,
"ConQua": 2400,
"OutItem": 1706926,
"OutQua": 1
},
"Desc": "碎片合成"
},
"CurStage": 14,
"CurSeason": 1,
"Start": 20220114,
"End": 20220128,
"BackRate": 20
}
}
}