MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / fighterKey

Method fighterKey

gui/builtinAdditionPanes/fighterView.py:267–276  ·  view source on GitHub ↗
(fighter)

Source from the content-addressed store, hash-verified

265
266 @staticmethod
267 def fighterKey(fighter):
268 groupName = Market.getInstance().getGroupByItem(fighter.item).name
269 orderPos = FIGHTER_ORDER.index(groupName)
270 # Sort support fighters by name, ignore their abilities
271 if groupName == 'Support Fighter':
272 abilityEffectIDs = ()
273 # Group up fighters from various roles
274 else:
275 abilityEffectIDs = sorted(a.effectID for a in fighter.abilities)
276 return orderPos, abilityEffectIDs, fighter.item.name
277
278 def fitChanged(self, event):
279 event.Skip()

Callers

nothing calls this directly

Calls 2

getGroupByItemMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected