Small refactoring step.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 13 Sep 2010 22:23:45 +0000 (22:23 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 13 Sep 2010 22:23:45 +0000 (22:23 +0000)
src/sst.py

index 0a8a7863ac6029c83ba98e407bf6b98553ff8b8a..d3e4b73984ca290c742e45f4d5eda05999955399 100644 (file)
@@ -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********************************"))