From 6a67dba42462da3207cde1ff7c99392237ff1f7f Mon Sep 17 00:00:00 2001 From: "firedcto@gmail.com" Date: Mon, 29 Jul 2024 08:36:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7boss=E6=88=98=E6=96=97=E7=BB=93?= =?UTF-8?q?=E6=9D=9F=E6=88=AA=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/task/BaseCombatTask.py | 3 +-- src/task/BaseWWTask.py | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/task/BaseCombatTask.py b/src/task/BaseCombatTask.py index 5b1f3e7..9c143cb 100644 --- a/src/task/BaseCombatTask.py +++ b/src/task/BaseCombatTask.py @@ -69,8 +69,7 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck): raise e except NotInCombatException as e: logger.info(f'combat_once out of combat break {e}') - if self.debug: - self.screenshot(f'out of combat break {self.out_of_combat_reason}') + self.screenshot(f'combat_once out of combat break {self.out_of_combat_reason}') break self.wait_in_team_and_world(time_out=10) self.sleep(1) diff --git a/src/task/BaseWWTask.py b/src/task/BaseWWTask.py index a0b9bca..ef555c3 100644 --- a/src/task/BaseWWTask.py +++ b/src/task/BaseWWTask.py @@ -127,12 +127,16 @@ class BaseWWTask(BaseTask, FindFeature, OCR): def handle_monthly_card(self): monthly_card = self.find_one('monthly_card', threshold=0.8) if monthly_card is not None: + self.screenshot('monthly_card1') self.click(monthly_card) self.sleep(3) + self.screenshot('monthly_card2') self.click(monthly_card) self.sleep(2) + self.screenshot('monthly_card3') self.click(monthly_card) self.sleep(2) + self.screenshot('monthly_card4') self.set_check_monthly_card(next_day=True) logger.debug(f'check_monthly_card {monthly_card}') return monthly_card is not None