feat(任务): 添加小游戏的任务

This commit is contained in:
luying
2023-06-17 16:57:34 +08:00
parent be09636e85
commit c751b6db57
5 changed files with 63 additions and 15 deletions

View File

@@ -1471,6 +1471,22 @@ export class CheckSingleTask {
}
break;
}
case TASK_TYPE.MINI_GAME_SCORE: // 139. 小游戏超过X分
{
let { gameType, score } = param;
if(gameType == dicTaskParam[0] && score >= dicTaskParam[1]) {
result = { inc: 1 };
}
break;
}
case TASK_TYPE.MINI_GAME_STEP: // 140. 小游戏小于X步
{
let { gameType, step } = param;
if(gameType == dicTaskParam[0] && step <= dicTaskParam[1]) {
result = { inc: 1 };
}
break;
}
}
return result
}