Compare commits

...

54 Commits

Author SHA1 Message Date
Colin McLeod
d2fc526039 Don't cachebust JSON files.. 2015-07-14 21:58:27 -07:00
Colin McLeod
88587c6487 Bumping version to 1.1.0 2015-07-14 21:48:11 -07:00
Colin McLeod
4578dbf906 Refactor many variable names, adding detailed json dump and schema 2015-07-14 21:44:12 -07:00
Colin McLeod
cd48ef6f86 Removing ship purpose 2015-07-13 12:33:40 -07:00
Colin McLeod
0f0e67ec9c Adding mass lock factor 2015-07-13 11:08:49 -07:00
Colin McLeod
bbb2a223af Updating price for mining lance 2015-07-13 10:58:05 -07:00
Colin McLeod
5278e52e2f Updating price for Pack-hound 2015-07-13 10:57:52 -07:00
Colin McLeod
e6290abef7 Correcting prices 2015-07-11 00:17:21 -07:00
Colin McLeod
346fee1208 Improve readbility of power distributor and thruster data 2015-07-07 18:29:25 -07:00
Colin McLeod
1b9f5f870e Change component select hover color 2015-07-07 18:29:07 -07:00
Colin McLeod
26b624d1dd Use default right-click action when SHIFT key is held 2015-07-07 15:34:28 -07:00
Colin McLeod
7cbd9732b7 List Utility mounts in alphabetical order 2015-07-07 14:51:23 -07:00
Colin McLeod
44152116b4 Linting fix 2015-07-07 11:30:38 -07:00
Colin McLeod
3ad35992fc Use full names for limpet controllers 2015-07-07 11:20:48 -07:00
Colin McLeod
e963eb24a0 Adding Imperial Hammer rail gun 2015-07-07 11:20:26 -07:00
Colin McLeod
827e2b403c Adding Distrupoter pulse laser 2015-07-07 11:20:07 -07:00
Colin McLeod
0fd4712021 Adding Advanced Plasma Accelerator 2015-07-07 11:19:49 -07:00
Colin McLeod
ae0af05e78 Adding Enforcer Multi-cannon 2015-07-07 11:19:31 -07:00
Colin McLeod
dd00f283e6 Adding Pack-Hound missle rack 2015-07-07 11:19:12 -07:00
Colin McLeod
eddf968629 Adding Mining Lance laser 2015-07-07 11:18:50 -07:00
Colin McLeod
7fdd83ba84 Adding Pacifier frag cannon 2015-07-07 11:18:28 -07:00
Colin McLeod
1bb4f6850e Clean up cannon data 2015-07-07 11:18:05 -07:00
Colin McLeod
f47b931380 Adding Cryptoscrambler burst laser 2015-07-07 11:17:45 -07:00
Colin McLeod
d9f686f0d6 Adding Retributor beam laser 2015-07-07 11:17:25 -07:00
Colin McLeod
73cef20073 Format for readability 2015-07-07 11:17:05 -07:00
Colin McLeod
fd68565d8e Adding prismatic Shield Generators 2015-07-07 11:16:40 -07:00
Colin McLeod
a45d165d33 UI Tweaks 2015-07-06 15:45:56 -07:00
Colin McLeod
904f828d83 Change cargo rack order, remove long name 2015-07-06 11:20:34 -07:00
Colin McLeod
f00420c92f UI Tweaks 2015-07-06 11:20:08 -07:00
Colin McLeod
457705014c Bumping version to 1.0.4 2015-07-03 18:25:54 -07:00
Colin McLeod
6faf3765e0 Fix to scroll to top on iOS 2015-07-03 18:23:19 -07:00
Colin McLeod
4abdce2b70 Fix button wrapping issue on small screens 2015-07-03 15:42:08 -07:00
Colin McLeod
3b44f5fe27 Bumping version 1.0.3 2015-07-03 15:33:47 -07:00
Colin McLeod
7332dc69ed Linting issues 2015-07-03 15:31:52 -07:00
Colin McLeod
381387c04f UI Tweaks, persist cost tab open, revert outfitting order to original 2015-07-03 15:30:49 -07:00
Colin McLeod
e0db9fdfb0 Fix scrolling on iOS 2015-07-03 12:15:35 -07:00
Colin McLeod
a8d66b22af Bumping version to 1.0.2 2015-07-02 20:43:13 -07:00
Colin McLeod
bdc1e622f9 UI Tweaks, scrolling fixes and improvements 2015-07-02 20:42:46 -07:00
Colin McLeod
ad8130ae9b Add missing class 7 & 8 internal fuel tanks 2015-07-02 19:24:52 -07:00
Colin McLeod
394a3bb9f1 Revert to ui-router-extras 0.0.13 due to bug introduced in 0.0.14 2015-07-02 10:41:24 -07:00
Colin McLeod
54907b462c Tweak select look and feel on firefox, safari 2015-07-01 23:41:32 -07:00
Colin McLeod
1350de1910 Empty retrofitting table color fix 2015-06-30 21:55:38 -07:00
Colin McLeod
89d3fd69e1 UI tweaks for mobile 2015-06-30 21:46:05 -07:00
Colin McLeod
7325081ec9 Version 1.0.0 :D 2015-06-30 21:09:19 -07:00
Colin McLeod
680872a302 Retrofitting costs added to outfit page 2015-06-30 21:06:12 -07:00
Colin McLeod
a3c65d6c69 Code comments 2015-06-30 19:25:57 -07:00
Colin McLeod
a189265326 Fix svg click bug in Chrome 2015-06-30 19:25:36 -07:00
Colin McLeod
b447e913ff no need to abbreviate shield details 2015-06-29 16:28:41 -07:00
Colin McLeod
b5a249fb4b Change latest version date format 2015-06-29 16:27:56 -07:00
Colin McLeod
ae081c147e Fix negative power for limpet controllers 2015-06-29 15:42:35 -07:00
Colin McLeod
3ce0d0bdd8 Add dps to outfit page 2015-06-29 15:03:04 -07:00
Colin McLeod
a71abd9fe3 Bumping version to 0.14.1 2015-06-29 14:59:30 -07:00
Colin McLeod
f1d804e3a1 Adding total DPS to outfit page and comparisons 2015-06-29 11:57:29 -07:00
Colin McLeod
aa7479d111 Updating Federal Dropship agility 2015-06-29 10:36:49 -07:00
71 changed files with 1396 additions and 2377 deletions

View File

@@ -7,7 +7,7 @@
<!-- Standard headers --> <!-- Standard headers -->
<meta name="description" content="A ship outfitting and comparison tool for Elite Dangerous"> <meta name="description" content="A ship outfitting and comparison tool for Elite Dangerous">
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
<meta name="viewport" content="width = device-width, initial-scale = 1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="manifest" href="/images/logo/manifest.json"> <link rel="manifest" href="/images/logo/manifest.json">
<link rel="icon" sizes="152x152 192x192" type="image/png" href="/images/logo/192x192.png"> <link rel="icon" sizes="152x152 192x192" type="image/png" href="/images/logo/192x192.png">
<link rel="shortcut icon" href="/images/logo/favicon.ico"> <link rel="shortcut icon" href="/images/logo/favicon.ico">

View File

