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

Method handler

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

Source from the content-addressed store, hash-verified

30386
30387 @staticmethod
30388 def handler(fit, module, context, projectionRange, **kwargs):
30389 if 'projected' not in context:
30390 return
30391 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
30392 return
30393 strength = module.getModifiedItemAttr('scan{0}StrengthBonus'.format(fit.scanType))
30394 strength *= calculateRangeFactor(
30395 srcOptimalRange=module.getModifiedItemAttr('maxRange'),
30396 srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'),
30397 distance=projectionRange)
30398 if 'effect' in kwargs:
30399 from eos.modifiedAttributeDict import ModifiedAttributeDict
30400 strength *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
30401 fit.addProjectedEcm(strength)
30402
30403
30404class Effect6686(BaseEffect):

Callers

nothing calls this directly

Calls 4

calculateRangeFactorFunction · 0.90
getResistanceMethod · 0.80
addProjectedEcmMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected