1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-09 13:59:02 +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 c4961c80eb
commit 5fceeddcb1

View File

@ -165,7 +165,7 @@ def raid_ocr(raid, mode):
if mode == 'ex': if mode == 'ex':
return Digit(button, letter=(255, 239, 215), threshold=128) return Digit(button, letter=(255, 239, 215), threshold=128)
else: 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): def pt_ocr(raid):
@ -206,12 +206,7 @@ class Raid(MapOperation, RaidCombat, CampaignEvent):
Game devs are too asshole to drop oil display for UI design Game devs are too asshole to drop oil display for UI design
https://github.com/LmeSzinc/AzurLaneAutoScript/issues/5214 https://github.com/LmeSzinc/AzurLaneAutoScript/issues/5214
""" """
if self.config.Campaign_Event in [
'raid_20240328',
'raid_20260212',
]:
return False return False
return True
def check_oil(self): def check_oil(self):
limit = max(500, self.config.StopCondition_OilLimit) limit = max(500, self.config.StopCondition_OilLimit)