@@ -1,6 +1,6 @@
angular.module('app', ['ui.router', 'ct.ui.router.extras.sticky', 'ui.sortable', 'shipyard', 'ngLodash', 'app.templates']) angular.module('app', ['ui.router', 'ct.ui.router.extras.sticky', 'ui.sortable', 'shipyard', 'ngLodash', 'app.templates'])
.run(['$rootScope', '$location', '$window', '$document', '$state', 'commonArray', 'shipPurpose', 'shipSize', 'hardPointClass', 'GroupMap', 'Persist', 'Discounts', .run(['$rootScope', '$location', '$window', '$document', '$state', 'commonArray', 'shipSize', 'hardPointClass', 'GroupMap', 'Persist', 'Discounts',
function($rootScope, $location, $window, $doc, $state, CArr, shipPurpose, sz, hpc, GroupMap, Persist, Discounts) { function($rootScope, $location, $window, $doc, $state, CArr, sz, hpc, GroupMap, Persist, Discounts) {
// App is running as a standalone web app on tablet/mobile // App is running as a standalone web app on tablet/mobile
var isStandAlone; var isStandAlone;
// This was causing issues on Windows phones ($window.external was causing Angular js to throw an exception). Backup is to try this and set isStandAlone to false if this fails. // This was causing issues on Windows phones ($window.external was causing Angular js to throw an exception). Backup is to try this and set isStandAlone to false if this fails.
@@ -35,7 +35,6 @@ function($rootScope, $location, $window, $doc, $state, CArr, shipPurpose, sz, hp
// Global Reference variables // Global Reference variables
$rootScope.CArr = CArr; $rootScope.CArr = CArr;
$rootScope.SP = shipPurpose;
$rootScope.SZ = sz; $rootScope.SZ = sz;
$rootScope.HPC = hpc; $rootScope.HPC = hpc;
$rootScope.GMAP = GroupMap; $rootScope.GMAP = GroupMap;
@@ -45,8 +44,13 @@ function($rootScope, $location, $window, $doc, $state, CArr, shipPurpose, sz, hp
$rootScope.STATUS_CLASS = ['', 'disabled', 'warning', 'secondary-disabled']; $rootScope.STATUS_CLASS = ['', 'disabled', 'warning', 'secondary-disabled'];
$rootScope.title = 'Coriolis'; $rootScope.title = 'Coriolis';
$rootScope.cName = function(c) { /**
return c.c ? c.c.name ? c.c.name : GroupMap[c.c.grp] : null; * Returns the name of the component mounted in the specified slot
* @param {Object} slot The slot object
* @return {String} The component name
*/
$rootScope.cName = function(slot) {
return slot.c ? slot.c.name ? slot.c.name : GroupMap[slot.c.grp] : null;
}; };
// Formatters // Formatters

View File

@@ -1,7 +1,8 @@
angular.module('app').controller('OutfitController', ['$window', '$rootScope', '$scope', '$state', '$stateParams', 'ShipsDB', 'Ship', 'Components', 'Serializer', 'Persist', 'calcTotalRange', 'calcSpeed', function($window, $rootScope, $scope, $state, $p, Ships, Ship, Components, Serializer, Persist, calcTotalRange, calcSpeed) { angular.module('app').controller('OutfitController', ['$window', '$rootScope', '$scope', '$state', '$stateParams', 'ShipsDB', 'Ship', 'Components', 'Serializer', 'Persist', 'calcTotalRange', 'calcSpeed', function($window, $rootScope, $scope, $state, $p, Ships, Ship, Components, Serializer, Persist, calcTotalRange, calcSpeed) {
var win = angular.element($window); // Angularized window object for event triggering
var data = Ships[$p.shipId]; // Retrieve the basic ship properties, slots and defaults var data = Ships[$p.shipId]; // Retrieve the basic ship properties, slots and defaults
var ship = new Ship($p.shipId, data.properties, data.slots); // Create a new Ship instance var ship = new Ship($p.shipId, data.properties, data.slots); // Create a new Ship instance
var win = angular.element($window); // Angularized window object for event triggering var retrofitShip = new Ship($p.shipId, data.properties, data.slots); // Create a new Ship for retrofit comparison
// Update the ship instance with the code (if provided) or the 'factory' defaults. // Update the ship instance with the code (if provided) or the 'factory' defaults.
if ($p.code) { if ($p.code) {
@@ -11,8 +12,6 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
ship.buildWith(data.defaults); // Populate with default components ship.buildWith(data.defaults); // Populate with default components
} }
ship.applyDiscounts($rootScope.discounts.ship, $rootScope.discounts.components);
$scope.buildName = $p.bn; $scope.buildName = $p.bn;
$rootScope.title = ship.name + ($scope.buildName ? ' - ' + $scope.buildName : ''); $rootScope.title = ship.name + ($scope.buildName ? ' - ' + $scope.buildName : '');
$scope.ship = ship; $scope.ship = ship;
@@ -32,11 +31,27 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
$scope.selectedSlot = null; $scope.selectedSlot = null;
$scope.savedCode = Persist.getBuild(ship.id, $scope.buildName); $scope.savedCode = Persist.getBuild(ship.id, $scope.buildName);
$scope.canSave = Persist.isEnabled(); $scope.canSave = Persist.isEnabled();
$scope.allBuilds = Persist.builds;
$scope.fuel = 0; $scope.fuel = 0;
$scope.pwrDesc = false; $scope.pwrDesc = false;
$scope.pwrPredicate = 'type'; $scope.pwrPredicate = 'type';
$scope.retroDesc = false;
$scope.retroPredicate = 'netCost';
$scope.costDesc = true; $scope.costDesc = true;
$scope.costPredicate = 'c.cost'; $scope.costPredicate = 'c.cost';
$scope.costTab = Persist.getCostTab() || 'costs';
if ($scope.savedCode) {
Serializer.toShip(retrofitShip, $scope.savedCode); // Populate components from last save
$scope.retrofitBuild = $scope.buildName;
} else {
retrofitShip.buildWith(data.defaults);
$scope.retrofitBuild = null;
}
ship.applyDiscounts($rootScope.discounts.ship, $rootScope.discounts.components);
retrofitShip.applyDiscounts($rootScope.discounts.ship, $rootScope.discounts.components);
updateRetrofitCosts();
$scope.jrSeries = { $scope.jrSeries = {
xMin: 0, xMin: 0,
@@ -189,10 +204,31 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
if ($scope.code != $scope.savedCode) { if ($scope.code != $scope.savedCode) {
Persist.saveBuild(ship.id, $scope.buildName, $scope.code); Persist.saveBuild(ship.id, $scope.buildName, $scope.code);
$scope.savedCode = $scope.code; $scope.savedCode = $scope.code;
if ($scope.retrofitBuild === $scope.buildName) {
Serializer.toShip(retrofitShip, $scope.code);
}
updateState($scope.code); updateState($scope.code);
} }
}; };
/**
* Export the build to detailed JSON
*/
$scope.exportBuild = function(e) {
e.stopPropagation();
if ($scope.buildName) {
$state.go('modal.export', {
data: Serializer.toJsonBuild(
$scope.buildName,
ship,
$state.href($state.current.name, $state.params, { absolute: true }),
$scope.code || Serializer.fromShip(ship)
)
});
}
};
/** /**
* Permanently delete the current build and redirect/reload this controller * Permanently delete the current build and redirect/reload this controller
* with the 'factory' build of the current ship. * with the 'factory' build of the current ship.
@@ -232,6 +268,11 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
$scope.pwrPredicate = key; $scope.pwrPredicate = key;
}; };
$scope.sortRetrofit = function(key) {
$scope.retroDesc = $scope.retroPredicate == key ? !$scope.retroDesc : $scope.retroDesc;
$scope.retroPredicate = key;
};
/** /**
* Toggle the power on/off for the selected component * Toggle the power on/off for the selected component
* @param {object} item The component being toggled * @param {object} item The component being toggled
@@ -266,6 +307,15 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
return ship.getSlotStatus(slot, true); return ship.getSlotStatus(slot, true);
}; };
$scope.setRetrofitBase = function() {
if ($scope.retrofitBuild) {
Serializer.toShip(retrofitShip, Persist.getBuild(ship.id, $scope.retrofitBuild));
} else {
retrofitShip.buildWith(data.defaults);
}
updateRetrofitCosts();
};
// Utilify functions // Utilify functions
function updateState(code) { function updateState(code) {
@@ -274,9 +324,56 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
$scope.speedSeries.xMax = $scope.trSeries.xMax = $scope.jrSeries.xMax = ship.cargoCapacity; $scope.speedSeries.xMax = $scope.trSeries.xMax = $scope.jrSeries.xMax = ship.cargoCapacity;
$scope.jrSeries.yMax = ship.unladenRange; $scope.jrSeries.yMax = ship.unladenRange;
$scope.trSeries.yMax = ship.unladenTotalRange; $scope.trSeries.yMax = ship.unladenTotalRange;
updateRetrofitCosts();
win.triggerHandler('pwrchange'); win.triggerHandler('pwrchange');
} }
function updateRetrofitCosts() {
var costs = $scope.retrofitList = [];
var cName = $rootScope.cName;
var total = 0, i, l, item;
if (ship.bulkheads.id != retrofitShip.bulkheads.id) {
item = {
buyClassRating: ship.bulkheads.c.class + ship.bulkheads.c.rating,
buyName: cName(ship.bulkheads),
sellClassRating: retrofitShip.bulkheads.c.class + retrofitShip.bulkheads.c.rating,
sellName: cName(retrofitShip.bulkheads),
netCost: ship.bulkheads.discountedCost - retrofitShip.bulkheads.discountedCost
};
costs.push(item);
total += item.netCost;
}
for (var g in { common: 1, internal: 1, hardpoints: 1 }) {
var retroSlotGroup = retrofitShip[g];
var slotGroup = ship[g];
for (i = 0, l = slotGroup.length; i < l; i++) {
if (slotGroup[i].id != retroSlotGroup[i].id) {
item = { netCost: 0 };
if (slotGroup[i].id) {
item.buyName = cName(slotGroup[i]);
item.buyClassRating = slotGroup[i].c.class + slotGroup[i].c.rating;
item.netCost = slotGroup[i].discountedCost;
}
if (retroSlotGroup[i].id) {
item.sellName = cName(retroSlotGroup[i]);
item.sellClassRating = retroSlotGroup[i].c.class + retroSlotGroup[i].c.rating;
item.netCost -= retroSlotGroup[i].discountedCost;
}
costs.push(item);
total += item.netCost;
}
}
}
$scope.retrofitTotal = total;
}
$scope.updateCostTab = function(tab) {
Persist.setCostTab(tab);
$scope.costTab = tab;
};
// Hide any open menu/slot/etc if the background is clicked // Hide any open menu/slot/etc if the background is clicked
$scope.$on('close', function() { $scope.$on('close', function() {
$scope.selectedSlot = null; $scope.selectedSlot = null;
@@ -285,6 +382,8 @@ angular.module('app').controller('OutfitController', ['$window', '$rootScope', '
// Hide any open menu/slot/etc if the background is clicked // Hide any open menu/slot/etc if the background is clicked
$scope.$on('discountChange', function() { $scope.$on('discountChange', function() {
ship.applyDiscounts($rootScope.discounts.ship, $rootScope.discounts.components); ship.applyDiscounts($rootScope.discounts.ship, $rootScope.discounts.components);
retrofitShip.applyDiscounts($rootScope.discounts.ship, $rootScope.discounts.components);
updateRetrofitCosts();
}); });
}]); }]);

View File

@@ -8,7 +8,7 @@ angular.module('app').directive('componentSelect', function() {
var o = opts[i]; var o = opts[i];
var id = o.id || (o.class + o.rating); // Common components' ID is their class and rating var id = o.id || (o.class + o.rating); // Common components' ID is their class and rating
if (i > 0 && opts.length > 3 && o.class != prevClass && (!o.grp || o.rating != prevRating || o.mode)) { if (i > 0 && opts.length > 4 && o.class != prevClass && (o.rating != prevRating || o.mode)) {
list.push('<br/>'); list.push('<br/>');
} }
@@ -21,10 +21,10 @@ angular.module('app').directive('componentSelect', function() {
list.push((o.maxmass && mass > o.maxmass) ? ' disabled"' : '" cpid="', id, '">'); list.push((o.maxmass && mass > o.maxmass) ? ' disabled"' : '" cpid="', id, '">');
if (o.mode) { if (o.mode) {
list.push('<svg cpid="', id, '" class="icon lg"><use xlink:href="#mount-', o.mode, '"></use></svg> '); list.push('<svg cpid="', id, '" class="icon lg"><use cpid="', id, '" xlink:href="#mount-', o.mode, '"></use></svg> ');
} }
list.push(o.class, o.rating); list.push('<span cpid="', id, '">', o.class, o.rating);
if (o.missile) { if (o.missile) {
list.push('/' + o.missile); list.push('/' + o.missile);
@@ -35,7 +35,7 @@ angular.module('app').directive('componentSelect', function() {
list.push(' ' + o.name); list.push(' ' + o.name);
} }
list.push('</li>'); list.push('</span></li>');
prevClass = o.class; prevClass = o.class;
prevRating = o.rating; prevRating = o.rating;
} }

View File

@@ -3,10 +3,12 @@ angular.module('app').directive('contextMenu', ['$parse', function($parse) {
var fn = $parse(attrs.contextMenu); var fn = $parse(attrs.contextMenu);
element.bind('contextmenu', function(e) { element.bind('contextmenu', function(e) {
if (!e.shiftKey) {
scope.$apply(function() { scope.$apply(function() {
e.preventDefault(); e.preventDefault();
fn(scope, { $event: e }); fn(scope, { $event: e });
}); });
}
}); });
}; };
}]); }]);

View File

@@ -204,6 +204,27 @@ angular.module('app').service('Persist', ['$window', 'lodash', function($window,
return null; return null;
}; };
/**
* Persist selected cost tab
* @param {number} val Discount value/amount
*/
this.setCostTab = function(tabName) {
if (this.lsEnabled) {
return localStorage.setItem('costTab', tabName);
}
};
/**
* Get the saved discount
* @return {number} val Discount value/amount
*/
this.getCostTab = function() {
if (this.lsEnabled) {
return localStorage.getItem('costTab');
}
return null;
};
/** /**
* Retrieve the last router state from local storage * Retrieve the last router state from local storage
* @param {object} state State object containing state name and params * @param {object} state State object containing state name and params

View File

@@ -1,7 +1,7 @@
/** /**
* Service managing seralization and deserialization of models for use in URLs and persistene. * Service managing seralization and deserialization of models for use in URLs and persistene.
*/ */
angular.module('app').service('Serializer', ['lodash', function(_) { angular.module('app').service('Serializer', ['lodash', 'GroupMap', 'MountMap', function(_, GroupMap, MountMap) {
/** /**
* Serializes the ships selected components for all slots to a URL friendly string. * Serializes the ships selected components for all slots to a URL friendly string.
@@ -33,7 +33,7 @@ angular.module('app').service('Serializer', ['lodash', function(_) {
* code. * code.
* *
* @param {Ship} ship The ship instance to be updated * @param {Ship} ship The ship instance to be updated
* @param {string} code The string to deserialize * @param {string} dataString The string to deserialize
*/ */
this.toShip = function(ship, dataString) { this.toShip = function(ship, dataString) {
var common = new Array(ship.common.length), var common = new Array(ship.common.length),
@@ -54,10 +54,6 @@ angular.module('app').service('Serializer', ['lodash', function(_) {
decodeToArray(code, internal, decodeToArray(code, hardpoints, decodeToArray(code, common, 1))); decodeToArray(code, internal, decodeToArray(code, hardpoints, decodeToArray(code, common, 1)));
// get the remaining substring / split into parts for
// - priorities
// - enabled/disabled
ship.buildWith( ship.buildWith(
{ {
bulkheads: code.charAt(0) * 1, bulkheads: code.charAt(0) * 1,
@@ -70,6 +66,48 @@ angular.module('app').service('Serializer', ['lodash', function(_) {
); );
}; };
this.toJsonBuild = function(buildName, ship, url, code) {
var standard = ship.common,
hardpoints = ship.hardpoints,
internal = ship.internal;
var data = {
$schema: 'http://cdn.coriolis.io/schemas/ship-loadout/1-draft.json#',
name: buildName,
ship: ship.name,
references: [{
name: 'Coriolis.io',
url: url,
code: code,
shipId: ship.id
}],
components: {
standard: {
bulkheads: ship.bulkheads.c.name,
powerPlant: { class: standard[0].c.class, rating: standard[0].c.rating },
thrusters: { class: standard[1].c.class, rating: standard[1].c.rating },
frameShiftDrive: { class: standard[2].c.class, rating: standard[2].c.rating },
lifeSupport: { class: standard[3].c.class, rating: standard[3].c.rating },
powerDistributor: { class: standard[4].c.class, rating: standard[4].c.rating },
sensors: { class: standard[5].c.class, rating: standard[5].c.rating },
fuelTank: { class: standard[6].c.class, rating: standard[6].c.rating }
},
hardpoints: _.map(_.filter(hardpoints, function(slot) { return slot.maxClass > 0; }), slotToSchema),
utility: _.map(_.filter(hardpoints, function(slot) { return slot.maxClass === 0; }), slotToSchema),
internal: _.map(internal, slotToSchema)
},
stats: {}
};
for (var stat in ship) {
if (!isNaN(ship[stat])) {
data.stats[stat] = Math.round(ship[stat] * 100) / 100;
}
}
return data;
};
this.fromComparison = function(name, builds, facets, predicate, desc) { this.fromComparison = function(name, builds, facets, predicate, desc) {
var shipBuilds = []; var shipBuilds = [];
@@ -118,4 +156,19 @@ angular.module('app').service('Serializer', ['lodash', function(_) {
return codePos; return codePos;
} }
function slotToSchema(slot) {
if (slot.c) {
var o = { class: slot.c.class, rating: slot.c.rating, group: GroupMap[slot.c.grp] };
if (slot.c.name) {
o.name = slot.c.name;
}
if (slot.c.mode) {
o.mount = MountMap[slot.c.mode];
}
return o;
}
return null;
}
}]); }]);

View File

@@ -14,26 +14,27 @@ angular.module('shipyard').factory('ComponentSet', ['lodash', function(_) {
this.hpClass = {}; this.hpClass = {};
this.intClass = {}; this.intClass = {};
for (var i = 0; i < components.common.length; i++) { this.common[0] = filter(components.common[0], maxCommonArr[0], 0, mass); // Power Plant
var max = maxCommonArr[i]; this.common[2] = filter(components.common[2], maxCommonArr[2], 0, mass); // FSD
switch (i) { this.common[4] = filter(components.common[4], maxCommonArr[4], 0, mass); // Power Distributor
this.common[6] = filter(components.common[6], maxCommonArr[6], 0, mass); // Fuel Tank
// Thrusters, filter components by class only (to show full list of ratings for that class)
var minThrusterClass = _.reduce(components.common[1], function(minClass, thruster) {
return (thruster.maxmass >= mass && thruster.class < minClass) ? thruster.class : minClass;
}, maxCommonArr[1]);
this.common[1] = filter(components.common[1], maxCommonArr[1], minThrusterClass, 0); // Thrusters
// Slots where component class must be equal to slot class // Slots where component class must be equal to slot class
case 3: // Life Support this.common[3] = filter(components.common[3], maxCommonArr[3], maxCommonArr[3], 0); // Life Supprt
case 5: // Sensors this.common[5] = filter(components.common[5], maxCommonArr[5], maxCommonArr[5], mass); // Sensors
this.common[i] = filter(components.common[i], max, max, this.mass);
break;
// Other slots can have a component of class lower than the slot class
default:
this.common[i] = filter(components.common[i], max, 0, this.mass);
}
}
for (var h in components.hardpoints) { for (var h in components.hardpoints) {
this.hardpoints[h] = filter(components.hardpoints[h], maxHardPoint, 0, this.mass); this.hardpoints[h] = filter(components.hardpoints[h], maxHardPoint, 0, mass);
} }
for (var g in components.internal) { for (var g in components.internal) {
this.internal[g] = filter(components.internal[g], maxInternal, 0, this.mass); this.internal[g] = filter(components.internal[g], maxInternal, 0, mass);
} }
} }

View File

@@ -40,7 +40,7 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
} }
} }
// Make a Ship 'slot'/item similar to other slots // Make a Ship 'slot'/item similar to other slots
this.c = { incCost: true, type: 'SHIP', discountedCost: this.cost, c: { name: this.name, cost: this.cost } }; this.c = { incCost: true, type: 'SHIP', discountedCost: this.hullCost, c: { name: this.name, cost: this.hullCost } };
this.costList = _.union(this.internal, this.common, this.hardpoints); this.costList = _.union(this.internal, this.common, this.hardpoints);
this.costList.push(this.bulkheads); // Add The bulkheads this.costList.push(this.bulkheads); // Add The bulkheads
@@ -55,8 +55,8 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
this.powerList.unshift(this.common[2]); // Add FSD this.powerList.unshift(this.common[2]); // Add FSD
this.powerList.unshift(this.common[0]); // Add Power Plant this.powerList.unshift(this.common[0]); // Add Power Plant
this.shipDiscount = 1; this.shipCostMultiplier = 1;
this.componentDiscount = 1; this.componentCostMultiplier = 1;
this.priorityBands = [ this.priorityBands = [
{ deployed: 0, retracted: 0, retOnly: 0 }, { deployed: 0, retracted: 0, retOnly: 0 },
@@ -86,8 +86,9 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
this.armourAdded = 0; this.armourAdded = 0;
this.shieldMultiplier = 1; this.shieldMultiplier = 1;
this.totalCost = this.c.incCost ? this.c.discountedCost : 0; this.totalCost = this.c.incCost ? this.c.discountedCost : 0;
this.unladenMass = this.mass; this.unladenMass = this.hullMass;
this.armourTotal = this.armour; this.armour = this.baseArmour;
this.totalDps = 0;
this.bulkheads.c = null; this.bulkheads.c = null;
this.useBulkhead(comps.bulkheads || 0, true); this.useBulkhead(comps.bulkheads || 0, true);
@@ -156,7 +157,7 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
var oldBulkhead = this.bulkheads.c; var oldBulkhead = this.bulkheads.c;
this.bulkheads.id = index; this.bulkheads.id = index;
this.bulkheads.c = Components.bulkheads(this.id, index); this.bulkheads.c = Components.bulkheads(this.id, index);
this.bulkheads.discountedCost = this.bulkheads.c.cost * this.componentDiscount; this.bulkheads.discountedCost = this.bulkheads.c.cost * this.componentCostMultiplier;
this.updateStats(this.bulkheads, this.bulkheads.c, oldBulkhead, preventUpdate); this.updateStats(this.bulkheads, this.bulkheads.c, oldBulkhead, preventUpdate);
}; };
@@ -172,7 +173,7 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
Ship.prototype.use = function(slot, id, component, preventUpdate) { Ship.prototype.use = function(slot, id, component, preventUpdate) {
if (slot.id != id) { // Selecting a different component if (slot.id != id) { // Selecting a different component
// Slot is an internal slot, is not being emptied, and the selected component group/type must be of unique // Slot is an internal slot, is not being emptied, and the selected component group/type must be of unique
if (slot.cat == 2 && component && _.includes(['sg', 'rf', 'fs'], component.grp)) { if (slot.cat == 2 && component && _.includes(['psg', 'sg', 'rf', 'fs'], component.grp)) {
// Find another internal slot that already has this type/group installed // Find another internal slot that already has this type/group installed
var similarSlot = this.findInternalByGroup(component.grp); var similarSlot = this.findInternalByGroup(component.grp);
// If another slot has an installed component with of the same type // If another slot has an installed component with of the same type
@@ -185,7 +186,7 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
var oldComponent = slot.c; var oldComponent = slot.c;
slot.id = id; slot.id = id;
slot.c = component; slot.c = component;
slot.discountedCost = (component && component.cost) ? component.cost * this.componentDiscount : 0; slot.discountedCost = (component && component.cost) ? component.cost * this.componentCostMultiplier : 0;
this.updateStats(slot, component, oldComponent, preventUpdate); this.updateStats(slot, component, oldComponent, preventUpdate);
} }
}; };
@@ -209,9 +210,17 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
* @return {number} The index of the slot in ship.internal * @return {number} The index of the slot in ship.internal
*/ */
Ship.prototype.findInternalByGroup = function(group) { Ship.prototype.findInternalByGroup = function(group) {
var index = _.findIndex(this.internal, function(slot) { var index;
if (group == 'sg' || group == 'psg') {
index = _.findIndex(this.internal, function(slot) {
return slot.c && (slot.c.grp == 'sg' || slot.c.grp == 'psg');
});
} else {
index = _.findIndex(this.internal, function(slot) {
return slot.c && slot.c.grp == group; return slot.c && slot.c.grp == group;
}); });
}
if (index !== -1) { if (index !== -1) {
return this.internal[index]; return this.internal[index];
} }
@@ -253,11 +262,13 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
if (slot.c) { if (slot.c) {
this.priorityBands[slot.priority][powerUsageType(slot, slot.c)] += enabled ? slot.c.power : -slot.c.power; this.priorityBands[slot.priority][powerUsageType(slot, slot.c)] += enabled ? slot.c.power : -slot.c.power;
if (slot.c.grp == 'sg') { if (slot.c.grp == 'sg' || slot.c.grp == 'psg') {
this.updateShieldStrength(); this.updateShieldStrength();
} else if (slot.c.grp == 'sb') { } else if (slot.c.grp == 'sb') {
this.shieldMultiplier += slot.c.shieldmul * (enabled ? 1 : -1); this.shieldMultiplier += slot.c.shieldmul * (enabled ? 1 : -1);
this.updateShieldStrength(); this.updateShieldStrength();
} else if (slot.c.dps) {
this.totalDps += slot.c.dps * (enabled ? 1 : -1);
} }
this.updatePower(); this.updatePower();
@@ -302,12 +313,16 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
} }
if (slot.incCost && old.cost) { if (slot.incCost && old.cost) {
this.totalCost -= old.cost * this.componentDiscount; this.totalCost -= old.cost * this.componentCostMultiplier;
} }
if (old.power && slot.enabled) { if (old.power && slot.enabled) {
this.priorityBands[slot.priority][powerUsageType(slot, old)] -= old.power; this.priorityBands[slot.priority][powerUsageType(slot, old)] -= old.power;
powerChange = true; powerChange = true;
if (old.dps) {
this.totalDps -= old.dps;
}
} }
this.unladenMass -= old.mass || 0; this.unladenMass -= old.mass || 0;
} }
@@ -320,9 +335,6 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
case 'cr': case 'cr':
this.cargoCapacity += n.capacity; this.cargoCapacity += n.capacity;
break; break;
case 't':
this.maxMass = n.maxmass;
break;
case 'hr': case 'hr':
this.armourAdded += n.armouradd; this.armourAdded += n.armouradd;
break; break;
@@ -332,18 +344,22 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
} }
if (slot.incCost && n.cost) { if (slot.incCost && n.cost) {
this.totalCost += n.cost * this.componentDiscount; this.totalCost += n.cost * this.componentCostMultiplier;
} }
if (n.power && slot.enabled) { if (n.power && slot.enabled) {
this.priorityBands[slot.priority][powerUsageType(slot, n)] += n.power; this.priorityBands[slot.priority][powerUsageType(slot, n)] += n.power;
powerChange = true; powerChange = true;
if (n.dps) {
this.totalDps += n.dps;
}
} }
this.unladenMass += n.mass || 0; this.unladenMass += n.mass || 0;
} }
this.ladenMass = this.unladenMass + this.cargoCapacity + this.fuelCapacity; this.ladenMass = this.unladenMass + this.cargoCapacity + this.fuelCapacity;
this.armourTotal = this.armourAdded + this.armour; this.armour = this.armourAdded + this.baseArmour;
if (!preventUpdate) { if (!preventUpdate) {
if (powerChange) { if (powerChange) {
@@ -371,7 +387,7 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
Ship.prototype.updateShieldStrength = function() { Ship.prototype.updateShieldStrength = function() {
var sgSlot = this.findInternalByGroup('sg'); // Find Shield Generator slot Index if any var sgSlot = this.findInternalByGroup('sg'); // Find Shield Generator slot Index if any
this.shieldStrength = sgSlot && sgSlot.enabled ? calcShieldStrength(this.mass, this.shields, sgSlot.c, this.shieldMultiplier) : 0; this.shieldStrength = sgSlot && sgSlot.enabled ? calcShieldStrength(this.hullMass, this.baseShieldStrength, sgSlot.c, this.shieldMultiplier) : 0;
}; };
/** /**
@@ -389,24 +405,24 @@ angular.module('shipyard').factory('Ship', ['Components', 'calcShieldStrength',
/** /**
* Recalculate all item costs and total based on discounts. * Recalculate all item costs and total based on discounts.
* @param {number} shipDiscount Ship cost multiplier discount (e.g. 0.9 === 10% discount) * @param {number} shipCostMultiplier Ship cost multiplier discount (e.g. 0.9 === 10% discount)
* @param {number} componentDiscount Component cost multiplier discount (e.g. 0.75 === 25% discount) * @param {number} componentCostMultiplier Component cost multiplier discount (e.g. 0.75 === 25% discount)
*/ */
Ship.prototype.applyDiscounts = function(shipDiscount, componentDiscount) { Ship.prototype.applyDiscounts = function(shipCostMultiplier, componentCostMultiplier) {
var total = 0; var total = 0;
var costList = this.costList; var costList = this.costList;
for (var i = 0, l = costList.length; i < l; i++) { for (var i = 0, l = costList.length; i < l; i++) {
var item = costList[i]; var item = costList[i];
if (item.c && item.c.cost) { if (item.c && item.c.cost) {
item.discountedCost = item.c.cost * (item.type == 'SHIP' ? shipDiscount : componentDiscount); item.discountedCost = item.c.cost * (item.type == 'SHIP' ? shipCostMultiplier : componentCostMultiplier);
if (item.incCost) { if (item.incCost) {
total += item.discountedCost; total += item.discountedCost;
} }
} }
} }
this.shipDiscount = shipDiscount; this.shipCostMultiplier = shipCostMultiplier;
this.componentDiscount = componentDiscount; this.componentCostMultiplier = componentCostMultiplier;
this.totalCost = total; this.totalCost = total;
}; };

View File

@@ -33,18 +33,19 @@ angular.module('shipyard', ['ngLodash'])
// Internal // Internal
fs: 'Fuel Scoop', fs: 'Fuel Scoop',
sc: 'Scanners', sc: 'Scanners',
am: 'Auto Field-Maint. Unit', am: 'Auto Field-Maintenance Unit',
cr: 'Cargo Racks', cr: 'Cargo Rack',
fi: 'FSD Interdictor', fi: 'FSD Interdictor',
hb: 'Hatch Breaker Limpet Ctrl', hb: 'Hatch Breaker Limpet Controller',
hr: 'Hull Reinforcement Package', hr: 'Hull Reinforcement Package',
rf: 'Refinery', rf: 'Refinery',
scb: 'Shield Cell Bank', scb: 'Shield Cell Bank',
sg: 'Shield Generator', sg: 'Shield Generator',
psg: 'Prismatic Shield Generator',
dc: 'Docking Computer', dc: 'Docking Computer',
fx: 'Fuel Transfer Limpet Ctrl', fx: 'Fuel Transfer Limpet Controller',
pc: 'Prospector Limpet Ctrl', pc: 'Prospector Limpet Controller',
cc: 'Collector Limpet Ctrl', cc: 'Collector Limpet Controller',
// Hard Points // Hard Points
bl: 'Beam Laser', bl: 'Beam Laser',
@@ -65,12 +66,10 @@ angular.module('shipyard', ['ngLodash'])
sb: 'Shield Booster', sb: 'Shield Booster',
tp: 'Torpedo Pylon' tp: 'Torpedo Pylon'
}) })
.value('shipPurpose', { .value('MountMap', {
mp: 'Multi Purpose', 'F': 'Fixed',
fr: 'Freighter', 'G': 'Gimballed',
ex: 'Explorer', 'T': 'Turret'
co: 'Combat',
pa: 'Passenger Transport'
}) })
.value('shipSize', [ .value('shipSize', [
'N/A', 'N/A',
@@ -108,7 +107,7 @@ angular.module('shipyard', ['ngLodash'])
}, },
{ // 2 { // 2
title: 'Armour', title: 'Armour',
props: ['armourTotal'], props: ['armour'],
unit: '', unit: '',
fmt: 'fCrd' fmt: 'fCrd'
}, },
@@ -163,6 +162,13 @@ angular.module('shipyard', ['ngLodash'])
lbls: ['Unladen', 'Laden'], lbls: ['Unladen', 'Laden'],
unit: 'LY', unit: 'LY',
fmt: 'fRound' fmt: 'fRound'
},
{ // 11
title: 'DPS',
props: ['totalDps'],
lbls: ['Dps'],
unit: '',
fmt: 'fRound'
} }
]) ])
/** /**

View File

@@ -51,7 +51,7 @@ angular.module('shipyard').service('Components', ['lodash', 'ComponentsDB', 'Shi
*/ */
this.forShip = function(shipId) { this.forShip = function(shipId) {
var ship = Ships[shipId]; var ship = Ships[shipId];
return new ComponentSet(C, ship.properties.mass + 5, ship.slots.common, ship.slots.internal[0], ship.slots.hardpoints[0]); return new ComponentSet(C, ship.minMassFilter || ship.properties.hullMass + 5, ship.slots.common, ship.slots.internal[0], ship.slots.hardpoints[0]);
}; };
}]); }]);

View File

@@ -22,6 +22,7 @@
html, body { html, body {
height: 100%; height: 100%;
width: 100%;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} }
@@ -32,6 +33,8 @@ body {
padding: 0; padding: 0;
font-family: @fStandard; font-family: @fStandard;
letter-spacing: 0.05em; letter-spacing: 0.05em;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
} }
div, a, li { div, a, li {
@@ -40,7 +43,9 @@ div, a, li {
#main { #main {
margin: 0; margin: 0;
padding: 0.5em 0; padding: 0.5em 0.5em;
width: 100%;
box-sizing: border-box;
min-height: 90%; min-height: 90%;
clear: both; clear: both;
text-align: center; text-align: center;

View File

@@ -84,6 +84,19 @@ header {
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
max-height: 500px; max-height: 500px;
&::-webkit-scrollbar {
width: 0.5em;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-thumb {
background-color: @warning-disabled;
}
.smallTablet({ .smallTablet({
max-height: 400px; max-height: 400px;
left: 0; left: 0;

View File

@@ -59,7 +59,7 @@
input { input {
background: none; background: none;
line-height: 1.3em; line-height: 1.3em;
width: 20em; width: 15em;
font-size: 0.9em; font-size: 0.9em;
box-sizing: border-box; box-sizing: border-box;
display: inline-block; display: inline-block;
@@ -72,7 +72,7 @@
} }
.largePhone({ .largePhone({
width: 70%; width: 60%;
}); });
.medPhone({ .medPhone({
@@ -99,6 +99,12 @@
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.optional-hide {
.largePhone({
display: none;
});
}
table.total { table.total {
width: 100%; width: 100%;
@@ -113,6 +119,26 @@ table.total {
} }
} }
.tabs {
width: 100%;
box-sizing: border-box;
margin-bottom: 1px;
&, th {
border-collapse: collapse;
color: @primary-disabled;
background-color: @primary-bg;
border: 1px solid @primary-disabled;
padding-top: 1px;
}
.active {
color: @primary-bg;
background-color: @primary-disabled;
}
}
.group { .group {
width: 25%; width: 25%;
padding: 0.5em 0.2em; padding: 0.5em 0.2em;
@@ -122,11 +148,6 @@ table.total {
.user-select-none(); .user-select-none();
cursor: default; cursor: default;
[ng-click] {
cursor: pointer;
}
h1 { h1 {
font-family: @fStandard; font-family: @fStandard;
color: @bgBlack; color: @bgBlack;
@@ -141,6 +162,12 @@ table.total {
.smallTablet({ .smallTablet({
width: 50%; width: 50%;
.axis.x {
g.tick:nth-child(2n + 1) text {
display: none;
}
}
}); });
.largePhone({ .largePhone({
@@ -164,14 +191,6 @@ table.total {
&.third { &.third {
width: 33%; width: 33%;
.smallTablet({
.axis.x {
g.tick:nth-child(2n + 1) text {
display: none;
}
}
});
.largePhone({ .largePhone({
width: 100% !important; width: 100% !important;
}); });
@@ -228,9 +247,6 @@ table.total {
&:nth-child(3) { &:nth-child(3) {
display: none; display: none;
} }
&:nth-child(2) {
font-size: 0.7em;
}
} }
}); });

View File

@@ -1,3 +1,27 @@
select {
.border-radius(0);
cursor: pointer;
background: none;
color: @primary-disabled;
font-family: @fStandard;
font-size: 1em;
background-color: transparent;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding: 0.1em 0.5em;
outline:none;
border: 0;
&:focus {
outline:none;
}
&::-moz-focus-inner {
border: 0;
}
}
.select { .select {
color: @primary-disabled; color: @primary-disabled;
position: absolute; position: absolute;
@@ -5,17 +29,34 @@
padding: 0.5em 0; padding: 0.5em 0;
width: 100%; width: 100%;
margin: 0; margin: 0;
max-height: 300px; max-height: 550px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
z-index: 0; z-index: 0;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
background-color: @bg; background-color: @bg;
border: 1px solid @primary; border: 1px solid @primary;
white-space: nowrap;
text-align: center; text-align: center;
.tablet({
max-height: 300px;
});
&::-webkit-scrollbar {
width: 0.5em;
}
&::-webkit-scrollbar-track {
background-color: transparent;
border-left: 1px solid @primary;
}
&::-webkit-scrollbar-thumb {
background-color: @primary-disabled;
}
.select-group { .select-group {
white-space: nowrap;
line-height: 1.5em; line-height: 1.5em;
text-align: left; text-align: left;
margin: 0.5em 0; margin: 0.5em 0;
@@ -24,16 +65,20 @@
border-bottom: 1px solid @primary-disabled; border-bottom: 1px solid @primary-disabled;
} }
.empty-c, .c, .lc { @optionSpacing: 2em;
cursor: pointer;
.empty-c, .c, .lc {
white-space: nowrap;
text-align: center;
cursor: pointer;
line-height:@optionSpacing;
color: @primary-disabled; color: @primary-disabled;
stroke-width: 1em; stroke-width: 0.5em;
stroke: @primary-disabled; stroke: @primary-disabled;
&:hover { &:hover {
color: @warning; color: @primary;
stroke: @warning; stroke: @primary;
} }
&.disabled { &.disabled {
cursor: not-allowed; cursor: not-allowed;
@@ -46,30 +91,13 @@
} }
} }
@optionSpacing: 2em; .lc, .c {
.lc {
line-height:@optionSpacing;
text-align: left;
}
.empty-c {
line-height:@optionSpacing;
text-align: center;
}
.c {
border:1px solid @primary-disabled; border:1px solid @primary-disabled;
display: inline-block; padding: 0.1em 0.2em;
padding: 0.1em;
margin: 0.3em; margin: 0.3em;
width: 2em;
line-height: @optionSpacing;
text-align: center;
&:hover { &:hover {
border:1px solid @warning; border:1px solid @primary;
} }
&.disabled { &.disabled {
@@ -80,10 +108,19 @@
} }
} }
.c {
display: inline-block;
width: 2em;
}
span {
vertical-align: middle;
}
ul { ul {
display: inline-block; display: inline-block;
text-align: left; text-align: left;
min-width: 15em; min-width: 16em;
margin: 0 auto; margin: 0 auto;
padding: 0; padding: 0;
list-style: none; list-style: none;
@@ -91,7 +128,7 @@
&.hardpoint { &.hardpoint {
.c { .c {
width: 4.4em; width: 4.5em;
padding: 0.1em 0.2em; padding: 0.1em 0.2em;
} }
ul { ul {

View File

@@ -24,6 +24,13 @@
text-transform: none; text-transform: none;
} }
.name {
overflow: hidden;
white-space: nowrap;
max-width: 80%;
text-overflow: ellipsis;
}
.cb { .cb {
overflow: hidden; overflow: hidden;
} }

View File

@@ -8,6 +8,10 @@ table {
color: @primary; color: @primary;
text-decoration: none; text-decoration: none;
} }
[ng-click] {
cursor: pointer;
}
} }
thead { thead {

View File

@@ -0,0 +1,287 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://cdn.coriolis.io/schemas/ship-loadout/1-draft.json#",
"title": "Ship Loadout",
"type": "object",
"description": "The details for a specific ship build/loadout",
"required": ["name", "ship", "components"],
"properties": {
"name": {
"description": "The name of the build/loadout",
"type": "string",
"minLength": 2
},
"ship": {
"description": "The full display name of the ship",
"type": "string",
"minimum": 3
},
"manufacturer": {
"description": "The ship manufacturer",
"type": "string"
},
"references" : {
"description": "3rd Party references and/or links to this build/loadout",
"type": "array",
"items": {
"type": "object",
"required": ["name","url"],
"properties": {
"name": {
"description": "The name of the 3rd party, .e.g 'Coriolis.io' or 'E:D Shipyard'",
"type": "string"
},
"url": {
"description": "The link/url to the 3rd party referencing this build/loadout",
"type": "string"
},
"shipId": {
"type": "string"
},
"code": {
"description": "The serialized code or string for the build/loadout",
"type": "string"
}
}
}
},
"components": {
"description": "The components used by this build",
"type": "object",
"additionalProperties": false,
"required": ["standard", "internal", "hardpoints", "utility"],
"properties": {
"standard": {
"description": "The set of standard components across all ships",
"type": "object",
"additionalProperties": false,
"required": ["bulkheads", "powerPlant", "thrusters", "frameShiftDrive", "lifeSupport", "powerDistributor", "sensors", "fuelTank"],
"properties": {
"bulkheads": {
"enum": ["Lightweight Alloy", "Reinforced Alloy", "Military Grade Composite", "Mirrored Surface Composite", "Reactive Surface Composite"]
},
"powerPlant": {
"required": ["class", "rating"],
"properties": {
"class": { "type": "integer", "minimum": 2, "maximum": 8 },
"rating": { "$ref": "#/definitions/standardRatings" }
}
},
"thrusters": {
"required": ["class", "rating"],
"properties": {
"class": { "type": "integer", "minimum": 2, "maximum": 8 },
"rating": { "$ref": "#/definitions/standardRatings" }
}
},
"frameShiftDrive": {
"required": ["class", "rating"],
"properties": {
"class": { "type": "integer", "minimum": 2, "maximum": 8 },
"rating": { "$ref": "#/definitions/standardRatings" }
}
},
"lifeSupport": {
"required": ["class", "rating"],
"properties": {
"class": { "type": "integer", "minimum": 1, "maximum": 6 },
"rating": { "$ref": "#/definitions/standardRatings" }
}
},
"powerDistributor": {
"required": ["class", "rating"],
"properties": {
"class": { "type": "integer", "minimum": 1, "maximum": 8 },
"rating": { "$ref": "#/definitions/standardRatings" }
}
},
"sensors": {
"required": ["class", "rating"],
"properties": {
"class": { "type": "integer", "minimum": 1, "maximum": 8 },
"rating": { "$ref": "#/definitions/standardRatings" }
}
},
"fuelTank": {
"required": ["class", "rating"],
"properties": {
"class": { "type": "integer", "minimum": 1, "maximum": 6 },
"rating": { "$ref": "#/definitions/standardRatings" }
}
}
}
},
"internal": {
"type": "array",
"items": {
"type": ["object", "null"],
"required": ["class", "rating", "group"],
"properties" : {
"class": { "type": "integer", "minimum": 1, "maximum": 8 },
"rating": { "$ref": "#/definitions/standardRatings" },
"group": {
"description": "The group of the component, e.g. 'Shield Generator', or 'Cargo Rack'",
"type": "string"
},
"name": {
"description": "The name identifying the component (if applicable), e.g. 'Advance Discovery Scanner', or 'Detailed Surface Scanner'",
"type": "string"
}
}
},
"minItems": 3
},
"hardpoints": {
"type": "array",
"items": {
"type": ["object", "null"],
"required": ["class", "rating", "group", "mount"],
"properties" : {
"class": { "type": "integer", "minimum": 1, "maximum": 4 },
"rating": { "$ref": "#/definitions/allRatings" },
"mount": { "type": "string", "enum": ["Fixed", "Gimballed", "Turret"] },
"group": {
"description": "The group of the component, e.g. 'Beam Laser', or 'Missile Rack'",
"type": "string"
},
"name": {
"description": "The name identifing the component (if applicable), e.g. 'Retributor', or 'Mining Lance'",
"type": "string"
}
}
},
"minItems": 1
},
"utility": {
"type": "array",
"items": {
"type": ["object", "null"],
"required": ["class", "rating", "group"],
"properties" : {
"class": { "type": "integer", "minimum": 0, "maximum": 0 },
"rating": { "$ref": "#/definitions/allRatings" },
"group": {
"description": "The group of the component, e.g. 'Shield Booster', or 'Kill Warrant Scanner'",
"type": "string"
},
"name": {
"description": "The name identifing the component (if applicable), e.g. 'Point Defence', or 'Electronic Countermeasure'",
"type": "string"
}
}
},
"minItems": 1
}
}
},
"stats": {
"description": "Optional statistics from the build",
"type": "object",
"additionalProperties": true,
"properties": {
"agility": {
"type": "integer",
"minimum": 0
},
"armour": {
"description": "Sum of base armour + any hull reinforcements",
"type": "integer",
"minimum": 1
},
"armourAdded":{
"description": "Armour added through Hull reinforcement",
"type": "integer",
"minimum": 1
},
"baseShieldStrength": {
"type": "integer",
"minimum": 1
},
"baseArmour": {
"type": "integer",
"minimum": 1
},
"boost": {
"description": "Maximum boost speed of the ships (4 pips, straight-line)",
"type": "number",
"minimum": 1
},
"cargoCapacity": {
"type": "integer",
"minimum": 0
},
"class": {
"description": "Ship Class/Size [Small, Medium, Large]",
"enum": [1,2,3]
},
"dps": {
"description": "Cumulative DPS based on the in-game 1-10 statistic",
"type": "integer",
"minimum": 0
},
"hullCost": {
"description": "Cost of the ship's hull",
"type": "integer",
"minimum": 1
},
"hullMass": {
"description": "Mass of the Ship hull only",
"type": "number",
"minimum": 1
},
"fuelCapacity": {
"type": "integer",
"minimum": 1
},
"fullTankRange": {
"description": "Single Jump range with a full tank (unladenMass + fuel)",
"type": "number",
"minimum": 0
},
"ladenMass": {
"description": "Mass of the Ship + fuel + cargo (hull + all components + fuel tank + cargo capacity)",
"type": "number",
"minimum": 1
},
"ladenRange": {
"description": "Single Jump range with full cargo load, see ladenMass",
"type": "number",
"minimum": 0
},
"masslock": {
"description": "Mass Lock Factor of the Ship",
"type": "integer",
"minimum": 1
},
"shieldStrength": {
"description": "Shield strengh in Mega Joules (Mj)",
"type": "number",
"minimum": 0
},
"speed": {
"description": "Maximum speed of the ships (4 pips, straight-line)",
"type": "number",
"minimum": 1
},
"totalCost": {
"type": "integer",
"minimum": 1
},
"unladenRange": {
"description": "Single Jump range when unladen, see unladenMass",
"type": "number",
"minimum": 0
},
"unladenMass": {
"description": "Mass of the Ship (hull + all components)",
"type": "number",
"minimum": 1
}
}
}
},
"definitions": {
"standardRatings": { "enum": ["A", "B", "C", "D", "E"] },
"allRatings": { "enum": ["A", "B", "C", "D", "E", "F", "I" ] }
}
}

View File

@@ -1,11 +1,11 @@
<div class="sz" ng-bind="c.maxClass"></div> <div class="sz" ng-bind="c.maxClass"></div>
<div class="empty" ng-if="!c.c">EMPTY</div> <div class="empty" ng-if="!c.c">EMPTY</div>
<div ng-if="c.c"> <div ng-if="c.c">
{{c.c.class}}{{c.c.rating}} {{c.c.name || lbl}} <div class="l name">{{c.c.class}}{{c.c.rating}} {{c.c.name || lbl}}</div>
<div class="r">{{c.c.mass || c.c.capacity || '0'}} <u>T</u></div> <div class="r">{{c.c.mass || c.c.capacity || '0'}} <u>T</u></div>
<div class="cb"></div> <div class="cb"></div>
<div class="l" ng-if="c.c.optmass">Opt: {{c.c.optmass}} <u>T</u></div> <div class="l" ng-if="c.c.optmass">Optimal Mass: {{c.c.optmass}} <u>T</u></div>
<div class="l" ng-if="c.c.maxmass">Max: {{c.c.maxmass}} <u>T</u></div> <div class="l" ng-if="c.c.maxmass">Max Mass: {{c.c.maxmass}} <u>T</u></div>
<div class="l" ng-if="c.c.bins">{{c.c.bins}} <u>Bins</u></div> <div class="l" ng-if="c.c.bins">{{c.c.bins}} <u>Bins</u></div>
<div class="l" ng-if="c.c.rate">Rate: {{c.c.rate}} <u>Kg/s</u>&nbsp;&nbsp;&nbsp;Refuel Time: {{$r.fTime(fuel * 1000 / c.c.rate)}}</div> <div class="l" ng-if="c.c.rate">Rate: {{c.c.rate}} <u>Kg/s</u>&nbsp;&nbsp;&nbsp;Refuel Time: {{$r.fTime(fuel * 1000 / c.c.rate)}}</div>
<div class="l" ng-if="c.c.ammo">Ammo: {{c.c.ammo}}</div> <div class="l" ng-if="c.c.ammo">Ammo: {{c.c.ammo}}</div>

View File

@@ -6,7 +6,7 @@
</div> </div>
<div ng-show="processed"> <div ng-show="processed">
<table class="l" style="overflow:hidden;margin: 1em 0;"> <table class="l" style="overflow:hidden;margin: 1em 0; width: 100%;">
<thead><tr><th>Ship</th><th>Build Name</th><th>Action</th></tr></thead> <thead><tr><th>Ship</th><th>Build Name</th><th>Action</th></tr></thead>
<tbody ng-repeat="(shipId,shipBuilds) in builds"> <tbody ng-repeat="(shipId,shipBuilds) in builds">
<tr class="cb" ng-repeat="(buildName, b) in shipBuilds"> <tr class="cb" ng-repeat="(buildName, b) in shipBuilds">

View File

@@ -19,6 +19,9 @@
<button ng-click="stripBuild()"> <button ng-click="stripBuild()">
<svg class="icon lg"><use xlink:href="#feather"></use></svg><span class="button-lbl">Low-Weight</span> <svg class="icon lg"><use xlink:href="#feather"></use></svg><span class="button-lbl">Low-Weight</span>
</button> </button>
<!-- <button ng-click="exportBuild($event)" ng-disabled="!buildName">
<svg class="icon lg"><use xlink:href="#download"></use></svg><span class="button-lbl">Export</span>
</button> -->
</div> </div>
</div> </div>
@@ -30,16 +33,19 @@
<th rowspan="2">Agility</th> <th rowspan="2">Agility</th>
<th rowspan="2">Speed</th> <th rowspan="2">Speed</th>
<th rowspan="2">Boost</th> <th rowspan="2">Boost</th>
<th rowspan="2">DPS</th>
<th rowspan="2">Armour</th> <th rowspan="2">Armour</th>
<th rowspan="2">Shields</th> <th rowspan="2">Shields</th>
<th colspan="2">Mass</th> <th colspan="3">Mass</th>
<th rowspan="2">Cargo</th> <th rowspan="2">Cargo</th>
<th rowspan="2">Fuel</th> <th rowspan="2">Fuel</th>
<th colspan="3">Jump Range</th> <th colspan="3">Jump Range</th>
<th colspan="3">Total Range</th> <th colspan="3">Total Range</th>
<th rowspan="2">Lock<br>Factor</th>
</tr> </tr>
<tr> <tr>
<th class="lft">Unladen</th> <th class="lft">Hull</th>
<th>Unladen</th>
<th>Laden</th> <th>Laden</th>
<th class="lft">Max</th> <th class="lft">Max</th>
<th>Full Tank</th> <th>Full Tank</th>
@@ -55,8 +61,10 @@
<td>{{ship.agility}}/10</td> <td>{{ship.agility}}/10</td>
<td>{{fRound(ship.speed)}} <u>m/s</u></td> <td>{{fRound(ship.speed)}} <u>m/s</u></td>
<td>{{fRound(ship.boost)}} <u>m/s</u></td> <td>{{fRound(ship.boost)}} <u>m/s</u></td>
<td>{{ship.armourTotal}} <span ng-if="ship.armourAdded">({{ship.armour}} + {{ship.armourAdded}})</span></td> <td>{{fRound(ship.totalDps)}}</td>
<td>{{ship.armour}} <span ng-if="ship.armourAdded">({{ship.baseArmour}} + {{ship.armourAdded}})</span></td>
<td>{{fRound(ship.shieldStrength)}} <u>MJ</u> <span ng-if="ship.shieldMultiplier > 1 && ship.shieldStrength > 0">({{fRPct(ship.shieldMultiplier)}})</span></td> <td>{{fRound(ship.shieldStrength)}} <u>MJ</u> <span ng-if="ship.shieldMultiplier > 1 && ship.shieldStrength > 0">({{fRPct(ship.shieldMultiplier)}})</span></td>
<td>{{ship.hullMass}} <u>T</u></td>
<td>{{fRound(ship.unladenMass)}} <u>T</u></td> <td>{{fRound(ship.unladenMass)}} <u>T</u></td>
<td>{{fRound(ship.ladenMass)}} <u>T</u></td> <td>{{fRound(ship.ladenMass)}} <u>T</u></td>
<td>{{fRound(ship.cargoCapacity)}} <u>T</u></td> <td>{{fRound(ship.cargoCapacity)}} <u>T</u></td>
@@ -67,6 +75,7 @@
<td>{{fRound(ship.maxJumpCount)}}</td> <td>{{fRound(ship.maxJumpCount)}}</td>
<td>{{fRound(ship.unladenTotalRange)}} <u>LY</u></td> <td>{{fRound(ship.unladenTotalRange)}} <u>LY</u></td>
<td>{{fRound(ship.ladenTotalRange)}} <u>LY</u></td> <td>{{fRound(ship.ladenTotalRange)}} <u>LY</u></td>
<td ng-bind="ship.masslock"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
@@ -111,7 +120,7 @@
<div class="l">Optimal Mass: {{th.c.optmass}} <u>T</u></div> <div class="l">Optimal Mass: {{th.c.optmass}} <u>T</u></div>
<div class="l">Max Mass: {{th.c.maxmass}} <u>T</u></div> <div class="l">Max Mass: {{th.c.maxmass}} <u>T</u></div>
</div> </div>
<div component-select class="select" s="th" mass="ship.unladenMass" opts="availCS.common[1]" ng-if="selectedSlot==th" ng-click="select('c',th,$event)"></div> <div component-select class="select" s="th" mass="ship.ladenMass" opts="availCS.common[1]" ng-if="selectedSlot==th" ng-click="select('c',th,$event)"></div>
</div> </div>
<div class="slot" ng-click="selectSlot($event, fsd)" ng-class="{selected: selectedSlot==fsd}"> <div class="slot" ng-click="selectSlot($event, fsd)" ng-class="{selected: selectedSlot==fsd}">
<div class="details"> <div class="details">
@@ -237,15 +246,23 @@
</div> </div>
<div class="group half"> <div class="group half">
<table class="tabs">
<thead>
<tr>
<th style="width:50%" ng-class="{active: costTab == 'retrofit'}" ng-click="updateCostTab('retrofit')">Retrofit Costs</th>
<th style="width:50%" ng-class="{active: costTab == 'costs'}" ng-click="updateCostTab('costs')">Costs</th>
</tr>
</thead>
</table>
<div ng-if="costTab == 'costs'">
<table style="width:100%"> <table style="width:100%">
<thead> <thead>
<tr class="main"> <tr class="main">
<th colspan="2" class="sortable le" ng-click="sortCost(cName)"> <th colspan="2" class="sortable le" ng-click="sortCost(cName)">
Component Component
<div class="r"> <u class="optional-hide" ng-if="discounts.ship < 1">[Ship {{fRPct(1 - discounts.ship)}} off]</u>
<u ng-if="discounts.ship < 1">[Ship {{fRPct(1 - discounts.ship)}} off]</u> <u class="optional-hide" ng-if="discounts.components < 1">[Components {{fRPct(1 - discounts.components)}} off]</u>
<u ng-if="discounts.components < 1">[Components {{fRPct(1 - discounts.components)}} off]</u>
</div>
</th> </th>
<th class="sortable le" ng-click="sortCost('discountedCost')">Credits</th> <th class="sortable le" ng-click="sortCost('discountedCost')">Credits</th>
</tr> </tr>
@@ -270,6 +287,51 @@
</table> </table>
</div> </div>
<div ng-if="costTab == 'retrofit'">
<div class="scroll-x">
<table style="width:100%">
<thead>
<tr class="main">
<th colspan="2" class="sortable le" ng-click="sortRetrofit('sellName')">Sell</th>
<th colspan="2" class="sortable le" ng-click="sortRetrofit('buyName')">Buy</th>
<th class="sortable le" ng-click="sortRetrofit('netCost')">
Net Cost <u class="optional-hide" ng-if="discounts.components < 1">[{{fRPct(1 - discounts.components)}} off]</u>
</th>
</tr>
</thead>
<tbody>
<tr ng-if="!retrofitList || retrofitList.length == 0">
<td colspan="5" style="padding: 3em 0;">No Retrofitting changes</td>
</tr>
<tr class="highlight" ng-repeat="item in retrofitList | orderBy:retroPredicate:retroDesc">
<td style="width:1em;">{{item.sellClassRating}}</td>
<td class="le shorten">{{item.sellName}}</td>
<td style="width:1em;">{{item.buyClassRating}}</td>
<td class="le shorten">{{item.buyName}}</td>
<td class="ri" ng-class="item.netCost > 0 ? 'warning' : 'secondary-disabled'">{{ fCrd(item.netCost)}} <u>CR</u></td>
</tr>
</tbody>
</table>
</div>
<table class="total">
<tr class="ri">
<td class="lbl">Cost</td>
<td colspan="2" ng-class="retrofitTotal > 0 ? 'warning' : 'secondary-disabled'">{{fCrd(retrofitTotal)}} <u>CR</u></td>
</tr>
<tr class="ri">
<td class="lbl">Retrofit from</td>
<td class="cen" style="border-right:none;width: 1em;"><u class="primary-disabled">&#9662;</u></td>
<td style="border-left:none;padding:0;">
<select style="width: 100%;padding: 0" ng-model="$parent.retrofitBuild" ng-change="setRetrofitBase()" ng-options="name as name for (name, build) in allBuilds[ship.id]">
<option value="">Stock / Standard</option>
</select>
</td>
</tr>
</table>
</div>
</div>
<div class="group half"> <div class="group half">
<h1>Jump Range</h1> <h1>Jump Range</h1>
<div line-chart config="jrChart" series="jrSeries"></div> <div line-chart config="jrChart" series="jrSeries"></div>

View File

@@ -21,7 +21,7 @@
"dependencies": { "dependencies": {
"d3": "~3.5.5", "d3": "~3.5.5",
"ng-lodash": "~0.2.0", "ng-lodash": "~0.2.0",
"ui-router-extras": "~0.0.13", "ui-router-extras": "0.0.13",
"angular-ui-router": "^0.2.15", "angular-ui-router": "^0.2.15",
"d3-tip": "~0.6.7", "d3-tip": "~0.6.7",
"ng-sortable": "~1.2.1", "ng-sortable": "~1.2.1",

View File

@@ -1,562 +1,42 @@
{ {
"8E": { "8E": { "grp": "pd", "class": 8, "rating": "E", "cost": 697584, "mass": 160, "power": 0.64, "weaponcapacity": 48, "weaponrecharge": 4.8, "enginecapacity": 32, "enginerecharge": 3.2, "systemcapacity": 32, "systemrecharge": 3.2 },
"grp": "pd", "8D": { "grp": "pd", "class": 8, "rating": "D", "cost": 1743961, "mass": 64, "power": 0.72, "weaponcapacity": 54, "weaponrecharge": 5.4, "enginecapacity": 36, "enginerecharge": 3.6, "systemcapacity": 36, "systemrecharge": 3.6 },
"class": 8, "8C": { "grp": "pd", "class": 8, "rating": "C", "cost": 4359903, "mass": 160, "power": 0.8, "weaponcapacity": 60, "weaponrecharge": 6, "enginecapacity": 40, "enginerecharge": 4, "systemcapacity": 40, "systemrecharge": 4 },
"rating": "E", "8B": { "grp": "pd", "class": 8, "rating": "B", "cost": 10899756, "mass": 256, "power": 0.88, "weaponcapacity": 66, "weaponrecharge": 6.6, "enginecapacity": 44, "enginerecharge": 4.4, "systemcapacity": 44, "systemrecharge": 4.4 },
"cost": 697584, "8A": { "grp": "pd", "class": 8, "rating": "A", "cost": 27249391, "mass": 160, "power": 0.96, "weaponcapacity": 72, "weaponrecharge": 7.2, "enginecapacity": 48, "enginerecharge": 4.8, "systemcapacity": 48, "systemrecharge": 4.8 },
"mass": 160, "7E": { "grp": "pd", "class": 7, "rating": "E", "cost": 249137, "mass": 80, "power": 0.59, "weaponcapacity": 41, "weaponrecharge": 4.1, "enginecapacity": 27, "enginerecharge": 2.6, "systemcapacity": 27, "systemrecharge": 2.6 },
"power": 0.64, "7D": { "grp": "pd", "class": 7, "rating": "D", "cost": 622843, "mass": 32, "power": 0.67, "weaponcapacity": 46, "weaponrecharge": 4.6, "enginecapacity": 31, "enginerecharge": 3, "systemcapacity": 31, "systemrecharge": 3 },
"weaponcapacity": 48, "7C": { "grp": "pd", "class": 7, "rating": "C", "cost": 1557108, "mass": 80, "power": 0.74, "weaponcapacity": 51, "weaponrecharge": 5.1, "enginecapacity": 34, "enginerecharge": 3.3, "systemcapacity": 34, "systemrecharge": 3.3 },
"weaponrecharge": 4.8, "7B": { "grp": "pd", "class": 7, "rating": "B", "cost": 3892770, "mass": 128, "power": 0.81, "weaponcapacity": 56, "weaponrecharge": 5.6, "enginecapacity": 37, "enginerecharge": 3.6, "systemcapacity": 37, "systemrecharge": 3.6 },
"enginecapacity": 32, "7A": { "grp": "pd", "class": 7, "rating": "A", "cost": 9731925, "mass": 80, "power": 0.89, "weaponcapacity": 61, "weaponrecharge": 6.1, "enginecapacity": 41, "enginerecharge": 4, "systemcapacity": 41, "systemrecharge": 4 },
"enginerecharge": 3.2, "6E": { "grp": "pd", "class": 6, "rating": "E", "cost": 88978, "mass": 40, "power": 0.54, "weaponcapacity": 34, "weaponrecharge": 3.4, "enginecapacity": 23, "enginerecharge": 2.2, "systemcapacity": 23, "systemrecharge": 2.2 },
"systemcapacity": 32, "6D": { "grp": "pd", "class": 6, "rating": "D", "cost": 222444, "mass": 16, "power": 0.61, "weaponcapacity": 38, "weaponrecharge": 3.9, "enginecapacity": 26, "enginerecharge": 2.4, "systemcapacity": 26, "systemrecharge": 2.4 },
"systemrecharge": 3.2 "6C": { "grp": "pd", "class": 6, "rating": "C", "cost": 556110, "mass": 40, "power": 0.68, "weaponcapacity": 42, "weaponrecharge": 4.3, "enginecapacity": 29, "enginerecharge": 2.7, "systemcapacity": 29, "systemrecharge": 2.7 },
}, "6B": { "grp": "pd", "class": 6, "rating": "B", "cost": 1390275, "mass": 64, "power": 0.75, "weaponcapacity": 46, "weaponrecharge": 4.7, "enginecapacity": 32, "enginerecharge": 3, "systemcapacity": 32, "systemrecharge": 3 },
"8D": { "6A": { "grp": "pd", "class": 6, "rating": "A", "cost": 3475688, "mass": 40, "power": 0.82, "weaponcapacity": 50, "weaponrecharge": 5.2, "enginecapacity": 35, "enginerecharge": 3.2, "systemcapacity": 35, "systemrecharge": 3.2 },
"grp": "pd", "5E": { "grp": "pd", "class": 5, "rating": "E", "cost": 31778, "mass": 20, "power": 0.5, "weaponcapacity": 27, "weaponrecharge": 2.9, "enginecapacity": 19, "enginerecharge": 1.7, "systemcapacity": 19, "systemrecharge": 1.7 },
"class": 8, "5D": { "grp": "pd", "class": 5, "rating": "D", "cost": 79444, "mass": 8, "power": 0.56, "weaponcapacity": 31, "weaponrecharge": 3.2, "enginecapacity": 22, "enginerecharge": 1.9, "systemcapacity": 22, "systemrecharge": 1.9 },
"rating": "D", "5C": { "grp": "pd", "class": 5, "rating": "C", "cost": 198611, "mass": 20, "power": 0.62, "weaponcapacity": 34, "weaponrecharge": 3.6, "enginecapacity": 24, "enginerecharge": 2.1, "systemcapacity": 24, "systemrecharge": 2.1 },
"cost": 1743961, "5B": { "grp": "pd", "class": 5, "rating": "B", "cost": 496527, "mass": 32, "power": 0.68, "weaponcapacity": 37, "weaponrecharge": 4, "enginecapacity": 26, "enginerecharge": 2.3, "systemcapacity": 26, "systemrecharge": 2.3 },
"mass": 64, "5A": { "grp": "pd", "class": 5, "rating": "A", "cost": 1241317, "mass": 20, "power": 0.74, "weaponcapacity": 41, "weaponrecharge": 4.3, "enginecapacity": 29, "enginerecharge": 2.5, "systemcapacity": 29, "systemrecharge": 2.5 },
"power": 0.72, "4E": { "grp": "pd", "class": 4, "rating": "E", "cost": 11349, "mass": 10, "power": 0.45, "weaponcapacity": 22, "weaponrecharge": 2.3, "enginecapacity": 15, "enginerecharge": 1.3, "systemcapacity": 15, "systemrecharge": 1.3 },
"weaponcapacity": 54, "4D": { "grp": "pd", "class": 4, "rating": "D", "cost": 28373, "mass": 4, "power": 0.5, "weaponcapacity": 24, "weaponrecharge": 2.6, "enginecapacity": 17, "enginerecharge": 1.4, "systemcapacity": 17, "systemrecharge": 1.4 },
"weaponrecharge": 5.4, "4C": { "grp": "pd", "class": 4, "rating": "C", "cost": 70932, "mass": 10, "power": 0.56, "weaponcapacity": 27, "weaponrecharge": 2.9, "enginecapacity": 19, "enginerecharge": 1.6, "systemcapacity": 19, "systemrecharge": 1.6 },
"enginecapacity": 36, "4B": { "grp": "pd", "class": 4, "rating": "B", "cost": 177331, "mass": 16, "power": 0.62, "weaponcapacity": 30, "weaponrecharge": 3.2, "enginecapacity": 21, "enginerecharge": 1.8, "systemcapacity": 21, "systemrecharge": 1.8 },
"enginerecharge": 3.6, "4A": { "grp": "pd", "class": 4, "rating": "A", "cost": 443328, "mass": 10, "power": 0.67, "weaponcapacity": 32, "weaponrecharge": 3.5, "enginecapacity": 23, "enginerecharge": 1.9, "systemcapacity": 23, "systemrecharge": 1.9 },
"systemcapacity": 36, "3E": { "grp": "pd", "class": 3, "rating": "E", "cost": 4053, "mass": 5, "power": 0.4, "weaponcapacity": 16, "weaponrecharge": 1.8, "enginecapacity": 12, "enginerecharge": 0.9, "systemcapacity": 12, "systemrecharge": 0.9 },
"systemrecharge": 3.6 "3D": { "grp": "pd", "class": 3, "rating": "D", "cost": 10133, "mass": 2, "power": 0.45, "weaponcapacity": 18, "weaponrecharge": 2.1, "enginecapacity": 14, "enginerecharge": 1, "systemcapacity": 14, "systemrecharge": 1 },
}, "3C": { "grp": "pd", "class": 3, "rating": "C", "cost": 25333, "mass": 5, "power": 0.5, "weaponcapacity": 20, "weaponrecharge": 2.3, "enginecapacity": 15, "enginerecharge": 1.1, "systemcapacity": 15, "systemrecharge": 1.1 },
"8C": { "3B": { "grp": "pd", "class": 3, "rating": "B", "cost": 63333, "mass": 8, "power": 0.55, "weaponcapacity": 22, "weaponrecharge": 2.5, "enginecapacity": 17, "enginerecharge": 1.2, "systemcapacity": 17, "systemrecharge": 1.2 },
"grp": "pd", "3A": { "grp": "pd", "class": 3, "rating": "A", "cost": 158331, "mass": 5, "power": 0.6, "weaponcapacity": 24, "weaponrecharge": 2.8, "enginecapacity": 18, "enginerecharge": 1.3, "systemcapacity": 18, "systemrecharge": 1.3 },
"class": 8, "2E": { "grp": "pd", "class": 2, "rating": "E", "cost": 1448, "mass": 2.5, "power": 0.36, "weaponcapacity": 12, "weaponrecharge": 1.4, "enginecapacity": 10, "enginerecharge": 0.6, "systemcapacity": 10, "systemrecharge": 0.6 },
"rating": "C", "2D": { "grp": "pd", "class": 2, "rating": "D", "cost": 3619, "mass": 1, "power": 0.41, "weaponcapacity": 14, "weaponrecharge": 1.6, "enginecapacity": 11, "enginerecharge": 0.6, "systemcapacity": 11, "systemrecharge": 0.6 },
"cost": 4359903, "2C": { "grp": "pd", "class": 2, "rating": "C", "cost": 9048, "mass": 2.5, "power": 0.45, "weaponcapacity": 15, "weaponrecharge": 1.8, "enginecapacity": 12, "enginerecharge": 0.7, "systemcapacity": 12, "systemrecharge": 0.7 },
"mass": 160, "2B": { "grp": "pd", "class": 2, "rating": "B", "cost": 22619, "mass": 4, "power": 0.5, "weaponcapacity": 17, "weaponrecharge": 2, "enginecapacity": 13, "enginerecharge": 0.8, "systemcapacity": 13, "systemrecharge": 0.8 },
"power": 0.8, "2A": { "grp": "pd", "class": 2, "rating": "A", "cost": 56547, "mass": 2.5, "power": 0.54, "weaponcapacity": 18, "weaponrecharge": 2.2, "enginecapacity": 14, "enginerecharge": 0.8, "systemcapacity": 14, "systemrecharge": 0.8 },
"weaponcapacity": 60, "1E": { "grp": "pd", "class": 1, "rating": "E", "cost": 517, "mass": 1.3, "power": 0.32, "weaponcapacity": 10, "weaponrecharge": 1.2, "enginecapacity": 8, "enginerecharge": 0.4, "systemcapacity": 8, "systemrecharge": 0.4 },
"weaponrecharge": 6, "1D": { "grp": "pd", "class": 1, "rating": "D", "cost": 1293, "mass": 0.5, "power": 0.36, "weaponcapacity": 11, "weaponrecharge": 1.4, "enginecapacity": 9, "enginerecharge": 0.5, "systemcapacity": 9, "systemrecharge": 0.5 },
"enginecapacity": 40, "1C": { "grp": "pd", "class": 1, "rating": "C", "cost": 3231, "mass": 1.3, "power": 0.4, "weaponcapacity": 12, "weaponrecharge": 1.5, "enginecapacity": 10, "enginerecharge": 0.5, "systemcapacity": 10, "systemrecharge": 0.5 },
"enginerecharge": 4, "1B": { "grp": "pd", "class": 1, "rating": "B", "cost": 8078, "mass": 2, "power": 0.44, "weaponcapacity": 13, "weaponrecharge": 1.7, "enginecapacity": 11, "enginerecharge": 0.6, "systemcapacity": 11, "systemrecharge": 0.6 },
"systemcapacity": 40, "1A": { "grp": "pd", "class": 1, "rating": "A", "cost": 20195, "mass": 1.3, "power": 0.48, "weaponcapacity": 14, "weaponrecharge": 1.8, "enginecapacity": 12, "enginerecharge": 0.6, "systemcapacity": 12, "systemrecharge": 0.6 }
"systemrecharge": 4
},
"8B": {
"grp": "pd",
"class": 8,
"rating": "B",
"cost": 10899756,
"mass": 256,
"power": 0.88,
"weaponcapacity": 66,
"weaponrecharge": 6.6,
"enginecapacity": 44,
"enginerecharge": 4.4,
"systemcapacity": 44,
"systemrecharge": 4.4
},
"8A": {
"grp": "pd",
"class": 8,
"rating": "A",
"cost": 27249391,
"mass": 160,
"power": 0.96,
"weaponcapacity": 72,
"weaponrecharge": 7.2,
"enginecapacity": 48,
"enginerecharge": 4.8,
"systemcapacity": 48,
"systemrecharge": 4.8
},
"7E": {
"grp": "pd",
"class": 7,
"rating": "E",
"cost": 249137,
"mass": 80,
"power": 0.59,
"weaponcapacity": 41,
"weaponrecharge": 4.1,
"enginecapacity": 27,
"enginerecharge": 2.6,
"systemcapacity": 27,
"systemrecharge": 2.6
},
"7D": {
"grp": "pd",
"class": 7,
"rating": "D",
"cost": 622843,
"mass": 32,
"power": 0.67,
"weaponcapacity": 46,
"weaponrecharge": 4.6,
"enginecapacity": 31,
"enginerecharge": 3,
"systemcapacity": 31,
"systemrecharge": 3
},
"7C": {
"grp": "pd",
"class": 7,
"rating": "C",
"cost": 1557108,
"mass": 80,
"power": 0.74,
"weaponcapacity": 51,
"weaponrecharge": 5.1,
"enginecapacity": 34,
"enginerecharge": 3.3,
"systemcapacity": 34,
"systemrecharge": 3.3
},
"7B": {
"grp": "pd",
"class": 7,
"rating": "B",
"cost": 3892770,
"mass": 128,
"power": 0.81,
"weaponcapacity": 56,
"weaponrecharge": 5.6,
"enginecapacity": 37,
"enginerecharge": 3.6,
"systemcapacity": 37,
"systemrecharge": 3.6
},
"7A": {
"grp": "pd",
"class": 7,
"rating": "A",
"cost": 9731925,
"mass": 80,
"power": 0.89,
"weaponcapacity": 61,
"weaponrecharge": 6.1,
"enginecapacity": 41,
"enginerecharge": 4,
"systemcapacity": 41,
"systemrecharge": 4
},
"6E": {
"grp": "pd",
"class": 6,
"rating": "E",
"cost": 88978,
"mass": 40,
"power": 0.54,
"weaponcapacity": 34,
"weaponrecharge": 3.4,
"enginecapacity": 23,
"enginerecharge": 2.2,
"systemcapacity": 23,
"systemrecharge": 2.2
},
"6D": {
"grp": "pd",
"class": 6,
"rating": "D",
"cost": 222444,
"mass": 16,
"power": 0.61,
"weaponcapacity": 38,
"weaponrecharge": 3.9,
"enginecapacity": 26,
"enginerecharge": 2.4,
"systemcapacity": 26,
"systemrecharge": 2.4
},
"6C": {
"grp": "pd",
"class": 6,
"rating": "C",
"cost": 556110,
"mass": 40,
"power": 0.68,
"weaponcapacity": 42,
"weaponrecharge": 4.3,
"enginecapacity": 29,
"enginerecharge": 2.7,
"systemcapacity": 29,
"systemrecharge": 2.7
},
"6B": {
"grp": "pd",
"class": 6,
"rating": "B",
"cost": 1390275,
"mass": 64,
"power": 0.75,
"weaponcapacity": 46,
"weaponrecharge": 4.7,
"enginecapacity": 32,
"enginerecharge": 3,
"systemcapacity": 32,
"systemrecharge": 3
},
"6A": {
"grp": "pd",
"class": 6,
"rating": "A",
"cost": 3475688,
"mass": 40,
"power": 0.82,
"weaponcapacity": 50,
"weaponrecharge": 5.2,
"enginecapacity": 35,
"enginerecharge": 3.2,
"systemcapacity": 35,
"systemrecharge": 3.2
},
"5E": {
"grp": "pd",
"class": 5,
"rating": "E",
"cost": 31778,
"mass": 20,
"power": 0.5,
"weaponcapacity": 27,
"weaponrecharge": 2.9,
"enginecapacity": 19,
"enginerecharge": 1.7,
"systemcapacity": 19,
"systemrecharge": 1.7
},
"5D": {
"grp": "pd",
"class": 5,
"rating": "D",
"cost": 79444,
"mass": 8,
"power": 0.56,
"weaponcapacity": 31,
"weaponrecharge": 3.2,
"enginecapacity": 22,
"enginerecharge": 1.9,
"systemcapacity": 22,
"systemrecharge": 1.9
},
"5C": {
"grp": "pd",
"class": 5,
"rating": "C",
"cost": 198611,
"mass": 20,
"power": 0.62,
"weaponcapacity": 34,
"weaponrecharge": 3.6,
"enginecapacity": 24,
"enginerecharge": 2.1,
"systemcapacity": 24,
"systemrecharge": 2.1
},
"5B": {
"grp": "pd",
"class": 5,
"rating": "B",
"cost": 496527,
"mass": 32,
"power": 0.68,
"weaponcapacity": 37,
"weaponrecharge": 4,
"enginecapacity": 26,
"enginerecharge": 2.3,
"systemcapacity": 26,
"systemrecharge": 2.3
},
"5A": {
"grp": "pd",
"class": 5,
"rating": "A",
"cost": 1241317,
"mass": 20,
"power": 0.74,
"weaponcapacity": 41,
"weaponrecharge": 4.3,
"enginecapacity": 29,
"enginerecharge": 2.5,
"systemcapacity": 29,
"systemrecharge": 2.5
},
"4E": {
"grp": "pd",
"class": 4,
"rating": "E",
"cost": 11349,
"mass": 10,
"power": 0.45,
"weaponcapacity": 22,
"weaponrecharge": 2.3,
"enginecapacity": 15,
"enginerecharge": 1.3,
"systemcapacity": 15,
"systemrecharge": 1.3
},
"4D": {
"grp": "pd",
"class": 4,
"rating": "D",
"cost": 28373,
"mass": 4,
"power": 0.5,
"weaponcapacity": 24,
"weaponrecharge": 2.6,
"enginecapacity": 17,
"enginerecharge": 1.4,
"systemcapacity": 17,
"systemrecharge": 1.4
},
"4C": {
"grp": "pd",
"class": 4,
"rating": "C",
"cost": 70932,
"mass": 10,
"power": 0.56,
"weaponcapacity": 27,
"weaponrecharge": 2.9,
"enginecapacity": 19,
"enginerecharge": 1.6,
"systemcapacity": 19,
"systemrecharge": 1.6
},
"4B": {
"grp": "pd",
"class": 4,
"rating": "B",
"cost": 177331,
"mass": 16,
"power": 0.62,
"weaponcapacity": 30,
"weaponrecharge": 3.2,
"enginecapacity": 21,
"enginerecharge": 1.8,
"systemcapacity": 21,
"systemrecharge": 1.8
},
"4A": {
"grp": "pd",
"class": 4,
"rating": "A",
"cost": 443328,
"mass": 10,
"power": 0.67,
"weaponcapacity": 32,
"weaponrecharge": 3.5,
"enginecapacity": 23,
"enginerecharge": 1.9,
"systemcapacity": 23,
"systemrecharge": 1.9
},
"3E": {
"grp": "pd",
"class": 3,
"rating": "E",
"cost": 4053,
"mass": 5,
"power": 0.4,
"weaponcapacity": 16,
"weaponrecharge": 1.8,
"enginecapacity": 12,
"enginerecharge": 0.9,
"systemcapacity": 12,
"systemrecharge": 0.9
},
"3D": {
"grp": "pd",
"class": 3,
"rating": "D",
"cost": 10133,
"mass": 2,
"power": 0.45,
"weaponcapacity": 18,
"weaponrecharge": 2.1,
"enginecapacity": 14,
"enginerecharge": 1,
"systemcapacity": 14,
"systemrecharge": 1
},
"3C": {
"grp": "pd",
"class": 3,
"rating": "C",
"cost": 25333,
"mass": 5,
"power": 0.5,
"weaponcapacity": 20,
"weaponrecharge": 2.3,
"enginecapacity": 15,
"enginerecharge": 1.1,
"systemcapacity": 15,
"systemrecharge": 1.1
},
"3B": {
"grp": "pd",
"class": 3,
"rating": "B",
"cost": 63333,
"mass": 8,
"power": 0.55,
"weaponcapacity": 22,
"weaponrecharge": 2.5,
"enginecapacity": 17,
"enginerecharge": 1.2,
"systemcapacity": 17,
"systemrecharge": 1.2
},
"3A": {
"grp": "pd",
"class": 3,
"rating": "A",
"cost": 158331,
"mass": 5,
"power": 0.6,
"weaponcapacity": 24,
"weaponrecharge": 2.8,
"enginecapacity": 18,
"enginerecharge": 1.3,
"systemcapacity": 18,
"systemrecharge": 1.3
},
"2E": {
"grp": "pd",
"class": 2,
"rating": "E",
"cost": 1448,
"mass": 2.5,
"power": 0.36,
"weaponcapacity": 12,
"weaponrecharge": 1.4,
"enginecapacity": 10,
"enginerecharge": 0.6,
"systemcapacity": 10,
"systemrecharge": 0.6
},
"2D": {
"grp": "pd",
"class": 2,
"rating": "D",
"cost": 3619,
"mass": 1,
"power": 0.41,
"weaponcapacity": 14,
"weaponrecharge": 1.6,
"enginecapacity": 11,
"enginerecharge": 0.6,
"systemcapacity": 11,
"systemrecharge": 0.6
},
"2C": {
"grp": "pd",
"class": 2,
"rating": "C",
"cost": 9048,
"mass": 2.5,
"power": 0.45,
"weaponcapacity": 15,
"weaponrecharge": 1.8,
"enginecapacity": 12,
"enginerecharge": 0.7,
"systemcapacity": 12,
"systemrecharge": 0.7
},
"2B": {
"grp": "pd",
"class": 2,
"rating": "B",
"cost": 22619,
"mass": 4,
"power": 0.5,
"weaponcapacity": 17,
"weaponrecharge": 2,
"enginecapacity": 13,
"enginerecharge": 0.8,
"systemcapacity": 13,
"systemrecharge": 0.8
},
"2A": {
"grp": "pd",
"class": 2,
"rating": "A",
"cost": 56547,
"mass": 2.5,
"power": 0.54,
"weaponcapacity": 18,
"weaponrecharge": 2.2,
"enginecapacity": 14,
"enginerecharge": 0.8,
"systemcapacity": 14,
"systemrecharge": 0.8
},
"1E": {
"grp": "pd",
"class": 1,
"rating": "E",
"cost": 517,
"mass": 1.3,
"power": 0.32,
"weaponcapacity": 10,
"weaponrecharge": 1.2,
"enginecapacity": 8,
"enginerecharge": 0.4,
"systemcapacity": 8,
"systemrecharge": 0.4
},
"1D": {
"grp": "pd",
"class": 1,
"rating": "D",
"cost": 1293,
"mass": 0.5,
"power": 0.36,
"weaponcapacity": 11,
"weaponrecharge": 1.4,
"enginecapacity": 9,
"enginerecharge": 0.5,
"systemcapacity": 9,
"systemrecharge": 0.5
},
"1C": {
"grp": "pd",
"class": 1,
"rating": "C",
"cost": 3231,
"mass": 1.3,
"power": 0.4,
"weaponcapacity": 12,
"weaponrecharge": 1.5,
"enginecapacity": 10,
"enginerecharge": 0.5,
"systemcapacity": 10,
"systemrecharge": 0.5
},
"1B": {
"grp": "pd",
"class": 1,
"rating": "B",
"cost": 8078,
"mass": 2,
"power": 0.44,
"weaponcapacity": 13,
"weaponrecharge": 1.7,
"enginecapacity": 11,
"enginerecharge": 0.6,
"systemcapacity": 11,
"systemrecharge": 0.6
},
"1A": {
"grp": "pd",
"class": 1,
"rating": "A",
"cost": 20195,
"mass": 1.3,
"power": 0.48,
"weaponcapacity": 14,
"weaponrecharge": 1.8,
"enginecapacity": 12,
"enginerecharge": 0.6,
"systemcapacity": 12,
"systemrecharge": 0.6
}
} }

View File

@@ -1,302 +1,32 @@
{ {
"7E": { "7E": { "grp": "t", "class": 7, "rating": "E", "cost": 633199, "mass": 80, "power": 6.08, "optmass": 1440, "maxmass": 2160 },
"grp": "t", "7D": { "grp": "t", "class": 7, "rating": "D", "cost": 1899597, "mass": 32, "power": 6.84, "optmass": 1620, "maxmass": 2430 },
"class": 7, "7C": { "grp": "t", "class": 7, "rating": "C", "cost": 5698790, "mass": 80, "power": 7.6, "optmass": 1800, "maxmass": 2700 },
"rating": "E", "7B": { "grp": "t", "class": 7, "rating": "B", "cost": 17096371, "mass": 128, "power": 8.36, "optmass": 1980, "maxmass": 2970 },
"cost": 633199, "7A": { "grp": "t", "class": 7, "rating": "A", "cost": 51289112, "mass": 80, "power": 9.12, "optmass": 2160, "maxmass": 3240 },
"mass": 80, "6E": { "grp": "t", "class": 6, "rating": "E", "cost": 199747, "mass": 40, "power": 5.04, "optmass": 960, "maxmass": 1440 },
"power": 6.08, "6D": { "grp": "t", "class": 6, "rating": "D", "cost": 599242, "mass": 16, "power": 5.67, "optmass": 1080, "maxmass": 1620 },
"optmass": 1440, "6C": { "grp": "t", "class": 6, "rating": "C", "cost": 1797726, "mass": 40, "power": 6.3, "optmass": 1200, "maxmass": 1800 },
"maxmass": 2160 "6B": { "grp": "t", "class": 6, "rating": "B", "cost": 5393177, "mass": 64, "power": 6.93, "optmass": 1320, "maxmass": 1980 },
}, "6A": { "grp": "t", "class": 6, "rating": "A", "cost": 16179531, "mass": 40, "power": 7.56, "optmass": 1440, "maxmass": 2160 },
"7D": { "5E": { "grp": "t", "class": 5, "rating": "E", "cost": 63012, "mass": 20, "power": 4.08, "optmass": 560, "maxmass": 840 },
"grp": "t", "5D": { "grp": "t", "class": 5, "rating": "D", "cost": 189035, "mass": 8, "power": 4.59, "optmass": 630, "maxmass": 945 },
"class": 7, "5C": { "grp": "t", "class": 5, "rating": "C", "cost": 567106, "mass": 20, "power": 5.1, "optmass": 700, "maxmass": 1050 },
"rating": "D", "5B": { "grp": "t", "class": 5, "rating": "B", "cost": 1701318, "mass": 32, "power": 5.61, "optmass": 770, "maxmass": 1155 },
"cost": 1899597, "5A": { "grp": "t", "class": 5, "rating": "A", "cost": 5103953, "mass": 20, "power": 6.12, "optmass": 840, "maxmass": 1260 },
"mass": 32, "4E": { "grp": "t", "class": 4, "rating": "E", "cost": 19878, "mass": 10, "power": 3.82, "optmass": 280, "maxmass": 420 },
"power": 6.84, "4D": { "grp": "t", "class": 4, "rating": "D", "cost": 59633, "mass": 4, "power": 3.69, "optmass": 315, "maxmass": 473 },
"optmass": 1620, "4C": { "grp": "t", "class": 4, "rating": "C", "cost": 178898, "mass": 10, "power": 4.1, "optmass": 350, "maxmass": 525 },
"maxmass": 2430 "4B": { "grp": "t", "class": 4, "rating": "B", "cost": 536693, "mass": 16, "power": 4.51, "optmass": 385, "maxmass": 578 },
}, "4A": { "grp": "t", "class": 4, "rating": "A", "cost": 1610080, "mass": 10, "power": 4.92, "optmass": 420, "maxmass": 630 },
"7C": { "3E": { "grp": "t", "class": 3, "rating": "E", "cost": 6271, "mass": 5, "power": 2.48, "optmass": 80, "maxmass": 120 },
"grp": "t", "3D": { "grp": "t", "class": 3, "rating": "D", "cost": 18812, "mass": 2, "power": 2.79, "optmass": 90, "maxmass": 135 },
"class": 7, "3C": { "grp": "t", "class": 3, "rating": "C", "cost": 56435, "mass": 5, "power": 3.1, "optmass": 100, "maxmass": 150 },
"rating": "C", "3B": { "grp": "t", "class": 3, "rating": "B", "cost": 169304, "mass": 8, "power": 3.41, "optmass": 110, "maxmass": 165 },
"cost": 5698790, "3A": { "grp": "t", "class": 3, "rating": "A", "cost": 507912, "mass": 5, "power": 3.72, "optmass": 120, "maxmass": 180 },
"mass": 80, "2E": { "grp": "t", "class": 2, "rating": "E", "cost": 1978, "mass": 2.5, "power": 2, "optmass": 48, "maxmass": 72 },
"power": 7.6, "2D": { "grp": "t", "class": 2, "rating": "D", "cost": 5934, "mass": 1, "power": 2.25, "optmass": 54, "maxmass": 81 },
"optmass": 1800, "2C": { "grp": "t", "class": 2, "rating": "C", "cost": 17803, "mass": 2.5, "power": 2.5, "optmass": 60, "maxmass": 90 },
"maxmass": 2700 "2B": { "grp": "t", "class": 2, "rating": "B", "cost": 53408, "mass": 4, "power": 2.75, "optmass": 66, "maxmass": 99 },
}, "2A": { "grp": "t", "class": 2, "rating": "A", "cost": 160224, "mass": 2.5, "power": 3, "optmass": 72, "maxmass": 108 }
"7B": {
"grp": "t",
"class": 7,
"rating": "B",
"cost": 17096371,
"mass": 128,
"power": 8.36,
"optmass": 1980,
"maxmass": 2970
},
"7A": {
"grp": "t",
"class": 7,
"rating": "A",
"cost": 51289112,
"mass": 80,
"power": 9.12,
"optmass": 2160,
"maxmass": 3240
},
"6E": {
"grp": "t",
"class": 6,
"rating": "E",
"cost": 199747,
"mass": 40,
"power": 5.04,
"optmass": 960,
"maxmass": 1440
},
"6D": {
"grp": "t",
"class": 6,
"rating": "D",
"cost": 599242,
"mass": 16,
"power": 5.67,
"optmass": 1080,
"maxmass": 1620
},
"6C": {
"grp": "t",
"class": 6,
"rating": "C",
"cost": 1797726,
"mass": 40,
"power": 6.3,
"optmass": 1200,
"maxmass": 1800
},
"6B": {
"grp": "t",
"class": 6,
"rating": "B",
"cost": 5393177,
"mass": 64,
"power": 6.93,
"optmass": 1320,
"maxmass": 1980
},
"6A": {
"grp": "t",
"class": 6,
"rating": "A",
"cost": 16179531,
"mass": 40,
"power": 7.56,
"optmass": 1440,
"maxmass": 2160
},
"5E": {
"grp": "t",
"class": 5,
"rating": "E",
"cost": 63012,
"mass": 20,
"power": 4.08,
"optmass": 560,
"maxmass": 840
},
"5D": {
"grp": "t",
"class": 5,
"rating": "D",
"cost": 189035,
"mass": 8,
"power": 4.59,
"optmass": 630,
"maxmass": 945
},
"5C": {
"grp": "t",
"class": 5,
"rating": "C",
"cost": 567106,
"mass": 20,
"power": 5.1,
"optmass": 700,
"maxmass": 1050
},
"5B": {
"grp": "t",
"class": 5,
"rating": "B",
"cost": 1701318,
"mass": 32,
"power": 5.61,
"optmass": 770,
"maxmass": 1155
},
"5A": {
"grp": "t",
"class": 5,
"rating": "A",
"cost": 5103953,
"mass": 20,
"power": 6.12,
"optmass": 840,
"maxmass": 1260
},
"4E": {
"grp": "t",
"class": 4,
"rating": "E",
"cost": 19878,
"mass": 10,
"power": 3.82,
"optmass": 280,
"maxmass": 420
},
"4D": {
"grp": "t",
"class": 4,
"rating": "D",
"cost": 59633,
"mass": 4,
"power": 3.69,
"optmass": 315,
"maxmass": 473
},
"4C": {
"grp": "t",
"class": 4,
"rating": "C",
"cost": 178898,
"mass": 10,
"power": 4.1,
"optmass": 350,
"maxmass": 525
},
"4B": {
"grp": "t",
"class": 4,
"rating": "B",
"cost": 536693,
"mass": 16,
"power": 4.51,
"optmass": 385,
"maxmass": 578
},
"4A": {
"grp": "t",
"class": 4,
"rating": "A",
"cost": 1610080,
"mass": 10,
"power": 4.92,
"optmass": 420,
"maxmass": 630
},
"3E": {
"grp": "t",
"class": 3,
"rating": "E",
"cost": 6271,
"mass": 5,
"power": 2.48,
"optmass": 80,
"maxmass": 120
},
"3D": {
"grp": "t",
"class": 3,
"rating": "D",
"cost": 18812,
"mass": 2,
"power": 2.79,
"optmass": 90,
"maxmass": 135
},
"3C": {
"grp": "t",
"class": 3,
"rating": "C",
"cost": 56435,
"mass": 5,
"power": 3.1,
"optmass": 100,
"maxmass": 150
},
"3B": {
"grp": "t",
"class": 3,
"rating": "B",
"cost": 169304,
"mass": 8,
"power": 3.41,
"optmass": 110,
"maxmass": 165
},
"3A": {
"grp": "t",
"class": 3,
"rating": "A",
"cost": 507912,
"mass": 5,
"power": 3.72,
"optmass": 120,
"maxmass": 180
},
"2E": {
"grp": "t",
"class": 2,
"rating": "E",
"cost": 1978,
"mass": 2.5,
"power": 2,
"optmass": 48,
"maxmass": 72
},
"2D": {
"grp": "t",
"class": 2,
"rating": "D",
"cost": 5934,
"mass": 1,
"power": 2.25,
"optmass": 54,
"maxmass": 81
},
"2C": {
"grp": "t",
"class": 2,
"rating": "C",
"cost": 17803,
"mass": 2.5,
"power": 2.5,
"optmass": 60,
"maxmass": 90
},
"2B": {
"grp": "t",
"class": 2,
"rating": "B",
"cost": 53408,
"mass": 4,
"power": 2.75,
"optmass": 66,
"maxmass": 99
},
"2A": {
"grp": "t",
"class": 2,
"rating": "A",
"cost": 160224,
"mass": 2.5,
"power": 3,
"optmass": 72,
"maxmass": 108
}
} }

View File

@@ -161,6 +161,23 @@
"mjdps" : 5.49, "mjdps" : 5.49,
"mjeps" : 1.29, "mjeps" : 1.29,
"thermload": 2 "thermload": 2
},
{
"id": "b0",
"grp": "bl",
"name": "Retributor",
"class": 1,
"rating": "E",
"cost": 56145,
"mass": 2,
"power": 0.69,
"mode": "F",
"type": "T",
"damage": 0,
"armourpen": "A",
"rof": null,
"dps": 3,
"thermload": 1
} }
] ]
} }

View File

@@ -161,6 +161,23 @@
"mjeps" : 0.63, "mjeps" : 0.63,
"ssdam" : 2.24, "ssdam" : 2.24,
"thermload": 1 "thermload": 1
},
{
"id": "cy",
"grp": "ul",
"name": "Cytoscrambler",
"class": 1,
"rating": "F",
"cost": 8800,
"mass": 2,
"power": 0.65,
"mode": "F",
"type": "T",
"damage": 2,
"armourpen": "A",
"rof": 1.6,
"dps": 3,
"thermload": 1
} }
] ]
} }

View File

@@ -15,7 +15,6 @@
"rof": 0.4, "rof": 0.4,
"dps": 5, "dps": 5,
"thermload": 2, "thermload": 2,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps": 8.13, "mjdps": 8.13,
"ssdam" : 37.13, "ssdam" : 37.13,
@@ -36,7 +35,6 @@
"rof": 0.4, "rof": 0.4,
"dps": 4, "dps": 4,
"thermload": 2, "thermload": 2,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps": 10.97, "mjdps": 10.97,
"ssdam" : 30.94, "ssdam" : 30.94,
@@ -57,7 +55,6 @@
"rof": 0.4, "rof": 0.4,
"dps": 4, "dps": 4,
"thermload": 2, "thermload": 2,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps": 8.13, "mjdps": 8.13,
"ssdam" : 22.28, "ssdam" : 22.28,
@@ -78,7 +75,6 @@
"rof": 0.4, "rof": 0.4,
"dps": 4, "dps": 4,
"thermload": 1, "thermload": 1,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps" : 7.95, "mjdps" : 7.95,
"ssdam" : 21.04, "ssdam" : 21.04,
@@ -99,7 +95,6 @@
"rof": 0.3, "rof": 0.3,
"dps": 4, "dps": 4,
"thermload": 1, "thermload": 1,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps" : 3.58, "mjdps" : 3.58,
"ssdam" : 12.38, "ssdam" : 12.38,
@@ -120,7 +115,6 @@
"rof": 0.5, "rof": 0.5,
"dps": 4, "dps": 4,
"thermload": 1, "thermload": 1,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps" : 6.00, "mjdps" : 6.00,
"ssdam" : 15.47, "ssdam" : 15.47,
@@ -141,7 +135,6 @@
"rof": 0.5, "rof": 0.5,
"dps": 3, "dps": 3,
"thermload": 1, "thermload": 1,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps" : 6.24, "mjdps" : 6.24,
"ssdam" : 15.47, "ssdam" : 15.47,
@@ -162,7 +155,6 @@
"rof": 0.3, "rof": 0.3,
"dps": 3, "dps": 3,
"thermload": 1, "thermload": 1,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps" : 2.41, "mjdps" : 2.41,
"ssdam" : 7.74, "ssdam" : 7.74,
@@ -183,7 +175,6 @@
"rof": 0.5, "rof": 0.5,
"dps": 3, "dps": 3,
"thermload": 1, "thermload": 1,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps" : 4.00, "mjdps" : 4.00,
"ssdam" : 9.59, "ssdam" : 9.59,
@@ -204,7 +195,6 @@
"rof": 0.5, "rof": 0.5,
"dps": 3, "dps": 3,
"thermload": 1, "thermload": 1,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps" : 3.80, "mjdps" : 3.80,
"ssdam" : 8.97, "ssdam" : 8.97,
@@ -225,7 +215,6 @@
"rof": 0.4, "rof": 0.4,
"dps": 3, "dps": 3,
"thermload": 1, "thermload": 1,
"grp": "c",
"clip": 5, "clip": 5,
"mjdps" : 1.35, "mjdps" : 1.35,
"ssdam" : 4.13, "ssdam" : 4.13,

View File

@@ -15,7 +15,6 @@
"rof": 4.5, "rof": 4.5,
"dps": 10, "dps": 10,
"thermload": 1, "thermload": 1,
"grp": "fc",
"clip": 3, "clip": 3,
"mjdps": 15.19, "mjdps": 15.19,
"ssdam" : 28.36, "ssdam" : 28.36,
@@ -36,7 +35,6 @@
"rof": 4.8, "rof": 4.8,
"dps": 10, "dps": 10,
"thermload": 1, "thermload": 1,
"grp": "fc",
"clip": 3, "clip": 3,
"mjdps" : 12.77, "mjdps" : 12.77,
"ssdam" : 23.21, "ssdam" : 23.21,
@@ -57,7 +55,6 @@
"rof": 3.3, "rof": 3.3,
"dps": 9, "dps": 9,
"thermload": 1, "thermload": 1,
"grp": "fc",
"clip": 3, "clip": 3,
"mjdps" : 6.85, "mjdps" : 6.85,
"ssdam" : 12.89, "ssdam" : 12.89,
@@ -78,7 +75,6 @@
"rof": 5, "rof": 5,
"dps": 9, "dps": 9,
"thermload": 1, "thermload": 1,
"grp": "fc",
"clip": 3, "clip": 3,
"mjdps" : 9.50, "mjdps" : 9.50,
"ssdam" : 18.05, "ssdam" : 18.05,
@@ -100,7 +96,6 @@
"rof": 5.3, "rof": 5.3,
"dps": 9, "dps": 9,
"thermload": 1, "thermload": 1,
"grp": "fc",
"clip": 3, "clip": 3,
"ammo": 30 "ammo": 30
}, },
@@ -119,7 +114,6 @@
"rof": 3.7, "rof": 3.7,
"dps": 9, "dps": 9,
"thermload": 1, "thermload": 1,
"grp": "fc",
"clip": 3, "clip": 3,
"ammo": 30 "ammo": 30
}, },
@@ -138,7 +132,6 @@
"rof": 5.5, "rof": 5.5,
"dps": 8, "dps": 8,
"thermload": 1, "thermload": 1,
"grp": "fc",
"clip": 3, "clip": 3,
"mjdps" : 5.53, "mjdps" : 5.53,
"ssdam" : 10.31, "ssdam" : 10.31,
@@ -159,7 +152,6 @@
"rof": 5.8, "rof": 5.8,
"dps": 7, "dps": 7,
"thermload": 1, "thermload": 1,
"grp": "fc",
"clip": 3, "clip": 3,
"mjdps" : 3.58, "mjdps" : 3.58,
"ssdam" : 6.45, "ssdam" : 6.45,
@@ -180,11 +172,29 @@
"rof": 4, "rof": 4,
"dps": 6, "dps": 6,
"thermload": 1, "thermload": 1,
"grp": "fc",
"clip": 3, "clip": 3,
"mjdps" : 2.11, "mjdps" : 2.11,
"ssdam" : 3.87, "ssdam" : 3.87,
"ammo": 30 "ammo": 30
},
{
"id": "pa",
"grp": "fc",
"name": "Pacifier",
"class": 3,
"rating": "C",
"cost": 1400832,
"mass": 8,
"power": 1.02,
"mode": "F",
"type": "K",
"damage": 3,
"armourpen": "A",
"rof": 4.5,
"dps": 9,
"thermload": 1,
"clip": 3,
"ammo": 30
} }
] ]
} }

View File

@@ -10,10 +10,7 @@
"power": 0.5, "power": 0.5,
"mode": "F", "mode": "F",
"armourpen": "D", "armourpen": "D",
"thermload": 3, "thermload": 3
"grp": "ml",
"clip": 1,
"ammo": 1
}, },
{ {
"id": "2m", "id": "2m",
@@ -25,10 +22,23 @@
"power": 0.75, "power": 0.75,
"mode": "F", "mode": "F",
"armourpen": "D", "armourpen": "D",
"thermload": 5, "thermload": 5
},
{
"id": "ml",
"grp": "ml", "grp": "ml",
"clip": 1, "name": "Mining Lance",
"ammo": 1 "class": 1,
"rating": "D",
"cost": 13600,
"mass": 2,
"power": 0.7,
"mode": "F",
"type": "T",
"damage": 3,
"dps": 3,
"armourpen": "D",
"thermload": 3
} }
] ]
} }

View File

@@ -15,7 +15,6 @@
"rof": 2.5, "rof": 2.5,
"dps": 8, "dps": 8,
"thermload": 3, "thermload": 3,
"grp": "mr",
"clip": 12, "clip": 12,
"ammo": 24, "ammo": 24,
"mjdps": 1.72, "mjdps": 1.72,
@@ -37,7 +36,6 @@
"rof": 0.3, "rof": 0.3,
"dps": 3, "dps": 3,
"thermload": 3, "thermload": 3,
"grp": "mr",
"clip": 6, "clip": 6,
"ammo": 18, "ammo": 18,
"mjdps": 0.57, "mjdps": 0.57,
@@ -59,7 +57,6 @@
"rof": 2.5, "rof": 2.5,
"dps": 8, "dps": 8,
"thermload": 3, "thermload": 3,
"grp": "mr",
"clip": 8, "clip": 8,
"ammo": 16, "ammo": 16,
"mjdps": 1.63, "mjdps": 1.63,
@@ -81,12 +78,32 @@
"rof": 0.3, "rof": 0.3,
"dps": 3, "dps": 3,
"thermload": 3, "thermload": 3,
"grp": "mr",
"clip": 6, "clip": 6,
"ammo": 6, "ammo": 6,
"mjdps": 0.57, "mjdps": 0.57,
"ssdam" : 2.58, "ssdam" : 2.58,
"missile": "S" "missile": "S"
},
{
"id": "Ph",
"grp": "mr",
"name": "Pack-Hound",
"class": 2,
"rating": "B",
"cost": 1000832,
"mass": 4,
"power": 1.2,
"mode": "F",
"type": "E",
"damage": 3,
"armourpen": "F",
"rof": 0.5,
"dps": 4,
"thermload": 3,
"grp": "mr",
"clip": 12,
"ammo": 120,
"missile": "S"
} }
] ]
} }

