Skip to content

Commit adfe978

Browse files
authored
Bug fix (#5557)
2 parents a6f1695 + a118769 commit adfe978

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

module/minigame/minigame.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ def run(self):
196196
if self.ui_page_appear(page_academy, interval=5):
197197
self.device.click(ACADEMY_GOTO_GAME_ROOM)
198198
continue
199+
# You've reached your monthly limit of Game Tickets, and will not be able to earn any more.
200+
# Continue playing the minigame?
201+
if self.handle_popup_confirm('MINIGAME_ENTER'):
202+
continue
199203

200204
# game room and choose game have same header, go to game room first
201205
self.go_to_main_page()

module/os_ash/meta.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ def after_process(self, result):
4747
class Meta(UI, MapEventHandler):
4848

4949
def digit_ocr_point_and_check(self, button: Button, check_number: int):
50-
if server.server != 'jp':
51-
point_ocr = MetaDigitCounter(button, letter=(235, 235, 235), threshold=160, name='POINT_OCR')
52-
else:
53-
point_ocr = MetaDigitCounter(button, letter=(192, 192, 192), threshold=160, name='POINT_OCR')
50+
point_ocr = MetaDigitCounter(button, letter=(235, 235, 235), threshold=160, name='POINT_OCR')
5451
point, _, _ = point_ocr.ocr(self.device.image)
5552
if point >= check_number:
5653
return True

0 commit comments

Comments
 (0)