From 05b0c4135d6cfef9ce8ee3c45ad1e49b1a1a85e5 Mon Sep 17 00:00:00 2001
From: unknown
Date: Fri, 8 Oct 2010 19:52:31 +0300
Subject: [PATCH] Partial work, commit test
---
gui/itemStats.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gui/itemStats.py b/gui/itemStats.py
index dfcaaac88..afccf229c 100644
--- a/gui/itemStats.py
+++ b/gui/itemStats.py
@@ -389,6 +389,7 @@ class ItemAffectedBy (wx.Panel):
cont = stuff.chargeModifiedAttributes
things = {}
+ pThings=[]
for attrName in cont.iterAfflictions():
for fit, afflictors in cont.getAfflictions(attrName).iteritems():
for afflictor in afflictors:
@@ -397,6 +398,10 @@ class ItemAffectedBy (wx.Panel):
things[afflictor].add(attrName)
+ for thing in things.iteritems():
+ if thing not in pThings:
+ pThings.append(thing)
+
for thing, attrs in things.iteritems():
self.effectList.InsertStringItem(sys.maxint, "%s: %s" % (thing.item.name, ', '.join(attrs)))