mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-07-29 23:16:28 +08:00
Merge branch 'master' of https://github.com/LmeSzinc/AzurLaneAutoScript
This commit is contained in:
@@ -63,6 +63,8 @@ class Coalition(CoalitionCombat, CampaignEvent):
|
||||
ocr = DALPtOcr(DAL_PT_OCR, name='OCR_PT', letter=(255, 213, 69), threshold=128)
|
||||
elif event == 'coalition_20260122':
|
||||
ocr = Digit(FASHION_PT_OCR, name='OCR_PT', letter=(41, 40, 40), threshold=128)
|
||||
elif event == 'coalition_20260723':
|
||||
ocr = Digit(HORROR_PT_OCR, name='OCR_PT', lang='cnocr', letter=(228, 230, 237), threshold=256)
|
||||
else:
|
||||
logger.error(f'ocr object is not defined in event {event}')
|
||||
raise ScriptError
|
||||
@@ -105,6 +107,8 @@ class Coalition(CoalitionCombat, CampaignEvent):
|
||||
"""
|
||||
if self.config.Campaign_Event == 'coalition_20260122':
|
||||
return False
|
||||
if self.config.Campaign_Event == 'coalition_20260723':
|
||||
return False
|
||||
return True
|
||||
|
||||
def triggered_stop_condition(self, oil_check=False, pt_check=False):
|
||||
@@ -247,5 +251,6 @@ class Coalition(CoalitionCombat, CampaignEvent):
|
||||
|
||||
if __name__ == '__main__':
|
||||
self = Coalition('alas5', task='Coalition')
|
||||
self.device.screenshot()
|
||||
self.image_file = r''
|
||||
# self.device.screenshot()
|
||||
self.get_event_pt()
|
||||
|
||||
Reference in New Issue
Block a user