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

Method handler

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

Source from the content-addressed store, hash-verified

30947
30948 @staticmethod
30949 def handler(fit, module, context, projectionRange, **kwargs):
30950 if 'projected' not in context:
30951 return
30952 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
30953 return
30954 if module.getModifiedItemAttr('ecmBurstRange', 0) < (projectionRange or 0):
30955 return
30956 strength = module.getModifiedItemAttr('scan{0}StrengthBonus'.format(fit.scanType))
30957 if 'effect' in kwargs:
30958 from eos.modifiedAttributeDict import ModifiedAttributeDict
30959 strength *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
30960 fit.addProjectedEcm(strength)
30961
30962
30963class Effect6720(BaseEffect):

Callers

nothing calls this directly

Calls 3

getResistanceMethod · 0.80
addProjectedEcmMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected