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

Method handler

eos/effects.py:27077–27090  ·  view source on GitHub ↗
(cls, fit, src, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

27075
27076 @classmethod
27077 def handler(cls, fit, src, context, projectionRange, **kwargs):
27078 if 'projected' not in context:
27079 return
27080 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
27081 return
27082 strength = src.getModifiedItemAttr('{}Strength{}'.format(cls.prefix, fit.scanType)) * src.amount
27083 strength *= calculateRangeFactor(
27084 srcOptimalRange=src.getModifiedItemAttr('{}RangeOptimal'.format(cls.prefix)),
27085 srcFalloffRange=src.getModifiedItemAttr('{}RangeFalloff'.format(cls.prefix)),
27086 distance=projectionRange)
27087 if 'effect' in kwargs:
27088 from eos.modifiedAttributeDict import ModifiedAttributeDict
27089 strength *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
27090 fit.addProjectedEcm(strength)
27091
27092
27093class Effect6439(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