mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +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
|
//total fuel, or if slider isn't at max, use that value and only if scoop not present
|
||||||
if (!scoop) {
|
if (!scoop) {
|
||||||
q = $scope.fuel != ship.fuelCapacity ? $scope.fuel : ship.fuelCapacity;
|
|
||||||
item = {
|
item = {
|
||||||
ammoName: 'fuel',
|
ammoName: 'fuel',
|
||||||
ammoMax: q,
|
ammoMax: $scope.fuel,
|
||||||
ammoUnitCost: 50,
|
ammoUnitCost: 50,
|
||||||
ammoTotalCost: q * 50
|
ammoTotalCost: $scope.fuel * 50
|
||||||
};
|
};
|
||||||
costs.push(item);
|
costs.push(item);
|
||||||
total += item.ammoTotalCost;
|
total += item.ammoTotalCost;
|
||||||
|
|||||||
Reference in New Issue
Block a user