Fixup the damage pattern menu to actualy show the damage pattern list

instead of bullcrap now
This commit is contained in:
cncfanatics
2010-10-08 11:20:11 +02:00
parent da39de65a8
commit b8ac74e373

View File

@@ -11,7 +11,8 @@ class DamagePattern(ContextMenu):
return context in ("resistancesViewFull",)
def getText(self, context, selection):
return "%s stats" % context.capitalize()
sDP = service.DamagePattern.getInstance()
return map(lambda p: p.name, sDP.getDamagePatternList())
def activate(self, context, selection, i):
pass