mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 11:05:25 +08:00
Fix: sos continous loop, reward can interrupt and throw off next ocr check
This commit is contained in:
@@ -192,6 +192,8 @@ class CampaignSos(CampaignRun, CampaignBase):
|
|||||||
while 1:
|
while 1:
|
||||||
if self._sos_signal_select(chapter):
|
if self._sos_signal_select(chapter):
|
||||||
super().run(f'campaign_{chapter}_5', folder=folder, total=total)
|
super().run(f'campaign_{chapter}_5', folder=folder, total=total)
|
||||||
|
if not self.appear(CAMPAIGN_CHECK, offset=(20, 20)):
|
||||||
|
self.ui_weigh_anchor()
|
||||||
remain = OCR_SOS_SIGNAL.ocr(self.device.image)
|
remain = OCR_SOS_SIGNAL.ocr(self.device.image)
|
||||||
logger.attr('remain', remain)
|
logger.attr('remain', remain)
|
||||||
if remain < 1:
|
if remain < 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user