From 08230c27316fb6917921182affc45f86ad5fcfd4 Mon Sep 17 00:00:00 2001 From: MistEO Date: Tue, 2 Nov 2021 10:51:54 +0800 Subject: [PATCH] =?UTF-8?q?fix.=E4=BF=AE=E5=A4=8D=E5=8F=91=E7=94=B5?= =?UTF-8?q?=E7=AB=99=E8=BF=9B=E4=B8=8D=E5=8E=BB=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MeoAssistance/InfrastPowerTask.cpp | 5 ++--- src/MeoAssistance/InfrastPowerTask.h | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MeoAssistance/InfrastPowerTask.cpp b/src/MeoAssistance/InfrastPowerTask.cpp index 87b8ad0805..fe85c5295e 100644 --- a/src/MeoAssistance/InfrastPowerTask.cpp +++ b/src/MeoAssistance/InfrastPowerTask.cpp @@ -16,9 +16,8 @@ bool asst::InfrastPowerTask::run() // 发电站只能造这一个 set_product("Drone"); - swipe_to_the_left_of_main_ui(); - - for (int i = 0; i != 3; ++i) { + for (int i = 0; i != MaxNumOfFacility; ++i) { + swipe_to_the_left_of_main_ui(); enter_facility(FacilityName, i); if (!enter_oper_list_page()) { diff --git a/src/MeoAssistance/InfrastPowerTask.h b/src/MeoAssistance/InfrastPowerTask.h index 232056bc02..c3835af2d1 100644 --- a/src/MeoAssistance/InfrastPowerTask.h +++ b/src/MeoAssistance/InfrastPowerTask.h @@ -11,6 +11,7 @@ namespace asst { const static std::string FacilityName; const static int MaxNumOfOpers = 1; + const static int MaxNumOfFacility = 3; private: }; }