添加获取对手阵容,开始战斗,结算

This commit is contained in:
luying
2021-01-07 17:38:07 +08:00
parent edc45932da
commit 5bfac1723c
12 changed files with 299 additions and 20 deletions
@@ -15,5 +15,12 @@ export async function eventOnPlayerLvUp(roleId: string, lv: number, addFuncs: Ar
await checkPvp(role);
addFuncs.push(FUNCS_ID.PVP);
}
}
if (!dataFuncs.includes(FUNCS_ID.EVENT)) {//开启奇遇
let res = getFuncsSwitch(FUNCS_ID.EVENT);
if (!res || lv >= res.param) {
addFuncs.push(FUNCS_ID.EVENT);
}
}
}