mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-01-19 05:35:22 +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_call('DailyQuest')
|
||||||
self.task_stop()
|
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
|
@property
|
||||||
def DEVICE_SCREENSHOT_METHOD(self):
|
def DEVICE_SCREENSHOT_METHOD(self):
|
||||||
return self.Emulator_ScreenshotMethod
|
return self.Emulator_ScreenshotMethod
|
||||||
|
|||||||
@ -30,16 +30,16 @@ class Login(UI):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@Config.when(Emulator_GameLanguage='jp')
|
||||||
|
def _handle_survey():
|
||||||
|
pass
|
||||||
|
|
||||||
@Config.when(Emulator_GameLanguage='en')
|
@Config.when(Emulator_GameLanguage='en')
|
||||||
def _handle_survey(self):
|
def _handle_survey():
|
||||||
if self.appear_then_click(SURVEY):
|
if self.appear_then_click(SURVEY):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@Config.when(Emulator_GameLanguage=None)
|
|
||||||
def _handle_survey(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
logger.hr('App login')
|
logger.hr('App login')
|
||||||
orientation_timer = Timer(5)
|
orientation_timer = Timer(5)
|
||||||
startup_timer = Timer(5).start()
|
startup_timer = Timer(5).start()
|
||||||
@ -89,7 +89,7 @@ class Login(UI):
|
|||||||
# continue
|
# continue
|
||||||
if self.appear_then_click(UPDATE):
|
if self.appear_then_click(UPDATE):
|
||||||
continue
|
continue
|
||||||
if _handle_survey(self):
|
if _handle_survey():
|
||||||
continue
|
continue
|
||||||
if self.ui_additional():
|
if self.ui_additional():
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user