重写领取邮件;tap_element并入tap

This commit is contained in:
zhbaor 2024-11-18 16:01:48 +08:00
parent fd7b82892d
commit 4d01bf76cf
53 changed files with 206 additions and 178 deletions

View file

@ -92,7 +92,7 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin):
if self.is_choosed(agents[i]) and agents[i][0][0] < 1600:
if i not in self.agents and i not in self.choosed:
logger.debug(f"错选 {i}")
self.tap_element("choose_agent/clear", interval=0.1)
self.tap("choose_agent/clear", interval=0.1)
self.agents_copy = deepcopy(self.agents)
self.choosed = []
self.agent = None
@ -212,11 +212,11 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin):
if contain_choose is False or len(self.agents) == 1:
self.cleard = True
else:
self.tap_element("choose_agent/clear", interval=0.1)
self.tap("choose_agent/clear", interval=0.1)
return
if self.riic_agent_choose():
self.sleep(self.check_wait_time())
self.tap_element("confirm_blue")
self.tap("confirm_blue")
self.success = True
elif self.find("room_detail"):

View file

@ -28,7 +28,7 @@ class DailySolver(SceneGraphSolver):
"clue/icon_notification", scope=((1400, 0), (1920, 400))
) and (clue := clue_cls("daily")):
logger.info(f"领取今日线索({clue}号)")
self.tap_element("clue/button_get")
self.tap("clue/button_get")
else:
# 今日线索已领取,点X退出
self.tap((1484, 152))

View file

@ -99,7 +99,7 @@ class SwitchAssistantsSolver(SceneGraphSolver, BaseMixin):
if name := BattleFillChooseSolver().run("信赖值", 1, self.black_list):
self.black_list.append(name[0])
if self.find("choose_agent/battle_confirm"):
self.tap_element("choose_agent/battle_confirm")
self.tap("choose_agent/battle_confirm")
self.sleep(0.5)
else:
self.scene_graph_step(Scene.RIIC_REPORT)

View file

@ -85,7 +85,7 @@ class ChooseProductSolver(SceneGraphSolver):
else:
self.tap(self.second_pos)
elif scene == Scene.PRODUCT_SWITCHING_CONFIRM:
self.tap_element("double_confirm/main", x_rate=1)
self.tap("double_confirm/main", x_rate=1)
self.success = True
elif scene in self.waiting_scene:
self.waiting_solver()