1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-29 15:08:11 +08:00

Opt: raise admiral trial check priority over downtime strategy to prevent blocking

This commit is contained in:
positnuec
2026-07-25 17:43:16 +08:00
parent 6767c07d04
commit d7f767c163

View File

@@ -233,6 +233,13 @@ class Exercise(ExerciseCombat):
remain_hours = int(remain_time.total_seconds() // 3600)
admiral_start, admiral_end = admiral_interval
if admiral_start > remain_hours >= admiral_end:
logger.info('Reach set time for admiral trial, using all attempts')
return True
if remain_hours < 6:
logger.info('Exercise period remain less than 6 hours, using all attempts')
return True
downtime_strategy = self._get_downtime_strategy(now)
if downtime_strategy is True:
logger.info('Downtime today, using all attempts before downtime')
@@ -243,13 +250,6 @@ class Exercise(ExerciseCombat):
logger.info('Reach Thursday, using all attempts before downtime')
return True
if admiral_start > remain_hours >= admiral_end:
logger.info('Reach set time for admiral trial, using all attempts')
return True
if remain_hours < 6:
logger.info('Exercise period remain less than 6 hours, using all attempts')
return True
return False
def _should_delay(self, now, next_update, forced_clear):