✨ feat(任务): 添加小游戏的任务
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user