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

Method handler

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

Source from the content-addressed store, hash-verified

26864
26865 @staticmethod
26866 def handler(fit, container, context, projectionRange, **kwargs):
26867 if 'projected' not in context:
26868 return
26869 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
26870 return
26871 appliedBoost = container.getModifiedItemAttr('signatureRadiusBonus') * calculateRangeFactor(
26872 srcOptimalRange=container.getModifiedItemAttr('maxRange'),
26873 srcFalloffRange=container.getModifiedItemAttr('falloffEffectiveness'),
26874 distance=projectionRange)
26875 fit.ship.boostItemAttr('signatureRadius', appliedBoost, stackingPenalties=True, **kwargs)
26876
26877
26878class Effect6426(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
boostItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected