Show max amount of charges between brackets

This commit is contained in:
cncfanatics
2010-10-27 21:47:59 +02:00
parent b8aa084945
commit f47ee968c9

View File

@@ -28,7 +28,7 @@ class ModuleAmmo(ViewColumn):
self.columnText = "Ammo"
def getText(self, mod):
return mod.charge.name if mod.charge is not None else ""
return "%s (%s)" % (mod.charge.name, mod.numCharges) if mod.charge is not None else ""
def getImageId(self, mod):
return -1