View File

@@ -15,7 +15,6 @@
"rof": 7, "rof": 7,
"dps": 4, "dps": 4,
"thermload": 1, "thermload": 1,
"grp": "mc",
"clip": 90, "clip": 90,
"mjdps" : 6.02, "mjdps" : 6.02,
"ssdam" : 1.20, "ssdam" : 1.20,
@@ -36,7 +35,6 @@
"rof": 7.5, "rof": 7.5,
"dps": 4, "dps": 4,
"thermload": 1, "thermload": 1,
"grp": "mc",
"clip": 90, "clip": 90,
"mjdps" : 5.59, "mjdps" : 5.59,
"ssdam" : 1.03, "ssdam" : 1.03,
@@ -57,7 +55,6 @@
"rof": 5.3, "rof": 5.3,
"dps": 3, "dps": 3,
"thermload": 1, "thermload": 1,
"grp": "mc",
"clip": 90, "clip": 90,
"mjdps" : 2.15, "mjdps" : 2.15,
"ssdam" : 0.52, "ssdam" : 0.52,
@@ -78,7 +75,6 @@
"rof": 8, "rof": 8,
"dps": 3, "dps": 3,
"thermload": 1, "thermload": 1,
"grp": "mc",
"clip": 90, "clip": 90,
"mjdps" : 3.75, "mjdps" : 3.75,
"ssdam" : 0.69, "ssdam" : 0.69,
@@ -99,7 +95,6 @@
"rof": 8.5, "rof": 8.5,
"dps": 3, "dps": 3,
"thermload": 1, "thermload": 1,
"grp": "mc",
"clip": 90, "clip": 90,
"mjdps" : 2.03, "mjdps" : 2.03,
"ssdam" : 0.34, "ssdam" : 0.34,
@@ -120,11 +115,29 @@
"rof": 6, "rof": 6,
"dps": 2, "dps": 2,
"thermload": 1, "thermload": 1,
"grp": "mc",
"clip": 90, "clip": 90,
"mjdps" : 1.54, "mjdps" : 1.54,
"ssdam" : 0.34, "ssdam" : 0.34,
"ammo": 2100 "ammo": 2100
},
{
"id": "e0",
"grp": "mc",
"name": "Enforcer",
"class": 1,
"rating": "F",
"cost": 13984,
"mass": 2,
"power": 0.28,
"mode": "F",
"type": "K",
"damage": 4,
"armourpen": "A",
"rof": 4.3,
"dps": 4,
"thermload": 1,
"clip": 60,
"ammo": 1000
} }
] ]
} }

