(fit, module, context, projectionRange, **kwargs)
| 30312 | |
| 30313 | @staticmethod |
| 30314 | def handler(fit, module, context, projectionRange, **kwargs): |
| 30315 | if 'projected' not in context: |
| 30316 | return |
| 30317 | if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'): |
| 30318 | return |
| 30319 | speedBoost = module.getModifiedItemAttr('speedFactor') |
| 30320 | speedBoost *= calculateRangeFactor( |
| 30321 | srcOptimalRange=module.getModifiedItemAttr('maxRange'), |
| 30322 | srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'), |
| 30323 | distance=projectionRange) |
| 30324 | fit.ship.boostItemAttr('maxVelocity', speedBoost, stackingPenalties=True, **kwargs) |
| 30325 | |
| 30326 | |
| 30327 | class Effect6683(BaseEffect): |
nothing calls this directly
no test coverage detected