From 1f0d790c1d6eba2ced69e74b958a3bfab0e11532 Mon Sep 17 00:00:00 2001 From: Shawnsdaddy Date: Fri, 6 Oct 2023 22:56:04 -0700 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=89=E4=BA=BA=E5=87=BA?= =?UTF-8?q?=E9=94=99=E6=AD=BB=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/solvers/base_schedule.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/arknights_mower/solvers/base_schedule.py b/arknights_mower/solvers/base_schedule.py index e0b7aad6f..d106a6774 100644 --- a/arknights_mower/solvers/base_schedule.py +++ b/arknights_mower/solvers/base_schedule.py @@ -2043,6 +2043,10 @@ def agent_arrange_room(self, new_plan, room, plan, skip_enter=False, get_time=Fa choose_error += 1 self.recog.update() self.recog.save_screencap('choose_agent_failure') + if "检测到漏单!" in str(e): + return {} + if choose_error > 3: + raise e if "检测到安排干员未成功" in str(e): skip_enter = True continue @@ -2052,12 +2056,7 @@ def agent_arrange_room(self, new_plan, room, plan, skip_enter=False, get_time=Fa back_count += 1 if back_count > 3: raise e - if "检测到漏单!" in str(e): - return {} - if choose_error > 3: - raise e - else: - continue + continue if len(new_plan) != 1: self.back(0.5) else: