This commit is contained in:
parent
4ab9e29995
commit
f0997a7436
1 changed files with 9 additions and 3 deletions
|
@ -70,7 +70,7 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin):
|
|||
|
||||
if len(self.agents) > 1:
|
||||
for i in agents:
|
||||
if self.is_choosed(agents[i]) and agents[i][0][0] < 1720:
|
||||
if self.is_choosed(agents[i]) and agents[i][0][0] < 1600:
|
||||
if i not in self.agents and i not in self.choosed:
|
||||
self.tap_element("choose_agent/clear", interval=0.1)
|
||||
return
|
||||
|
@ -83,7 +83,7 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin):
|
|||
self.agent = None
|
||||
return
|
||||
|
||||
if agents[agent_name][0][0] > 1650:
|
||||
if agents[agent_name][0][0] > 1600:
|
||||
self.swipe_noinertia((1000, 540), (-500, 0))
|
||||
return
|
||||
|
||||
|
@ -128,7 +128,13 @@ class RIIC_ChooseSolver(SceneGraphSolver, BaseMixin):
|
|||
],
|
||||
)[0][0][0]
|
||||
< 50
|
||||
):
|
||||
) and cropimg(
|
||||
config.recog.img,
|
||||
[
|
||||
[scope[0][0] + 0, scope[1][1] + 209],
|
||||
[scope[0][0] + 1, scope[1][1] + 210],
|
||||
],
|
||||
)[0][0][0] < 50:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue