mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 05:08:19 +08:00
Add: 适配了第四章
- 稍微移动了章节OCR的位置, 因为4-4会识别为14-4 - 针对第四章这种偏红的地图做了一些优化 - 稍微延长了敌人刷新时的等待时间 - 更改出错截图文件名为格式化的时间
This commit is contained in:
@@ -69,6 +69,7 @@ class Fleet(Camera, MapOperation, AmbushHandler):
|
||||
|
||||
while 1:
|
||||
self.ambush_color_initial()
|
||||
self.enemy_searching_color_initial()
|
||||
grid.__str__ = location
|
||||
result = 'nothing'
|
||||
self.device.click(grid)
|
||||
@@ -118,6 +119,7 @@ class Fleet(Camera, MapOperation, AmbushHandler):
|
||||
|
||||
self.handle_boss_appear_refocus()
|
||||
grid = self.convert_map_to_grid(location)
|
||||
walk_timeout.reset()
|
||||
# break
|
||||
|
||||
if self.handle_map_cat_attack():
|
||||
@@ -140,7 +142,7 @@ class Fleet(Camera, MapOperation, AmbushHandler):
|
||||
# End
|
||||
if ambushed_retry.started() and ambushed_retry.reached():
|
||||
break
|
||||
if not arrived and walk_timeout.reached():
|
||||
if walk_timeout.reached():
|
||||
logger.warning('Walk timeout. Retrying.')
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user