fix:tag选择失败和信赖筛选反复点击
This commit is contained in:
parent
b28b9cfe8a
commit
c153f10c23
5 changed files with 8 additions and 16 deletions
|
@ -27,11 +27,7 @@ class RIICTagChoose(SceneGraphSolver):
|
|||
return "ALL"
|
||||
|
||||
if arrow := self.find("choose_agent/profession/choose_arrow"):
|
||||
for i in self.professions:
|
||||
str = "choose_agent/profession/" + i
|
||||
pos = self.find(str)
|
||||
if pos[0][1] > arrow[0][1] and pos[1][1] < arrow[1][1]:
|
||||
return i
|
||||
return self.professions[int((arrow[0][1] - 120) / 120)]
|
||||
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue