From c047030f8edf96a0f3ebed76473eb65694cedbe9 Mon Sep 17 00:00:00 2001 From: ZYX_QZ Date: Thu, 29 Aug 2024 23:22:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=AE=E5=88=86=E5=AE=87=E5=AE=99-=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=87=AA=E5=8A=A8=E6=88=98=E6=96=97=20fix:=20?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=AE=87=E5=AE=99-=E6=88=98=E6=96=97?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- diver.py | 7 +++---- imgs/fail.jpg | Bin 0 -> 2655 bytes simul.py | 5 ++++- 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 imgs/fail.jpg diff --git a/diver.py b/diver.py index d06661d..96ab57a 100644 --- a/diver.py +++ b/diver.py @@ -104,6 +104,8 @@ def loop(self): area_text = self.clean_text(self.ts.ocr_one_row(self.screen, [50, 350, 3, 35]), char=0) if '位面' in area_text or '区域' in area_text or '第' in area_text: self.area() + elif self.check("c", 0.9417, 0.1204, threshold=0.965): + self.press('v') else: text = self.merge_text(self.ts.find_with_box([400, 1920, 100, 600], redundancy=0)) if self.speed and '转化' in text and '继续战斗' not in text and ('数据' in text or '过量' in text): @@ -730,10 +732,7 @@ def area(self): self.portal_opening_days(static=1) elif area_now == '首领': if self.floor == 13 and self.area_state > 0: - if config.weekly_mode: - self.portal_opening_days(aimed=1) - else: - self.close_and_exit() + self.close_and_exit() self.end_of_uni() return if self.area_state == 0: diff --git a/imgs/fail.jpg b/imgs/fail.jpg new file mode 100644 index 0000000000000000000000000000000000000000..86d41ff5745d8a7fefaa75c5baae77179455514b GIT binary patch literal 2655 zcmbW!c{J2}9|!Q?Zx$oQzL$wC8P{HueHnY)FqW&3E!!Z%U@T!QWvSF~6J>9Z3dvY5 zDO)3I5K4DK89O(bWGq=8_ul8+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b1172..fa17cd8 100644 --- a/simul.py +++ b/simul.py @@ -140,7 +140,7 @@ def route(self): if self._stop: break self.get_screen() - #self.click_target('imgs/huangquan.jpg',0.9,True) # 如果需要输出某张图片在游戏窗口中的坐标,可以用这个 + # self.click_target('imgs/fail.jpg',0.9,True) # 如果需要输出某张图片在游戏窗口中的坐标,可以用这个 """ if begin and not self.check("f", 0.4437,0.4231) and not self.check("abyss/1",0.8568,0.6769): begin = 0 @@ -708,6 +708,9 @@ def normal(self): self.click((self.tx,self.ty)) time.sleep(1) return 0 + elif self.check("fail", 0.6276, 0.0843): + self.click((self.tx, self.ty)) + time.sleep(1.8) else: return 0 return 1