Small refactoring step.
[super-star-trek.git] / 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********************************"))