mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-12-01 19:48:42 +00:00
commit
91f49eddad
@ -510,6 +510,7 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig, ConfigWatcher
|
|||||||
Raises:
|
Raises:
|
||||||
TaskEnd: Call task `DailyQuest` and stop current task
|
TaskEnd: Call task `DailyQuest` and stop current task
|
||||||
"""
|
"""
|
||||||
|
with self.multi_set():
|
||||||
if self.stored.DailyActivity.is_expired():
|
if self.stored.DailyActivity.is_expired():
|
||||||
logger.info('DailyActivity expired')
|
logger.info('DailyActivity expired')
|
||||||
self.stored.DailyActivity.clear()
|
self.stored.DailyActivity.clear()
|
||||||
|
@ -290,6 +290,7 @@ class StoredDaily(StoredCounter, StoredExpiredAt0400):
|
|||||||
self.quest6 = ''
|
self.quest6 = ''
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
|
with self._config.multi_set():
|
||||||
self.quest1 = ''
|
self.quest1 = ''
|
||||||
self.quest2 = ''
|
self.quest2 = ''
|
||||||
self.quest3 = ''
|
self.quest3 = ''
|
||||||
@ -380,6 +381,7 @@ class StoredBattlePassWeeklyQuest(StoredCounter, StoredExpiredAtMonday0400):
|
|||||||
self.quest7 = ''
|
self.quest7 = ''
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
|
with self._config.multi_set():
|
||||||
self.quest1 = ''
|
self.quest1 = ''
|
||||||
self.quest2 = ''
|
self.quest2 = ''
|
||||||
self.quest3 = ''
|
self.quest3 = ''
|
||||||
|
@ -158,9 +158,9 @@ class LoginAndroidCloud(ModuleBase):
|
|||||||
|
|
||||||
logger.info(f'Cloud remain: season pass {season_pass} days, {paid} min paid, {free} min free')
|
logger.info(f'Cloud remain: season pass {season_pass} days, {paid} min paid, {free} min free')
|
||||||
with self.config.multi_set():
|
with self.config.multi_set():
|
||||||
self.config.stored.CloudRemainSeasonPass = season_pass
|
self.config.stored.CloudRemainSeasonPass.value = season_pass
|
||||||
self.config.stored.CloudRemainPaid = paid
|
self.config.stored.CloudRemainPaid.value = paid
|
||||||
self.config.stored.CloudRemainFree = free
|
self.config.stored.CloudRemainFree.value = free
|
||||||
|
|
||||||
def _cloud_enter(self, skip_first=False):
|
def _cloud_enter(self, skip_first=False):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user