Skip to content

Commit

Permalink
v5.5 -
Browse files Browse the repository at this point in the history
  • Loading branch information
ZYX committed Sep 14, 2023
1 parent 1226598 commit 96fb065
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Binary file modified imgs/maps/37007/target.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions states.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ def route(self):
time.sleep(0.5)
if self.ts.nothing:
self.in_battle = time.time()
print('nothing')
if time.time()-self.in_battle>7:
if self.threshold == 0.97 and fail_cnt==0:
log.info("匹配不到任何图标")
Expand All @@ -201,7 +200,6 @@ def route(self):
time.sleep(0.25)
self.threshold = 0.97
time.sleep(0.1)

# 匹配到图片 res=1时等待一段时间
else:
fail_cnt = 0
Expand Down Expand Up @@ -654,7 +652,9 @@ def normal(self):
self.get_screen()
self.press("esc")
self.confirm_time = time.time()
return 0
else:
return 0
return 1

def find_latest_modified_file(self, folder_path):
files = [
Expand Down
2 changes: 0 additions & 2 deletions utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,6 @@ def nof(self):
"f", 0.4443, 0.4417, mask="mask_f1"
),not isrun(self)
ava = a and b
#print(a,b)
#print(self.ts.text,ava)
if ava:
if self.ts.sim("区域"):
self.init_map()
Expand Down

0 comments on commit 96fb065

Please sign in to comment.