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

Method handler

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

Source from the content-addressed store, hash-verified

24751
24752 @staticmethod
24753 def handler(fit, module, context, projectionRange, **kwargs):
24754 if 'projected' not in context:
24755 return
24756 if fit.ship.getModifiedItemAttr('disallowAssistance'):
24757 return
24758 bonus = module.getModifiedItemAttr('structureDamageAmount')
24759 bonus *= calculateRangeFactor(
24760 srcOptimalRange=module.getModifiedItemAttr('maxRange'),
24761 srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'),
24762 distance=projectionRange)
24763 duration = module.getModifiedItemAttr('duration') / 1000.0
24764 fit._hullRr.append((bonus, duration))
24765
24766
24767class Effect6186(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
getModifiedItemAttrMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected