(cls, fit, src, context, projectionRange, **kwargs)
| 26992 | |
| 26993 | @classmethod |
| 26994 | def handler(cls, fit, src, context, projectionRange, **kwargs): |
| 26995 | if 'projected' not in context: |
| 26996 | return |
| 26997 | amount = src.getModifiedItemAttr('{}Amount'.format(cls.prefix)) * src.amount |
| 26998 | amount *= calculateRangeFactor( |
| 26999 | srcOptimalRange=src.getModifiedItemAttr('{}OptimalRange'.format(cls.prefix)), |
| 27000 | srcFalloffRange=src.getModifiedItemAttr('{}FalloffRange'.format(cls.prefix)), |
| 27001 | distance=projectionRange) |
| 27002 | if 'effect' in kwargs: |
| 27003 | from eos.modifiedAttributeDict import ModifiedAttributeDict |
| 27004 | amount *= ModifiedAttributeDict.getResistance(fit, kwargs['effect']) |
| 27005 | time = src.getModifiedItemAttr('{}Duration'.format(cls.prefix)) |
| 27006 | fit.addDrain(src, time, amount, 0) |
| 27007 | |
| 27008 | |
| 27009 | class Effect6435(BaseEffect): |
nothing calls this directly
no test coverage detected