mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-17 08:59:29 +08:00
Merge branch master_GUI
This commit is contained in:
@@ -279,6 +279,7 @@ class Raid(MapOperation, RaidCombat, CampaignEvent):
|
||||
Pages:
|
||||
in: page_raid
|
||||
"""
|
||||
from module.log_res.log_res import LogRes
|
||||
skip_first_screenshot = True
|
||||
timeout = Timer(1.5, count=5).start()
|
||||
ocr = pt_ocr(self.config.Campaign_Event)
|
||||
@@ -293,17 +294,13 @@ class Raid(MapOperation, RaidCombat, CampaignEvent):
|
||||
pt = ocr.ocr(self.device.image)
|
||||
if timeout.reached():
|
||||
logger.warning('Wait PT timeout, assume it is')
|
||||
from module.log_res.log_res import LogRes
|
||||
LogRes(self.config).log_res(pt, 'Pt')
|
||||
LogRes(self.config).log_res('Pt', {'Value': pt})
|
||||
return pt
|
||||
if pt in [70000, 70001]:
|
||||
continue
|
||||
else:
|
||||
from module.log_res.log_res import LogRes
|
||||
LogRes(self.config).log_res(pt, 'Pt')
|
||||
LogRes(self.config).log_res('Pt', {'Value': pt})
|
||||
return pt
|
||||
else:
|
||||
logger.info(f'Raid {self.config.Campaign_Event} does not support PT ocr, skip')
|
||||
from module.log_res.log_res import LogRes
|
||||
LogRes(self.config).log_res(0, 'Pt')
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user