Bugfixes and bump point release (#1159)

* Add some logging to try to figure out what happens with #1149, along with some other fixes

* Bump point release
This commit is contained in:
Ryan Holmes
2017-05-11 20:53:37 -04:00
committed by GitHub
parent b39ec4f9b3
commit 9f5e14fe2d
5 changed files with 9 additions and 5 deletions

View File

@@ -1313,7 +1313,7 @@ class Fit(object):
else:
hp = 0
if hp > 0:
if hp > 0 and duration > 0:
self.__remoteReps[remote_type] += (hp * modifier) / duration
return self.__remoteReps

View File

@@ -763,8 +763,9 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
capNeed = self.getModifiedItemAttr("capacitorNeed")
if capNeed and self.state >= State.ACTIVE:
cycleTime = self.cycleTime
capUsed = capNeed / (cycleTime / 1000.0)
return capUsed
if cycleTime > 0:
capUsed = capNeed / (cycleTime / 1000.0)
return capUsed
else:
return 0