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

Method handler

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

Source from the content-addressed store, hash-verified

26889
26890 @staticmethod
26891 def handler(fit, module, context, projectionRange, **kwargs):
26892 if 'projected' not in context:
26893 return
26894 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
26895 return
26896 appliedBoost = module.getModifiedItemAttr('speedFactor') * calculateRangeFactor(
26897 srcOptimalRange=module.getModifiedItemAttr('maxRange'),
26898 srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'),
26899 distance=projectionRange)
26900 fit.ship.boostItemAttr('maxVelocity', appliedBoost, stackingPenalties=True, **kwargs)
26901
26902
26903class Effect6427(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
boostItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected