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

Method exit_task

tasks/Tako/script_task.py:81–104  ·  view source on GitHub ↗

退出任务 :return:

(self)

Source from the content-addressed store, hash-verified

79 self.exit_task()
80
81 def exit_task(self):
82 """
83 退出任务
84 :return:
85 """
86 conf_buff = self.config.tako.tako_config
87 self.ui_get_current_page()
88 self.ui_goto(page_main)
89 if conf_buff.enable:
90 self.ui_get_current_page()
91 self.ui_goto(page_main)
92 self.open_buff()
93 if conf_buff.buff_gold_50_click:
94 self.gold_50(False)
95 if conf_buff.buff_gold_100_click:
96 self.gold_100(False)
97 if conf_buff.buff_exp_50_click:
98 self.exp_50(False)
99 if conf_buff.buff_exp_100_click:
100 self.exp_100(False)
101 self.close_buff()
102
103 self.set_next_run(task='Tako', success=True, finish=False)
104 raise TaskEnd('Tako')
105
106 def battle_wait(self, random_click_swipt_enable: bool) -> bool:
107 # 重写

Callers 1

runMethod · 0.95

Calls 10

TaskEndClass · 0.90
ui_get_current_pageMethod · 0.80
ui_gotoMethod · 0.80
open_buffMethod · 0.80
gold_50Method · 0.80
gold_100Method · 0.80
exp_50Method · 0.80
exp_100Method · 0.80
close_buffMethod · 0.80
set_next_runMethod · 0.80

Tested by

no test coverage detected