Fix: 修复按舰队出生点寻找舰队的方法

This commit is contained in:
LmeSzinc 2020-05-12 17:14:43 +08:00
parent 39ab5776c8
commit 8077760542

View File

@ -249,10 +249,11 @@ class Fleet(Camera, MapOperation, AmbushHandler):
queue = queue.sort_by_camera_distance(self.camera) queue = queue.sort_by_camera_distance(self.camera)
self.in_sight(queue[0], sight=(-1, 0, 1, 2)) self.in_sight(queue[0], sight=(-1, 0, 1, 2))
grid = self.convert_map_to_grid(queue[0]) grid = self.convert_map_to_grid(queue[0])
if grid.predict_current_fleet(): if grid.predict_fleet():
self.fleet_1 = queue[0].location if grid.predict_current_fleet():
elif grid.predict_fleet(): self.fleet_1 = queue[0].location
self.fleet_2 = queue[0].location else:
self.fleet_2 = queue[0].location
queue = queue[1:] queue = queue[1:]
def find_current_fleet(self): def find_current_fleet(self):