(fit, module, context, projectionRange, **kwargs)
| 30360 | |
| 30361 | @staticmethod |
| 30362 | def handler(fit, module, context, projectionRange, **kwargs): |
| 30363 | if 'projected' not in context: |
| 30364 | return |
| 30365 | if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'): |
| 30366 | return |
| 30367 | rangeFactor = calculateRangeFactor( |
| 30368 | srcOptimalRange=module.getModifiedItemAttr('maxRange'), |
| 30369 | srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'), |
| 30370 | distance=projectionRange) |
| 30371 | fit.ship.boostItemAttr('maxTargetRange', module.getModifiedItemAttr('maxTargetRangeBonus') * rangeFactor, |
| 30372 | stackingPenalties=True, **kwargs) |
| 30373 | fit.ship.boostItemAttr('scanResolution', module.getModifiedItemAttr('scanResolutionBonus') * rangeFactor, |
| 30374 | stackingPenalties=True, **kwargs) |
| 30375 | |
| 30376 | |
| 30377 | class Effect6685(BaseEffect): |
nothing calls this directly
no test coverage detected