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

Method getValidCharges

eos/saveddata/module.py:833–845  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

831 return False
832
833 def getValidCharges(self):
834 validCharges = set()
835 for i in range(5):
836 itemChargeGroup = self.getModifiedItemAttr('chargeGroup' + str(i), None)
837 if itemChargeGroup:
838 g = eos.db.getGroup(int(itemChargeGroup), eager="items.attributes")
839 if g is None:
840 continue
841 for singleItem in g.items:
842 if singleItem.published and self.isValidCharge(singleItem):
843 validCharges.add(singleItem)
844
845 return validCharges
846
847 @staticmethod
848 def __calculateHardpoint(item):

Callers 3

getModuleFlatAmmoMethod · 0.80
_isAmmoEnvelopeWeaponFunction · 0.80
_collectWeaponCandidatesFunction · 0.80

Calls 3

isValidChargeMethod · 0.95
getGroupMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected