Merge pull request #890 from Drezil/master

fixed parameters in call when adding neuts to structures.
This commit is contained in:
Ryan Holmes
2016-12-11 19:17:25 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -10,4 +10,4 @@ def handler(fit, container, context):
and container.state >= State.ACTIVE) or hasattr(container, "amountActive")):
amount = container.getModifiedItemAttr("energyNeutralizerAmount")
time = container.getModifiedItemAttr("duration")
fit.addDrain(time, amount, 0)
fit.addDrain(container, time, amount, 0)

View File

@@ -451,7 +451,7 @@ class Fit(object):
# (abs is old method, ccp now provides the aggregate function in their data)
print "Add command bonus: ", warfareBuffID, " - value: ", value
if warfareBuffID not in self.commandBonuses or abs(self.commandBonuses[warfareBuffID][0]) < abs(value):
if warfareBuffID not in self.commandBonuses or abs(self.commandBonuses[warfareBuffID][1]) < abs(value):
self.commandBonuses[warfareBuffID] = (runTime, value, module, effect)
def __runCommandBoosts(self, runTime="normal"):