(cls, fit, src, context, projectionRange, **kwargs)
| 27021 | |
| 27022 | @classmethod |
| 27023 | def handler(cls, fit, src, context, projectionRange, **kwargs): |
| 27024 | if 'projected' not in context: |
| 27025 | return |
| 27026 | if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'): |
| 27027 | return |
| 27028 | speedBoost = src.getModifiedItemAttr('{}SpeedPenalty'.format(cls.prefix)) * src.amount |
| 27029 | speedBoost *= calculateRangeFactor( |
| 27030 | srcOptimalRange=src.getModifiedItemAttr('{}OptimalRange'.format(cls.prefix)), |
| 27031 | srcFalloffRange=src.getModifiedItemAttr('{}FalloffRange'.format(cls.prefix)), |
| 27032 | distance=projectionRange) |
| 27033 | fit.ship.boostItemAttr('maxVelocity', speedBoost, stackingPenalties=True, **kwargs) |
| 27034 | |
| 27035 | |
| 27036 | class Effect6436(BaseEffect): |
nothing calls this directly
no test coverage detected