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

Fix: Menu extraction

- Delay task if reach oil limit
This commit is contained in:
LmeSzinc
2021-09-28 00:49:38 +08:00
parent 2627da413d
commit 5b772facb8
6 changed files with 71 additions and 4 deletions

View File

@@ -87,6 +87,7 @@ class CampaignRun(UI):
if OCR_OIL.ocr(self.device.image) < self.config.StopCondition_OilLimit:
logger.hr('Triggered stop condition: Oil limit')
self.config.Scheduler_Enable = False
self.config.task_delay(minute=(120, 240))
return True
# If Get a New Ship
if self.config.StopCondition_GetNewShip and self.campaign.config.GET_SHIP_TRIGGERED: