fix.修复异格导致基建卡住的问题、修复识别错误导致设施从头开始换班的问题

https://github.com/MistEO/MeoAssistantArknights/issues/132
https://github.com/MistEO/MeoAssistantArknights/issues/129
This commit is contained in:
MistEO
2022-01-28 13:55:46 +08:00
parent 7e5e28be0a
commit 33c83d7ccd
5 changed files with 15 additions and 18 deletions

View File

@@ -9,14 +9,14 @@ bool asst::InfrastPowerTask::_run()
// 发电站只能造这一个
set_product("Drone");
for (int i = 0; i != max_num_of_facilities(); ++i) {
for (; m_cur_facility_index != max_num_of_facilities(); ++m_cur_facility_index) {
if (need_exit()) {
return false;
}
swipe_to_the_left_of_main_ui();
// 进不去说明设施数量不够
if (!enter_facility(i)) {
if (!enter_facility(m_cur_facility_index)) {
break;
}
if (!enter_oper_list_page()) {