mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-01-11 17:45:37 +00:00
Compare commits
No commits in common. "0a697e939805782ad6649d0f206a67e18e2bd8f9" and "6ef18ed8c0c4cac8c814c843dabb146c764dbfc5" have entirely different histories.
0a697e9398
...
6ef18ed8c0
@ -499,6 +499,19 @@ 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
|
||||
|
||||
@ -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(self):
|
||||
def _handle_survey():
|
||||
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(self):
|
||||
if _handle_survey():
|
||||
continue
|
||||
if self.ui_additional():
|
||||
continue
|
||||
|
||||
Loading…
Reference in New Issue
Block a user