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

Method _realm

tasks/DemonEncounter/script_task.py:328–342  ·  view source on GitHub ↗
(self, target_click)

Source from the content-addressed store, hash-verified

326 logger.info('Battle End')
327
328 def _realm(self, target_click):
329 # 结界
330 config = self.con
331 while 1:
332 self.screenshot()
333 if not self.appear(self.I_DE_LOCATION):
334 logger.info('Battle Start')
335 break
336 if self.appear_then_click(self.I_DE_REALM_FIRE, interval=0.7):
337 continue
338
339 if self.click(target_click, interval=1):
340 continue
341 if self.run_general_battle(config):
342 logger.info('Battle End')
343
344 def _mystery(self, target_click):
345 # 神秘任务, 不做

Callers 1

execute_lanternMethod · 0.95

Calls 5

appearMethod · 0.80
appear_then_clickMethod · 0.80
run_general_battleMethod · 0.80
screenshotMethod · 0.45
clickMethod · 0.45

Tested by

no test coverage detected