From 6e948977045baba0bafc3e1d84070511378ad019 Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Tue, 26 May 2015 20:34:42 -0700 Subject: [PATCH] Only allow 1 fuel scoop --- app/js/shipyard/factory-ship.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/shipyard/factory-ship.js b/app/js/shipyard/factory-ship.js index 34e73c63..a8ba3b67 100755 --- a/app/js/shipyard/factory-ship.js +++ b/app/js/shipyard/factory-ship.js @@ -149,7 +149,7 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength', if (slot.id != id) { // Selecting a different component var slotIndex = this.internal.indexOf(slot); // Slot is an internal slot, is not being emptied, and the selected component group/type must be of unique - if(slotIndex != -1 && component && (component.grp == 'sg' || component.grp == 'rf')) { + if(slotIndex != -1 && component && _.includes(['sg','rf','fs'],component.grp)) { // Find another internal slot that already has this type/group installed var similarSlotIndex = this.findInternalByGroup(component.grp); // If another slot has an installed component with of the same type