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

@@ -20,7 +20,7 @@ saveInRoot = False
# Version data
version = "1.29.1"
tag = "git"
tag = "Stable"
expansionName = "YC119.5"
expansionVersion = "1.0"
evemonMinVersion = "4081"

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

View File

@@ -110,6 +110,7 @@ class FittingViewDrop(wx.PyDropTarget):
def OnData(self, x, y, t):
if self.GetData():
pyfalog.debug("fittingView: recieved drag: " + self.dropData.GetText())
data = self.dropData.GetText().split(':')
self.dropFn(x, y, data)
return t

View File

@@ -279,8 +279,10 @@ class ItemView(Display):
if row != -1:
data = wx.PyTextDataObject()
data.SetText("market:" + str(self.active[row].ID))
dataStr = "market:" + str(self.active[row].ID)
pyfalog.debug("Dragging from market: " + dataStr)
data.SetText(dataStr)
dropSource = wx.DropSource(self)
dropSource.SetData(data)
dropSource.DoDragDrop()