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

Method handler

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

Source from the content-addressed store, hash-verified

24776
24777 @staticmethod
24778 def handler(fit, container, context, projectionRange, **kwargs):
24779 if 'projected' not in context:
24780 return
24781 if fit.ship.getModifiedItemAttr('disallowAssistance'):
24782 return
24783 bonus = container.getModifiedItemAttr('shieldBonus')
24784 bonus *= calculateRangeFactor(
24785 srcOptimalRange=container.getModifiedItemAttr('maxRange'),
24786 srcFalloffRange=container.getModifiedItemAttr('falloffEffectiveness'),
24787 distance=projectionRange)
24788 duration = container.getModifiedItemAttr('duration') / 1000.0
24789 fit._shieldRr.append((bonus, duration))
24790
24791
24792class Effect6187(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
getModifiedItemAttrMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected