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

Method handler

eos/effects.py:29804–29821  ·  view source on GitHub ↗
(fit, module, context, projectionRange, **kwargs)

Source from the content-addressed store, hash-verified

29802
29803 @staticmethod
29804 def handler(fit, module, context, projectionRange, **kwargs):
29805 if 'projected' not in context:
29806 return
29807 if fit.ship.getModifiedItemAttr('disallowAssistance'):
29808 return
29809 if module.charge and module.charge.name == 'Nanite Repair Paste':
29810 multiplier = 3
29811 else:
29812 multiplier = 1
29813 amount = module.getModifiedItemAttr('armorDamageAmount') * multiplier
29814 amount *= calculateRangeFactor(
29815 srcOptimalRange=module.getModifiedItemAttr('maxRange'),
29816 srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'),
29817 distance=projectionRange)
29818 speed = module.getModifiedItemAttr('duration') / 1000.0
29819 fit._armorRr.append((amount, speed))
29820 fit._armorRrPreSpool.append((amount, speed))
29821 fit._armorRrFullSpool.append((amount, speed))
29822
29823
29824class Effect6652(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
getModifiedItemAttrMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected