From: Eric S. Raymond Date: Mon, 13 Sep 2010 22:23:45 +0000 (+0000) Subject: Small refactoring step. X-Git-Tag: 2.0~39 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=23dbe9a4a341631c4f50dded6b8b38d69ecf6ff7;p=super-star-trek.git Small refactoring step. --- diff --git a/src/sst.py b/src/sst.py index 0a8a786..d3e4b73 100644 --- a/src/sst.py +++ b/src/sst.py @@ -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********************************"))