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

Method handler

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

Source from the content-addressed store, hash-verified

26777
26778 @staticmethod
26779 def handler(fit, module, context, projectionRange, **kwargs):
26780 if 'projected' not in context:
26781 return
26782 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
26783 return
26784 rangeFactor = calculateRangeFactor(
26785 srcOptimalRange=module.getModifiedItemAttr('maxRange'),
26786 srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'),
26787 distance=projectionRange)
26788 fit.ship.boostItemAttr('maxTargetRange', module.getModifiedItemAttr('maxTargetRangeBonus') * rangeFactor,
26789 stackingPenalties=True, **kwargs)
26790 fit.ship.boostItemAttr('scanResolution', module.getModifiedItemAttr('scanResolutionBonus') * rangeFactor,
26791 stackingPenalties=True, **kwargs)
26792
26793
26794class Effect6423(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
boostItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected