fix:战斗选干员太靠右点不下去
This commit is contained in:
parent
9dbf5f9322
commit
8361210b8f
1 changed files with 11 additions and 0 deletions
|
@ -94,7 +94,13 @@ class BattleAgentChooseSolver(SceneGraphSolver):
|
||||||
config.recog.update()
|
config.recog.update()
|
||||||
|
|
||||||
agents = dict(operator_team_select(config.recog.img))
|
agents = dict(operator_team_select(config.recog.img))
|
||||||
|
|
||||||
if "opers" in self.agent:
|
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"]:
|
for i in self.agent["opers"]:
|
||||||
if i["name"] in agents.keys():
|
if i["name"] in agents.keys():
|
||||||
self.agent = i
|
self.agent = i
|
||||||
|
@ -102,6 +108,11 @@ class BattleAgentChooseSolver(SceneGraphSolver):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
try:
|
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)
|
self.tap(agents[self.agent["name"]], interval=0.2)
|
||||||
return
|
return
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue