(fit, src, context, projectionRange, **kwargs)
| 24801 | |
| 24802 | @staticmethod |
| 24803 | def handler(fit, src, context, projectionRange, **kwargs): |
| 24804 | if 'projected' not in context: |
| 24805 | return |
| 24806 | if not ((hasattr(src, 'state') and src.state >= FittingModuleState.ACTIVE) or hasattr(src, 'amountActive')): |
| 24807 | return |
| 24808 | amount = src.getModifiedItemAttr('energyNeutralizerAmount') |
| 24809 | amount *= calculateRangeFactor( |
| 24810 | srcOptimalRange=src.getModifiedItemAttr('maxRange'), |
| 24811 | srcFalloffRange=src.getModifiedItemAttr('falloffEffectiveness'), |
| 24812 | distance=projectionRange) |
| 24813 | if 'effect' in kwargs: |
| 24814 | from eos.modifiedAttributeDict import ModifiedAttributeDict |
| 24815 | amount *= ModifiedAttributeDict.getResistance(fit, kwargs['effect']) |
| 24816 | time = src.getModifiedItemAttr('duration') |
| 24817 | fit.addDrain(src, time, amount, 0) |
| 24818 | |
| 24819 | |
| 24820 | class Effect6188(BaseEffect): |
nothing calls this directly
no test coverage detected