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

Method handler

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

Source from the content-addressed store, hash-verified

30312
30313 @staticmethod
30314 def handler(fit, module, context, projectionRange, **kwargs):
30315 if 'projected' not in context:
30316 return
30317 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
30318 return
30319 speedBoost = module.getModifiedItemAttr('speedFactor')
30320 speedBoost *= calculateRangeFactor(
30321 srcOptimalRange=module.getModifiedItemAttr('maxRange'),
30322 srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'),
30323 distance=projectionRange)
30324 fit.ship.boostItemAttr('maxVelocity', speedBoost, stackingPenalties=True, **kwargs)
30325
30326
30327class Effect6683(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
boostItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected