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

Method handler

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

Source from the content-addressed store, hash-verified

30595
30596 @staticmethod
30597 def handler(fit, container, context, projectionRange, **kwargs):
30598 if 'projected' not in context:
30599 return
30600 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
30601 return
30602 if container.getModifiedItemAttr('maxRange', 0) < (projectionRange or 0):
30603 return
30604 fit.ship.boostItemAttr('maxTargetRange', container.getModifiedItemAttr('maxTargetRangeBonus'),
30605 stackingPenalties=True, **kwargs)
30606 fit.ship.boostItemAttr('scanResolution', container.getModifiedItemAttr('scanResolutionBonus'),
30607 stackingPenalties=True, **kwargs)
30608
30609
30610class Effect6694(BaseEffect):

Callers

nothing calls this directly

Calls 2

boostItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected