(fit, module, context, projectionRange, **kwargs)
| 24751 | |
| 24752 | @staticmethod |
| 24753 | def handler(fit, module, context, projectionRange, **kwargs): |
| 24754 | if 'projected' not in context: |
| 24755 | return |
| 24756 | if fit.ship.getModifiedItemAttr('disallowAssistance'): |
| 24757 | return |
| 24758 | bonus = module.getModifiedItemAttr('structureDamageAmount') |
| 24759 | bonus *= calculateRangeFactor( |
| 24760 | srcOptimalRange=module.getModifiedItemAttr('maxRange'), |
| 24761 | srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'), |
| 24762 | distance=projectionRange) |
| 24763 | duration = module.getModifiedItemAttr('duration') / 1000.0 |
| 24764 | fit._hullRr.append((bonus, duration)) |
| 24765 | |
| 24766 | |
| 24767 | class Effect6186(BaseEffect): |
nothing calls this directly
no test coverage detected