MCPcopy Create free account
hub / github.com/runhey/OnmyojiAutoScript / back_boss

Method back_boss

tasks/WeeklyTrifles/script_task.py:115–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 :return:
114 """
115 def back_boss():
116 while 1:
117 self.screenshot()
118 if self.appear(self.I_WT_DAY_BATTLE) or self.appear(self.I_CHECK_EXPLORATION):
119 break
120 if self.appear_then_click(self.I_UI_BACK_RED, interval=1):
121 continue
122 if self.appear_then_click(self.I_UI_BACK_BLUE, interval=1):
123 continue
124 if self.appear_then_click(self.I_UI_BACK_YELLOW, interval=1):
125 continue
126 logger.info('Back to boss')
127 logger.hr('Share area boss')
128 self.ui_get_current_page()
129 self.ui_goto(page_area_boss)

Callers

nothing calls this directly

Calls 3

appearMethod · 0.80
appear_then_clickMethod · 0.80
screenshotMethod · 0.45

Tested by

no test coverage detected