mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-26 18:37:54 +08:00
Bug fix (#5557)
This commit is contained in:
@@ -196,6 +196,10 @@ class Minigame(UI):
|
|||||||
if self.ui_page_appear(page_academy, interval=5):
|
if self.ui_page_appear(page_academy, interval=5):
|
||||||
self.device.click(ACADEMY_GOTO_GAME_ROOM)
|
self.device.click(ACADEMY_GOTO_GAME_ROOM)
|
||||||
continue
|
continue
|
||||||
|
# You've reached your monthly limit of Game Tickets, and will not be able to earn any more.
|
||||||
|
# Continue playing the minigame?
|
||||||
|
if self.handle_popup_confirm('MINIGAME_ENTER'):
|
||||||
|
continue
|
||||||
|
|
||||||
# game room and choose game have same header, go to game room first
|
# game room and choose game have same header, go to game room first
|
||||||
self.go_to_main_page()
|
self.go_to_main_page()
|
||||||
|
|||||||
@@ -47,10 +47,7 @@ class MetaDigitCounter(DigitCounter):
|
|||||||
class Meta(UI, MapEventHandler):
|
class Meta(UI, MapEventHandler):
|
||||||
|
|
||||||
def digit_ocr_point_and_check(self, button: Button, check_number: int):
|
def digit_ocr_point_and_check(self, button: Button, check_number: int):
|
||||||
if server.server != 'jp':
|
point_ocr = MetaDigitCounter(button, letter=(235, 235, 235), threshold=160, name='POINT_OCR')
|
||||||
point_ocr = MetaDigitCounter(button, letter=(235, 235, 235), threshold=160, name='POINT_OCR')
|
|
||||||
else:
|
|
||||||
point_ocr = MetaDigitCounter(button, letter=(192, 192, 192), threshold=160, name='POINT_OCR')
|
|
||||||
point, _, _ = point_ocr.ocr(self.device.image)
|
point, _, _ = point_ocr.ocr(self.device.image)
|
||||||
if point >= check_number:
|
if point >= check_number:
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user