From c17c7125e31e3bc5036c7f9c085b0f382453ce33 Mon Sep 17 00:00:00 2001 From: Cmdr McDonald Date: Fri, 4 Nov 2016 11:34:39 +0000 Subject: [PATCH] Tidy-ups --- src/app/components/InternalSlotSection.jsx | 1 + src/app/shipyard/Ship.js | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/components/InternalSlotSection.jsx b/src/app/components/InternalSlotSection.jsx index 70ee500f..ae6b8bec 100644 --- a/src/app/components/InternalSlotSection.jsx +++ b/src/app/components/InternalSlotSection.jsx @@ -216,6 +216,7 @@ export default class InternalSlotSection extends SlotSection { /** * Generate the section drop-down menu * @param {Function} translate Translate function + * @param {Function} ship The ship * @return {React.Component} Section menu */ _getSectionMenu(translate, ship) { diff --git a/src/app/shipyard/Ship.js b/src/app/shipyard/Ship.js index 07fa4915..459824ff 100755 --- a/src/app/shipyard/Ship.js +++ b/src/app/shipyard/Ship.js @@ -221,7 +221,7 @@ export default class Ship { * Calculate the hypothetical shield strength for the ship using the specified parameters * @param {Object} sg [optional] Shield Generator to use * @param {Number} multiplierDelta [optional] Change to shield multiplier (+0.2, - 0.12, etc) - * @return {Number} Shield strength in MH + * @return {Number} Shield strength in MJ */ calcShieldStrengthWith(sg, multiplierDelta) { if (!sg) { @@ -845,7 +845,6 @@ export default class Ship { const slot = this.standard[slotNum]; if (slot.m && slot.enabled) { bands[slot.priority][powerUsageType(slot, slot.m)] += slot.m.getPowerUsage(); - } } @@ -1164,9 +1163,9 @@ export default class Ship { let modificationId = buffer.readInt8(curpos++); while (modificationId != -1) { let modificationValue = buffer.readInt16BE(curpos); - curpos += 2; - modifications[Modifications.modifiers[modificationId]] = modificationValue; - modificationId = buffer.readInt8(curpos++); + curpos += 2; + modifications[Modifications.modifiers[modificationId]] = modificationValue; + modificationId = buffer.readInt8(curpos++); } arr[module] = modifications; module = buffer.readInt8(curpos++);