mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 13:07:33 +08:00
upd: [JP] opsi beacon page color
This commit is contained in:
parent
74e241d9ef
commit
4f79fba2c2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user