mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Oil limit too low
This commit is contained in:
parent
a0526c74e5
commit
59183aeff1
@ -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
|
||||
|
||||
@ -101,7 +101,7 @@ class AutoSearchCombat(MapOperation, Combat, CampaignStatus):
|
||||
if oil == 0:
|
||||
logger.warning('Oil not found')
|
||||
else:
|
||||
if oil < self.config.StopCondition_OilLimit:
|
||||
if oil < max(500, self.config.StopCondition_OilLimit):
|
||||
logger.info('Reach oil limit')
|
||||
self.auto_search_oil_limit_triggered = True
|
||||
else:
|
||||
|
||||
@ -137,10 +137,9 @@ class Raid(MapOperation, Combat, CampaignEvent):
|
||||
|
||||
@run_once
|
||||
def check_oil():
|
||||
if self.config.StopCondition_OilLimit:
|
||||
if self.get_oil() < self.config.StopCondition_OilLimit:
|
||||
logger.hr('Triggered oil limit')
|
||||
raise OilExhausted
|
||||
if self.get_oil() < max(500, self.config.StopCondition_OilLimit):
|
||||
logger.hr('Triggered oil limit')
|
||||
raise OilExhausted
|
||||
|
||||
@run_once
|
||||
def check_coin():
|
||||
|
||||
Loading…
Reference in New Issue
Block a user