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

Method handler

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

Source from the content-addressed store, hash-verified

30360
30361 @staticmethod
30362 def handler(fit, module, context, projectionRange, **kwargs):
30363 if 'projected' not in context:
30364 return
30365 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
30366 return
30367 rangeFactor = calculateRangeFactor(
30368 srcOptimalRange=module.getModifiedItemAttr('maxRange'),
30369 srcFalloffRange=module.getModifiedItemAttr('falloffEffectiveness'),
30370 distance=projectionRange)
30371 fit.ship.boostItemAttr('maxTargetRange', module.getModifiedItemAttr('maxTargetRangeBonus') * rangeFactor,
30372 stackingPenalties=True, **kwargs)
30373 fit.ship.boostItemAttr('scanResolution', module.getModifiedItemAttr('scanResolutionBonus') * rangeFactor,
30374 stackingPenalties=True, **kwargs)
30375
30376
30377class Effect6685(BaseEffect):

Callers

nothing calls this directly

Calls 3

calculateRangeFactorFunction · 0.90
boostItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected