olinox 6 år sedan
förälder
incheckning
8b59046f04
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6 0
      carribean/script.py

+ 6 - 0
carribean/script.py

@@ -668,6 +668,8 @@ class Ship(Entity):
                 log(f"(!) broken: automove to {self.goto}")
                 self.auto_move(*self.goto)
                 return
+            else:
+                raise DidNotAct()
         elif not path:
             raise DidNotAct()
         
@@ -680,6 +682,10 @@ class Ship(Entity):
         if not self.speed:
             diff = Grid.diff_directions(self.orientation, path[0].orientation)
             
+            if diff > 0 and self.last_action == "STARBOARD" or diff < 0 and self.last_action == "PORT":
+                # special: avoid the starting hesitation
+                self.speed_up()
+            
             if diff and next_flag == 0:
                 # start, with a direction change
                 if diff > 0: