1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-17 21:55:36 +00:00

Compare commits

...

3 Commits

2 changed files with 6 additions and 19 deletions

View File

@ -499,19 +499,6 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig, ConfigWatcher
self.task_call('DailyQuest')
self.task_stop()
def update_battle_pass_quests(self):
"""
Raises:
TaskEnd: Call task `BattlePass` and stop current task
"""
if self.stored.BattlePassTodayQuest.is_expired():
if self.stored.BattlePassLevel.is_full():
logger.info('BattlePassLevel full, no updates')
else:
logger.info('BattlePassTodayQuest expired, call task to update')
self.task_call('BattlePass')
self.task_stop()
@property
def DEVICE_SCREENSHOT_METHOD(self):
return self.Emulator_ScreenshotMethod

View File

@ -30,16 +30,16 @@ class Login(UI):
return True
return False
@Config.when(Emulator_GameLanguage='jp')
def _handle_survey():
pass
@Config.when(Emulator_GameLanguage='en')
def _handle_survey():
def _handle_survey(self):
if self.appear_then_click(SURVEY):
return True
return False
@Config.when(Emulator_GameLanguage=None)
def _handle_survey(self):
pass
logger.hr('App login')
orientation_timer = Timer(5)
startup_timer = Timer(5).start()
@ -89,7 +89,7 @@ class Login(UI):
# continue
if self.appear_then_click(UPDATE):
continue
if _handle_survey():
if _handle_survey(self):
continue
if self.ui_additional():
continue