✨ feat(任务): 添加稷下学宫任务
This commit is contained in:
@@ -1503,6 +1503,83 @@ export class CheckSingleTask {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.FUND_ROUGE: //143 通关XX试炼几
|
||||
{
|
||||
let { rougeId, count } = param;
|
||||
if (rougeId == dicTaskParam[0]) {
|
||||
result = { inc: count };
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.FUND_AUTHOR: //144 列传收集进度
|
||||
{
|
||||
let { authorProgress } = param;
|
||||
result = { set: authorProgress };
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.ROUGE_GET_COIN: // 145. 学宫积累x个试炼币
|
||||
{
|
||||
let { addCoin } = param;
|
||||
result = { inc: addCoin }
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.ROUGE_AUTHOR_CARD_COLLECT: // 146.流派卡收集
|
||||
{
|
||||
let records = await getRecord();
|
||||
let { authorType, cardType, cardIds } = param;
|
||||
if (authorType == dicTaskParam[0] && cardType == dicTaskParam[1]) {
|
||||
for (let cardId of cardIds) {
|
||||
if (records.indexOf(`${cardId}`) == -1) {
|
||||
records.push(`${cardId}`);
|
||||
}
|
||||
}
|
||||
result = { records, set: records.length };
|
||||
}
|
||||
break;;
|
||||
}
|
||||
case TASK_TYPE.ROUGE_HOLY_COLLECT: // 147.圣物卡收集
|
||||
{
|
||||
let records = await getRecord();
|
||||
let { cardIds } = param;
|
||||
for (let cardId of cardIds) {
|
||||
if (records.indexOf(`${cardId}`) == -1) {
|
||||
records.push(`${cardId}`);
|
||||
}
|
||||
}
|
||||
result = { records, set: records.length };
|
||||
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.ROUGE_EVENT_COLLECT: // 148.事件收集
|
||||
{
|
||||
let records = await getRecord();
|
||||
let { eventGroups } = param;
|
||||
for (let eventGroup of eventGroups){
|
||||
records.push(`${eventGroup}`);
|
||||
}
|
||||
result = { records, set: records.length };
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.ROUGE_TECH_OPEN: // 149.法阵开启数量
|
||||
{
|
||||
let { count } = param;
|
||||
result = { inc: count };
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.ROUGE_GAME_COUNT: // 150.肉鸽次数
|
||||
{
|
||||
let { count } = param;
|
||||
result = { inc: count };
|
||||
break;
|
||||
}
|
||||
case TASK_TYPE.ROUGE_BOSS_PASS: // 151.试炼通过boss关
|
||||
{
|
||||
let { authorType, count } = param;
|
||||
if (authorType == dicTaskParam[0]) {
|
||||
result = { inc: count };
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user