View File

@@ -15,7 +15,6 @@
"rof": 0.3, "rof": 0.3,
"dps": 4, "dps": 4,
"thermload": 10, "thermload": 10,
"grp": "pa",
"clip": 5, "clip": 5,
"mjdps" : 6.89, "mjdps" : 6.89,
"ssdam" : 27.85, "ssdam" : 27.85,
@@ -36,7 +35,6 @@
"rof": 0.3, "rof": 0.3,
"dps": 4, "dps": 4,
"thermload": 8, "thermload": 8,
"grp": "pa",
"clip": 5, "clip": 5,
"mjdps" : 20.98, "mjdps" : 20.98,
"ssdam" : 92.82, "ssdam" : 92.82,
@@ -57,11 +55,29 @@
"rof": 0.3, "rof": 0.3,
"dps": 5, "dps": 5,
"thermload": 10, "thermload": 10,
"grp": "pa",
"clip": 5, "clip": 5,
"mjdps" : 25.55, "mjdps" : 25.55,
"ssdam" : 123.76, "ssdam" : 123.76,
"ammo": 100 "ammo": 100
},
{
"id": "Ap",
"grp": "pa",
"name": "Advanced",
"class": 3,
"rating": "B",
"cost": 4119120,
"mass": 8,
"power": 1.97,
"mode": "F",
"type": "TK",
"damage": 8,
"armourpen": "A",
"rof": 0.6,
"dps": 4,
"thermload": 4,
"clip": 20,
"ammo": 300
} }
] ]
} }

