Fix behavior for hull reinforcement max at 5D

This commit is contained in:
Kevin Chang
2015-10-08 22:51:00 -07:00
parent 08f49c8339
commit 1c78fea48f

View File

@@ -277,7 +277,7 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
$scope.fillWithArmor = function() {
ship.internal.forEach(function(slot) {
var id = Components.findInternalId('hr', slot.maxClass, 'D');
var id = Components.findInternalId('hr', Math.min(slot.maxClass, 5), 'D'); // Hull reinforcements top out at 5D
if (!slot.c) {
ship.use(slot, id, Components.internal(id));
}