fix.修复发电站进不去的问题

This commit is contained in:
MistEO
2021-11-02 10:51:54 +08:00
parent 8d30393596
commit 08230c2731
2 changed files with 3 additions and 3 deletions

View File

@@ -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()) {

View File

@@ -11,6 +11,7 @@ namespace asst {
const static std::string FacilityName;
const static int MaxNumOfOpers = 1;
const static int MaxNumOfFacility = 3;
private:
};
}