Keep name on group, create displayName property to point to translated version

This commit is contained in:
blitzmann
2020-06-28 00:54:51 -04:00
parent 2fd4168ab7
commit 4a6a3fc6ea
7 changed files with 9 additions and 8 deletions

View File

@@ -255,7 +255,7 @@ class FighterDisplay(d.Display):
@staticmethod
def fighterKey(fighter):
groupName = Market.getInstance().getGroupByItem(fighter.item).groupName
groupName = Market.getInstance().getGroupByItem(fighter.item).name
orderPos = FIGHTER_ORDER.index(groupName)
# Sort support fighters by name, ignore their abilities
if groupName == 'Support Fighter':

View File

@@ -68,7 +68,7 @@ class Miscellanea(ViewColumn):
item = stuff.item
if item is None:
return "", None
itemGroup = item.group.groupName
itemGroup = item.group.name
itemCategory = item.category.name
if itemGroup == "Ship Modifiers":