mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
perf: 主线导航目标关卡默认在屏幕内时不再划到最右边后往前寻找
This commit is contained in:
@@ -114,5 +114,8 @@ bool asst::StageNavigationTask::swipe_and_find_stage()
|
||||
std::string replace_m_stage_code = m_stage_code;
|
||||
utils::string_replace_all_in_place(replace_m_stage_code, { { "-", "" } });
|
||||
Task.get<OcrTaskInfo>(m_stage_code + "@ClickedCorrectStage")->text = { m_stage_code, replace_m_stage_code };
|
||||
return ProcessTask(*this, { m_stage_code + "@StageNavigationBegin" }).set_retry_times(RetryTimesDefault).run();
|
||||
|
||||
return ProcessTask(*this, { m_stage_code + "@ClickStageName", m_stage_code + "@StageNavigationBegin" })
|
||||
.set_retry_times(RetryTimesDefault)
|
||||
.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user