(cls, fit, src, context, projectionRange, **kwargs)
| 27075 | |
| 27076 | @classmethod |
| 27077 | def handler(cls, fit, src, context, projectionRange, **kwargs): |
| 27078 | if 'projected' not in context: |
| 27079 | return |
| 27080 | if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'): |
| 27081 | return |
| 27082 | strength = src.getModifiedItemAttr('{}Strength{}'.format(cls.prefix, fit.scanType)) * src.amount |
| 27083 | strength *= calculateRangeFactor( |
| 27084 | srcOptimalRange=src.getModifiedItemAttr('{}RangeOptimal'.format(cls.prefix)), |
| 27085 | srcFalloffRange=src.getModifiedItemAttr('{}RangeFalloff'.format(cls.prefix)), |
| 27086 | distance=projectionRange) |
| 27087 | if 'effect' in kwargs: |
| 27088 | from eos.modifiedAttributeDict import ModifiedAttributeDict |
| 27089 | strength *= ModifiedAttributeDict.getResistance(fit, kwargs['effect']) |
| 27090 | fit.addProjectedEcm(strength) |
| 27091 | |
| 27092 | |
| 27093 | class Effect6439(BaseEffect): |
nothing calls this directly
no test coverage detected