fix:战斗选干员太靠右点不下去

This commit is contained in:
EightyDollars 2024-10-28 12:51:42 +08:00
parent 9dbf5f9322
commit 8361210b8f

View file

@ -94,7 +94,13 @@ class BattleAgentChooseSolver(SceneGraphSolver):
config.recog.update()
agents = dict(operator_team_select(config.recog.img))
if "opers" in self.agent:
# 太靠右点不下去,需要往左滑一点
if agents[i["name"]][0][0] > 1650:
self.wait_choose = None
self.swipe_noinertia((1000, 540), (-500, 0))
return
for i in self.agent["opers"]:
if i["name"] in agents.keys():
self.agent = i
@ -102,6 +108,11 @@ class BattleAgentChooseSolver(SceneGraphSolver):
return
else:
try:
# 太靠右点不下去,需要往左滑一点
if agents[self.agent["name"]][0][0] > 1650:
self.wait_choose = None
self.swipe_noinertia((1000, 540), (-500, 0))
return
self.tap(agents[self.agent["name"]], interval=0.2)
return
except KeyError: