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:
@@ -253,22 +253,22 @@ class Combat(Level, HPBalancer, Retirement, SubmarineCall, CombatAuto, CombatMan
|
||||
if self.appear_then_click(BATTLE_STATUS_A, screenshot=save_get_items, genre='status',
|
||||
interval=self.battle_status_click_interval):
|
||||
logger.warning('Battle status: A')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Battle status: A')
|
||||
self.device.send_notification('Battle finished', 'Battle status: A')
|
||||
if not save_get_items:
|
||||
self.device.sleep((0.25, 0.5))
|
||||
return True
|
||||
if self.appear_then_click(BATTLE_STATUS_B, screenshot=save_get_items, genre='status',
|
||||
interval=self.battle_status_click_interval):
|
||||
logger.warning('Battle Status B')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Battle status: B')
|
||||
self.device.send_notification('Battle finished', 'Battle status: B')
|
||||
if not save_get_items:
|
||||
self.device.sleep((0.25, 0.5))
|
||||
return True
|
||||
if self.appear_then_click(BATTLE_STATUS_C, screenshot=save_get_items, genre='status',
|
||||
interval=self.battle_status_click_interval):
|
||||
logger.warning('Battle Status C')
|
||||
self.device.send_notification('AzurLaneAutoScript', 'Battle status: C')
|
||||
raise GameStuckError('AzurLaneAutoScript', 'Battle status: C')
|
||||
self.device.send_notification('Battle finished', 'Battle status: C')
|
||||
raise GameStuckError('Battle status: C')
|
||||
if self.appear_then_click(BATTLE_STATUS_D, screenshot=save_get_items, genre='status',
|
||||
interval=self.battle_status_click_interval):
|
||||
logger.warning('Battle Status D')
|
||||
|
||||
Reference in New Issue
Block a user