Custom comparisons, performance improvements

This commit is contained in:
Colin McLeod
2015-05-20 00:29:24 -07:00
parent 02fe76f43b
commit 6c1e3a7410
146 changed files with 1096 additions and 1062 deletions

View File

@@ -79,67 +79,67 @@ angular.module('shipyard', ['ngLodash'])
* @type {Array}
*/
.value('ShipFacets', [
{
{ // 0
title: 'Agility',
prop: 'agility',
props: ['agility'],
unit: '',
fmt: 'fCrd'
},
{
{ // 1
title: 'Speed',
props: ['speed', 'boost'],
lbls: ['Thrusters', 'Boost'],
unit: 'M/s',
fmt: 'fRound'
},
{
{ // 2
title: 'Armour',
prop: 'armour',
props: ['armour'],
unit: '',
fmt: 'fCrd'
},
{
{ // 3
title: 'Shields',
prop: 'shieldStrength',
props: ['shieldStrength'],
unit: 'Mj',
fmt: 'fRound'
},
{
{ // 4
title: 'Jump Range',
props: ['unladenJumpRange', 'ladenJumpRange'],
lbls: ['Unladen', 'Laden'],
unit: 'LY',
fmt: 'fRound'
},
{
{ // 5
title: 'Mass',
props: ['unladenMass', 'ladenMass'],
lbls: ['Unladen', 'Laden'],
unit: 'T',
fmt: 'fRound'
},
{
{ // 6
title: 'Cargo',
prop: 'cargoCapacity',
props: ['cargoCapacity'],
unit: 'T',
fmt: 'fRound'
},
{
{ // 7
title: 'Fuel',
prop: 'fuelCapacity',
props: ['fuelCapacity'],
unit: 'T',
fmt: 'fRound'
},
{
{ // 8
title: 'Power',
props: ['powerRetracted','powerDeployed','powerAvailable'],
lbls: ['Retracted', 'Deployed', 'Available'],
unit: 'MW',
fmt: 'fPwr'
},
{
{ // 9
title: 'Cost',
prop: 'totalCost',
props: ['totalCost'],
unit: 'CR',
fmt: 'fCrd'
}