Skip to content

Commit

Permalink
刷boss战斗结束截图
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 29, 2024
1 parent 16a72de commit 6a67dba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/task/BaseCombatTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ def combat_once(self, wait_combat_time=180, wait_before=3):
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)
Expand Down
4 changes: 4 additions & 0 deletions src/task/BaseWWTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,16 @@ def in_team_and_world(self):
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
Expand Down

0 comments on commit 6a67dba

Please sign in to comment.