diff --git a/app/js/shipyard/factory-ship.js b/app/js/shipyard/factory-ship.js index a8ba3b67..eb6319bf 100755 --- a/app/js/shipyard/factory-ship.js +++ b/app/js/shipyard/factory-ship.js @@ -167,12 +167,14 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength', }; /** - * [jumpRange description] - * @param {number} mass [description] + * Calculate jump range using the installed FSD and the + * specified mass which can be more or less than ships actual mass + * @param {number} mass Mass in tons + * @param {number} fuel Fuel available in tons * @return {number} Jump range in Light Years */ - Ship.prototype.jumpRangeWithMass = function (mass) { - return calcJumpRange(mass, this.common[2].c); + Ship.prototype.jumpRangeWithMass = function (mass, fuel) { + return calcJumpRange(mass, this.common[2].c, fuel); }; /**