mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Add: Event PT and time limit
- Fix: Auto update events in GemsFarming
This commit is contained in:
@@ -98,6 +98,11 @@ class CampaignRun(UI):
|
||||
logger.hr('Triggered stop condition: Get new ship')
|
||||
self.config.Scheduler_Enable = False
|
||||
return True
|
||||
# Event limit
|
||||
if oil_check and self.campaign.event_pt_limit_triggered():
|
||||
logger.hr('Triggered stop condition: Event PT limit')
|
||||
self.config.Scheduler_Enable = False
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
@@ -177,6 +182,8 @@ class CampaignRun(UI):
|
||||
# End
|
||||
if total and self.run_count >= total:
|
||||
break
|
||||
if self.campaign.event_time_limit_triggered():
|
||||
self.config.task_stop()
|
||||
|
||||
# Log
|
||||
logger.hr(name, level=1)
|
||||
|
||||
Reference in New Issue
Block a user