Ver Fonte

Fixed issue with not displaying a error when we suddonly stop

ScriptExplore
david há 5 anos atrás
pai
commit
5092ee5ed8
1 ficheiros alterados com 12 adições e 0 exclusões
  1. 12 0
      flexible.py

+ 12 - 0
flexible.py

@@ -997,6 +997,7 @@ class ScriptExplore(object):
         self.clear = []         # Warps that we know are clear.
         self.highsector = 0     # Selected Sector to move to next!
         self.highwarp = 0       # Selected Sector's Warp Count!
+        self.oneMoveSector = False
         self.times = 0
         self.maxtimes = 0
 
@@ -1104,10 +1105,21 @@ class ScriptExplore(object):
             # Ok so we do our Holo-Scan now how can we parse this... hmm.
             # Or do we just do that and then do a move? Hmmm... (I think we get enough info to make a choice)
             # Perhaps what we will do is do a Holo-Scan just to "count" as us going into that sector
+
+            # TEST
+            #self.dense = [
+            #    {'sector': 2, 'density': 0, 'warps': 1, 'navhaz': 0, 'anom': False},
+            #]
+
             if not self.dense:
                 log.msg("No New Sectors Found!")
                 self.send2player("Find a new area for me to search in!")
                 self.deactivate()
+            elif len(self.dense) == 1:
+                if self.dense[0]['warps'] == 1:
+                    log.msg("No Sectors Found except one move sector!")
+                    self.send2player("Find a new area for me to look at!")
+                    self.deactivate()
 
             for d in self.dense:
                 if not d['anom']: