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

Method getSlotsUsed

eos/saveddata/fit.py:1236–1246  ·  view source on GitHub ↗
(self, type, countDummies=False)

Source from the content-addressed store, hash-verified

1234 return amount
1235
1236 def getSlotsUsed(self, type, countDummies=False):
1237 amount = 0
1238
1239 for mod in chain(self.modules, self.fighters):
1240 if mod.slot is type and (not getattr(mod, "isEmpty", False) or countDummies):
1241 if type in (FittingSlot.F_HEAVY, FittingSlot.F_SUPPORT, FittingSlot.F_LIGHT, FittingSlot.FS_HEAVY, FittingSlot.FS_LIGHT,
1242 FittingSlot.FS_SUPPORT) and not mod.active:
1243 continue
1244 amount += 1
1245
1246 return amount
1247
1248 slots = {
1249 FittingSlot.LOW: "lowSlots",

Callers 3

getSlotsFreeMethod · 0.95
fitChangedMethod · 0.80
DoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected