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:
@@ -20,7 +20,7 @@ saveInRoot = False
|
||||
|
||||
# Version data
|
||||
version = "1.29.1"
|
||||
tag = "git"
|
||||
tag = "Stable"
|
||||
expansionName = "YC119.5"
|
||||
expansionVersion = "1.0"
|
||||
evemonMinVersion = "4081"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user