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