mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +00:00
Fix: Remove duplicate calls
This commit is contained in:
parent
68969c6be5
commit
6dcebcb1f2
@ -64,14 +64,9 @@ class Assignment(AssignmentClaim, SynthesizeUI):
|
|||||||
logger.attr('has_new_dispatch', self.has_new_dispatch)
|
logger.attr('has_new_dispatch', self.has_new_dispatch)
|
||||||
with self.config.multi_set():
|
with self.config.multi_set():
|
||||||
# Check daily
|
# Check daily
|
||||||
quests = self.config.stored.DailyQuest.load_quests()
|
|
||||||
if KEYWORDS_DAILY_QUEST.Dispatch_1_assignments in quests:
|
if KEYWORDS_DAILY_QUEST.Dispatch_1_assignments in quests:
|
||||||
logger.info('Achieved daily quest Dispatch_1_assignments')
|
logger.info('Achieved daily quest Dispatch_1_assignments')
|
||||||
self.config.task_call('DailyQuest')
|
self.config.task_call('DailyQuest')
|
||||||
if self.has_new_dispatch:
|
|
||||||
if KEYWORDS_DAILY_QUEST.Dispatch_1_assignments in quests:
|
|
||||||
logger.info('Achieved daily quest Dispatch_1_assignments')
|
|
||||||
self.config.task_call('DailyQuest')
|
|
||||||
# Delay self
|
# Delay self
|
||||||
if len(self.dispatched):
|
if len(self.dispatched):
|
||||||
delay = min(self.dispatched.values())
|
delay = min(self.dispatched.values())
|
||||||
|
Loading…
Reference in New Issue
Block a user