mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
Tweaked to reenable slot if previously disabled
This commit is contained in:
@@ -267,9 +267,7 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
|
||||
if ((!slot.c || (slot.c.grp != 'sg' && slot.c.grp != 'psg')) && (!slot.eligible || slot.eligible.scb)) { // Check eligibility because of Orca, don't overwrite generator
|
||||
ship.use(slot, id, Components.internal(id));
|
||||
chargeCap += Components.internal(id).recharge;
|
||||
if (chargeCap >= ship.shieldStrength) {
|
||||
ship.setSlotEnabled(slot, false); // Don't waste cell capacity on overcharge
|
||||
}
|
||||
ship.setSlotEnabled(slot, chargeCap <= ship.shieldStrength); // Don't waste cell capacity on overcharge
|
||||
}
|
||||
});
|
||||
updateState(Serializer.fromShip(ship));
|
||||
|
||||
Reference in New Issue
Block a user