mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +00:00
Fix: Consider multiple rogue runs as separated tasks
This commit is contained in:
parent
09e675758c
commit
80d1fbf9e5
@ -37,7 +37,6 @@ class Rogue(RouteLoader, RogueEntry):
|
||||
self.config.task_call('Dungeon')
|
||||
self.config.task_stop()
|
||||
|
||||
while 1:
|
||||
# Run
|
||||
success = self.rogue_once()
|
||||
|
||||
@ -59,9 +58,14 @@ class Rogue(RouteLoader, RogueEntry):
|
||||
self.config.task_call('BattlePass')
|
||||
self.config.task_stop()
|
||||
# End
|
||||
if not success:
|
||||
if success:
|
||||
logger.info('Rogue run success')
|
||||
# Call rogue itself, so multiple rogue runs are considered as separated tasks
|
||||
# which won't trigger failure count >= 3 when clearing 100 elites
|
||||
self.config.task_call('Rogue')
|
||||
else:
|
||||
logger.info('Rogue run failed')
|
||||
self.config.task_delay(server_update=True)
|
||||
break
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user