1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Fix: Oil limit too low

This commit is contained in:
LmeSzinc
2022-11-29 21:15:51 +08:00
parent a0526c74e5
commit 59183aeff1
3 changed files with 6 additions and 7 deletions

View File

@@ -81,8 +81,8 @@ class CampaignRun(CampaignEvent):
self.config.Scheduler_Enable = False
return True
# Oil limit
if oil_check and self.config.StopCondition_OilLimit:
if self.get_oil() < self.config.StopCondition_OilLimit:
if oil_check:
if self.get_oil() < max(500, self.config.StopCondition_OilLimit):
logger.hr('Triggered stop condition: Oil limit')
self.config.task_delay(minute=(120, 240))
return True