Pārlūkot izejas kodu

Fixes loop when things are still being built.

Steve Thielemann 5 gadi atpakaļ
vecāks
revīzija
5d6df4c4bd
1 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 8 0
      flexible.py

+ 8 - 0
flexible.py

@@ -2261,6 +2261,14 @@ class PlanetUpScript(object):
                 self.planets[number]['org'] = details[6]
                 self.planets[number]['equ'] = details[7]
         elif self.state == 4:
+            # Combat Control Computer under construction, 4 day(s) till complete.
+            if 'under construction, ' in line and 'day(s) till complete' in line:
+                # Ok, already building.
+                self.queue_game.put(self.nl + Boxes.alert("NO, NOT YET!") + self.nl)
+                self.queue_player.put("Q")  # quit Planet menu.
+                self.deactivate()
+                return
+                                
             # [  Item    Colonists  Colonists    Daily     Planet      Ship      Planet  ]
             # [Fuel Ore          0          1          0          0          0  1,000,000]
             # [Organics          0        N/A          0          0          0     10,000]