1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Add: T6 HT6 in Dreamwaker's Butterfly

- Fix prediction if movable enemy tracking lost
- Only correct camera in ensure_edge_insight
This commit is contained in:
LmeSzinc
2020-09-19 03:57:00 +08:00
parent b8582fe8b6
commit eecb4ea1bb
5 changed files with 175 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ class Camera(MapOperation):
view: View
map: CampaignMap
camera = (0, 0)
_correct_camera = False
def _map_swipe(self, vector):
"""
@@ -108,6 +109,9 @@ class Camera(MapOperation):
else:
raise e
if not self._correct_camera:
self.show_camera()
return False
# Set camera position
if self.view.left_edge:
x = 0 + self.view.center_loca[0]
@@ -148,6 +152,7 @@ class Camera(MapOperation):
"""
logger.info('Ensure edge in sight.')
record = []
self._correct_camera = True
while 1:
if len(record) == 0:
@@ -168,6 +173,8 @@ class Camera(MapOperation):
if x == 0 and y == 0:
break
self._correct_camera = False
if reverse:
logger.info('Reverse swipes.')
for vector in record[::-1]: