mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Only allow 1 fuel scoop
This commit is contained in:
@@ -149,7 +149,7 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
|
|||||||
if (slot.id != id) { // Selecting a different component
|
if (slot.id != id) { // Selecting a different component
|
||||||
var slotIndex = this.internal.indexOf(slot);
|
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
|
// 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
|
// Find another internal slot that already has this type/group installed
|
||||||
var similarSlotIndex = this.findInternalByGroup(component.grp);
|
var similarSlotIndex = this.findInternalByGroup(component.grp);
|
||||||
// If another slot has an installed component with of the same type
|
// If another slot has an installed component with of the same type
|
||||||
|
|||||||
Reference in New Issue
Block a user