Tweak AFMU for explorer build

This commit is contained in:
Colin McLeod
2015-10-09 15:44:10 -07:00
parent 22716517c5
commit e2adc7bdc4

View File

@@ -310,8 +310,8 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
ship.setSlotEnabled(sgSlot, true);
} else if (afmUnitCount > 0 && (!slot.eligible || slot.eligible.am)) {
afmUnitCount--;
var id = Components.findInternalId('am', slot.maxClass, 'B'); // Best B-Rated AFM Unit for slot (more ammo)
ship.use(slot, id, Components.internal(id));
var am = Components.findInternal('am', slot.maxClass, afmUnitCount ? 'B' : 'A');
ship.use(slot, am.id, am);
ship.setSlotEnabled(slot, false); // Disabled power for AFM Unit
} else {