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

Method __calculateSlot

eos/saveddata/fighter.py:125–137  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

123 return [FighterAbility(effect) for effect in list(self.item.effects.values())]
124
125 def __calculateSlot(self, item):
126 types = {
127 "Light" : FittingSlot.F_LIGHT,
128 "Support": FittingSlot.F_SUPPORT,
129 "Heavy" : FittingSlot.F_HEAVY,
130 "StandupLight": FittingSlot.FS_LIGHT,
131 "StandupSupport": FittingSlot.FS_SUPPORT,
132 "StandupHeavy": FittingSlot.FS_HEAVY
133 }
134
135 for t, slot in types.items():
136 if self.getModifiedItemAttr("fighterSquadronIs{}".format(t)):
137 return slot
138
139 @property
140 def slot(self):

Callers 1

buildMethod · 0.95

Calls 2

itemsMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected