装备:修复任务
This commit is contained in:
@@ -230,12 +230,12 @@ export async function checkTaskWithEplace(roleId: string, taskType: number, oldE
|
|||||||
else if (taskType == TASK_TYPE.EQUIP_JEWEL_RANDSE_CNT) {
|
else if (taskType == TASK_TYPE.EQUIP_JEWEL_RANDSE_CNT) {
|
||||||
let { oldJewel, newJewel } = getJewelByEquip(oldEquip, newEquip, { jewels: params.jewels });
|
let { oldJewel, newJewel } = getJewelByEquip(oldEquip, newEquip, { jewels: params.jewels });
|
||||||
|
|
||||||
let oldRandSe = oldJewel.randSe||[];
|
let oldRandSe = oldJewel?.randSe||[];
|
||||||
let oldUnlockSeCnt = oldRandSe.filter(se => {
|
let oldUnlockSeCnt = oldRandSe.filter(se => {
|
||||||
return isRandSeUnLock(oldJewel.id, se.id, oldEquip.stones);
|
return isRandSeUnLock(oldJewel.id, se.id, oldEquip.stones);
|
||||||
}).length;
|
}).length;
|
||||||
|
|
||||||
let newRandSe = newJewel.randSe||[];
|
let newRandSe = newJewel?.randSe||[];
|
||||||
let newUnlockSeCnt = newRandSe.filter(se => {
|
let newUnlockSeCnt = newRandSe.filter(se => {
|
||||||
return isRandSeUnLock(newJewel.id, se.id, newEquip.stones);
|
return isRandSeUnLock(newJewel.id, se.id, newEquip.stones);
|
||||||
}).length;
|
}).length;
|
||||||
@@ -1492,12 +1492,12 @@ export function isComplete(_roleId: string, taskType: TASK_TYPE, taskParam: stri
|
|||||||
let { oldEquip, newEquip } = paramObj;
|
let { oldEquip, newEquip } = paramObj;
|
||||||
let { oldJewel, newJewel } = getJewelByEquip(oldEquip, newEquip, { jewels: paramObj.jewels });
|
let { oldJewel, newJewel } = getJewelByEquip(oldEquip, newEquip, { jewels: paramObj.jewels });
|
||||||
|
|
||||||
let oldRandSe = oldJewel.randSe||[];
|
let oldRandSe = oldJewel?.randSe||[];
|
||||||
let oldUnlockSeCnt = oldRandSe.filter(se => {
|
let oldUnlockSeCnt = oldRandSe.filter(se => {
|
||||||
return isRandSeUnLock(oldJewel.id, se.id, oldEquip.stones);
|
return isRandSeUnLock(oldJewel.id, se.id, oldEquip.stones);
|
||||||
}).length;
|
}).length;
|
||||||
|
|
||||||
let newRandSe = newJewel.randSe||[];
|
let newRandSe = newJewel?.randSe||[];
|
||||||
let newUnlockSeCnt = newRandSe.filter(se => {
|
let newUnlockSeCnt = newRandSe.filter(se => {
|
||||||
return isRandSeUnLock(newJewel.id, se.id, newEquip.stones);
|
return isRandSeUnLock(newJewel.id, se.id, newEquip.stones);
|
||||||
}).length;
|
}).length;
|
||||||
|
|||||||
Reference in New Issue
Block a user