mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-05 08:25:28 +00:00
刷boss战斗结束截图
This commit is contained in:
parent
16a72de493
commit
6a67dba424
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user