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

Method handler

eos/effects.py:27770–27779  ·  view source on GitHub ↗
(fit, module, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

27768
27769 @staticmethod
27770 def handler(fit, module, context, projectionRange, **kwargs):
27771 if 'projected' not in context:
27772 return
27773 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
27774 return
27775 strength = module.getModifiedItemAttr('scan{0}StrengthBonus'.format(fit.scanType))
27776 if 'effect' in kwargs:
27777 from eos.modifiedAttributeDict import ModifiedAttributeDict
27778 strength *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
27779 fit.addProjectedEcm(strength)
27780
27781
27782class Effect6526(BaseEffect):

Callers

nothing calls this directly

Calls 3

getResistanceMethod · 0.80
addProjectedEcmMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected