diff --git a/eos/effects/modulebonusafterburner.py b/eos/effects/modulebonusafterburner.py new file mode 100644 index 000000000..c8dbd9b7e --- /dev/null +++ b/eos/effects/modulebonusafterburner.py @@ -0,0 +1,10 @@ +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) \ No newline at end of file diff --git a/eos/effects/modulebonusmicrowarpdrive.py b/eos/effects/modulebonusmicrowarpdrive.py new file mode 100644 index 000000000..9eb233ab1 --- /dev/null +++ b/eos/effects/modulebonusmicrowarpdrive.py @@ -0,0 +1,11 @@ +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) + fit.ship.boostItemAttr("signatureRadius", module.getModifiedItemAttr("signatureRadiusBonus"), stackingPenalties = True) diff --git a/eve.db b/eve.db index 4d1511be6..c3f4199cb 100644 Binary files a/eve.db and b/eve.db differ