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

Method run

tasks/Delegation/script_task.py:19–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17class ScriptTask(GameUi, DelegationAssets):
18
19 def run(self):
20 self.ui_get_current_page()
21 self.ui_goto(page_delegation)
22 self.check_reward()
23 con: DelegationConfig = self.config.delegation.delegation_config
24 if con.miyoshino_painting:
25 self.delegate_one('画')
26 if con.bird_feather:
27 self.delegate_one('鸟羽')
28 if con.find_earring:
29 self.delegate_one('寻找耳环')
30 if con.cat_boss:
31 self.delegate_one('猫老大')
32 if con.miyoshino:
33 self.delegate_one('接送')
34 if con.strange_trace:
35 self.delegate_one('痕迹')
36
37
38 self.set_next_run(task='Delegation', success=True, finish=True)
39 raise TaskEnd
40
41 def delegate_one(self, name: str) -> bool:
42 """

Callers 1

script_task.pyFile · 0.45

Calls 5

check_rewardMethod · 0.95
delegate_oneMethod · 0.95
ui_get_current_pageMethod · 0.80
ui_gotoMethod · 0.80
set_next_runMethod · 0.80

Tested by

no test coverage detected