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

Method run

tasks/KekkaiActivation/script_task.py:26–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24class ScriptTask(KU, KekkaiActivationAssets):
25
26 def run(self):
27 con = self.config.kekkai_activation.activation_config
28 self.ui_get_current_page()
29 self.ui_goto(page_guild)
30 # 进入寮结界
31 self.goto_realm()
32 if con.exchange_before:
33 self.check_max_lv(con.shikigami_class)
34 self.harvest_card()
35
36 self.run_activation(con)
37 while 1:
38 # 关闭到结界界面
39 self.screenshot()
40 if self.appear(self.I_REALM_SHIN):
41 break
42 if self.appear(self.I_SHI_GROWN):
43 break
44 if self.appear_then_click(self.I_UI_BACK_RED, interval=1):
45 continue
46
47 if con.exchange_max:
48 self.check_max_lv(con.shikigami_class)
49 self.back_guild()
50
51 raise TaskEnd('KekkaiActivation')
52
53 @cached_property
54 def dict_card_image(self) -> dict:

Callers 1

script_task.pyFile · 0.45

Calls 11

goto_realmMethod · 0.95
check_max_lvMethod · 0.95
harvest_cardMethod · 0.95
run_activationMethod · 0.95
back_guildMethod · 0.95
TaskEndClass · 0.90
ui_get_current_pageMethod · 0.80
ui_gotoMethod · 0.80
appearMethod · 0.80
appear_then_clickMethod · 0.80
screenshotMethod · 0.45

Tested by

no test coverage detected