MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / fromFighter

Method fromFighter

gui/fitCommands/helpers.py:229–237  ·  view source on GitHub ↗
(cls, fighter)

Source from the content-addressed store, hash-verified

227
228 @classmethod
229 def fromFighter(cls, fighter):
230 if fighter is None:
231 return None
232 info = cls(
233 itemID=fighter.itemID,
234 amount=fighter.amount,
235 state=fighter.active,
236 abilities={fa.effectID: fa.active for fa in fighter.abilities})
237 return info
238
239 def toFighter(self):
240 item = Market.getInstance().getItem(self.itemID, eager=('attributes', 'group.category'))

Callers 4

DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80
DoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected