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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user