File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -242,8 +242,8 @@ def _go_to(self, dest):
242
242
dest .xpos = self .xpos
243
243
dest .ypos = self .ypos
244
244
pos = self .enterprise_in (dest ) # CAPIN' KNOWS BEST?
245
- dest .xpos = pos [0 ]
246
- dest .ypos = pos [1 ]
245
+ self . xpos = dest .xpos = pos [0 ]
246
+ self . ypos = dest .ypos = pos [1 ]
247
247
self .last_nav = dest
248
248
return dest
249
249
Original file line number Diff line number Diff line change @@ -26,13 +26,16 @@ def __init__(self):
26
26
def move_to (self , dest ):
27
27
pos = self .game_map ._go_to (dest )
28
28
area = self .game_map .pw_area ()
29
+ was_docked = self .enterprise .docked
29
30
self .enterprise .docked = False
30
31
for p in area ._pieces :
31
32
if p .glyph == Glyphs .STARBASE :
32
33
if p .xpos + 1 == pos .xpos or p .ypos + 1 == pos .ypos or \
33
34
p .xpos - 1 == pos .xpos or p .ypos - 1 == pos .ypos :
34
35
self .enterprise .docked = True
35
36
ShipStarbase .dock_enterprise (self .enterprise )
37
+ if was_docked and self .enterprise .docked == False :
38
+ ShipStarbase .launch_enterprise (self .enterprise )
36
39
return pos
37
40
38
41
def run (self ):
You can’t perform that action at this time.
0 commit comments