(self, proj)
| 360 | return next((m for m in self if m.isExclusiveSystemEffect), None) |
| 361 | |
| 362 | def makeRoom(self, proj): |
| 363 | if proj.isExclusiveSystemEffect: |
| 364 | # remove other system effects - only 1 per fit plz |
| 365 | mod = self.currentSystemEffect |
| 366 | |
| 367 | if mod: |
| 368 | pyfalog.info("System effect occupied with {0}, removing it to make space for {1}".format(mod.item.name, proj.item.name)) |
| 369 | position = self.index(mod) |
| 370 | # We need to pack up this info, so whatever... |
| 371 | from gui.fitCommands.helpers import ModuleInfo |
| 372 | modInfo = ModuleInfo.fromModule(mod) |
| 373 | self.remove(mod) |
| 374 | return position, modInfo |
| 375 | return None, None |
| 376 | |
| 377 | |
| 378 | class HandledProjectedDroneList(HandledDroneCargoList): |
nothing calls this directly
no test coverage detected