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