Browse Source

Default to 500. Upgrade when everything is there.

bugz 5 years ago
parent
commit
0624a1ee59
1 changed files with 7 additions and 3 deletions
  1. 7 3
      flexible.py

+ 7 - 3
flexible.py

@@ -2051,6 +2051,7 @@ class PlanetUpScript(object):
                     ready = False
                 self.queue_game.put(self.nl + "{0}".format(self.need))
                 if ready:
+                    self.queue_game(self.nl + Boxes.alert("Party Planet Pants On!"))
                     self.queue_player.put('YQ')
                     self.deactivate()
                     return
@@ -2085,7 +2086,8 @@ class PlanetUpScript(object):
                     for i in ('F','O','E'):
                         if self.need[i] > self.cargo[i]:
                             self.fetch = i
-                            place = self.game.gamedata.find_nearest_selling(self.planet_sector, i)
+                            # TODO: Make this a config setting.
+                            place = self.game.gamedata.find_nearest_selling(self.planet_sector, i, 400)
                             if place == 0:
                                 self.queue_game.put(self.nl + Boxes.alert("Find Nearest Failed!"))
                                 self.deactivate()
@@ -2094,8 +2096,10 @@ class PlanetUpScript(object):
                             self.state = 7
                             return
                     # Ok, upgrade time!
-                    self.queue_game.put("No, not yet!" + self.nl)
-                    self.deactivate()
+                    self.state = 4
+                    self.queue_player.put("L")                    
+                    # self.queue_game.put("No, not yet!" + self.nl)
+                    # self.deactivate()
 
                 # for i in ['F', 'O', 'E']:
                 #     if self.need[i] > self.cargo[i]: