mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 06:43:24 +00:00
Add Heat Sink auto-fill given new SCB heat output
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user