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

Opt: Re-fit MAP_SWIPE_MULTIPLY in OPSI

- Fix get_sea_grids if fleet_current is not set
This commit is contained in:
LmeSzinc
2021-02-06 22:47:14 +08:00
parent 4ded09211a
commit 32087ba20f
2 changed files with 7 additions and 3 deletions

View File

@@ -99,4 +99,8 @@ class OSFleet(OSCamera, Combat, Fleet, OSAsh):
continue
sea.append(self.map[location])
return SelectedGrids(sea).sort_by_camera_distance(self.fleet_current)
if len(self.fleet_current):
center = self.fleet_current
else:
center = self.camera
return SelectedGrids(sea).sort_by_camera_distance(center)