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

Method handler

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

Source from the content-addressed store, hash-verified

30336
30337 @staticmethod
30338 def handler(fit, container, context, projectionRange, **kwargs):
30339 if 'projected' not in context:
30340 return
30341 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
30342 return
30343 appliedBoost = container.getModifiedItemAttr('signatureRadiusBonus')
30344 appliedBoost *= calculateRangeFactor(
30345 srcOptimalRange=container.getModifiedItemAttr('maxRange'),
30346 srcFalloffRange=container.getModifiedItemAttr('falloffEffectiveness'),
30347 distance=projectionRange)
30348 fit.ship.boostItemAttr('signatureRadius', appliedBoost, stackingPenalties=True, **kwargs)
30349
30350
30351class Effect6684(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
boostItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected