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

Method run

tasks/DemonEncounter/script_task.py:32–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30class ScriptTask(GameUi, GeneralBattle, DemonEncounterAssets):
31
32 def run(self):
33 if not self.check_time():
34 logger.warning('Time is not right')
35 raise TaskEnd('DemonEncounter')
36 self.ui_get_current_page()
37 self.ui_goto(page_demon_encounter)
38 self.execute_lantern()
39 self.execute_boss()
40
41 self.set_next_run(task='DemonEncounter', success=True, finish=False)
42 raise TaskEnd('DemonEncounter')
43
44
45 def execute_boss(self):

Callers

nothing calls this directly

Calls 7

check_timeMethod · 0.95
execute_lanternMethod · 0.95
execute_bossMethod · 0.95
TaskEndClass · 0.90
ui_get_current_pageMethod · 0.80
ui_gotoMethod · 0.80
set_next_runMethod · 0.80

Tested by

no test coverage detected