refactor(fight): 重构战斗效果和技能初始化逻辑
- 将 InitEffect 重命名为 InitSkillEffect,用于初始化技能效果 - 修改技能效果的 ID,避免和普通效果 ID 冲突 - 优化战斗循环逻辑,增加战斗结束的判断条件 - 调整输入结构,移除未使用的属性和状态容器 - 重构技能解析和攻击处理逻辑,提高代码可读性和维护性
This commit is contained in:
@@ -0,0 +1,238 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"monsterId": 4462,
|
||||
"monsterName": "月华",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "200_700_520_400_400_1000",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "36353_36354",
|
||||
"monsterNewse": "5967",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"monsterId": 4395,
|
||||
"monsterName": "海棠教皇·未明",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "700_200_500_400_400_1000",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "35994_35993_28020_28019_35991",
|
||||
"monsterNewse": "5906",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"monsterId": 3865,
|
||||
"monsterName": "希瓦",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "600_200_400_400_400_1150",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "33304_33303_26733_26732_33299",
|
||||
"monsterNewse": "3213",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"monsterId": 3652,
|
||||
"monsterName": "异星装甲·赛伯斯特",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "200_800_520_300_300_800",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "32233_32232_200070",
|
||||
"monsterNewse": "2885",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"monsterId": 4452,
|
||||
"monsterName": "兔兔警探",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "400_200_600_500_500_1000",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "36382_36381_28205_28204_36378",
|
||||
"monsterNewse": "5971",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"monsterId": 4462,
|
||||
"monsterName": "月华",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "200_700_520_400_400_1000",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "28192_28191_36355_36352",
|
||||
"monsterNewse": "5967",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"monsterId": 3986,
|
||||
"monsterName": "启灵元神",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "200_600_660_500_500_1000",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "27020_27021",
|
||||
"monsterNewse": "5516",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"monsterId": 3924,
|
||||
"monsterName": "凛戾·寂灭魔神",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "700_200_550_400_400_900",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "33608_26878_100070",
|
||||
"monsterNewse": "5637",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"monsterId": 4505,
|
||||
"monsterName": "婕克拉德",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "600_200_650_400_400_800",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "36589_28305_28304",
|
||||
"monsterNewse": "6011",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"monsterId": 4163,
|
||||
"monsterName": "逆魂·佩特菲德",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "600_200_400_500_500_1100",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "34779_27438_34774",
|
||||
"monsterNewse": "5983",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"monsterId": 3673,
|
||||
"monsterName": "艾夏拉",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "200_650_450_500_500_1100",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "32341_32340_26275_26274_32336",
|
||||
"monsterNewse": "2921",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"monsterId": 4474,
|
||||
"monsterName": "妤玫",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "600_200_600_400_400_1000",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "36423_28224_28223",
|
||||
"monsterNewse": "5973",
|
||||
"monsterEffect_id": 0
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"monsterId": 4501,
|
||||
"monsterName": "普达戈尔",
|
||||
"monsterLv": 100,
|
||||
"monsterNature": 0,
|
||||
"monsterStrength": 0,
|
||||
"monsterTalent": 0,
|
||||
"monsterCharacter": 0,
|
||||
"monsterLearning": "",
|
||||
"mintmark": "",
|
||||
"baseData": "650_200_400_600_600_1100",
|
||||
"mintmarkData": "0_0_0_0_0_0",
|
||||
"extraData": "0_0_0_0_0_0",
|
||||
"monsterMove": "36568_36567_28293_28292_36565",
|
||||
"monsterNewse": "6006",
|
||||
"monsterEffect_id": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user