mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 18:01:26 +08:00
feat: 增加了一个二次检测进行保底
This commit is contained in:
@@ -3308,6 +3308,30 @@
|
||||
"StartUpConnectingFlag@LoadingIcon"
|
||||
]
|
||||
},
|
||||
"StartAtHome": {
|
||||
"baseTask": "Home",
|
||||
"action": "DoNothing",
|
||||
"template": [
|
||||
"Terminal.png",
|
||||
"TerminalDark.png",
|
||||
"TerminalSami.png"
|
||||
],
|
||||
"next": [
|
||||
"StartAtHome2",
|
||||
"StartUpBegin"
|
||||
],
|
||||
"postDelay_Doc": "等待以防万一(StartUp还有双倍的任务延迟等待,默认0.5s x2",
|
||||
"postDelay": 2000
|
||||
},
|
||||
"StartAtHome2": {
|
||||
"baseTask": "Home",
|
||||
"action": "Stop",
|
||||
"template": [
|
||||
"Terminal.png",
|
||||
"TerminalDark.png",
|
||||
"TerminalSami.png"
|
||||
]
|
||||
},
|
||||
"StartWithSanity": {
|
||||
"roi": [
|
||||
700,
|
||||
|
||||
@@ -17,7 +17,7 @@ asst::StartUpTask::StartUpTask(const AsstCallback& callback, Assistant* inst)
|
||||
LogTraceFunction;
|
||||
|
||||
// 前两项认为用户已手动启动至首页
|
||||
m_start_up_task_ptr->set_tasks({ "Home", "StartWithSanity", "StartUpBegin" })
|
||||
m_start_up_task_ptr->set_tasks({ "StartAtHome", "StartWithSanity", "StartUpBegin" })
|
||||
.set_times_limit("BlackReturn", 0)
|
||||
.set_task_delay(Config.get_options().task_delay * 2)
|
||||
.set_retry_times(30);
|
||||
|
||||
Reference in New Issue
Block a user