mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
Clean up unnecessary fuel costs logic
This commit is contained in:
@@ -609,12 +609,11 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
|
||||
}
|
||||
//total fuel, or if slider isn't at max, use that value and only if scoop not present
|
||||
if (!scoop) {
|
||||
q = $scope.fuel != ship.fuelCapacity ? $scope.fuel : ship.fuelCapacity;
|
||||
item = {
|
||||
ammoName: 'fuel',
|
||||
ammoMax: q,
|
||||
ammoMax: $scope.fuel,
|
||||
ammoUnitCost: 50,
|
||||
ammoTotalCost: q * 50
|
||||
ammoTotalCost: $scope.fuel * 50
|
||||
};
|
||||
costs.push(item);
|
||||
total += item.ammoTotalCost;
|
||||
|
||||
Reference in New Issue
Block a user