feat: 抄作业不支持的关卡,新增界面提示

This commit is contained in:
MistEO
2022-06-18 17:00:27 +08:00
parent 53e0ae50fe
commit 6ba4444ded
4 changed files with 13 additions and 2 deletions

View File

@@ -16,14 +16,14 @@ asst::CopilotTask::CopilotTask(const AsstCallback& callback, void* callback_arg)
.set_ignore_error(true);
m_subtasks.emplace_back(start_1_tp);
m_subtasks.emplace_back(m_formation_task_ptr)->set_ignore_error(false);
m_subtasks.emplace_back(m_formation_task_ptr)->set_ignore_error(false).set_retry_times(0);
auto start_2_tp = std::make_shared<ProcessTask>(callback, callback_arg, TaskType);
start_2_tp->set_tasks({ "BattleStartNormal", "BattleStartRaid", "BattleStartExercise", "BattleStartSimulation" })
.set_ignore_error(false);
m_subtasks.emplace_back(start_2_tp);
m_subtasks.emplace_back(m_battle_task_ptr);
m_subtasks.emplace_back(m_battle_task_ptr)->set_retry_times(0);
}
bool asst::CopilotTask::set_params(const json::value& params)