DailySolver优化,避免线索满时卡循环
This commit is contained in:
parent
3d9a676ce2
commit
d6cb4606f4
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,7 @@ from .utils import clue_cls
|
|||
|
||||
class DailySolver(SceneGraphSolver):
|
||||
def run(self) -> None:
|
||||
self.success = False
|
||||
super().run()
|
||||
|
||||
def transition(self) -> bool:
|
||||
|
@ -16,7 +17,7 @@ class DailySolver(SceneGraphSolver):
|
|||
elif scene == Scene.INFRA_CONFIDENTIAL:
|
||||
# 检查是否领过线索
|
||||
daily_scope = ((1815, 200), (1895, 250))
|
||||
if self.find("clue/badge_new", scope=daily_scope):
|
||||
if self.find("clue/badge_new", scope=daily_scope) and not self.success:
|
||||
self.tap((1800, 270))
|
||||
else:
|
||||
return True
|
||||
|
@ -29,6 +30,7 @@ class DailySolver(SceneGraphSolver):
|
|||
else:
|
||||
# 今日线索已领取,点X退出
|
||||
self.tap((1484, 152))
|
||||
self.success = True
|
||||
elif scene in self.waiting_scene:
|
||||
self.waiting_solver()
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue