From ba653b61e1946bb26d0cdd98ba02bcd276a567d9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 20 Feb 2012 19:24:30 -0500 Subject: [PATCH] More pylint quieting. All regression tests pass. --- sst.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sst.py b/sst.py index bacb5f7..553dbc7 100755 --- 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) -- 2.31.1