mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
Lint fixes
This commit is contained in:
@@ -100,7 +100,7 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
|
|||||||
$scope.speedSeries = {
|
$scope.speedSeries = {
|
||||||
xMin: 0,
|
xMin: 0,
|
||||||
xMax: ship.cargoCapacity,
|
xMax: ship.cargoCapacity,
|
||||||
yMax: calcSpeed(ship.unladenMass, ship.speed, ship.boost, $scope.th.c, ship.pipSpeed)['boost'],
|
yMax: calcSpeed(ship.unladenMass, ship.speed, ship.boost, $scope.th.c, ship.pipSpeed).boost,
|
||||||
yMin: 0,
|
yMin: 0,
|
||||||
series: ['boost', '4 Pips', '2 Pips', '0 Pips'],
|
series: ['boost', '4 Pips', '2 Pips', '0 Pips'],
|
||||||
colors: ['#0088d2', '#ff8c0d', '#D26D00', '#c06400'],
|
colors: ['#0088d2', '#ff8c0d', '#D26D00', '#c06400'],
|
||||||
@@ -361,7 +361,7 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
|
|||||||
$scope.speedSeries.xMax = $scope.trSeries.xMax = $scope.jrSeries.xMax = ship.cargoCapacity;
|
$scope.speedSeries.xMax = $scope.trSeries.xMax = $scope.jrSeries.xMax = ship.cargoCapacity;
|
||||||
$scope.jrSeries.yMax = ship.unladenRange;
|
$scope.jrSeries.yMax = ship.unladenRange;
|
||||||
$scope.trSeries.yMax = ship.unladenTotalRange;
|
$scope.trSeries.yMax = ship.unladenTotalRange;
|
||||||
$scope.speedSeries.yMax = calcSpeed(ship.unladenMass, ship.speed, ship.boost, $scope.th.c, ship.pipSpeed)['boost'];
|
$scope.speedSeries.yMax = calcSpeed(ship.unladenMass, ship.speed, ship.boost, $scope.th.c, ship.pipSpeed).boost;
|
||||||
updateRetrofitCosts();
|
updateRetrofitCosts();
|
||||||
win.triggerHandler('pwrchange');
|
win.triggerHandler('pwrchange');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ angular.module('app').directive('barChart', ['$window', '$translate', '$rootScop
|
|||||||
var lines = d.split('\n');
|
var lines = d.split('\n');
|
||||||
el.text('').attr('y', -6);
|
el.text('').attr('y', -6);
|
||||||
for (var i = 0; i < lines.length; i++) {
|
for (var i = 0; i < lines.length; i++) {
|
||||||
var tspan = el.append('tspan').text(lines[i].length > 18 ? lines[i].substring(0,15) + '...' : lines[i]);
|
var tspan = el.append('tspan').text(lines[i].length > 18 ? lines[i].substring(0, 15) + '...' : lines[i]);
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
tspan.attr('x', -9).attr('dy', '1em');
|
tspan.attr('x', -9).attr('dy', '1em');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -400,7 +400,7 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
|
|||||||
Ship.prototype.updateTopSpeed = function() {
|
Ship.prototype.updateTopSpeed = function() {
|
||||||
var speeds = calcSpeed(this.unladenMass + this.fuelCapacity, this.speed, this.boost, this.common[1].c, this.pipSpeed);
|
var speeds = calcSpeed(this.unladenMass + this.fuelCapacity, this.speed, this.boost, this.common[1].c, this.pipSpeed);
|
||||||
this.topSpeed = speeds['4 Pips'];
|
this.topSpeed = speeds['4 Pips'];
|
||||||
this.topBoost = speeds['boost'];
|
this.topBoost = speeds.boost;
|
||||||
};
|
};
|
||||||
|
|
||||||
Ship.prototype.updateShieldStrength = function() {
|
Ship.prototype.updateShieldStrength = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user