From 99363a3c14314cd198d3f00c0fa90a262cd443c4 Mon Sep 17 00:00:00 2001 From: guoh064 <50830808+guoh064@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:20:34 +0800 Subject: [PATCH] upd: [JP] opsi beacon page color --- module/os_ash/meta.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/module/os_ash/meta.py b/module/os_ash/meta.py index 8d854926a..b1312d4da 100644 --- a/module/os_ash/meta.py +++ b/module/os_ash/meta.py @@ -23,7 +23,10 @@ class MetaState(Enum): OCR_BEACON_TIER = Digit(BEACON_TIER, name='OCR_ASH_TIER') -OCR_META_DAMAGE = Digit(META_DAMAGE, name='OCR_META_DAMAGE') +if server.server != 'jp': + OCR_META_DAMAGE = Digit(META_DAMAGE, name='OCR_META_DAMAGE') +else: + OCR_META_DAMAGE = Digit(META_DAMAGE, letter=(201, 201, 201), name='OCR_META_DAMAGE') class MetaDigitCounter(DigitCounter): @@ -44,7 +47,10 @@ class MetaDigitCounter(DigitCounter): class Meta(UI, MapEventHandler): def digit_ocr_point_and_check(self, button: Button, check_number: int): - point_ocr = MetaDigitCounter(button, letter=(235, 235, 235), threshold=160, name='POINT_OCR') + if server.server != 'jp': + 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) if point >= check_number: return True