Explorar o código

Abort when the Citadel can't be upgraded any further.

Steve Thielemann %!s(int64=5) %!d(string=hai) anos
pai
achega
246998ca9c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      flexible.py

+ 4 - 0
flexible.py

@@ -2319,6 +2319,10 @@ class PlanetUpScript(object):
                 self.queue_game.put(self.nl + Boxes.alert("NO, NOT YET!") + self.nl)
                 self.queue_player.put("Q")  # quit Planet menu.
                 self.deactivate()
+            elif line.startswith('This Citadel cannot be upgraded further'):
+                self.queue_game.put(self.nl + Boxes.alert("NO MORE!") + self.nl)
+                self.queue_player.put("Q")  # quit Planet menu.
+                self.deactivate()
             else:
                 items = ['Colonists', 'Fuel Ore', 'Organics', 'Equipment']                
                 work = line.replace(',', '').replace(' units of', '').strip()