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

Method handler

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

Source from the content-addressed store, hash-verified

23091
23092 @staticmethod
23093 def handler(fit, module, context, projectionRange, **kwargs):
23094 if 'projected' not in context:
23095 return
23096 if fit.ship.getModifiedItemAttr('disallowOffensiveModifiers'):
23097 return
23098 if module.getModifiedItemAttr('maxRange', 0) < (projectionRange or 0):
23099 return
23100 fit.ship.increaseItemAttr('warpScrambleStatus', module.getModifiedItemAttr('warpScrambleStrength'))
23101 fit.modules.filteredItemIncrease(
23102 lambda mod: mod.item.requiresSkill('High Speed Maneuvering') or mod.item.requiresSkill('Micro Jump Drive Operation'),
23103 'activationBlocked', module.getModifiedItemAttr('activationBlockedStrenght'), **kwargs)
23104
23105
23106class Effect5939(BaseEffect):

Callers

nothing calls this directly

Calls 4

increaseItemAttrMethod · 0.80
filteredItemIncreaseMethod · 0.80
requiresSkillMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected