Make boost speed 0 when unable to boost

This commit is contained in:
Colin McLeod
2016-04-04 12:30:18 -07:00
parent 92809d1d24
commit 1729636657

View File

@@ -739,7 +739,7 @@ export default class Ship {
updateTopSpeed() {
let speeds = Calc.speed(this.unladenMass + this.fuelCapacity, this.speed, this.boost, this.standard[1].m, this.pipSpeed);
this.topSpeed = speeds['4 Pips'];
this.topBoost = speeds.boost;
this.topBoost = this.canBoost() ? speeds.boost : 0;
return this;
}