More pylint quieting. All regression tests pass.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 21 Feb 2012 00:24:30 +0000 (19:24 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 21 Feb 2012 00:24:30 +0000 (19:24 -0500)
sst.py

diff --git a/sst.py b/sst.py
index bacb5f7e3ff2fa38ba505f0ceff1792822574e4f..553dbc7de99dd354aa55125b733bb2295ed255f3 100755 (executable)
--- a/sst.py
+++ b/sst.py
@@ -273,6 +273,8 @@ class Enemy:
     def __init__(self, etype=None, loc=None, power=None):
         self.type = etype
         self.location = Coord()
+        self.kdist = None
+        self.kavgd = None
         if loc:
             self.move(loc)
         self.power = power     # enemy energy level
@@ -379,6 +381,7 @@ class Gamestate:
         self.score = 0.0       # overall score
         self.perdate = 0.0     # rate of kills
         self.idebug = False    # Debugging instrumentation enabled?
+        self.statekscmdr = None # No SuperCommander coordinates yet.
     def recompute(self):
         # Stas thinks this should be (C expression): 
         # game.state.remkl + len(game.state.kcmdr) > 0 ?
@@ -2051,8 +2054,8 @@ def events():
             else:
                 prout(_("(Shields not currently useable.)"))
         newqad()
-        # Adjust finish time to time of tractor beaming 
-        fintim = game.state.date+game.optime
+        # Adjust finish time to time of tractor beaming? 
+        fintim = game.state.date+game.optime
         attack(torps_ok=False)
         if not game.state.kcmdr:
             unschedule(FTBEAM)