View File

@@ -170,6 +170,23 @@
"mjeps" : 0.51, "mjeps" : 0.51,
"ssdam" : 1.07, "ssdam" : 1.07,
"thermload": 1 "thermload": 1
},
{
"id": "PL",
"grp": "pl",
"name": "Distruptor",
"class": 2,
"rating": "E",
"cost": 26400,
"mass": 4,
"power": 0.7,
"mode": "F",
"type": "T",
"damage": 2,
"armourpen": "A",
"rof": 1.6,
"dps": 2,
"thermload": 1
} }
] ]
} }

View File

@@ -15,7 +15,6 @@
"rof": 0.6, "rof": 0.6,
"dps": 4, "dps": 4,
"thermload": 7, "thermload": 7,
"grp": "rg",
"clip": 1, "clip": 1,
"mjdps" : 13.75, "mjdps" : 13.75,
"ssdam" : 24.75, "ssdam" : 24.75,
@@ -36,11 +35,29 @@
"rof": 0.5, "rof": 0.5,
"dps": 4, "dps": 4,
"thermload": 10, "thermload": 10,
"grp": "rg",
"clip": 1, "clip": 1,
"mjdps" : 21.66, "mjdps" : 21.66,
"ssdam" : 43.32, "ssdam" : 43.32,
"ammo": 30 "ammo": 30
},
{
"id": "ih",
"grp": "rg",
"name": "Imperial Hammer",
"class": 2,
"rating": "B",
"cost": 619200,
"mass": 4,
"power": 1.63,
"mode": "F",
"type": "TK",
"damage": 5,
"armourpen": "A",
"rof": 0.6,
"dps": 5,
"thermload": 3,
"clip": 3,
"ammo": 90
} }
] ]
} }

View File

@@ -1,76 +1,12 @@
{ {
"Cargo Racks": [ "Cargo Racks": [
{ { "id": "00", "grp": "cr", "class": 1, "rating": "E", "cost": 1000, "capacity": 2 },
"id": "07", { "id": "01", "grp": "cr", "class": 2, "rating": "E", "cost": 3250, "capacity": 4 },
"grp": "cr", { "id": "02", "grp": "cr", "class": 3, "rating": "E", "cost": 10563, "capacity": 8 },
"name": "Cargo Rack (256)", { "id": "03", "grp": "cr", "class": 4, "rating": "E", "cost": 34328, "capacity": 16 },
"class": 8, { "id": "04", "grp": "cr", "class": 5, "rating": "E", "cost": 111566, "capacity": 32 },
"rating": "E", { "id": "05", "grp": "cr", "class": 6, "rating": "E", "cost": 362591, "capacity": 64 },
"cost": 3829866, { "id": "06", "grp": "cr", "class": 7, "rating": "E", "cost": 1178420, "capacity": 128 },
"capacity": 256 { "id": "07", "grp": "cr", "class": 8, "rating": "E", "cost": 3829866, "capacity": 256 }
},
{
"id": "06",
"grp": "cr",
"name": "Cargo Rack (128)",
"class": 7,
"rating": "E",
"cost": 1178420,
"capacity": 128
},
{
"id": "05",
"grp": "cr",
"name": "Cargo Rack (64)",
"class": 6,
"rating": "E",
"cost": 362591,
"capacity": 64
},
{
"id": "04",
"grp": "cr",
"name": "Cargo Rack (32)",
"class": 5,
"rating": "E",
"cost": 111566,
"capacity": 32
},
{
"id": "03",
"grp": "cr",
"name": "Cargo Rack (16)",
"class": 4,
"rating": "E",
"cost": 34328,
"capacity": 16
},
{
"id": "02",
"grp": "cr",
"name": "Cargo Rack (8)",
"class": 3,
"rating": "E",
"cost": 10563,
"capacity": 8
},
{
"id": "01",
"grp": "cr",
"name": "Cargo Rack (4)",
"class": 2,
"rating": "E",
"cost": 3250,
"capacity": 4
},
{
"id": "00",
"grp": "cr",
"name": "Cargo Rack (2)",
"class": 1,
"rating": "E",
"cost": 1000,
"capacity": 2
}
] ]
} }

View File

