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

Method handler

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

Source from the content-addressed store, hash-verified

30547
30548 @staticmethod
30549 def handler(fit, src, context, projectionRange, **kwargs):
30550 if 'projected' not in context:
30551 return
30552 if not ((hasattr(src, 'state') and src.state >= FittingModuleState.ACTIVE) or hasattr(src, 'amountActive')):
30553 return
30554 if src.getModifiedItemAttr('energyNeutralizerRangeOptimal', 0) < (projectionRange or 0):
30555 return
30556 amount = src.getModifiedItemAttr('energyNeutralizerAmount')
30557 if 'effect' in kwargs:
30558 from eos.modifiedAttributeDict import ModifiedAttributeDict
30559 amount *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
30560 time = src.getModifiedItemAttr('energyNeutralizerDuration')
30561 fit.addDrain(src, time, amount, 0)
30562
30563
30564class Effect6692(BaseEffect):

Callers

nothing calls this directly

Calls 3

getResistanceMethod · 0.80
addDrainMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected