(fit, module, context, projectionRange, **kwargs)
| 26777 | |
| 26778 | @staticmethod |
| 26779 | def handler(fit, module, context, projectionRange, **kwargs): |
| 26780 | if 'projected' not in context: |
| 26781 | return |
| 26782 | if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'): |
| 26783 | return |
| 26784 | rangeFactor = calculateRangeFactor( |
| 26785 | srcOptimalRange=module.getModifiedItemAttr('maxRange'), |
| 26786 | srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'), |
| 26787 | distance=projectionRange) |
| 26788 | fit.ship.boostItemAttr('maxTargetRange', module.getModifiedItemAttr('maxTargetRangeBonus') * rangeFactor, |
| 26789 | stackingPenalties=True, **kwargs) |
| 26790 | fit.ship.boostItemAttr('scanResolution', module.getModifiedItemAttr('scanResolutionBonus') * rangeFactor, |
| 26791 | stackingPenalties=True, **kwargs) |
| 26792 | |
| 26793 | |
| 26794 | class Effect6423(BaseEffect): |
nothing calls this directly
no test coverage detected