MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / _getAmmo

Method _getAmmo

gui/builtinContextMenus/moduleAmmoChange.py:64–69  ·  view source on GitHub ↗
(self, mod)

Source from the content-addressed store, hash-verified

62 return _t('Charge')
63
64 def _getAmmo(self, mod):
65 if mod.itemID is None:
66 return set()
67 if mod.itemID not in self.loadableChargesCache:
68 self.loadableChargesCache[mod.itemID] = Ammo.getInstance().getModuleFlatAmmo(mod)
69 return self.loadableChargesCache[mod.itemID]
70
71 def _addCharge(self, menu, charge):
72 id_ = ContextMenuCombined.nextID()

Callers 2

displayMethod · 0.95
handleAmmoSwitchMethod · 0.95

Calls 2

getModuleFlatAmmoMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected