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

Method handler

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

Source from the content-addressed store, hash-verified

30452
30453 @staticmethod
30454 def handler(fit, container, context, projectionRange, **kwargs):
30455 if 'projected' not in context:
30456 return
30457 if fit.ship.getModifiedItemAttr('disallowAssistance'):
30458 return
30459 if container.getModifiedItemAttr('maxRange', 0) < (projectionRange or 0):
30460 return
30461 bonus = container.getModifiedItemAttr('armorDamageAmount')
30462 duration = container.getModifiedItemAttr('duration') / 1000.0
30463 fit._armorRr.append((bonus, duration))
30464 fit._armorRrPreSpool.append((bonus, duration))
30465 fit._armorRrFullSpool.append((bonus, duration))
30466
30467
30468class Effect6688(BaseEffect):

Callers

nothing calls this directly

Calls 2

getModifiedItemAttrMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected