mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 10:57:45 +08:00
feat: 隐秘战线 (#15115)
* feat: 隐秘战线 * chore: Auto update by pre-commit hooks [skip changelog] * fix: 抵达终点 * chore: Auto update by pre-commit hooks [skip changelog] * perf: 抑制一下低概率 * feat: ui 新增隐秘战线入口 * chore: Auto update by pre-commit hooks [skip changelog] * i18n: zh-tw * i18n: KR * chore: fix typo * i18n: JP * chore: txwy update * chore: Auto update by pre-commit hooks [skip changelog] * i18n: placehold * rft: roi to json * i18n: 翻译 * chore: 插件只在传入对应任务时启用 * fix: 任务名错误 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: momomochi987 <as99us301@gmail.com> Co-authored-by: HX3N <scarlet7518@gmail.com> Co-authored-by: Manicsteiner <Manicsteiner@outlook.com> Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "CustomTask.h"
|
||||
|
||||
#include "Config/TaskData.h"
|
||||
#include "Task/MiniGame/SecretFrontTaskPlugin.h"
|
||||
#include "Task/Miscellaneous/ScreenshotTaskPlugin.h"
|
||||
#include "Task/ProcessTask.h"
|
||||
#include "Utils/Logger.hpp"
|
||||
@@ -33,6 +34,11 @@ bool asst::CustomTask::set_params(const json::value& params)
|
||||
Log.error("set_params failed, task not found: ", t.as_string());
|
||||
return false;
|
||||
}
|
||||
|
||||
if (t.as_string().starts_with("MiniGame@SecretFront@")) {
|
||||
m_custom_task_ptr->register_plugin<SecretFrontTaskPlugin>();
|
||||
}
|
||||
|
||||
tasks.emplace_back(t.as_string());
|
||||
}
|
||||
m_custom_task_ptr->set_tasks(std::move(tasks));
|
||||
|
||||
Reference in New Issue
Block a user