✨ feat(宝物): 添加宝物系统
This commit is contained in:
@@ -1185,7 +1185,7 @@ export class CheckSingleTask {
|
||||
|
||||
if(newUnlockSeCnt < dicTaskParam[1]) break;
|
||||
let records = await getRecord();
|
||||
if(records.indexOf(`${newJewel.seqId}`)) {
|
||||
if(records.indexOf(`${newJewel.seqId}`) == -1) {
|
||||
records.push(`${newJewel.seqId}`);
|
||||
result = { records, inc: 1 };
|
||||
}
|
||||
@@ -1359,6 +1359,36 @@ export class CheckSingleTask {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.ARTIFACT_LV: // 127. 强化X件宝物至X级
|
||||
{
|
||||
let { artifacts } = param;
|
||||
let records = await getRecord();
|
||||
for(let { seqId, lv, hid } of artifacts) {
|
||||
if(hid > 0 && lv >= dicTaskParam[1] && records.indexOf(`${seqId}`) == -1) {
|
||||
records.push(`${seqId}`);
|
||||
}
|
||||
}
|
||||
result = { records, set: records.length };
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.ARTIFACT_QUALITY_EQUIP: // 128. 穿戴X件品质为X的宝物
|
||||
{
|
||||
let { artifacts } = param;
|
||||
let records = await getRecord();
|
||||
for(let { seqId, quality, hid } of artifacts) {
|
||||
if(hid > 0 && quality >= dicTaskParam[1] && records.indexOf(`${seqId}`) == -1) {
|
||||
records.push(`${seqId}`);
|
||||
}
|
||||
}
|
||||
result = { records, set: records.length };
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.ARTIFACT_COMPOSE: // 129. 合成X次宝物
|
||||
{
|
||||
let { count } = param;
|
||||
result = { inc: count };
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user