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

Method handler

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

Source from the content-addressed store, hash-verified

29834
29835 @staticmethod
29836 def handler(fit, module, context, projectionRange, **kwargs):
29837 if 'projected' not in context:
29838 return
29839 if fit.ship.getModifiedItemAttr('disallowAssistance'):
29840 return
29841 amount = module.getModifiedItemAttr('shieldBonus')
29842 amount *= calculateRangeFactor(
29843 srcOptimalRange=module.getModifiedItemAttr('maxRange'),
29844 srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'),
29845 distance=projectionRange)
29846 speed = module.getModifiedItemAttr('duration') / 1000.0
29847 fit._shieldRr.append((amount, speed))
29848
29849
29850class Effect6653(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
getModifiedItemAttrMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected