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

Method makeRoom

eos/effectHandlerHelpers.py:362–375  ·  view source on GitHub ↗
(self, proj)

Source from the content-addressed store, hash-verified

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
378class HandledProjectedDroneList(HandledDroneCargoList):

Callers

nothing calls this directly

Calls 2

fromModuleMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected