(fit, src, context, projectionRange, **kwargs)
| 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 | |
| 30564 | class Effect6692(BaseEffect): |
nothing calls this directly
no test coverage detected