装备:修复任务

This commit is contained in:
luying
2022-02-25 10:37:31 +08:00
parent daff899841
commit 6b2b384a11

View File

@@ -230,12 +230,12 @@ export async function checkTaskWithEplace(roleId: string, taskType: number, oldE
else if (taskType == TASK_TYPE.EQUIP_JEWEL_RANDSE_CNT) {
let { oldJewel, newJewel } = getJewelByEquip(oldEquip, newEquip, { jewels: params.jewels });
let oldRandSe = oldJewel.randSe||[];
let oldRandSe = oldJewel?.randSe||[];
let oldUnlockSeCnt = oldRandSe.filter(se => {
return isRandSeUnLock(oldJewel.id, se.id, oldEquip.stones);
}).length;
let newRandSe = newJewel.randSe||[];
let newRandSe = newJewel?.randSe||[];
let newUnlockSeCnt = newRandSe.filter(se => {
return isRandSeUnLock(newJewel.id, se.id, newEquip.stones);
}).length;
@@ -1492,12 +1492,12 @@ export function isComplete(_roleId: string, taskType: TASK_TYPE, taskParam: stri
let { oldEquip, newEquip } = paramObj;
let { oldJewel, newJewel } = getJewelByEquip(oldEquip, newEquip, { jewels: paramObj.jewels });
let oldRandSe = oldJewel.randSe||[];
let oldRandSe = oldJewel?.randSe||[];
let oldUnlockSeCnt = oldRandSe.filter(se => {
return isRandSeUnLock(oldJewel.id, se.id, oldEquip.stones);
}).length;
let newRandSe = newJewel.randSe||[];
let newRandSe = newJewel?.randSe||[];
let newUnlockSeCnt = newRandSe.filter(se => {
return isRandSeUnLock(newJewel.id, se.id, newEquip.stones);
}).length;