fix: 增加肉鸽招募时的左滑次数

This commit is contained in:
MistEO
2022-10-01 02:59:38 +08:00
parent 785cd4a44e
commit 077b43a1f4
2 changed files with 5 additions and 5 deletions

View File

@@ -4737,7 +4737,7 @@
"specificRect": [
1080,
200,
100,
200,
300
],
"preDelay": 300,
@@ -4751,7 +4751,7 @@
"specificRect": [
400,
200,
100,
200,
300
]
},

View File

@@ -184,7 +184,7 @@ bool asst::RoguelikeRecruitTaskPlugin::_run()
// 如果划动过,先划回最左边
if (i != 0) {
swipe_to_the_left_of_operlist(i / 5 + 1);
swipe_to_the_left_of_operlist(i / 3 + 1);
}
auto image = m_ctrler->get_image();
@@ -241,7 +241,7 @@ bool asst::RoguelikeRecruitTaskPlugin::_run()
is_rtl = (selected_oper->page_index * 2) >= i;
if (!is_rtl) {
// 从左往右需要先划回最左边
swipe_to_the_left_of_operlist(i / 5 + 1);
swipe_to_the_left_of_operlist(i / 3 + 1);
}
}
@@ -294,7 +294,7 @@ bool asst::RoguelikeRecruitTaskPlugin::check_char(const std::string& char_name,
sleep(Task.get("Roguelike1Custom-HijackSquad")->rear_delay);
}
Log.info(__FUNCTION__, "| Cannot find oper `" + char_name + "`");
swipe_to_the_left_of_operlist(i / 5 + 1);
swipe_to_the_left_of_operlist(i / 3 + 1);
return false;
}