Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.

Commit 1729636

Browse files
committed
Make boost speed 0 when unable to boost
1 parent 92809d1 commit 1729636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shipyard/Ship.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ export default class Ship {
739739
updateTopSpeed() {
740740
let speeds = Calc.speed(this.unladenMass + this.fuelCapacity, this.speed, this.boost, this.standard[1].m, this.pipSpeed);
741741
this.topSpeed = speeds['4 Pips'];
742-
this.topBoost = speeds.boost;
742+
this.topBoost = this.canBoost() ? speeds.boost : 0;
743743
return this;
744744
}
745745

0 commit comments

Comments
 (0)