@@ -1,5 +1,5 @@
{ {
"Collector Limpet Ctrl": [ "Collector Limpet Controllers": [
{ "id": "Cf", "grp":"cc", "class":7, "rating":"E", "cost": 437400, "mass": 32.0, "power":0.41, "range":1.36, "maximum": 4, "time":300 }, { "id": "Cf", "grp":"cc", "class":7, "rating":"E", "cost": 437400, "mass": 32.0, "power":0.41, "range":1.36, "maximum": 4, "time":300 },
{ "id": "Cg", "grp":"cc", "class":7, "rating":"D", "cost": 874800, "mass": 32.0, "power":0.55, "range":1.02, "maximum": 4, "time":600 }, { "id": "Cg", "grp":"cc", "class":7, "rating":"D", "cost": 874800, "mass": 32.0, "power":0.55, "range":1.02, "maximum": 4, "time":600 },
{ "id": "Ch", "grp":"cc", "class":7, "rating":"C", "cost":1749600, "mass": 80.0, "power":0.69, "range":1.70, "maximum": 4, "time":510 }, { "id": "Ch", "grp":"cc", "class":7, "rating":"C", "cost":1749600, "mass": 80.0, "power":0.69, "range":1.70, "maximum": 4, "time":510 },

View File

@@ -1,27 +1,27 @@
{ {
"Fuel Transfer Limpet Ctrl": [ "Fuel Transfer Limpet Controllers": [
{ "id": "Ff", "grp":"fx", "class":7, "rating":"E", "cost": 437400, "mass": 80.0, "power":-0.55, "range":1.02, "maximum": 8 }, { "id": "Ff", "grp":"fx", "class":7, "rating":"E", "cost": 437400, "mass": 80.0, "power":0.55, "range":1.02, "maximum": 8 },
{ "id": "Fg", "grp":"fx", "class":7, "rating":"D", "cost": 874800, "mass": 32.0, "power":-0.41, "range":1.36, "maximum": 8 }, { "id": "Fg", "grp":"fx", "class":7, "rating":"D", "cost": 874800, "mass": 32.0, "power":0.41, "range":1.36, "maximum": 8 },
{ "id": "Fh", "grp":"fx", "class":7, "rating":"C", "cost":1749600, "mass": 80.0, "power":-0.69, "range":1.70, "maximum": 8 }, { "id": "Fh", "grp":"fx", "class":7, "rating":"C", "cost":1749600, "mass": 80.0, "power":0.69, "range":1.70, "maximum": 8 },
{ "id": "Fi", "grp":"fx", "class":7, "rating":"B", "cost":3499200, "mass":128.0, "power":-0.97, "range":2.04, "maximum": 8 }, { "id": "Fi", "grp":"fx", "class":7, "rating":"B", "cost":3499200, "mass":128.0, "power":0.97, "range":2.04, "maximum": 8 },
{ "id": "Fj", "grp":"fx", "class":7, "rating":"A", "cost":6998400, "mass": 80.0, "power":-0.83, "range":2.38, "maximum": 8 }, { "id": "Fj", "grp":"fx", "class":7, "rating":"A", "cost":6998400, "mass": 80.0, "power":0.83, "range":2.38, "maximum": 8 },
{ "id": "Fa", "grp":"fx", "class":5, "rating":"E", "cost": 48600, "mass": 20.0, "power":-0.40, "range":0.78, "maximum": 4 }, { "id": "Fa", "grp":"fx", "class":5, "rating":"E", "cost": 48600, "mass": 20.0, "power":0.40, "range":0.78, "maximum": 4 },
{ "id": "Fb", "grp":"fx", "class":5, "rating":"D", "cost": 97200, "mass": 8.0, "power":-0.30, "range":1.04, "maximum": 4 }, { "id": "Fb", "grp":"fx", "class":5, "rating":"D", "cost": 97200, "mass": 8.0, "power":0.30, "range":1.04, "maximum": 4 },
{ "id": "Fc", "grp":"fx", "class":5, "rating":"C", "cost": 194400, "mass": 20.0, "power":-0.50, "range":1.30, "maximum": 4 }, { "id": "Fc", "grp":"fx", "class":5, "rating":"C", "cost": 194400, "mass": 20.0, "power":0.50, "range":1.30, "maximum": 4 },
{ "id": "Fd", "grp":"fx", "class":5, "rating":"B", "cost": 388800, "mass": 32.0, "power":-0.97, "range":1.56, "maximum": 4 }, { "id": "Fd", "grp":"fx", "class":5, "rating":"B", "cost": 388800, "mass": 32.0, "power":0.97, "range":1.56, "maximum": 4 },
{ "id": "Fe", "grp":"fx", "class":5, "rating":"A", "cost": 777600, "mass": 20.0, "power":-0.60, "range":1.82, "maximum": 4 }, { "id": "Fe", "grp":"fx", "class":5, "rating":"A", "cost": 777600, "mass": 20.0, "power":0.60, "range":1.82, "maximum": 4 },
{ "id": "F5", "grp":"fx", "class":3, "rating":"E", "cost": 5400, "mass": 5.0, "power":-0.27, "range":0.66, "maximum": 2 }, { "id": "F5", "grp":"fx", "class":3, "rating":"E", "cost": 5400, "mass": 5.0, "power":0.27, "range":0.66, "maximum": 2 },
{ "id": "F6", "grp":"fx", "class":3, "rating":"D", "cost": 10800, "mass": 2.0, "power":-0.20, "range":0.88, "maximum": 2 }, { "id": "F6", "grp":"fx", "class":3, "rating":"D", "cost": 10800, "mass": 2.0, "power":0.20, "range":0.88, "maximum": 2 },
{ "id": "F7", "grp":"fx", "class":3, "rating":"C", "cost": 21600, "mass": 5.0, "power":-0.34, "range":1.10, "maximum": 2 }, { "id": "F7", "grp":"fx", "class":3, "rating":"C", "cost": 21600, "mass": 5.0, "power":0.34, "range":1.10, "maximum": 2 },
{ "id": "F8", "grp":"fx", "class":3, "rating":"B", "cost": 43200, "mass": 8.0, "power":-0.48, "range":1.32, "maximum": 2 }, { "id": "F8", "grp":"fx", "class":3, "rating":"B", "cost": 43200, "mass": 8.0, "power":0.48, "range":1.32, "maximum": 2 },
{ "id": "F9", "grp":"fx", "class":3, "rating":"A", "cost": 86400, "mass": 5.0, "power":-0.41, "range":1.54, "maximum": 2 }, { "id": "F9", "grp":"fx", "class":3, "rating":"A", "cost": 86400, "mass": 5.0, "power":0.41, "range":1.54, "maximum": 2 },
{ "id": "F0", "grp":"fx", "class":1, "rating":"E", "cost": 600, "mass": 1.3, "power":-0.18, "range":0.60, "maximum": 1 }, { "id": "F0", "grp":"fx", "class":1, "rating":"E", "cost": 600, "mass": 1.3, "power":0.18, "range":0.60, "maximum": 1 },
{ "id": "F1", "grp":"fx", "class":1, "rating":"D", "cost": 1200, "mass": 0.5, "power":-0.14, "range":0.80, "maximum": 1 }, { "id": "F1", "grp":"fx", "class":1, "rating":"D", "cost": 1200, "mass": 0.5, "power":0.14, "range":0.80, "maximum": 1 },
{ "id": "F2", "grp":"fx", "class":1, "rating":"C", "cost": 2400, "mass": 1.3, "power":-0.23, "range":1.00, "maximum": 1 }, { "id": "F2", "grp":"fx", "class":1, "rating":"C", "cost": 2400, "mass": 1.3, "power":0.23, "range":1.00, "maximum": 1 },
{ "id": "F3", "grp":"fx", "class":1, "rating":"B", "cost": 4800, "mass": 2.0, "power":-0.32, "range":1.20, "maximum": 1 }, { "id": "F3", "grp":"fx", "class":1, "rating":"B", "cost": 4800, "mass": 2.0, "power":0.32, "range":1.20, "maximum": 1 },
{ "id": "F4", "grp":"fx", "class":1, "rating":"A", "cost": 9600, "mass": 1.3, "power":-0.28, "range":1.40, "maximum": 1 } { "id": "F4", "grp":"fx", "class":1, "rating":"A", "cost": 9600, "mass": 1.3, "power":0.28, "range":1.40, "maximum": 1 }
] ]
} }

View File

@@ -1,5 +1,5 @@
{ {
"Hatch Breaker Limpet Ctrl": [ "Hatch Breaker Limpet Controllers": [
{ {
"id": "7d", "id": "7d",
"grp": "hb", "grp": "hb",

View File

@@ -1,52 +1,12 @@
{ {
"Fuel Tank": [ "Fuel Tank": [
{ { "id": "f1", "grp": "ft", "class": 1, "rating": "C", "cost": 1000, "capacity": 2 },
"id": "f1", { "id": "f2", "grp": "ft", "class": 2, "rating": "C", "cost": 3750, "capacity": 4 },
"grp": "ft", { "id": "f3", "grp": "ft", "class": 3, "rating": "C", "cost": 7063, "capacity": 8 },
"class": 1, { "id": "f4", "grp": "ft", "class": 4, "rating": "C", "cost": 24734, "capacity": 16 },
"rating": "C", { "id": "f5", "grp": "ft", "class": 5, "rating": "C", "cost": 97754, "capacity": 32 },
"cost": 1000, { "id": "f6", "grp": "ft", "class": 6, "rating": "C", "cost": 341577, "capacity": 64 },
"capacity": 2 { "id": "f7", "grp": "ft", "class": 7, "rating": "C", "cost": 1780900, "capacity": 128 },
}, { "id": "f8", "grp": "ft", "class": 8, "rating": "C", "cost": 5428400, "capacity": 256 }
{
"id": "f2",
"grp": "ft",
"class": 2,
"rating": "C",
"cost": 3750,
"capacity": 4
},
{
"id": "f3",
"grp": "ft",
"class": 3,
"rating": "C",
"cost": 7063,
"capacity": 8
},
{
"id": "f4",
"grp": "ft",
"class": 4,
"rating": "C",
"cost": 24734,
"capacity": 16
},
{
"id": "f5",
"grp": "ft",
"class": 5,
"rating": "C",
"cost": 97754,
"capacity": 32
},
{
"id": "f6",
"grp": "ft",
"class": 6,
"rating": "C",
"cost": 341577,
"capacity": 64
}
] ]
} }

View File

@@ -0,0 +1,11 @@
{
"Prismatic Shield Generators": [
{ "id": "p6", "grp": "psg", "class": 1, "rating": "A", "cost": 132195, "mass": 2.5, "power": 2.52, "minmass": 13, "optmass": 25, "maxmass": 63, "minmul": 2.04, "optmul": 1.44, "maxmul": 0.84 },
{ "id": "p5", "grp": "psg", "class": 2, "rating": "A", "cost": 240336, "mass": 5, "power": 3.15, "minmass": 23, "optmass": 55, "maxmass": 138, "minmul": 2.04, "optmul": 1.44, "maxmul": 0.84 },
{ "id": "p4", "grp": "psg", "class": 3, "rating": "A", "cost": 761868, "mass": 10, "power": 3.78, "minmass": 83, "optmass": 165, "maxmass": 413, "minmul": 2.04, "optmul": 1.44, "maxmul": 0.84 },
{ "id": "p3", "grp": "psg", "class": 4, "rating": "A", "cost": 2415120, "mass": 20, "power": 4.62, "minmass": 143, "optmass": 285, "maxmass": 713, "minmul": 2.04, "optmul": 1.44, "maxmul": 0.84 },
{ "id": "p2", "grp": "psg", "class": 5, "rating": "A", "cost": 7655930, "mass": 40, "power": 5.46, "minmass": 203, "optmass": 405, "maxmass": 1013, "minmul": 2.04, "optmul": 1.44, "maxmul": 0.84 },
{ "id": "p1", "grp": "psg", "class": 6, "rating": "A", "cost": 24269297, "mass": 80, "power": 6.51, "minmass": 270, "optmass": 540, "maxmass": 1350, "minmul": 2.04, "optmul": 1.44, "maxmul": 0.84 },
{ "id": "p0", "grp": "psg", "class": 7, "rating": "A", "cost": 76933668, "mass": 160, "power": 7.35, "minmass": 530, "optmass": 1060, "maxmass": 2650, "minmul": 2.04, "optmul": 1.44, "maxmul": 0.84 }
]
}

View File

@@ -1,27 +1,27 @@
{ {
"Prospector Limpet Ctrl": [ "Prospector Limpet Controllers": [
{ "id": "Pf", "grp":"pc", "class":7, "rating":"E", "cost": 437400, "mass": 80.0, "power":-0.55, "range": 5.10, "maximum": 8 }, { "id": "Pf", "grp":"pc", "class":7, "rating":"E", "cost": 437400, "mass": 80.0, "power":0.55, "range": 5.10, "maximum": 8 },
{ "id": "Pg", "grp":"pc", "class":7, "rating":"D", "cost": 874800, "mass": 32.0, "power":-0.41, "range": 6.80, "maximum": 8 }, { "id": "Pg", "grp":"pc", "class":7, "rating":"D", "cost": 874800, "mass": 32.0, "power":0.41, "range": 6.80, "maximum": 8 },
{ "id": "Ph", "grp":"pc", "class":7, "rating":"C", "cost":1749600, "mass": 80.0, "power":-0.69, "range": 8.50, "maximum": 8 }, { "id": "Ph", "grp":"pc", "class":7, "rating":"C", "cost":1749600, "mass": 80.0, "power":0.69, "range": 8.50, "maximum": 8 },
{ "id": "Pi", "grp":"pc", "class":7, "rating":"B", "cost":3499200, "mass":128.0, "power":-0.97, "range":10.20, "maximum": 8 }, { "id": "Pi", "grp":"pc", "class":7, "rating":"B", "cost":3499200, "mass":128.0, "power":0.97, "range":10.20, "maximum": 8 },
{ "id": "Pj", "grp":"pc", "class":7, "rating":"A", "cost":6998400, "mass": 80.0, "power":-0.83, "range":11.90, "maximum": 8 }, { "id": "Pj", "grp":"pc", "class":7, "rating":"A", "cost":6998400, "mass": 80.0, "power":0.83, "range":11.90, "maximum": 8 },
{ "id": "Pa", "grp":"pc", "class":5, "rating":"E", "cost": 48600, "mass": 20.0, "power":-0.40, "range": 3.90, "maximum": 4 }, { "id": "Pa", "grp":"pc", "class":5, "rating":"E", "cost": 48600, "mass": 20.0, "power":0.40, "range": 3.90, "maximum": 4 },
{ "id": "Pb", "grp":"pc", "class":5, "rating":"D", "cost": 97200, "mass": 8.0, "power":-0.30, "range": 5.20, "maximum": 4 }, { "id": "Pb", "grp":"pc", "class":5, "rating":"D", "cost": 97200, "mass": 8.0, "power":0.30, "range": 5.20, "maximum": 4 },
{ "id": "Pc", "grp":"pc", "class":5, "rating":"C", "cost": 194400, "mass": 20.0, "power":-0.50, "range": 6.50, "maximum": 4 }, { "id": "Pc", "grp":"pc", "class":5, "rating":"C", "cost": 194400, "mass": 20.0, "power":0.50, "range": 6.50, "maximum": 4 },
{ "id": "Pd", "grp":"pc", "class":5, "rating":"B", "cost": 388800, "mass": 32.0, "power":-0.97, "range": 7.80, "maximum": 4 }, { "id": "Pd", "grp":"pc", "class":5, "rating":"B", "cost": 388800, "mass": 32.0, "power":0.97, "range": 7.80, "maximum": 4 },
{ "id": "Pe", "grp":"pc", "class":5, "rating":"A", "cost": 777600, "mass": 20.0, "power":-0.60, "range": 9.10, "maximum": 4 }, { "id": "Pe", "grp":"pc", "class":5, "rating":"A", "cost": 777600, "mass": 20.0, "power":0.60, "range": 9.10, "maximum": 4 },
{ "id": "P5", "grp":"pc", "class":3, "rating":"E", "cost": 5400, "mass": 5.0, "power":-0.27, "range": 3.30, "maximum": 2 }, { "id": "P5", "grp":"pc", "class":3, "rating":"E", "cost": 5400, "mass": 5.0, "power":0.27, "range": 3.30, "maximum": 2 },
{ "id": "P6", "grp":"pc", "class":3, "rating":"D", "cost": 10800, "mass": 2.0, "power":-0.20, "range": 4.40, "maximum": 2 }, { "id": "P6", "grp":"pc", "class":3, "rating":"D", "cost": 10800, "mass": 2.0, "power":0.20, "range": 4.40, "maximum": 2 },
{ "id": "P7", "grp":"pc", "class":3, "rating":"C", "cost": 21600, "mass": 5.0, "power":-0.34, "range": 5.50, "maximum": 2 }, { "id": "P7", "grp":"pc", "class":3, "rating":"C", "cost": 21600, "mass": 5.0, "power":0.34, "range": 5.50, "maximum": 2 },
{ "id": "P8", "grp":"pc", "class":3, "rating":"B", "cost": 43200, "mass": 8.0, "power":-0.48, "range": 6.60, "maximum": 2 }, { "id": "P8", "grp":"pc", "class":3, "rating":"B", "cost": 43200, "mass": 8.0, "power":0.48, "range": 6.60, "maximum": 2 },
{ "id": "P9", "grp":"pc", "class":3, "rating":"A", "cost": 86400, "mass": 5.0, "power":-0.41, "range": 7.70, "maximum": 2 }, { "id": "P9", "grp":"pc", "class":3, "rating":"A", "cost": 86400, "mass": 5.0, "power":0.41, "range": 7.70, "maximum": 2 },
{ "id": "P0", "grp":"pc", "class":1, "rating":"E", "cost": 600, "mass": 1.3, "power":-0.18, "range": 3.00, "maximum": 1 }, { "id": "P0", "grp":"pc", "class":1, "rating":"E", "cost": 600, "mass": 1.3, "power":0.18, "range": 3.00, "maximum": 1 },
{ "id": "P1", "grp":"pc", "class":1, "rating":"D", "cost": 1200, "mass": 0.5, "power":-0.14, "range": 4.00, "maximum": 1 }, { "id": "P1", "grp":"pc", "class":1, "rating":"D", "cost": 1200, "mass": 0.5, "power":0.14, "range": 4.00, "maximum": 1 },
{ "id": "P2", "grp":"pc", "class":1, "rating":"C", "cost": 2400, "mass": 1.3, "power":-0.23, "range": 5.00, "maximum": 1 }, { "id": "P2", "grp":"pc", "class":1, "rating":"C", "cost": 2400, "mass": 1.3, "power":0.23, "range": 5.00, "maximum": 1 },
{ "id": "P3", "grp":"pc", "class":1, "rating":"B", "cost": 4800, "mass": 2.0, "power":-0.32, "range": 6.00, "maximum": 1 }, { "id": "P3", "grp":"pc", "class":1, "rating":"B", "cost": 4800, "mass": 2.0, "power":0.32, "range": 6.00, "maximum": 1 },
{ "id": "P4", "grp":"pc", "class":1, "rating":"A", "cost": 9600, "mass": 1.3, "power":-0.28, "range": 7.00, "maximum": 1 } { "id": "P4", "grp":"pc", "class":1, "rating":"A", "cost": 9600, "mass": 1.3, "power":0.28, "range": 7.00, "maximum": 1 }
] ]
} }

View File

@@ -1,484 +1,44 @@
{ {
"Shield Cell Banks": [ "Shield Cell Banks": [
{ { "id": "65", "grp": "scb", "class": 8, "rating": "E", "cost": 697584, "mass": 160, "power": 1.44, "cells": 5, "rechargeRating": "C", "recharge": 0 },
"id": "65", { "id": "64", "grp": "scb", "class": 8, "rating": "D", "cost": 1743961, "mass": 64, "power": 1.92, "cells": 3, "rechargeRating": "C", "recharge": 0 },
"grp": "scb", { "id": "63", "grp": "scb", "class": 8, "rating": "C", "cost": 4359903, "mass": 160, "power": 2.4, "cells": 4, "rechargeRating": "B", "recharge": 0 },
"class": 8, { "id": "62", "grp": "scb", "class": 8, "rating": "B", "cost": 10899756, "mass": 256, "power": 2.88, "cells": 5, "rechargeRating": "A", "recharge": 0 },
"rating": "E", { "id": "61", "grp": "scb", "class": 8, "rating": "A", "cost": 27249391, "mass": 160, "power": 3.36, "cells": 4, "rechargeRating": "A", "recharge": 0 },
"cost": 697584, { "id": "60", "grp": "scb", "class": 7, "rating": "E", "cost": 249137, "mass": 80, "power": 1.24, "cells": 5, "rechargeRating": "D", "recharge": 97 },
"mass": 160, { "id": "5v", "grp": "scb", "class": 7, "rating": "D", "cost": 622843, "mass": 32, "power": 1.66, "cells": 3, "rechargeRating": "C", "recharge": 130 },
"power": 1.44, { "id": "5u", "grp": "scb", "class": 7, "rating": "C", "cost": 1557108, "mass": 80, "power": 2.07, "cells": 4, "rechargeRating": "B", "recharge": 163 },
"cells": 5, { "id": "5t", "grp": "scb", "class": 7, "rating": "B", "cost": 3892770, "mass": 128, "power": 2.48, "cells": 5, "rechargeRating": "B", "recharge": 197 },
"rechargeRating": "C", { "id": "5s", "grp": "scb", "class": 7, "rating": "A", "cost": 9731925, "mass": 80, "power": 2.9, "cells": 4, "rechargeRating": "A", "recharge": 230 },
"recharge": 0 { "id": "5r", "grp": "scb", "class": 6, "rating": "E", "cost": 88978, "mass": 40, "power": 1.06, "cells": 5, "rechargeRating": "D", "recharge": 92 },
}, { "id": "5q", "grp": "scb", "class": 6, "rating": "D", "cost": 222444, "mass": 16, "power": 1.42, "cells": 3, "rechargeRating": "C", "recharge": 120 },
{ { "id": "5p", "grp": "scb", "class": 6, "rating": "C", "cost": 556110, "mass": 40, "power": 1.77, "cells": 4, "rechargeRating": "C", "recharge": 148 },
"id": "64", { "id": "5o", "grp": "scb", "class": 6, "rating": "B", "cost": 1390275, "mass": 64, "power": 2.12, "cells": 5, "rechargeRating": "B", "recharge": 176 },
"grp": "scb", { "id": "5n", "grp": "scb", "class": 6, "rating": "A", "cost": 3475688, "mass": 40, "power": 2.48, "cells": 4, "rechargeRating": "A", "recharge": 204 },
"class": 8, { "id": "5m", "grp": "scb", "class": 5, "rating": "E", "cost": 31778, "mass": 20, "power": 0.9, "cells": 4, "rechargeRating": "D", "recharge": 82 },
"rating": "D", { "id": "5l", "grp": "scb", "class": 5, "rating": "D", "cost": 79444, "mass": 8, "power": 1.2, "cells": 2, "rechargeRating": "C", "recharge": 109 },
"cost": 1743961, { "id": "5k", "grp": "scb", "class": 5, "rating": "C", "cost": 198611, "mass": 20, "power": 1.5, "cells": 3, "rechargeRating": "C", "recharge": 135 },
"mass": 64, { "id": "5j", "grp": "scb", "class": 5, "rating": "B", "cost": 496527, "mass": 32, "power": 1.8, "cells": 4, "rechargeRating": "B", "recharge": 162 },
"power": 1.92, { "id": "5i", "grp": "scb", "class": 5, "rating": "A", "cost": 1241317, "mass": 20, "power": 2.1, "cells": 3, "rechargeRating": "B", "recharge": 189 },
"cells": 3, { "id": "5h", "grp": "scb", "class": 4, "rating": "E", "cost": 11349, "mass": 10, "power": 0.74, "cells": 4, "rechargeRating": "D", "recharge": 72 },
"rechargeRating": "C", { "id": "5g", "grp": "scb", "class": 4, "rating": "D", "cost": 28373, "mass": 4, "power": 0.98, "cells": 2, "rechargeRating": "D", "recharge": 94 },
"recharge": 0 { "id": "5f", "grp": "scb", "class": 4, "rating": "C", "cost": 70932, "mass": 10, "power": 1.23, "cells": 3, "rechargeRating": "C", "recharge": 117 },
}, { "id": "5e", "grp": "scb", "class": 4, "rating": "B", "cost": 177331, "mass": 16, "power": 1.48, "cells": 4, "rechargeRating": "C", "recharge": 140 },
{ { "id": "5d", "grp": "scb", "class": 4, "rating": "A", "cost": 443328, "mass": 10, "power": 1.72, "cells": 3, "rechargeRating": "B", "recharge": 163 },
"id": "63", { "id": "5c", "grp": "scb", "class": 3, "rating": "E", "cost": 4053, "mass": 5, "power": 0.61, "cells": 4, "rechargeRating": "D", "recharge": 61 },
"grp": "scb", { "id": "5b", "grp": "scb", "class": 3, "rating": "D", "cost": 10133, "mass": 2, "power": 0.82, "cells": 2, "rechargeRating": "D", "recharge": 80 },
"class": 8, { "id": "5a", "grp": "scb", "class": 3, "rating": "C", "cost": 25333, "mass": 5, "power": 1.02, "cells": 3, "rechargeRating": "D", "recharge": 100 },
"rating": "C", { "id": "59", "grp": "scb", "class": 3, "rating": "B", "cost": 63333, "mass": 8, "power": 1.22, "cells": 4, "rechargeRating": "C", "recharge": 119 },
"cost": 4359903, { "id": "58", "grp": "scb", "class": 3, "rating": "A", "cost": 158331, "mass": 5, "power": 1.43, "cells": 3, "rechargeRating": "C", "recharge": 138 },
"mass": 160, { "id": "57", "grp": "scb", "class": 2, "rating": "E", "cost": 1448, "mass": 2.5, "power": 0.5, "cells": 4, "rechargeRating": "E", "recharge": 46 },
"power": 2.4, { "id": "56", "grp": "scb", "class": 2, "rating": "D", "cost": 3619, "mass": 1, "power": 0.67, "cells": 2, "rechargeRating": "D", "recharge": 61 },
"cells": 4, { "id": "55", "grp": "scb", "class": 2, "rating": "C", "cost": 9048, "mass": 2.5, "power": 0.84, "cells": 3, "rechargeRating": "D", "recharge": 77 },
"rechargeRating": "B", { "id": "54", "grp": "scb", "class": 2, "rating": "B", "cost": 22619, "mass": 4, "power": 1.01, "cells": 4, "rechargeRating": "D", "recharge": 92 },
"recharge": 0 { "id": "53", "grp": "scb", "class": 2, "rating": "A", "cost": 56547, "mass": 2.5, "power": 1.18, "cells": 3, "rechargeRating": "C", "recharge": 107 },
}, { "id": "52", "grp": "scb", "class": 1, "rating": "E", "cost": 517, "mass": 1.3, "power": 0.41, "cells": 3, "rechargeRating": "E", "recharge": 31 },
{ { "id": "51", "grp": "scb", "class": 1, "rating": "D", "cost": 1293, "mass": 0.5, "power": 0.55, "cells": 1, "rechargeRating": "E", "recharge": 41 },
"id": "62", { "id": "50", "grp": "scb", "class": 1, "rating": "C", "cost": 3231, "mass": 1.3, "power": 0.69, "cells": 2, "rechargeRating": "D", "recharge": 51 },
"grp": "scb", { "id": "4v", "grp": "scb", "class": 1, "rating": "B", "cost": 8078, "mass": 2, "power": 0.83, "cells": 3, "rechargeRating": "D", "recharge": 61 },
"class": 8, { "id": "4u", "grp": "scb", "class": 1, "rating": "A", "cost": 20195, "mass": 1.3, "power": 0.97, "cells": 2, "rechargeRating": "D", "recharge": 72 }
"rating": "B",
"cost": 10899756,
"mass": 256,
"power": 2.88,
"cells": 5,
"rechargeRating": "A",
"recharge": 0
},
{
"id": "61",
"grp": "scb",
"class": 8,
"rating": "A",
"cost": 27249391,
"mass": 160,
"power": 3.36,
"cells": 4,
"rechargeRating": "A",
"recharge": 0
},
{
"id": "60",
"grp": "scb",
"class": 7,
"rating": "E",
"cost": 249137,
"mass": 80,
"power": 1.24,
"cells": 5,
"rechargeRating": "D",
"recharge": 97
},
{
"id": "5v",
"grp": "scb",
"class": 7,
"rating": "D",
"cost": 622843,
"mass": 32,
"power": 1.66,
"cells": 3,
"rechargeRating": "C",
"recharge": 130
},
{
"id": "5u",
"grp": "scb",
"class": 7,
"rating": "C",
"cost": 1557108,
"mass": 80,
"power": 2.07,
"cells": 4,
"rechargeRating": "B",
"recharge": 163
},
{
"id": "5t",
"grp": "scb",
"class": 7,
"rating": "B",
"cost": 3892770,
"mass": 128,
"power": 2.48,
"cells": 5,
"rechargeRating": "B",
"recharge": 197
},
{
"id": "5s",
"grp": "scb",
"class": 7,
"rating": "A",
"cost": 9731925,
"mass": 80,
"power": 2.9,
"cells": 4,
"rechargeRating": "A",
"recharge": 230
},
{
"id": "5r",
"grp": "scb",
"class": 6,
"rating": "E",
"cost": 88978,
"mass": 40,
"power": 1.06,
"cells": 5,
"rechargeRating": "D",
"recharge": 92
},
{
"id": "5q",
"grp": "scb",
"class": 6,
"rating": "D",
"cost": 222444,
"mass": 16,
"power": 1.42,
"cells": 3,
"rechargeRating": "C",
"recharge": 120
},
{
"id": "5p",
"grp": "scb",
"class": 6,
"rating": "C",
"cost": 556110,
"mass": 40,
"power": 1.77,
"cells": 4,
"rechargeRating": "C",
"recharge": 148
},
{
"id": "5o",
"grp": "scb",
"class": 6,
"rating": "B",
"cost": 1390275,
"mass": 64,
"power": 2.12,
"cells": 5,
"rechargeRating": "B",
"recharge": 176
},
{
"id": "5n",
"grp": "scb",
"class": 6,
"rating": "A",
"cost": 3475688,
"mass": 40,
"power": 2.48,
"cells": 4,
"rechargeRating": "A",
"recharge": 204
},
{
"id": "5m",
"grp": "scb",
"class": 5,
"rating": "E",
"cost": 31778,
"mass": 20,
"power": 0.9,
"cells": 4,
"rechargeRating": "D",
"recharge": 82
},
{
"id": "5l",
"grp": "scb",
"class": 5,
"rating": "D",
"cost": 79444,
"mass": 8,
"power": 1.2,
"cells": 2,
"rechargeRating": "C",
"recharge": 109
},
{
"id": "5k",
"grp": "scb",
"class": 5,
"rating": "C",
"cost": 198611,
"mass": 20,
"power": 1.5,
"cells": 3,
"rechargeRating": "C",
"recharge": 135
},
{
"id": "5j",
"grp": "scb",
"class": 5,
"rating": "B",
"cost": 496527,
"mass": 32,
"power": 1.8,
"cells": 4,
"rechargeRating": "B",
"recharge": 162
},
{
"id": "5i",
"grp": "scb",
"class": 5,
"rating": "A",
"cost": 1241317,
"mass": 20,
"power": 2.1,
"cells": 3,
"rechargeRating": "B",
"recharge": 189
},
{
"id": "5h",
"grp": "scb",
"class": 4,
"rating": "E",
"cost": 11349,
"mass": 10,
"power": 0.74,
"cells": 4,
"rechargeRating": "D",
"recharge": 72
},
{
"id": "5g",
"grp": "scb",
"class": 4,
"rating": "D",
"cost": 28373,
"mass": 4,
"power": 0.98,
"cells": 2,
"rechargeRating": "D",
"recharge": 94
},
{
"id": "5f",
"grp": "scb",
"class": 4,
"rating": "C",
"cost": 70932,
"mass": 10,
"power": 1.23,
"cells": 3,
"rechargeRating": "C",
"recharge": 117
},
{
"id": "5e",
"grp": "scb",
"class": 4,
"rating": "B",
"cost": 177331,
"mass": 16,
"power": 1.48,
"cells": 4,
"rechargeRating": "C",
"recharge": 140
},
{
"id": "5d",
"grp": "scb",
"class": 4,
"rating": "A",
"cost": 443328,
"mass": 10,
"power": 1.72,
"cells": 3,
"rechargeRating": "B",
"recharge": 163
},
{
"id": "5c",
"grp": "scb",
"class": 3,
"rating": "E",
"cost": 4053,
"mass": 5,
"power": 0.61,
"cells": 4,
"rechargeRating": "D",
"recharge": 61
},
{
"id": "5b",
"grp": "scb",
"class": 3,
"rating": "D",
"cost": 10133,
"mass": 2,
"power": 0.82,
"cells": 2,
"rechargeRating": "D",
"recharge": 80
},
{
"id": "5a",
"grp": "scb",
"class": 3,
"rating": "C",
"cost": 25333,
"mass": 5,
"power": 1.02,
"cells": 3,
"rechargeRating": "D",
"recharge": 100
},
{
"id": "59",
"grp": "scb",
"class": 3,
"rating": "B",
"cost": 63333,
"mass": 8,
"power": 1.22,
"cells": 4,
"rechargeRating": "C",
"recharge": 119
},
{
"id": "58",
"grp": "scb",
"class": 3,
"rating": "A",
"cost": 158331,
"mass": 5,
"power": 1.43,
"cells": 3,
"rechargeRating": "C",
"recharge": 138
},
{
"id": "57",
"grp": "scb",
"class": 2,
"rating": "E",
"cost": 1448,
"mass": 2.5,
"power": 0.5,
"cells": 4,
"rechargeRating": "E",
"recharge": 46
},
{
"id": "56",
"grp": "scb",
"class": 2,
"rating": "D",
"cost": 3619,
"mass": 1,
"power": 0.67,
"cells": 2,
"rechargeRating": "D",
"recharge": 61
},
{
"id": "55",
"grp": "scb",
"class": 2,
"rating": "C",
"cost": 9048,
"mass": 2.5,
"power": 0.84,
"cells": 3,
"rechargeRating": "D",
"recharge": 77
},
{
"id": "54",
"grp": "scb",
"class": 2,
"rating": "B",
"cost": 22619,
"mass": 4,
"power": 1.01,
"cells": 4,
"rechargeRating": "D",
"recharge": 92
},
{
"id": "53",
"grp": "scb",
"class": 2,
"rating": "A",
"cost": 56547,
"mass": 2.5,
"power": 1.18,
"cells": 3,
"rechargeRating": "C",
"recharge": 107
},
{
"id": "52",
"grp": "scb",
"class": 1,
"rating": "E",
"cost": 517,
"mass": 1.3,
"power": 0.41,
"cells": 3,
"rechargeRating": "E",
"recharge": 31
},
{
"id": "51",
"grp": "scb",
"class": 1,
"rating": "D",
"cost": 1293,
"mass": 0.5,
"power": 0.55,
"cells": 1,
"rechargeRating": "E",
"recharge": 41
},
{
"id": "50",
"grp": "scb",
"class": 1,
"rating": "C",
"cost": 3231,
"mass": 1.3,
"power": 0.69,
"cells": 2,
"rechargeRating": "D",
"recharge": 51
},
{
"id": "4v",
"grp": "scb",
"class": 1,
"rating": "B",
"cost": 8078,
"mass": 2,
"power": 0.83,
"cells": 3,
"rechargeRating": "D",
"recharge": 61
},
{
"id": "4u",
"grp": "scb",
"class": 1,
"rating": "A",
"cost": 20195,
"mass": 1.3,
"power": 0.97,
"cells": 2,
"rechargeRating": "D",
"recharge": 72
}
] ]
} }

View File

@@ -1,529 +1,39 @@
{ {
"Shield Generators": [ "Shield Generators": [
{ { "id": "4t", "grp": "sg", "class": 8, "rating": "E", "cost": 2007241, "mass": 160, "power": 2.4, "minmass": 900, "optmass": 1800, "maxmass": 4500, "minmul": 1.3, "optmul": 0.8, "maxmul": 0.3 },
"id": "4t", { "id": "4s", "grp": "sg", "class": 8, "rating": "D", "cost": 6021722, "mass": 64, "power": 3.2, "minmass": 900, "optmass": 1800, "maxmass": 4500, "minmul": 1.4, "optmul": 0.9, "maxmul": 0.4 },
"grp": "sg", { "id": "4r", "grp": "sg", "class": 8, "rating": "C", "cost": 18065165, "mass": 160, "power": 4, "minmass": 900, "optmass": 1800, "maxmass": 4500, "minmul": 1.5, "optmul": 1, "maxmul": 0.5 },
"class": 8, { "id": "4q", "grp": "sg", "class": 8, "rating": "B", "cost": 54195495, "mass": 256, "power": 4.8, "minmass": 900, "optmass": 1800, "maxmass": 4500, "minmul": 1.6, "optmul": 1.1, "maxmul": 0.6 },
"rating": "E", { "id": "4p", "grp": "sg", "class": 8, "rating": "A", "cost": 162586486, "mass": 160, "power": 5.6, "minmass": 900, "optmass": 1800, "maxmass": 4500, "minmul": 1.7, "optmul": 1.2, "maxmul": 0.7 },
"cost": 2007241, { "id": "4o", "grp": "sg", "class": 7, "rating": "E", "cost": 633199, "mass": 80, "power": 2.1, "minmass": 530, "optmass": 1060, "maxmass": 2650, "minmul": 1.3, "optmul": 0.8, "maxmul": 0.3 },
"mass": 160, { "id": "4n", "grp": "sg", "class": 7, "rating": "D", "cost": 1899597, "mass": 32, "power": 2.8, "minmass": 530, "optmass": 1060, "maxmass": 2650, "minmul": 1.4, "optmul": 0.9, "maxmul": 0.4 },
"power": 2.4, { "id": "4m", "grp": "sg", "class": 7, "rating": "C", "cost": 5698790, "mass": 80, "power": 3.5, "minmass": 530, "optmass": 1060, "maxmass": 2650, "minmul": 1.5, "optmul": 1, "maxmul": 0.5 },
"minmass": 900, { "id": "4l", "grp": "sg", "class": 7, "rating": "B", "cost": 17096371, "mass": 128, "power": 4.2, "minmass": 530, "optmass": 1060, "maxmass": 2650, "minmul": 1.6, "optmul": 1.1, "maxmul": 0.6 },
"optmass": 1800, { "id": "4k", "grp": "sg", "class": 7, "rating": "A", "cost": 51289112, "mass": 80, "power": 4.9, "minmass": 530, "optmass": 1060, "maxmass": 2650, "minmul": 1.7, "optmul": 1.2, "maxmul": 0.7 },
"maxmass": 4500, { "id": "4j", "grp": "sg", "class": 6, "rating": "E", "cost": 199747, "mass": 40, "power": 1.86, "minmass": 270, "optmass": 540, "maxmass": 1350, "minmul": 1.3, "optmul": 0.8, "maxmul": 0.3 },
"minmul": 1.3, { "id": "4i", "grp": "sg", "class": 6, "rating": "D", "cost": 599242, "mass": 16, "power": 2.48, "minmass": 270, "optmass": 540, "maxmass": 1350, "minmul": 1.4, "optmul": 0.9, "maxmul": 0.4 },
"optmul": 0.8, { "id": "4h", "grp": "sg", "class": 6, "rating": "C", "cost": 1797726, "mass": 40, "power": 3.1, "minmass": 270, "optmass": 540, "maxmass": 1350, "minmul": 1.5, "optmul": 1, "maxmul": 0.5 },
"maxmul": 0.3 { "id": "4g", "grp": "sg", "class": 6, "rating": "B", "cost": 5393177, "mass": 64, "power": 3.72, "minmass": 270, "optmass": 540, "maxmass": 1350, "minmul": 1.6, "optmul": 1.1, "maxmul": 0.6 },
}, { "id": "4f", "grp": "sg", "class": 6, "rating": "A", "cost": 16179531, "mass": 40, "power": 4.34, "minmass": 270, "optmass": 540, "maxmass": 1350, "minmul": 1.7, "optmul": 1.2, "maxmul": 0.7 },
{ { "id": "4e", "grp": "sg", "class": 5, "rating": "E", "cost": 63012, "mass": 20, "power": 1.56, "minmass": 203, "optmass": 405, "maxmass": 1013, "minmul": 1.3, "optmul": 0.8, "maxmul": 0.3 },
"id": "4s", { "id": "4d", "grp": "sg", "class": 5, "rating": "D", "cost": 189035, "mass": 8, "power": 2.08, "minmass": 203, "optmass": 405, "maxmass": 1013, "minmul": 1.4, "optmul": 0.9, "maxmul": 0.4 },
"grp": "sg", { "id": "4c", "grp": "sg", "class": 5, "rating": "C", "cost": 567106, "mass": 20, "power": 2.6, "minmass": 203, "optmass": 405, "maxmass": 1013, "minmul": 1.5, "optmul": 1, "maxmul": 0.5 },
"class": 8, { "id": "4b", "grp": "sg", "class": 5, "rating": "B", "cost": 1701318, "mass": 32, "power": 3.12, "minmass": 203, "optmass": 405, "maxmass": 1013, "minmul": 1.6, "optmul": 1.1, "maxmul": 0.6 },
"rating": "D", { "id": "4a", "grp": "sg", "class": 5, "rating": "A", "cost": 5103953, "mass": 20, "power": 3.64, "minmass": 203, "optmass": 405, "maxmass": 1013, "minmul": 1.7, "optmul": 1.2, "maxmul": 0.7 },
"cost": 6021722, { "id": "49", "grp": "sg", "class": 4, "rating": "E", "cost": 19878, "mass": 10, "power": 1.32, "minmass": 143, "optmass": 285, "maxmass": 713, "minmul": 1.3, "optmul": 0.8, "maxmul": 0.3 },
"mass": 64, { "id": "48", "grp": "sg", "class": 4, "rating": "D", "cost": 59633, "mass": 4, "power": 1.76, "minmass": 143, "optmass": 285, "maxmass": 713, "minmul": 1.4, "optmul": 0.9, "maxmul": 0.4 },
"power": 3.2, { "id": "47", "grp": "sg", "class": 4, "rating": "C", "cost": 178898, "mass": 10, "power": 2.2, "minmass": 143, "optmass": 285, "maxmass": 713, "minmul": 1.5, "optmul": 1, "maxmul": 0.5 },
"minmass": 900, { "id": "46", "grp": "sg", "class": 4, "rating": "B", "cost": 536693, "mass": 16, "power": 2.64, "minmass": 143, "optmass": 285, "maxmass": 713, "minmul": 1.6, "optmul": 1.1, "maxmul": 0.6 },
"optmass": 1800, { "id": "45", "grp": "sg", "class": 4, "rating": "A", "cost": 1610080, "mass": 10, "power": 3.08, "minmass": 143, "optmass": 285, "maxmass": 713, "minmul": 1.7, "optmul": 1.2, "maxmul": 0.7 },
"maxmass": 4500, { "id": "44", "grp": "sg", "class": 3, "rating": "E", "cost": 6271, "mass": 5, "power": 1.08, "minmass": 83, "optmass": 165, "maxmass": 413, "minmul": 1.3, "optmul": 0.8, "maxmul": 0.3 },
"minmul": 1.4, { "id": "43", "grp": "sg", "class": 3, "rating": "D", "cost": 18812, "mass": 2, "power": 1.44, "minmass": 83, "optmass": 165, "maxmass": 413, "minmul": 1.4, "optmul": 0.9, "maxmul": 0.4 },
"optmul": 0.9, { "id": "42", "grp": "sg", "class": 3, "rating": "C", "cost": 56435, "mass": 5, "power": 1.8, "minmass": 83, "optmass": 165, "maxmass": 413, "minmul": 1.5, "optmul": 1, "maxmul": 0.5 },
"maxmul": 0.4 { "id": "41", "grp": "sg", "class": 3, "rating": "B", "cost": 169304, "mass": 8, "power": 2.16, "minmass": 83, "optmass": 165, "maxmass": 413, "minmul": 1.6, "optmul": 1.1, "maxmul": 0.6 },
}, { "id": "40", "grp": "sg", "class": 3, "rating": "A", "cost": 507912, "mass": 5, "power": 2.52, "minmass": 83, "optmass": 165, "maxmass": 413, "minmul": 1.7, "optmul": 1.2, "maxmul": 0.7 },
{ { "id": "3v", "grp": "sg", "class": 2, "rating": "E", "cost": 1978, "mass": 2.5, "power": 0.9, "minmass": 28, "optmass": 55, "maxmass": 138, "minmul": 1.3, "optmul": 0.8, "maxmul": 0.3 },
"id": "4r", { "id": "3u", "grp": "sg", "class": 2, "rating": "D", "cost": 5934, "mass": 1, "power": 1.2, "minmass": 28, "optmass": 55, "maxmass": 138, "minmul": 1.4, "optmul": 0.9, "maxmul": 0.4 },
"grp": "sg", { "id": "3t", "grp": "sg", "class": 2, "rating": "C", "cost": 17803, "mass": 2.5, "power": 1.5, "minmass": 28, "optmass": 55, "maxmass": 138, "minmul": 1.5, "optmul": 1, "maxmul": 0.5 },
"class": 8, { "id": "3s", "grp": "sg", "class": 2, "rating": "B", "cost": 53408, "mass": 4, "power": 1.8, "minmass": 28, "optmass": 55, "maxmass": 138, "minmul": 1.6, "optmul": 1.1, "maxmul": 0.6 },
"rating": "C", { "id": "3r", "grp": "sg", "class": 2, "rating": "A", "cost": 160224, "mass": 2.5, "power": 2.1, "minmass": 28, "optmass": 55, "maxmass": 138, "minmul": 1.7, "optmul": 1.2, "maxmul": 0.7 }
"cost": 18065165,
"mass": 160,
"power": 4,
"minmass": 900,
"optmass": 1800,
"maxmass": 4500,
"minmul": 1.5,
"optmul": 1,
"maxmul": 0.5
},
{
"id": "4q",
"grp": "sg",
"class": 8,
"rating": "B",
"cost": 54195495,
"mass": 256,
"power": 4.8,
"minmass": 900,
"optmass": 1800,
"maxmass": 4500,
"minmul": 1.6,
"optmul": 1.1,
"maxmul": 0.6
},
{
"id": "4p",
"grp": "sg",
"class": 8,
"rating": "A",
"cost": 162586486,
"mass": 160,
"power": 5.6,
"minmass": 900,
"optmass": 1800,
"maxmass": 4500,
"minmul": 1.7,
"optmul": 1.2,
"maxmul": 0.7
},
{
"id": "4o",
"grp": "sg",
"class": 7,
"rating": "E",
"cost": 633199,
"mass": 80,
"power": 2.1,
"minmass": 530,
"optmass": 1060,
"maxmass": 2650,
"minmul": 1.3,
"optmul": 0.8,
"maxmul": 0.3
},
{
"id": "4n",
"grp": "sg",
"class": 7,
"rating": "D",
"cost": 1899597,
"mass": 32,
"power": 2.8,
"minmass": 530,
"optmass": 1060,
"maxmass": 2650,
"minmul": 1.4,
"optmul": 0.9,
"maxmul": 0.4
},
{
"id": "4m",
"grp": "sg",
"class": 7,
"rating": "C",
"cost": 5698790,
"mass": 80,
"power": 3.5,
"minmass": 530,
"optmass": 1060,
"maxmass": 2650,
"minmul": 1.5,
"optmul": 1,
"maxmul": 0.5
},
{
"id": "4l",
"grp": "sg",
"class": 7,
"rating": "B",
"cost": 17096371,
"mass": 128,
"power": 4.2,
"minmass": 530,
"optmass": 1060,
"maxmass": 2650,
"minmul": 1.6,
"optmul": 1.1,
"maxmul": 0.6
},
{
"id": "4k",
"grp": "sg",
"class": 7,
"rating": "A",
"cost": 51289112,
"mass": 80,
"power": 4.9,
"minmass": 530,
"optmass": 1060,
"maxmass": 2650,
"minmul": 1.7,
"optmul": 1.2,
"maxmul": 0.7
},
{
"id": "4j",
"grp": "sg",
"class": 6,
"rating": "E",
"cost": 199747,
"mass": 40,
"power": 1.86,
"minmass": 270,
"optmass": 540,
"maxmass": 1350,
"minmul": 1.3,
"optmul": 0.8,
"maxmul": 0.3
},
{
"id": "4i",
"grp": "sg",
"class": 6,
"rating": "D",
"cost": 599242,
"mass": 16,
"power": 2.48,
"minmass": 270,
"optmass": 540,
"maxmass": 1350,
"minmul": 1.4,
"optmul": 0.9,
"maxmul": 0.4
},
{
"id": "4h",
"grp": "sg",
"class": 6,
"rating": "C",
"cost": 1797726,
"mass": 40,
"power": 3.1,
"minmass": 270,
"optmass": 540,
"maxmass": 1350,
"minmul": 1.5,
"optmul": 1,
"maxmul": 0.5
},
{
"id": "4g",
"grp": "sg",
"class": 6,
"rating": "B",
"cost": 5393177,
"mass": 64,
"power": 3.72,
"minmass": 270,
"optmass": 540,
"maxmass": 1350,
"minmul": 1.6,
"optmul": 1.1,
"maxmul": 0.6
},
{
"id": "4f",
"grp": "sg",
"class": 6,
"rating": "A",
"cost": 16179531,
"mass": 40,
"power": 4.34,
"minmass": 270,
"optmass": 540,
"maxmass": 1350,
"minmul": 1.7,
"optmul": 1.2,
"maxmul": 0.7
},
{
"id": "4e",
"grp": "sg",
"class": 5,
"rating": "E",
"cost": 63012,
"mass": 20,
"power": 1.56,
"minmass": 203,
"optmass": 405,
"maxmass": 1013,
"minmul": 1.3,
"optmul": 0.8,
"maxmul": 0.3
},
{
"id": "4d",
"grp": "sg",
"class": 5,
"rating": "D",
"cost": 189035,
"mass": 8,
"power": 2.08,
"minmass": 203,
"optmass": 405,
"maxmass": 1013,
"minmul": 1.4,
"optmul": 0.9,
"maxmul": 0.4
},
{
"id": "4c",
"grp": "sg",
"class": 5,
"rating": "C",
"cost": 567106,
"mass": 20,
"power": 2.6,
"minmass": 203,
"optmass": 405,
"maxmass": 1013,
"minmul": 1.5,
"optmul": 1,
"maxmul": 0.5
},
{
"id": "4b",
"grp": "sg",
"class": 5,
"rating": "B",
"cost": 1701318,
"mass": 32,
"power": 3.12,
"minmass": 203,
"optmass": 405,
"maxmass": 1013,
"minmul": 1.6,
"optmul": 1.1,
"maxmul": 0.6
},
{
"id": "4a",
"grp": "sg",
"class": 5,
"rating": "A",
"cost": 5103953,
"mass": 20,
"power": 3.64,
"minmass": 203,
"optmass": 405,
"maxmass": 1013,
"minmul": 1.7,
"optmul": 1.2,
"maxmul": 0.7
},
{
"id": "49",
"grp": "sg",
"class": 4,
"rating": "E",
"cost": 19878,
"mass": 10,
"power": 1.32,
"minmass": 143,
"optmass": 285,
"maxmass": 713,
"minmul": 1.3,
"optmul": 0.8,
"maxmul": 0.3
},
{
"id": "48",
"grp": "sg",
"class": 4,
"rating": "D",
"cost": 59633,
"mass": 4,
"power": 1.76,
"minmass": 143,
"optmass": 285,
"maxmass": 713,
"minmul": 1.4,
"optmul": 0.9,
"maxmul": 0.4
},
{
"id": "47",
"grp": "sg",
"class": 4,
"rating": "C",
"cost": 178898,
"mass": 10,
"power": 2.2,
"minmass": 143,
"optmass": 285,
"maxmass": 713,
"minmul": 1.5,
"optmul": 1,
"maxmul": 0.5
},
{
"id": "46",
"grp": "sg",
"class": 4,
"rating": "B",
"cost": 536693,
"mass": 16,
"power": 2.64,
"minmass": 143,
"optmass": 285,
"maxmass": 713,
"minmul": 1.6,
"optmul": 1.1,
"maxmul": 0.6
},
{
"id": "45",
"grp": "sg",
"class": 4,
"rating": "A",
"cost": 1610080,
"mass": 10,
"power": 3.08,
"minmass": 143,
"optmass": 285,
"maxmass": 713,
"minmul": 1.7,
"optmul": 1.2,
"maxmul": 0.7
},
{
"id": "44",
"grp": "sg",
"class": 3,
"rating": "E",
"cost": 6271,
"mass": 5,
"power": 1.08,
"minmass": 83,
"optmass": 165,
"maxmass": 413,
"minmul": 1.3,
"optmul": 0.8,
"maxmul": 0.3
},
{
"id": "43",
"grp": "sg",
"class": 3,
"rating": "D",
"cost": 18812,
"mass": 2,
"power": 1.44,
"minmass": 83,
"optmass": 165,
"maxmass": 413,
"minmul": 1.4,
"optmul": 0.9,
"maxmul": 0.4
},
{
"id": "42",
"grp": "sg",
"class": 3,
"rating": "C",
"cost": 56435,
"mass": 5,
"power": 1.8,
"minmass": 83,
"optmass": 165,
"maxmass": 413,
"minmul": 1.5,
"optmul": 1,
"maxmul": 0.5
},
{
"id": "41",
"grp": "sg",
"class": 3,
"rating": "B",
"cost": 169304,
"mass": 8,
"power": 2.16,
"minmass": 83,
"optmass": 165,
"maxmass": 413,
"minmul": 1.6,
"optmul": 1.1,
"maxmul": 0.6
},
{
"id": "40",
"grp": "sg",
"class": 3,
"rating": "A",
"cost": 507912,
"mass": 5,
"power": 2.52,
"minmass": 83,
"optmass": 165,
"maxmass": 413,
"minmul": 1.7,
"optmul": 1.2,
"maxmul": 0.7
},
{
"id": "3v",
"grp": "sg",
"class": 2,
"rating": "E",
"cost": 1978,
"mass": 2.5,
"power": 0.9,
"minmass": 28,
"optmass": 55,
"maxmass": 138,
"minmul": 1.3,
"optmul": 0.8,
"maxmul": 0.3
},
{
"id": "3u",
"grp": "sg",
"class": 2,
"rating": "D",
"cost": 5934,
"mass": 1,
"power": 1.2,
"minmass": 28,
"optmass": 55,
"maxmass": 138,
"minmul": 1.4,
"optmul": 0.9,
"maxmul": 0.4
},
{
"id": "3t",
"grp": "sg",
"class": 2,
"rating": "C",
"cost": 17803,
"mass": 2.5,
"power": 1.5,
"minmass": 28,
"optmass": 55,
"maxmass": 138,
"minmul": 1.5,
"optmul": 1,
"maxmul": 0.5
},
{
"id": "3s",
"grp": "sg",
"class": 2,
"rating": "B",
"cost": 53408,
"mass": 4,
"power": 1.8,
"minmass": 28,
"optmass": 55,
"maxmass": 138,
"minmul": 1.6,
"optmul": 1.1,
"maxmul": 0.6
},
{
"id": "3r",
"grp": "sg",
"class": 2,
"rating": "A",
"cost": 160224,
"mass": 2.5,
"power": 2.1,
"minmass": 28,
"optmass": 55,
"maxmass": 138,
"minmul": 1.7,
"optmul": 1.2,
"maxmul": 0.7
}
] ]
} }

View File

@@ -1,18 +1,17 @@
{ {
"adder": { "adder": {
"properties": { "properties": {
"grp": "ex",
"name": "Adder", "name": "Adder",
"manufacturer": "Zorgon Peterson", "manufacturer": "Zorgon Peterson",
"class": 1, "class": 1,
"cost": 39993, "hullCost": 39993,
"speed": 220, "speed": 220,
"boost": 320, "boost": 320,
"agility": 8, "agility": 8,
"shields": 60, "baseShieldStrength": 60,
"armour": 162, "baseArmour": 162,
"fuelcost": 50, "hullMass": 35,
"mass": 35 "masslock": 7
}, },
"retailCost": 87808, "retailCost": 87808,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"anaconda": { "anaconda": {
"properties": { "properties": {
"grp": "mp",
"name": "Anaconda", "name": "Anaconda",
"manufacturer": "Faulcon DeLacy", "manufacturer": "Faulcon DeLacy",
"class": 3, "class": 3,
"cost": 141889932, "hullCost": 141889932,
"speed": 180, "speed": 180,
"boost": 240, "boost": 240,
"agility": 2, "agility": 2,
"shields": 350, "baseShieldStrength": 350,
"armour": 945, "baseArmour": 945,
"fuelcost": 50, "hullMass": 400,
"mass": 400 "masslock": 23
}, },
"retailCost": 146969451, "retailCost": 146969451,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"asp": { "asp": {
"properties": { "properties": {
"grp": "ex",
"name": "Asp Explorer", "name": "Asp Explorer",
"manufacturer": "Lakon", "manufacturer": "Lakon",
"class": 2, "class": 2,
"cost": 6135658, "hullCost": 6135658,
"speed": 250, "speed": 250,
"boost": 340, "boost": 340,
"agility": 6, "agility": 6,
"shields": 140, "baseShieldStrength": 140,
"armour": 378, "baseArmour": 378,
"fuelcost": 50, "hullMass": 280,
"mass": 280 "masslock": 11
}, },
"retailCost": 6661153, "retailCost": 6661153,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"cobra_mk_iii": { "cobra_mk_iii": {
"properties": { "properties": {
"grp": "mp",
"name": "Cobra Mk III", "name": "Cobra Mk III",
"manufacturer": "Faulcon DeLacy", "manufacturer": "Faulcon DeLacy",
"class": 1, "class": 1,
"cost": 235787, "hullCost": 235787,
"speed": 280, "speed": 280,
"boost": 400, "boost": 400,
"agility": 6, "agility": 6,
"shields": 80, "baseShieldStrength": 80,
"armour": 216, "baseArmour": 216,
"fuelcost": 50, "hullMass": 180,
"mass": 180 "masslock": 8
}, },
"retailCost": 379718, "retailCost": 379718,
"slots": { "slots": {

View File

@@ -1,20 +1,20 @@
{ {
"diamondback": { "diamondback": {
"properties": { "properties": {
"grp": "ex",
"name": "Diamondback Scout", "name": "Diamondback Scout",
"manufacturer": "Lakon", "manufacturer": "Lakon",
"class": 1, "class": 1,
"cost": 461342, "hullCost": 461341,
"speed": 283, "speed": 283,
"boost": 384, "boost": 384,
"agility": 8, "agility": 8,
"shields": 118, "baseShieldStrength": 118,
"armour": 216, "baseArmour": 216,
"fuelcost": 50, "hullMass": 170,
"mass": 170 "masslock": 8
}, },
"retailCost": 564330, "retailCost": 564329,
"minMassFilter": 180.5,
"slots": { "slots": {
"common": [ "common": [
4, 4,

View File

@@ -1,18 +1,17 @@
{ {
"diamondback_explorer": { "diamondback_explorer": {
"properties": { "properties": {
"grp": "ex",
"name": "Diamondback Explorer", "name": "Diamondback Explorer",
"manufacturer": "Lakon", "manufacturer": "Lakon",
"class": 1, "class": 1,
"cost": 1635691, "hullCost": 1635691,
"speed": 242, "speed": 242,
"boost": 316, "boost": 316,
"agility": 5, "agility": 5,
"shields": 146, "baseShieldStrength": 146,
"armour": 270, "baseArmour": 270,
"fuelcost": 50, "hullMass": 298,
"mass": 298 "masslock": 7
}, },
"retailCost": 1894760, "retailCost": 1894760,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"eagle": { "eagle": {
"properties": { "properties": {
"grp": "co",
"name": "Eagle", "name": "Eagle",
"manufacturer": "Core Dynamics", "manufacturer": "Core Dynamics",
"class": 1, "class": 1,
"cost": 10446, "hullCost": 10446,
"speed": 240, "speed": 240,
"boost": 350, "boost": 350,
"agility": 10, "agility": 10,
"shields": 60, "baseShieldStrength": 60,
"armour": 72, "baseArmour": 72,
"fuelcost": 50, "hullMass": 50,
"mass": 50 "masslock": 6
}, },
"retailCost": 44800, "retailCost": 44800,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"federal_dropship": { "federal_dropship": {
"properties": { "properties": {
"grp": "mp",
"name": "Federal Dropship", "name": "Federal Dropship",
"manufacturer": "Core Dynamics", "manufacturer": "Core Dynamics",
"class": 2, "class": 2,
"cost": 18969990, "hullCost": 18969990,
"speed": 180, "speed": 180,
"boost": 300, "boost": 300,
"agility": 0, "agility": 2,
"shields": 200, "baseShieldStrength": 200,
"armour": 540, "baseArmour": 540,
"fuelcost": 50, "hullMass": 580,
"mass": 580 "masslock": 14
}, },
"retailCost": 19814205, "retailCost": 19814205,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"fer_de_lance": { "fer_de_lance": {
"properties": { "properties": {
"grp": "co",
"name": "Fer-de-Lance", "name": "Fer-de-Lance",
"manufacturer": "Zorgon Peterson", "manufacturer": "Zorgon Peterson",
"class": 2, "class": 2,
"cost": 51232230, "hullCost": 51232230,
"speed": 260, "speed": 260,
"boost": 350, "boost": 350,
"agility": 6, "agility": 6,
"shields": 300, "baseShieldStrength": 300,
"armour": 405, "baseArmour": 405,
"fuelcost": 50, "hullMass": 250,
"mass": 250 "masslock": 12
}, },
"retailCost": 51567040, "retailCost": 51567040,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"hauler": { "hauler": {
"properties": { "properties": {
"grp": "fr",
"name": "Hauler", "name": "Hauler",
"manufacturer": "Zorgon Peterson", "manufacturer": "Zorgon Peterson",
"class": 1, "class": 1,
"cost": 29807, "hullCost": 29807,
"speed": 200, "speed": 200,
"boost": 300, "boost": 300,
"agility": 6, "agility": 6,
"shields": 50, "baseShieldStrength": 50,
"armour": 90, "baseArmour": 90,
"fuelcost": 50, "hullMass": 14,
"mass": 14 "masslock": 6
}, },
"retailCost": 52720, "retailCost": 52720,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"imperial_clipper": { "imperial_clipper": {
"properties": { "properties": {
"grp": "mp",
"name": "Imperial Clipper", "name": "Imperial Clipper",
"manufacturer": "Gutamaya", "manufacturer": "Gutamaya",
"class": 3, "class": 3,
"cost": 21077784, "hullCost": 21077784,
"speed": 300, "speed": 300,
"boost": 380, "boost": 380,
"agility": 2, "agility": 2,
"shields": 180, "baseShieldStrength": 180,
"armour": 486, "baseArmour": 486,
"fuelcost": 50, "hullMass": 400,
"mass": 400 "masslock": 12
}, },
"retailCost": 22296860, "retailCost": 22296860,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"imperial_courier": { "imperial_courier": {
"properties": { "properties": {
"grp": "mp",
"name": "Imperial Courier", "name": "Imperial Courier",
"manufacturer": "Gutamaya", "manufacturer": "Gutamaya",
"class": 1, "class": 1,
"cost": 2481552, "hullCost": 2481552,
"speed": 277, "speed": 277,
"boost": 380, "boost": 380,
"agility": 6, "agility": 6,
"shields": 197, "baseShieldStrength": 197,
"armour": 144, "baseArmour": 144,
"fuelcost": 50, "hullMass": 35,
"mass": 35 "masslock": 7
}, },
"retailCost": 2542931, "retailCost": 2542931,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"orca": { "orca": {
"properties": { "properties": {
"grp": "pa",
"name": "Orca", "name": "Orca",
"manufacturer": "Saud Kruger", "manufacturer": "Saud Kruger",
"class": 3, "class": 3,
"cost": 47798079, "hullCost": 47798079,
"speed": 300, "speed": 300,
"boost": 380, "boost": 380,
"agility": 2, "agility": 2,
"shields": 220, "baseShieldStrength": 220,
"armour": 396, "baseArmour": 396,
"fuelcost": 50, "hullMass": 580,
"mass": 580 "masslock": 13
}, },
"retailCost": 48539887, "retailCost": 48539887,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"python": { "python": {
"properties": { "properties": {
"grp": "mp",
"name": "Python", "name": "Python",
"manufacturer": "Faulcon DeLacy", "manufacturer": "Faulcon DeLacy",
"class": 2, "class": 2,
"cost": 55171395, "hullCost": 55171395,
"speed": 230, "speed": 230,
"boost": 280, "boost": 280,
"agility": 6, "agility": 6,
"shields": 260, "baseShieldStrength": 260,
"armour": 468, "baseArmour": 468,
"fuelcost": 50, "hullMass": 350,
"mass": 350 "masslock": 17
}, },
"retailCost": 56978179, "retailCost": 56978179,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"sidewinder": { "sidewinder": {
"properties": { "properties": {
"grp": "mp",
"name": "Sidewinder", "name": "Sidewinder",
"manufacturer": "Faulcon DeLacy", "manufacturer": "Faulcon DeLacy",
"class": 1, "class": 1,
"cost": 12887, "hullCost": 12887,
"speed": 220, "speed": 220,
"boost": 320, "boost": 320,
"agility": 8, "agility": 8,
"shields": 40, "baseShieldStrength": 40,
"armour": 108, "baseArmour": 108,
"fuelcost": 50, "hullMass": 25,
"mass": 25 "masslock": 6
}, },
"retailCost": 32000, "retailCost": 32000,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"type_6_transporter": { "type_6_transporter": {
"properties": { "properties": {
"grp": "fr",
"name": "Type-6 Transporter", "name": "Type-6 Transporter",
"manufacturer": "Lakon", "manufacturer": "Lakon",
"class": 2, "class": 2,
"cost": 865782, "hullCost": 865782,
"speed": 220, "speed": 220,
"boost": 350, "boost": 350,
"agility": 3, "agility": 3,
"shields": 90, "baseShieldStrength": 90,
"armour": 162, "baseArmour": 162,
"fuelcost": 50, "hullMass": 155,
"mass": 155 "masslock": 8
}, },
"retailCost": 1045945, "retailCost": 1045945,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"type_7_transport": { "type_7_transport": {
"properties": { "properties": {
"grp": "fr",
"name": "Type-7 Transporter", "name": "Type-7 Transporter",
"manufacturer": "Lakon", "manufacturer": "Lakon",
"class": 3, "class": 3,
"cost": 16881511, "hullCost": 16881511,
"speed": 180, "speed": 180,
"boost": 300, "boost": 300,
"agility": 2, "agility": 2,
"shields": 120, "baseShieldStrength": 120,
"armour": 216, "baseArmour": 216,
"fuelcost": 50, "hullMass": 420,
"mass": 420 "masslock": 10
}, },
"retailCost": 17472252, "retailCost": 17472252,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"type_9_heavy": { "type_9_heavy": {
"properties": { "properties": {
"grp": "fr",
"name": "Type-9 Heavy", "name": "Type-9 Heavy",
"manufacturer": "Lakon", "manufacturer": "Lakon",
"class": 3, "class": 3,
"cost": 73255168, "hullCost": 73255168,
"speed": 130, "speed": 130,
"boost": 200, "boost": 200,
"agility": 0, "agility": 0,
"shields": 240, "baseShieldStrength": 240,
"armour": 432, "baseArmour": 432,
"fuelcost": 50, "hullMass": 1000,
"mass": 1000 "masslock": 16
}, },
"retailCost": 76555842, "retailCost": 76555842,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"viper": { "viper": {
"properties": { "properties": {
"grp": "co",
"name": "Viper", "name": "Viper",
"manufacturer": "Faulcon DeLacy", "manufacturer": "Faulcon DeLacy",
"class": 1, "class": 1,
"cost": 95893, "hullCost": 95893,
"speed": 320, "speed": 320,
"boost": 400, "boost": 400,
"agility": 6, "agility": 6,
"shields": 105, "baseShieldStrength": 105,
"armour": 126, "baseArmour": 126,
"fuelcost": 50, "hullMass": 60,
"mass": 60 "masslock": 7
}, },
"retailCost": 142931, "retailCost": 142931,
"slots": { "slots": {

View File

@@ -1,18 +1,17 @@
{ {
"vulture": { "vulture": {
"properties": { "properties": {
"grp": "co",
"name": "Vulture", "name": "Vulture",
"manufacturer": "Core Dynamics", "manufacturer": "Core Dynamics",
"class": 1, "class": 1,
"cost": 4689629, "hullCost": 4689629,
"speed": 210, "speed": 210,
"boost": 340, "boost": 340,
"agility": 9, "agility": 9,
"shields": 240, "baseShieldStrength": 240,
"armour": 288, "baseArmour": 288,
"fuelcost": 50, "hullMass": 230,
"mass": 230 "masslock": 10
}, },
"retailCost": 4925615, "retailCost": 4925615,
"slots": { "slots": {

View File

@@ -60,7 +60,7 @@ gulp.task('js-lint', function() {
}); });
gulp.task('json-lint', function() { gulp.task('json-lint', function() {
return gulp.src('data/**/*.json') return gulp.src(['data/**/*.json' , 'app/schemas/**/*.json'])
.pipe(jsonlint()) .pipe(jsonlint())
.pipe(jsonlint.reporter()) .pipe(jsonlint.reporter())
.pipe(jsonlint.failAfterError()); .pipe(jsonlint.failAfterError());
@@ -126,7 +126,7 @@ gulp.task('js', function() {
}); });
gulp.task('copy', function() { gulp.task('copy', function() {
return gulp.src(['app/images/**','app/fonts/**','app/db.json'], {base: 'app/'}) return gulp.src(['app/images/**','app/fonts/**','app/db.json', 'app/schemas/**'], {base: 'app/'})
.pipe(gulp.dest('build')); .pipe(gulp.dest('build'));
}); });
@@ -140,7 +140,7 @@ gulp.task('generateIndexHTML', function(done) {
gulp.src('app/index.html') gulp.src('app/index.html')
.pipe(template({ .pipe(template({
version: pkg.version, version: pkg.version,
date : (new Date()).toLocaleDateString(), date : new Date().toISOString().slice(0, 10),
uaTracking: process.env.CORIOLIS_UA_TRACKING || false, uaTracking: process.env.CORIOLIS_UA_TRACKING || false,
svgContent: svgIconsContent, svgContent: svgIconsContent,
gapiKey: process.env.CORIOLIS_GAPI_KEY gapiKey: process.env.CORIOLIS_GAPI_KEY
@@ -192,7 +192,7 @@ gulp.task('serve-stop', function(cb) {
gulp.task('watch', function() { gulp.task('watch', function() {
gulp.watch(['app/index.html','app/icons/*.svg'], ['generateIndexHTML']); gulp.watch(['app/index.html','app/icons/*.svg'], ['generateIndexHTML']);
gulp.watch(['app/images/**','app/fonts/**', 'app/db.json'], ['copy']); gulp.watch(['app/images/**','app/fonts/**', 'app/db.json', 'app/schemas/**'], ['copy']);
gulp.watch('app/less/*.less', ['less']); gulp.watch('app/less/*.less', ['less']);
gulp.watch('app/views/**/*', ['html2js']); gulp.watch('app/views/**/*', ['html2js']);
gulp.watch('app/js/**/*.js', ['js']); gulp.watch('app/js/**/*.js', ['js']);
@@ -201,7 +201,7 @@ gulp.task('watch', function() {
}); });
gulp.task('cache-bust', function(done) { gulp.task('cache-bust', function(done) {
var rev_all = new revAll({ prefix: cdnHostStr, dontRenameFile: ['.html','db.json'] }); var rev_all = new revAll({ prefix: cdnHostStr, dontRenameFile: ['.html','.json'] });
var stream = gulp.src('build/**') var stream = gulp.src('build/**')
.pipe(rev_all.revision()) .pipe(rev_all.revision())
.pipe(gulp.dest('build')) .pipe(gulp.dest('build'))

View File

@@ -1,13 +1,12 @@
{ {
"name": "coriolis_shipyard", "name": "coriolis_shipyard",
"version": "0.14.0", "version": "1.1.0",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/cmmcleod/coriolis" "url": "https://github.com/cmmcleod/coriolis"
}, },
"private": true, "private": true,
"engine": "node >= 0.12.2", "engine": "node >= 0.12.2",
"dependencies": {},
"devDependencies": { "devDependencies": {
"angular-mocks": "1.3.x", "angular-mocks": "1.3.x",
"async": "0.9.x", "async": "0.9.x",
@@ -30,9 +29,12 @@
"gulp-uglify": "1.2.x", "gulp-uglify": "1.2.x",
"gulp-util": "3.0.x", "gulp-util": "3.0.x",
"jasmine-core": "2.3.x", "jasmine-core": "2.3.x",
"jsen": "^0.6.0",
"json-concat": "0.0.x", "json-concat": "0.0.x",
"karma": "0.12.x", "karma": "0.12.x",
"karma-fixture": "^0.2.5",
"karma-jasmine": "0.3.x", "karma-jasmine": "0.3.x",
"karma-json-fixtures-preprocessor": "0.0.4",
"karma-mocha-reporter": "1.0.x", "karma-mocha-reporter": "1.0.x",
"karma-phantomjs-launcher": "0.2.x", "karma-phantomjs-launcher": "0.2.x",
"main-bower-files": "2.8.x", "main-bower-files": "2.8.x",

View File

@@ -42,11 +42,11 @@ function writeDB(err, arr) {
"Torpedo Pylons", "Torpedo Pylons",
"Mine Launchers", "Mine Launchers",
"Mining Lasers", "Mining Lasers",
"Shield Boosters", "Cargo Scanners",
"Countermeasures", "Countermeasures",
"Kill Warrant Scanners",
"Frame Shift Wake Scanners", "Frame Shift Wake Scanners",
"Cargo Scanners" "Kill Warrant Scanners",
"Shield Boosters"
]; ];
for (var i = 0; i < internalOrder.length; i++) { for (var i = 0; i < internalOrder.length; i++) {

View File

@@ -1,23 +1,25 @@
// Karma configuration
// Generated on Thu Jun 11 2015 19:39:40 GMT-0700 (PDT)
module.exports = function(config) { module.exports = function(config) {
config.set({ config.set({
basePath: '', basePath: '',
// frameworks to use frameworks: ['jasmine', 'fixture'],
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter preprocessors: {
frameworks: ['jasmine'], '../build/schemas/**/*.json': ['json_fixtures']
// list of files / patterns to load in the browser },
files: [ files: [
'../build/lib*.js', '../build/lib*.js',
'../node_modules/angular-mocks/angular-mocks.js', '../node_modules/angular-mocks/angular-mocks.js',
'../node_modules/jsen/dist/jsen.js',
'../build/app*.js', '../build/app*.js',
'tests/**/*.js' '../build/schemas/**/*.json',
'tests/**/*.js',
], ],
jsonFixturesPreprocessor: {
stripPrefix: '.*build',
variableName: '__json__'
},
reporters: ['mocha'], reporters: ['mocha'],
port: 9876, port: 9876,
colors: true, colors: true,
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO, logLevel: config.LOG_INFO,
autoWatch: false, autoWatch: false,
browsers: ['PhantomJS'], browsers: ['PhantomJS'],

View File

@@ -0,0 +1,50 @@
describe("Outfit Controller", function() {
beforeEach(module('app'));
var outfitController, scope;
var eventStub = {
preventDefault: function(){ },
stopPropagation: function(){ }
};
beforeEach(inject(function(_$rootScope_, $controller) {
$rootScope = _$rootScope_;
$rootScope.discounts = { ship: 1, components: 1};
$stateParams = { shipId: 'anaconda'};
scope = $rootScope.$new();
outfitController = $controller('OutfitController', { $rootScope: $rootScope, $scope: scope, $stateParams: $stateParams });
}));
describe("Retrofitting Costs", function() {
it("are empty by default", function() {
expect(scope.retrofitTotal).toEqual(0);
expect(scope.retrofitList.length).toEqual(0);
});
it("updates on bulkheads change", function() {
scope.select('b', scope.ship.bulkheads, eventStub, "1"); // Use Reinforced Alloy Bulkheads
expect(scope.retrofitTotal).toEqual(58787780);
expect(scope.retrofitList.length).toEqual(1);
scope.select('b', scope.ship.bulkheads, eventStub, "0"); // Use Reinforced Alloy Bulkheads
expect(scope.retrofitTotal).toEqual(0);
expect(scope.retrofitList.length).toEqual(0);
});
it("updates on component change", function() {
scope.select('h', scope.ship.hardpoints[0], eventStub, "0u"); // 3C/F Beam Laser
expect(scope.retrofitTotal).toEqual(1177600);
expect(scope.retrofitList.length).toEqual(1);
scope.select('h', scope.ship.hardpoints[6], eventStub, "empty"); // Remove default pulse laser
scope.select('h', scope.ship.hardpoints[7], eventStub, "empty"); // Remove default pulse laser
expect(scope.retrofitTotal).toEqual(1173200);
expect(scope.retrofitList.length).toEqual(3);
scope.select('i', scope.ship.internal[3], eventStub, "11"); // Use 6A Auto field maintenance unit
expect(scope.retrofitTotal).toEqual(16478701);
expect(scope.retrofitList.length).toEqual(4);
});
});
});

View File

@@ -1,8 +1,8 @@
describe("Database", function() { describe('Database', function() {
var shipProperties = ["grp", "name", "manufacturer", "class", "cost", "speed", "boost", "agility", "shields", "armour", "fuelcost", "mass"]; var shipProperties = ['name', 'manufacturer', 'class', 'hullCost', 'speed', 'boost', 'agility', 'baseShieldStrength', 'baseArmour', 'hullMass', 'masslock'];
it("has ships and components", function() { it('has ships and components', function() {
expect(DB.ships).toBeDefined() expect(DB.ships).toBeDefined()
expect(DB.components.common).toBeDefined(); expect(DB.components.common).toBeDefined();
expect(DB.components.hardpoints).toBeDefined(); expect(DB.components.hardpoints).toBeDefined();
@@ -10,7 +10,7 @@ describe("Database", function() {
expect(DB.components.bulkheads).toBeDefined(); expect(DB.components.bulkheads).toBeDefined();
}); });
it("has unique IDs for every hardpoint", function() { it('has unique IDs for every hardpoint', function() {
var ids = {}; var ids = {};
var groups = DB.components.hardpoints; var groups = DB.components.hardpoints;
@@ -25,7 +25,7 @@ describe("Database", function() {
} }
}); });
it("has valid internal components", function() { it('has valid internal components', function() {
var ids = {}; var ids = {};
var groups = DB.components.internal; var groups = DB.components.internal;
@@ -40,7 +40,7 @@ describe("Database", function() {
} }
}); });
it("has data for every ship", function() { it('has data for every ship', function() {
for (var s in DB.ships) { for (var s in DB.ships) {
for (var p = 0; p < shipProperties.length; p++) { for (var p = 0; p < shipProperties.length; p++) {
expect(DB.ships[s].properties[shipProperties[p]]).toBeDefined(shipProperties[p] + ' is missing for ' + s); expect(DB.ships[s].properties[shipProperties[p]]).toBeDefined(shipProperties[p] + ' is missing for ' + s);
@@ -49,12 +49,12 @@ describe("Database", function() {
expect(DB.ships[s].defaults.common.length).toEqual(7, s + ' is missing common defaults'); expect(DB.ships[s].defaults.common.length).toEqual(7, s + ' is missing common defaults');
expect(DB.ships[s].slots.hardpoints.length).toEqual(DB.ships[s].defaults.hardpoints.length, s + ' hardpoint slots and defaults dont match'); expect(DB.ships[s].slots.hardpoints.length).toEqual(DB.ships[s].defaults.hardpoints.length, s + ' hardpoint slots and defaults dont match');
expect(DB.ships[s].slots.internal.length).toEqual(DB.ships[s].defaults.internal.length, s + ' hardpoint slots and defaults dont match'); expect(DB.ships[s].slots.internal.length).toEqual(DB.ships[s].defaults.internal.length, s + ' hardpoint slots and defaults dont match');
expect(DB.ships[s].retailCost).toBeGreaterThan(DB.ships[s].properties.cost, s + ' has invalid retail cost'); expect(DB.ships[s].retailCost).toBeGreaterThan(DB.ships[s].properties.hullCost, s + ' has invalid retail cost');
expect(DB.components.bulkheads[s]).toBeDefined(s + ' is missing bulkheads'); expect(DB.components.bulkheads[s]).toBeDefined(s + ' is missing bulkheads');
} }
}); });
it("has components with a group defined", function() { it('has components with a group defined', function() {
for (var i = 0; i < DB.components.common.length; i++) { for (var i = 0; i < DB.components.common.length; i++) {
var group = DB.components.common[i]; var group = DB.components.common[i];
for (var c in group) { for (var c in group) {

View File

@@ -29,7 +29,7 @@ describe("Ship Factory", function() {
expect(ship.unladenTotalRange).toBeGreaterThan(0, s + ' unladenTotalRange'); expect(ship.unladenTotalRange).toBeGreaterThan(0, s + ' unladenTotalRange');
expect(ship.ladenTotalRange).toBeGreaterThan(0, s + ' ladenTotalRange'); expect(ship.ladenTotalRange).toBeGreaterThan(0, s + ' ladenTotalRange');
expect(ship.shieldStrength).toBeGreaterThan(0, s + ' shieldStrength'); expect(ship.shieldStrength).toBeGreaterThan(0, s + ' shieldStrength');
expect(ship.armourTotal).toBeGreaterThan(0, s + ' armourTotal'); expect(ship.armour).toBeGreaterThan(0, s + ' armour');
} }
}); });
@@ -74,7 +74,7 @@ describe("Ship Factory", function() {
var testShip = new Ship(id, cobra.properties, cobra.slots); var testShip = new Ship(id, cobra.properties, cobra.slots);
testShip.buildWith(cobra.defaults); testShip.buildWith(cobra.defaults);
var originalHullCost = testShip.cost; var originalHullCost = testShip.hullCost;
var originalTotalCost = testShip.totalCost; var originalTotalCost = testShip.totalCost;
var discount = 0.9; var discount = 0.9;

View File

@@ -0,0 +1,41 @@
describe("Serializer Service", function() {
beforeEach(module('app'));
var Ship, Serializer;
beforeEach(inject(function (_Ship_, _Serializer_) {
Ship = _Ship_;
Serializer = _Serializer_;
}));
describe("Detailed Export", function() {
var code = '48A6A6A5A8A8A5C2c0o0o0o1m1m0q0q0404-0l0b0100034k5n052d04--0303326b.AwRj4yo5dig=.MwBhEYy6duwEziA',
url = 'http://a.test.url.com',
anaconda = DB.ships['anaconda'],
testBuild,
exportData;
beforeEach(function() {
testBuild = new Ship('anaconda', anaconda.properties, anaconda.slots);
Serializer.toShip(testBuild, code);
exportData = Serializer.toJsonBuild('Test Build', testBuild, url, code);
});
it("conforms to the ship-loadout schema", function() {
var shipLoadoutSchema = __json__['/schemas/ship-loadout/1-draft'];
var validate = jsen(shipLoadoutSchema);
var valid = validate(exportData);
expect(valid).toBeTruthy();
});
xit("contains the correct components", function() {
// TODO: implement
});
xit("contains the correct stats", function() {
// TODO: implement
});
});
});