MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / handler

Method handler

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

Source from the content-addressed store, hash-verified

24876
24877 @staticmethod
24878 def handler(fit, src, context, projectionRange, **kwargs):
24879 amount = src.getModifiedItemAttr('powerTransferAmount')
24880 time = src.getModifiedItemAttr('duration')
24881 if 'projected' in context:
24882 if 'effect' in kwargs:
24883 from eos.modifiedAttributeDict import ModifiedAttributeDict
24884 amount *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
24885 amount *= calculateRangeFactor(
24886 srcOptimalRange=src.getModifiedItemAttr('maxRange'),
24887 srcFalloffRange=src.getModifiedItemAttr('falloffEffectiveness'),
24888 distance=projectionRange)
24889 fit.addDrain(src, time, amount, 0)
24890 elif 'module' in context:
24891 src.itemModifiedAttributes.force('capacitorNeed', -amount, **kwargs)
24892
24893
24894class Effect6201(BaseEffect):

Callers

nothing calls this directly

Calls 5

calculateRangeFactorFunction · 0.90
getResistanceMethod · 0.80
addDrainMethod · 0.80
forceMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected