MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / handler

Method handler

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

Source from the content-addressed store, hash-verified

10285
10286 @staticmethod
10287 def handler(fit, module, context, projectionRange, **kwargs):
10288 if 'projected' in context:
10289 if module.charge is None:
10290 return
10291 if module.getModifiedItemAttr('warpScrambleRange', 0) < (projectionRange or 0):
10292 return
10293 if module.charge.ID in (29003, 45010):
10294 fit.ship.increaseItemAttr('warpScrambleStatus', module.getModifiedItemAttr('warpScrambleStrength'), **kwargs)
10295 if module.charge.ID == 45010:
10296 fit.modules.filteredItemIncrease(
10297 lambda mod: mod.item.requiresSkill('High Speed Maneuvering') or mod.item.requiresSkill('Micro Jump Drive Operation'),
10298 'activationBlocked', 1, **kwargs)
10299 else:
10300 fit.ship.forceItemAttr('disallowAssistance', 1, **kwargs)
10301 if module.charge is not None:
10302 return
10303 fit.ship.boostItemAttr('mass', module.getModifiedItemAttr('massBonusPercentage'), **kwargs)
10304 fit.ship.boostItemAttr('signatureRadius', module.getModifiedItemAttr('signatureRadiusBonus'), **kwargs)
10305 fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == 'Propulsion Module',
10306 'speedBoostFactor', module.getModifiedItemAttr('speedBoostFactorBonus'), **kwargs)
10307 fit.modules.filteredItemBoost(lambda mod: mod.item.group.name == 'Propulsion Module',
10308 'speedFactor', module.getModifiedItemAttr('speedFactorBonus'), **kwargs)
10309
10310
10311class Effect3392(BaseEffect):

Callers

nothing calls this directly

Calls 7

increaseItemAttrMethod · 0.80
filteredItemIncreaseMethod · 0.80
requiresSkillMethod · 0.80
forceItemAttrMethod · 0.80
boostItemAttrMethod · 0.80
filteredItemBoostMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected