mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Opt: New toast notifications
This commit is contained in:
parent
662ed34992
commit
171627cf0e
@ -104,6 +104,7 @@ class CampaignBase(CampaignUI, Map, AutoSearchCombat):
|
||||
|
||||
if not result:
|
||||
logger.warning('ScriptError, No combat executed.')
|
||||
self.device.send_notification('ScriptError', 'No combat executed, please check GUI.')
|
||||
if self.config.ENABLE_EXCEPTION:
|
||||
raise ScriptError('No combat executed.')
|
||||
else:
|
||||
|
||||
@ -66,6 +66,7 @@ class MapOperation(MysteryHandler, FleetPreparation, Retirement, FastForwardHand
|
||||
self.handle_auto_search()
|
||||
if self.triggered_map_stop():
|
||||
self.enter_map_cancel()
|
||||
self.device.send_notification('Reach condition:', self.config.STOP_IF_MAP_REACH)
|
||||
raise ScriptEnd(f'Reach condition: {self.config.STOP_IF_MAP_REACH}')
|
||||
self.device.click(MAP_PREPARATION)
|
||||
map_timer.reset()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user