From 6fcfa2b8d209684aa0d4ed6ba8156907363e5d4e Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Wed, 11 Oct 2023 11:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B0=83=E8=AF=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=EF=BC=8C=E4=BF=AE=E6=94=B9=E5=BC=80=E5=90=AFimpart?= =?UTF-8?q?=E6=97=B6=E8=AF=BB=E5=8F=96=E6=97=B6=E9=97=B4=E7=9A=84=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arknights_mower/solvers/base_schedule.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arknights_mower/solvers/base_schedule.py b/arknights_mower/solvers/base_schedule.py index a215323e9..7e9de0e87 100644 --- a/arknights_mower/solvers/base_schedule.py +++ b/arknights_mower/solvers/base_schedule.py @@ -1090,6 +1090,8 @@ def clue(self) -> None: self.free_clue = get_server_weekday() logger.info('放置线索') clue_unlock = self.find('clue_unlock') + logger.debug(clue_unlock) + logger.info(f'impart{"未" if clue_unlock else "已"}开启') if clue_unlock is not None: # 当前线索交流未开启 self.tap_element('clue', interval=3) @@ -1135,9 +1137,10 @@ def clue(self) -> None: # 返回线索主界面 self.tap((self.recog.w * 0.05, self.recog.h * 0.95), interval=3, rebuild=False) # 线索交流开启 + PARTY_TIME_COORDNIATE = (1768, 438, 1902, 480) if clue_unlock is not None and get_all_clue: self.tap(clue_unlock) - self.party_time = self.double_read_time((1765, 422, 1920, 515)) + self.party_time = self.double_read_time(PARTY_TIME_COORDNIATE) if self.party_time < datetime.now(): logger.info(f"检测到impart开启失败!") self.party_time = None @@ -1149,7 +1152,7 @@ def clue(self) -> None: elif clue_unlock is None: # 记录趴体时间 self.back(interval=2) - self.party_time = self.double_read_time((1768, 438, 1902, 480)) + self.party_time = self.double_read_time(PARTY_TIME_COORDNIATE) logger.info(f"impart结束时间为: {self.party_time}") self.op_data.clues = [] else: