(self, type, countDummies=False)
| 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 |
no test coverage detected