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

Method init

eos/saveddata/fighterAbility.py:55–65  ·  view source on GitHub ↗

Initialize from the database

(self)

Source from the content-addressed store, hash-verified

53
54 @reconstructor
55 def init(self):
56 """Initialize from the database"""
57 self.__effect = None
58
59 if self.effectID:
60 self.__effect = next((x for x in self.fighter.item.effects.values() if x.ID == self.effectID), None)
61 if self.__effect is None:
62 pyfalog.error("Effect (id: {0}) does not exist", self.effectID)
63 return
64
65 self.build()
66
67 def build(self):
68 pass

Callers

nothing calls this directly

Calls 2

buildMethod · 0.95
valuesMethod · 0.80

Tested by

no test coverage detected