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

Method getSlotsFree

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

Source from the content-addressed store, hash-verified

1261 }
1262
1263 def getSlotsFree(self, type, countDummies=False):
1264 if type in (FittingSlot.MODE, FittingSlot.SYSTEM):
1265 # These slots don't really exist, return default 0
1266 return 0
1267
1268 slotsUsed = self.getSlotsUsed(type, countDummies)
1269 totalSlots = self.ship.getModifiedItemAttr(self.slots[type]) or 0
1270 return int(totalSlots - slotsUsed)
1271
1272 def getNumSlots(self, type):
1273 return self.ship.getModifiedItemAttr(self.slots[type]) or 0

Callers 5

fillMethod · 0.95
calcSlotFactorMethod · 0.80
refreshMethod · 0.80
MakeSnapshotMethod · 0.80
fitsMethod · 0.80

Calls 2

getSlotsUsedMethod · 0.95
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected