fix:误判干员被选中
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful

This commit is contained in:
EightyDollars 2024-11-03 12:41:09 +08:00
parent 4ab9e29995
commit f0997a7436

View file

@ -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