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

Method handler

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

Source from the content-addressed store, hash-verified

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
24848class Effect6195(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
getModifiedItemAttrMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected