pylint found a real bug in phaser damage allocation vs. multiple targets.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 20 Feb 2012 01:06:36 +0000 (20:06 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 20 Feb 2012 01:06:36 +0000 (20:06 -0500)
sst.py

diff --git a/sst.py b/sst.py
index 096954711b783ea483b016be6ae9d0ff6a0b98b1..742e104dbc77a726455b33242193ea97a4d41803 100755 (executable)
--- a/sst.py
+++ b/sst.py
@@ -1660,10 +1660,9 @@ def checkshctrl(rpow):
 
 def hittem(hits):
     "Register a phaser hit on Klingons and Romulans."
-    kk = 0
     w = Coord()
     skip(1)
-    for (k, wham) in enumerate(hits):
+    for (kk, wham) in enumerate(hits):
        if wham==0:
            continue
        dustfac = randreal(0.9, 1.0)