(fit, container, context, projectionRange, **kwargs)
| 24830 | |
| 24831 | @staticmethod |
| 24832 | def handler(fit, container, context, projectionRange, **kwargs): |
| 24833 | if 'projected' not in context: |
| 24834 | return |
| 24835 | if fit.ship.getModifiedItemAttr('disallowAssistance'): |
| 24836 | return |
| 24837 | bonus = container.getModifiedItemAttr('armorDamageAmount') |
| 24838 | bonus *= calculateRangeFactor( |
| 24839 | srcOptimalRange=container.getModifiedItemAttr('maxRange'), |
| 24840 | srcFalloffRange=container.getModifiedItemAttr('falloffEffectiveness'), |
| 24841 | distance=projectionRange) |
| 24842 | duration = container.getModifiedItemAttr('duration') / 1000.0 |
| 24843 | fit._armorRr.append((bonus, duration)) |
| 24844 | fit._armorRrPreSpool.append((bonus, duration)) |
| 24845 | fit._armorRrFullSpool.append((bonus, duration)) |
| 24846 | |
| 24847 | |
| 24848 | class Effect6195(BaseEffect): |
nothing calls this directly
no test coverage detected