X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsst.py;h=5e0aa69269ee0503fcf9d07ccb6217ea545fa8aa;hb=e140e1fc928a31872daf4129c6c41791380f4e68;hp=0a8a7863ac6029c83ba98e407bf6b98553ff8b8a;hpb=88f1367a7d32b1f5248e88117562781b0c14dc0b;p=super-star-trek.git diff --git a/src/sst.py b/src/sst.py index 0a8a786..5e0aa69 100644 --- a/src/sst.py +++ b/src/sst.py @@ -319,7 +319,7 @@ class gamestate: self.iplnet = None # planet # in quadrant self.inplan = 0 # initial planets self.irhere = 0 # Romulans in quadrant - self.isatb = 0 # =1 if super commander is attacking base + self.isatb = 0 # =2 if super commander is attacking base self.tourn = None # tournament number self.nprobes = 0 # number of probes available self.inresor = 0.0 # initial resources @@ -4459,7 +4459,7 @@ def usecrystals(): skip(1) prouts(_("Scotty- \"Keep your fingers crossed, Sir!\"")) skip(1) - if random.random() > game.cryprob: + if withprob(game.cryprob): prouts(_(" \"Activating now! - - No good! It's***")) skip(2) prouts(_("***RED ALERT! RED A*L********************************"))