(fit, container, context, projectionRange, **kwargs)
| 24776 | |
| 24777 | @staticmethod |
| 24778 | def handler(fit, container, context, projectionRange, **kwargs): |
| 24779 | if 'projected' not in context: |
| 24780 | return |
| 24781 | if fit.ship.getModifiedItemAttr('disallowAssistance'): |
| 24782 | return |
| 24783 | bonus = container.getModifiedItemAttr('shieldBonus') |
| 24784 | bonus *= calculateRangeFactor( |
| 24785 | srcOptimalRange=container.getModifiedItemAttr('maxRange'), |
| 24786 | srcFalloffRange=container.getModifiedItemAttr('falloffEffectiveness'), |
| 24787 | distance=projectionRange) |
| 24788 | duration = container.getModifiedItemAttr('duration') / 1000.0 |
| 24789 | fit._shieldRr.append((bonus, duration)) |
| 24790 | |
| 24791 | |
| 24792 | class Effect6187(BaseEffect): |
nothing calls this directly
no test coverage detected