Do not include disabled shield boosters in calculations

This commit is contained in:
Cmdr McDonald
2016-12-14 17:39:01 +00:00
parent 46ed9003dd
commit 93ba1bf67a
2 changed files with 2 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
* Use separate speed/rotation/acceleration multipliers for thrusters if available
* Obey restricted slot rules when adding all for internal slots
* Version URLs to handle changes to ship specifications over time
* Do not include disabled shield boosters in calculations
#2.2.5
* Calculate rate of fire for multi-burst weapons

View File

@@ -1134,7 +1134,7 @@ export default class Ship {
// Shield from boosters
for (let slot of this.hardpoints) {
if (slot.m && slot.m.grp == 'sb') {
if (slot.enabled && slot.m && slot.m.grp == 'sb') {
shieldBoost += slot.m.getShieldBoost();
shieldExplRes *= (1 - slot.m.getExplosiveResistance());
shieldKinRes *= (1 - slot.m.getKineticResistance());