|
@@ -2051,6 +2051,7 @@ class PlanetUpScript(object):
|
|
ready = False
|
|
ready = False
|
|
self.queue_game.put(self.nl + "{0}".format(self.need))
|
|
self.queue_game.put(self.nl + "{0}".format(self.need))
|
|
if ready:
|
|
if ready:
|
|
|
|
+ self.queue_game(self.nl + Boxes.alert("Party Planet Pants On!"))
|
|
self.queue_player.put('YQ')
|
|
self.queue_player.put('YQ')
|
|
self.deactivate()
|
|
self.deactivate()
|
|
return
|
|
return
|
|
@@ -2085,7 +2086,8 @@ class PlanetUpScript(object):
|
|
for i in ('F','O','E'):
|
|
for i in ('F','O','E'):
|
|
if self.need[i] > self.cargo[i]:
|
|
if self.need[i] > self.cargo[i]:
|
|
self.fetch = 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:
|
|
if place == 0:
|
|
self.queue_game.put(self.nl + Boxes.alert("Find Nearest Failed!"))
|
|
self.queue_game.put(self.nl + Boxes.alert("Find Nearest Failed!"))
|
|
self.deactivate()
|
|
self.deactivate()
|
|
@@ -2094,8 +2096,10 @@ class PlanetUpScript(object):
|
|
self.state = 7
|
|
self.state = 7
|
|
return
|
|
return
|
|
# Ok, upgrade time!
|
|
# 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']:
|
|
# for i in ['F', 'O', 'E']:
|
|
# if self.need[i] > self.cargo[i]:
|
|
# if self.need[i] > self.cargo[i]:
|