Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Only allow 1 fuel scoop
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McLeod committed May 27, 2015
1 parent 484e2ca commit 6e94897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/shipyard/factory-ship.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e94897

Please sign in to comment.