Calculate speed based on Thrusters. Closes #16

This commit is contained in:
Colin McLeod
2015-09-17 00:59:09 -07:00
parent fc2f76c31c
commit 726a08b05b
7 changed files with 45 additions and 22 deletions

View File

@@ -187,7 +187,7 @@
"class": 3,
"hullCost": 141889932,
"speed": 180,
"boost": 240,
"boost": 244,
"boostEnergy": 29,
"agility": 2,
"baseShieldStrength": 350,

View File

@@ -253,13 +253,15 @@
"class": 3,
"hullCost": 141889932,
"speed": 180,
"boost": 240,
"topSpeed": 186.5,
"boost": 244,
"boostEnergy": 29,
"agility": 2,
"baseShieldStrength": 350,
"baseArmour": 945,
"hullMass": 400,
"masslock": 23,
"pipSpeed": 0.14,
"shipCostMultiplier": 1,
"componentCostMultiplier": 1,
"fuelCapacity": 32,

View File

@@ -1,6 +1,20 @@
describe('Database', function() {
var shipProperties = ['name', 'manufacturer', 'class', 'hullCost', 'speed', 'boost', 'agility', 'baseShieldStrength', 'baseArmour', 'hullMass', 'masslock'];
var shipProperties = [
'name',
'manufacturer',
'class',
'hullCost',
'speed',
'boost',
'boostEnergy',
'agility',
'baseShieldStrength',
'baseArmour',
'hullMass',
'masslock',
'pipSpeed'
];
it('has ships and components', function() {
expect(DB.ships).toBeDefined()