mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
Linting fix
This commit is contained in:
@@ -245,8 +245,7 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
|
|||||||
|
|
||||||
if (slot.c.grp == 'sg') {
|
if (slot.c.grp == 'sg') {
|
||||||
this.updateShieldStrength();
|
this.updateShieldStrength();
|
||||||
}
|
} else if (slot.c.grp == 'sb') {
|
||||||
else if (slot.c.grp == 'sb') {
|
|
||||||
this.shieldMultiplier += slot.c.shieldmul * (enabled ? 1 : -1);
|
this.shieldMultiplier += slot.c.shieldmul * (enabled ? 1 : -1);
|
||||||
this.updateShieldStrength();
|
this.updateShieldStrength();
|
||||||
}
|
}
|
||||||
@@ -363,7 +362,6 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
|
|||||||
Ship.prototype.updateShieldStrength = function() {
|
Ship.prototype.updateShieldStrength = function() {
|
||||||
var sgSlot = this.findInternalByGroup('sg'); // Find Shield Generator slot Index if any
|
var sgSlot = this.findInternalByGroup('sg'); // Find Shield Generator slot Index if any
|
||||||
this.shieldStrength = sgSlot && sgSlot.enabled ? calcShieldStrength(this.mass, this.shields, sgSlot.c, this.shieldMultiplier) : 0;
|
this.shieldStrength = sgSlot && sgSlot.enabled ? calcShieldStrength(this.mass, this.shields, sgSlot.c, this.shieldMultiplier) : 0;
|
||||||
console.log(this.shieldStrength);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user