From: Eric S. Raymond Date: Wed, 22 Feb 2012 00:33:54 +0000 (-0500) Subject: Fixed a bug in critical-hit processing. X-Git-Tag: 2.2~92 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=f946bf57cf69447a95ff4ef2b5e6bc32ecb9af17;p=super-star-trek.git Fixed a bug in critical-hit processing. --- 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])