mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 22:59:17 +08:00
Opt: Omit scanning entire operations map, dispatch-able events
are expected to be visible immediately, scan will just timeout
This commit is contained in:
@@ -241,13 +241,13 @@ class GuildOperations(GuildBase):
|
|||||||
and additional events
|
and additional events
|
||||||
Scanning for active operations
|
Scanning for active operations
|
||||||
if found enters and dispatch fleet
|
if found enters and dispatch fleet
|
||||||
otherwise swipes forward until
|
otherwise exits upon reaching timeout
|
||||||
reached end of map
|
|
||||||
|
|
||||||
Pages:
|
Pages:
|
||||||
in: GUILD_OPERATIONS_MAP
|
in: GUILD_OPERATIONS_MAP
|
||||||
out: GUILD_OPERATIONS_MAP
|
out: GUILD_OPERATIONS_MAP
|
||||||
"""
|
"""
|
||||||
|
scan_timeout = Timer(1.5, count=3)
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
@@ -259,9 +259,14 @@ class GuildOperations(GuildBase):
|
|||||||
if entered:
|
if entered:
|
||||||
if entered == 1:
|
if entered == 1:
|
||||||
self._guild_operations_dispatch()
|
self._guild_operations_dispatch()
|
||||||
|
scan_timeout.reset()
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not self.guild_view_forward():
|
# if not self.guild_view_forward():
|
||||||
|
# break
|
||||||
|
if not scan_timeout.started():
|
||||||
|
scan_timeout.reset()
|
||||||
|
elif scan_timeout.reached():
|
||||||
break
|
break
|
||||||
|
|
||||||
def _guild_operations_boss_preparation(self, az, skip_first_screenshot=True):
|
def _guild_operations_boss_preparation(self, az, skip_first_screenshot=True):
|
||||||
|
|||||||
Reference in New Issue
Block a user