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

Method handler

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

Source from the content-addressed store, hash-verified

27021
27022 @classmethod
27023 def handler(cls, fit, src, context, projectionRange, **kwargs):
27024 if 'projected' not in context:
27025 return
27026 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
27027 return
27028 speedBoost = src.getModifiedItemAttr('{}SpeedPenalty'.format(cls.prefix)) * src.amount
27029 speedBoost *= calculateRangeFactor(
27030 srcOptimalRange=src.getModifiedItemAttr('{}OptimalRange'.format(cls.prefix)),
27031 srcFalloffRange=src.getModifiedItemAttr('{}FalloffRange'.format(cls.prefix)),
27032 distance=projectionRange)
27033 fit.ship.boostItemAttr('maxVelocity', speedBoost, stackingPenalties=True, **kwargs)
27034
27035
27036class Effect6436(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
boostItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected