MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / handler

Method handler

eos/effects.py:30479–30488  ·  view source on GitHub ↗
(fit, container, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

30477
30478 @staticmethod
30479 def handler(fit, container, context, projectionRange, **kwargs):
30480 if 'projected' not in context:
30481 return
30482 if fit.ship.getModifiedItemAttr('disallowAssistance'):
30483 return
30484 if container.getModifiedItemAttr('maxRange', 0) < (projectionRange or 0):
30485 return
30486 bonus = container.getModifiedItemAttr('shieldBonus')
30487 duration = container.getModifiedItemAttr('duration') / 1000.0
30488 fit._shieldRr.append((bonus, duration))
30489
30490
30491class Effect6689(BaseEffect):

Callers

nothing calls this directly

Calls 2

getModifiedItemAttrMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected