فهرست منبع

fix(GoldYoukai): ocr error

ryland 1 سال پیش
والد
کامیت
1d0e27419b
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      tasks/Component/GeneralRoom/general_room.py

+ 2 - 0
tasks/Component/GeneralRoom/general_room.py

@@ -138,6 +138,8 @@ class GeneralRoom(BaseTask, GeneralRoomAssets):
             text_ocr = self.O_GR_ZONES_NAME.ocr(self.device.image)
             if name == '石距' and name in text_ocr:
                 break
+            if name == '金币妖怪' and "金币" in text_ocr:
+                break
             if click_timer.reached():
                 click_timer.reset()
                 self.device.click(x=pos[0] + randint(-5, 5), y=pos[1] + randint(-5, 5))