mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-19 12:55:38 +00:00
Compare commits
3 Commits
6ef18ed8c0
...
0a697e9398
| Author | SHA1 | Date | |
|---|---|---|---|
| 0a697e9398 | |||
| 143f519adb | |||
| af71e797db |
@ -499,19 +499,6 @@ 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():
|
def _handle_survey(self):
|
||||||
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():
|
if _handle_survey(self):
|
||||||
continue
|
continue
|
||||||
if self.ui_additional():
|
if self.ui_additional():
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user