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

Method handler

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

Source from the content-addressed store, hash-verified

24724
24725 @staticmethod
24726 def handler(fit, src, context, projectionRange, **kwargs):
24727 if 'projected' not in context:
24728 return
24729 if fit.ship.getModifiedItemAttr('disallowAssistance'):
24730 return
24731 if src.getModifiedItemAttr('maxRange', 0) < (projectionRange or 0):
24732 return
24733 amount = src.getModifiedItemAttr('powerTransferAmount')
24734 duration = src.getModifiedItemAttr('duration')
24735 if 'effect' in kwargs:
24736 from eos.modifiedAttributeDict import ModifiedAttributeDict
24737 amount *= ModifiedAttributeDict.getResistance(fit, kwargs['effect'])
24738 fit.addDrain(src, duration, -amount, 0)
24739
24740
24741class Effect6185(BaseEffect):

Callers

nothing calls this directly

Calls 3

getResistanceMethod · 0.80
addDrainMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected