mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
chore: 调整选技能滑动的 postdelay
This commit is contained in:
@@ -48,12 +48,12 @@
|
||||
"action": "Swipe",
|
||||
"specificRect": [15, 650, 10, 10],
|
||||
"rectMove": [15, 550, 10, 10],
|
||||
"postDelay": 500
|
||||
"postDelay": 600
|
||||
},
|
||||
"BattleQuickFormationSkill-SwipeToTheUp": {
|
||||
"algorithm": "JustReturn",
|
||||
"action": "Swipe",
|
||||
"postDelay": 100,
|
||||
"postDelay": 600,
|
||||
"specificRect": [15, 400, 80, 10],
|
||||
"rectMove": [15, 700, 80, 20],
|
||||
"specialParams": [150, 0, 1, 1]
|
||||
@@ -61,7 +61,7 @@
|
||||
"BattleQuickFormationSkill-SwipeToTheDown": {
|
||||
"algorithm": "JustReturn",
|
||||
"action": "Swipe",
|
||||
"postDelay": 100,
|
||||
"postDelay": 600,
|
||||
"specificRect": [15, 525, 80, 10],
|
||||
"rectMove": [15, 200, 80, 100],
|
||||
"specialParams": [150, 0, 1, 1]
|
||||
|
||||
@@ -692,7 +692,6 @@ bool asst::BattleFormationTask::check_and_select_skill(
|
||||
}
|
||||
else {
|
||||
ProcessTask(*this, { "BattleQuickFormationSkill-SwipeToTheDown" }).run();
|
||||
sleep(swipe_task->post_delay);
|
||||
image = ctrler()->get_image();
|
||||
roi_image = make_roi(image, make_rect<cv::Rect>(base_task->roi));
|
||||
auto result = find_skill(roi_image, skill, true);
|
||||
@@ -705,7 +704,6 @@ bool asst::BattleFormationTask::check_and_select_skill(
|
||||
return true;
|
||||
}
|
||||
ProcessTask(*this, { "BattleQuickFormationSkill-SwipeToTheUp" }).run();
|
||||
sleep(swipe_task->post_delay);
|
||||
image = ctrler()->get_image(); // 一般不会走到这里, 翻回顶部走通用逻辑
|
||||
roi_image = make_roi(image, make_rect<cv::Rect>(base_task->roi));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user