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

Method handler

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

Source from the content-addressed store, hash-verified

26992
26993 @classmethod
26994 def handler(cls, fit, src, context, projectionRange, **kwargs):
26995 if 'projected' not in context:
26996 return
26997 amount = src.getModifiedItemAttr('{}Amount'.format(cls.prefix)) * src.amount
26998 amount *= calculateRangeFactor(
26999 srcOptimalRange=src.getModifiedItemAttr('{}OptimalRange'.format(cls.prefix)),
27000 srcFalloffRange=src.getModifiedItemAttr('{}FalloffRange'.format(cls.prefix)),
27001 distance=projectionRange)
27002 if 'effect' in kwargs:
27003 from eos.modifiedAttributeDict import ModifiedAttributeDict
27004 amount *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
27005 time = src.getModifiedItemAttr('{}Duration'.format(cls.prefix))
27006 fit.addDrain(src, time, amount, 0)
27007
27008
27009class Effect6435(BaseEffect):

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected