|
|
@@ -50,13 +50,13 @@ class ScriptTask(GameUi, ReplaceShikigami, KekkaiUtilizeAssets):
|
|
|
self.check_box_ap_or_exp(con.box_ap_enable, con.box_exp_enable, con.box_exp_waste)
|
|
|
|
|
|
# 收取寮资金和体力
|
|
|
- self.recive_guild_ap_or_assets()
|
|
|
+ self.recive_guild_ap_or_assets(con.harvest_guild_max_times)
|
|
|
if not con.utilize_enable:
|
|
|
self.set_next_run(task='KekkaiUtilize', finish=True, success=True)
|
|
|
raise TaskEnd
|
|
|
|
|
|
- def recive_guild_ap_or_assets(self):
|
|
|
- for i in range(1, 5):
|
|
|
+ def recive_guild_ap_or_assets(self, max_tries: int = 3):
|
|
|
+ for i in range(1, max_tries+1):
|
|
|
self.ui_get_current_page()
|
|
|
self.ui_goto(page_guild)
|
|
|
# 在寮的主界面 检查是否有收取体力或者是收取寮资金
|