diff --git a/app/js/shipyard/factory-ship.js b/app/js/shipyard/factory-ship.js index 9c96cc67..cdafeb0c 100755 --- a/app/js/shipyard/factory-ship.js +++ b/app/js/shipyard/factory-ship.js @@ -548,7 +548,12 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength', }; Ship.prototype.useUtility = function(group, rating, clobber) { - var component = Components.findHardpoint(group, 0, rating); + var component; + if (group == 'cm') { + component = Components.findHardpoint(group, 0, null, rating); //overload Rating as Name for countermeasures + } else { + component = Components.findHardpoint(group, 0, rating); + } for (var i = this.hardpoints.length; i--; ) { if ((clobber || !this.hardpoints[i].c) && !this.hardpoints[i].maxClass) { this.use(this.hardpoints[i], component.id, component); diff --git a/app/views/page-outfit.html b/app/views/page-outfit.html index 3609a61d..cb057378 100644 --- a/app/views/page-outfit.html +++ b/app/views/page-outfit.html @@ -296,6 +296,10 @@