Partial work, commit test

This commit is contained in:
unknown
2010-10-08 19:52:31 +03:00
parent f50968fe83
commit 05b0c4135d

View File

@@ -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)))