Fix some weirdness with come columns

This commit is contained in:
blitzmann
2015-10-04 17:16:48 -04:00
parent a5f1370eec
commit 8e353b08ae
2 changed files with 2 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ class Ammo(ViewColumn):
charges = stuff.numCharges
if charges > 0:
cycles = stuff.numShots
if charges != cycles:
if cycles !=0 and charges != cycles:
return "%s (%d, %d cycles)" % (stuff.charge.name, charges, cycles)
else:
return "%s (%d)" % (stuff.charge.name, charges)

View File

@@ -70,6 +70,7 @@ class BaseName(ViewColumn):
if marketShortcut:
# use unicode subscript to display shortcut value
shortcut = unichr(marketShortcut+8320)+u" "
del item.marketShortcut
return shortcut+item.name
return item.name