From aecbf8f86ecf91bd632469dd950252939a7d7909 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Mon, 8 May 2017 19:31:58 -0400 Subject: [PATCH] Fix issue with drones causing exception during remote RR calcs --- eos/saveddata/fit.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eos/saveddata/fit.py b/eos/saveddata/fit.py index 83ce47f84..a0981d85b 100644 --- a/eos/saveddata/fit.py +++ b/eos/saveddata/fit.py @@ -1248,6 +1248,9 @@ class Fit(object): self.__remoteReps[remote_type] = 0 for stuff in chain(self.modules, self.drones): + if stuff.item: + if stuff.item.ID == 10250: + pass remote_type = None # Only apply the charged multiplier if we have a charge in our ancil reppers (#1135) @@ -1309,7 +1312,9 @@ class Fit(object): hp = droneHull else: hp = 0 - self.__remoteReps[remote_type] += (hp * modifier) / duration + + if hp > 0: + self.__remoteReps[remote_type] += (hp * modifier) / duration return self.__remoteReps