mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Opt: Few changes to match with new notifications system
This commit is contained in:
@@ -31,7 +31,7 @@ class EnemySearchingHandler(InfoHandler):
|
||||
if self.is_in_stage():
|
||||
if self.in_stage_timer.reached():
|
||||
logger.info('In stage.')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Map cleared')
|
||||
self.device.send_notification('Sortie finished', 'Map cleared')
|
||||
self.ensure_no_info_bar(timeout=1.2)
|
||||
raise CampaignEnd('In stage.')
|
||||
else:
|
||||
|
||||
@@ -86,7 +86,7 @@ class LoginHandler(Combat):
|
||||
continue
|
||||
|
||||
logger.warning('Login failed more than 3')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Login failed more than 3')
|
||||
self.device.send_notification('ScriptError', 'Login failed more than 3')
|
||||
raise ScriptError('Login failed more than 3')
|
||||
|
||||
def app_restart(self):
|
||||
@@ -128,7 +128,7 @@ class LoginHandler(Combat):
|
||||
def handle_game_stuck(self):
|
||||
logger.warning(f'{self.config.PACKAGE_NAME} will be restart in 10 seconds')
|
||||
logger.warning('If you are playing by hand, please stop Alas')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Game stucked, will be restart in 10 seconds')
|
||||
self.device.send_notification('Game stucked', 'will be restart in 10 seconds')
|
||||
self.device.sleep(10)
|
||||
|
||||
self.app_restart()
|
||||
|
||||
Reference in New Issue
Block a user