From f946bf57cf69447a95ff4ef2b5e6bc32ecb9af17 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 21 Feb 2012 19:33:54 -0500 Subject: [PATCH] Fixed a bug in critical-hit processing. --- sst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sst.py b/sst.py index 22a0291..9fb3da9 100755 --- a/sst.py +++ b/sst.py @@ -1287,7 +1287,6 @@ def fry(hit): # Select devices and cause damage cdam = [] while ncrit > 0: - ncrit -= 1 while True: j = randdevice() # Cheat to prevent shuttle damage unless on ship @@ -1296,6 +1295,7 @@ def fry(hit): cdam.append(j) extradm = (hit*game.damfac)/(ncrit*randreal(75, 100)) game.damage[j] += extradm + ncrit -= 1 skipcount = 0 for (i, j) in enumerate(cdam): proutn(device[j]) -- 2.31.1