diff --git a/eos b/eos index d22af0654..1ad4f5288 160000 --- a/eos +++ b/eos @@ -1 +1 @@ -Subproject commit d22af0654d87b34e5b8d0e892a0cad81f075ce1d +Subproject commit 1ad4f52880102215a7bd5af8924e21d344c77673 diff --git a/gui/itemStats.py b/gui/itemStats.py index cb25fbeb3..3c7f8ad70 100644 --- a/gui/itemStats.py +++ b/gui/itemStats.py @@ -33,11 +33,8 @@ class ItemStatsDialog(wx.Dialog): wx.Dialog.__init__(self, gui.mainFrame.MainFrame.getInstance(), wx.ID_ANY, title="Item stats", - #style=wx.FRAME_FLOAT_ON_PARENT | wx.DEFAULT_FRAME_STYLE) - style = wx.CAPTION|wx.CLOSE_BOX|wx.MINIMIZE_BOX| - wx.MAXIMIZE_BOX| - wx.RESIZE_BORDER| - wx.SYSTEM_MENU ) + style = wx.CAPTION | wx.CLOSE_BOX | wx.MINIMIZE_BOX | + wx.MAXIMIZE_BOX | wx.RESIZE_BORDER| wx.SYSTEM_MENU) empty = getattr(victim, "isEmpty", False) @@ -535,6 +532,9 @@ class ItemAffectedBy (wx.Panel): cont = self.stuff.itemModifiedAttributes if self.item == self.stuff.item else self.stuff.chargeModifiedAttributes things = {} for attrName in cont.iterAfflictions(): + if cont[attrName] == (cont.getOriginal(attrName) or 0): + continue + for fit, afflictors in cont.getAfflictions(attrName).iteritems(): for afflictor, modifier, amount in afflictors: if afflictor.item.name not in things: