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

Method handler

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

Source from the content-addressed store, hash-verified

27388
27389 @staticmethod
27390 def handler(fit, src, context, projectionRange, **kwargs):
27391 if 'projected' not in context:
27392 return
27393 if not ((hasattr(src, 'state') and src.state >= FittingModuleState.ACTIVE) or hasattr(src, 'amountActive')):
27394 return
27395 amount = src.getModifiedItemAttr('energyNeutralizerAmount')
27396 if 'effect' in kwargs:
27397 from eos.modifiedAttributeDict import ModifiedAttributeDict
27398 amount *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
27399 time = src.getModifiedItemAttr('duration')
27400 fit.addDrain(src, time, amount, 0)
27401
27402
27403class Effect6478(BaseEffect):

Callers

nothing calls this directly

Calls 3

getResistanceMethod · 0.80
addDrainMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected