1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 18:39:04 +08:00

Fix: use cnocr for CHANGWU_OCR_REMAIN_*

This commit is contained in:
sui-feng-cb 2026-02-12 20:27:18 +08:00
parent 7e6b87bee8
commit 5ab18b27fd

View File

@ -163,7 +163,7 @@ def raid_ocr(raid, mode):
if mode == 'ex':
return Digit(button, letter=(255, 239, 215), threshold=128)
else:
return DigitCounter(button, letter=(154, 148, 133), threshold=128)
return DigitCounter(button, lang='cnocr', letter=(154, 148, 133), threshold=128)
def pt_ocr(raid):
@ -204,12 +204,7 @@ class Raid(MapOperation, RaidCombat, CampaignEvent):
Game devs are too asshole to drop oil display for UI design
https://github.com/LmeSzinc/AzurLaneAutoScript/issues/5214
"""
if self.config.Campaign_Event in [
'raid_20240328',
'raid_20260212',
]:
return False
return True
return False
def triggered_stop_condition(self, oil_check=False, pt_check=False, coin_check=False):
"""