chore: 调整选技能滑动的 postdelay

This commit is contained in:
uye
2026-01-19 00:56:21 +08:00
parent ab4d60b1c9
commit d64fe1c879
2 changed files with 3 additions and 5 deletions

View File

@@ -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]

View File

@@ -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));
}