mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 06:18:21 +08:00
Add: Event PT and time limit
- Fix: Auto update events in GemsFarming
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
from module.campaign.campaign_event import CampaignEvent
|
||||
from module.exception import ScriptEnd, ScriptError
|
||||
from module.logger import logger
|
||||
from module.raid.raid import Raid, OilExhausted
|
||||
from module.ui.page import page_raid
|
||||
|
||||
|
||||
class RaidRun(Raid):
|
||||
class RaidRun(Raid, CampaignEvent):
|
||||
run_count: int
|
||||
run_limit: int
|
||||
|
||||
@@ -40,6 +41,8 @@ class RaidRun(Raid):
|
||||
# End
|
||||
if total and self.run_count == total:
|
||||
break
|
||||
if self.event_time_limit_triggered():
|
||||
self.config.task_stop()
|
||||
|
||||
# Log
|
||||
logger.hr(f'{name}_{mode}', level=2)
|
||||
|
||||
Reference in New Issue
Block a user