(fit, src, context, projectionRange, **kwargs)
| 24876 | |
| 24877 | @staticmethod |
| 24878 | def handler(fit, src, context, projectionRange, **kwargs): |
| 24879 | amount = src.getModifiedItemAttr('powerTransferAmount') |
| 24880 | time = src.getModifiedItemAttr('duration') |
| 24881 | if 'projected' in context: |
| 24882 | if 'effect' in kwargs: |
| 24883 | from eos.modifiedAttributeDict import ModifiedAttributeDict |
| 24884 | amount *= ModifiedAttributeDict.getResistance(fit, kwargs['effect']) |
| 24885 | amount *= calculateRangeFactor( |
| 24886 | srcOptimalRange=src.getModifiedItemAttr('maxRange'), |
| 24887 | srcFalloffRange=src.getModifiedItemAttr('falloffEffectiveness'), |
| 24888 | distance=projectionRange) |
| 24889 | fit.addDrain(src, time, amount, 0) |
| 24890 | elif 'module' in context: |
| 24891 | src.itemModifiedAttributes.force('capacitorNeed', -amount, **kwargs) |
| 24892 | |
| 24893 | |
| 24894 | class Effect6201(BaseEffect): |
nothing calls this directly
no test coverage detected