15 lines
479 B
Python
15 lines
479 B
Python
# moduleBonusAfterburner
|
|
#
|
|
# Used by:
|
|
# Modules from group: Propulsion Module (65 of 133)
|
|
type = "active"
|
|
runTime = "late"
|
|
|
|
|
|
def handler(fit, module, context):
|
|
fit.ship.increaseItemAttr("mass", module.getModifiedItemAttr("massAddition"))
|
|
speedBoost = module.getModifiedItemAttr("speedFactor")
|
|
mass = fit.ship.getModifiedItemAttr("mass")
|
|
thrust = module.getModifiedItemAttr("speedBoostFactor")
|
|
fit.ship.boostItemAttr("maxVelocity", speedBoost * thrust / mass)
|