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

Method handler

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

Source from the content-addressed store, hash-verified

31116
31117 @staticmethod
31118 def handler(fit, module, context, projectionRange, **kwargs):
31119 fit.ship.increaseItemAttr('mass', module.getModifiedItemAttr('massAddition'), **kwargs)
31120 speedBoost = module.getModifiedItemAttr('speedFactor')
31121 mass = fit.ship.getModifiedItemAttr('mass')
31122 thrust = module.getModifiedItemAttr('speedBoostFactor')
31123 # It is actually a postMul, see black hole speed interactions
31124 fit.ship.boostItemAttr('maxVelocity', speedBoost * thrust / mass,
31125 stackingPenalties=True, penaltyGroup='postMul', **kwargs)
31126 fit.ship.boostItemAttr('signatureRadius', module.getModifiedItemAttr('signatureRadiusBonus'),
31127 stackingPenalties=True, **kwargs)
31128
31129
31130class Effect6731(BaseEffect):

Callers

nothing calls this directly

Calls 3

increaseItemAttrMethod · 0.80
boostItemAttrMethod · 0.80
getModifiedItemAttrMethod · 0.45

Tested by

no test coverage detected