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

Method handler

eos/effects.py:30649–30660  ·  view source on GitHub ↗
(fit, container, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

30647
30648 @staticmethod
30649 def handler(fit, container, context, projectionRange, **kwargs):
30650 if 'projected' not in context:
30651 return
30652 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
30653 return
30654 if container.getModifiedItemAttr('ECMRangeOptimal', 0) < (projectionRange or 0):
30655 return
30656 strength = container.getModifiedItemAttr('scan{0}StrengthBonus'.format(fit.scanType))
30657 if 'effect' in kwargs:
30658 from eos.modifiedAttributeDict import ModifiedAttributeDict
30659 strength *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
30660 fit.addProjectedEcm(strength)
30661
30662
30663class Effect6697(BaseEffect):

Callers

nothing calls this directly

Calls 3

getResistanceMethod · 0.80
addProjectedEcmMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected