(fit, module, context, projectionRange, **kwargs)
| 30386 | |
| 30387 | @staticmethod |
| 30388 | def handler(fit, module, context, projectionRange, **kwargs): |
| 30389 | if 'projected' not in context: |
| 30390 | return |
| 30391 | if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'): |
| 30392 | return |
| 30393 | strength = module.getModifiedItemAttr('scan{0}StrengthBonus'.format(fit.scanType)) |
| 30394 | strength *= calculateRangeFactor( |
| 30395 | srcOptimalRange=module.getModifiedItemAttr('maxRange'), |
| 30396 | srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'), |
| 30397 | distance=projectionRange) |
| 30398 | if 'effect' in kwargs: |
| 30399 | from eos.modifiedAttributeDict import ModifiedAttributeDict |
| 30400 | strength *= ModifiedAttributeDict.getResistance(fit, kwargs['effect']) |
| 30401 | fit.addProjectedEcm(strength) |
| 30402 | |
| 30403 | |
| 30404 | class Effect6686(BaseEffect): |
nothing calls this directly
no test coverage detected