Skip to content

Commit

Permalink
Update calc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rowandwhelan authored Jul 31, 2024
1 parent 9bc7c84 commit 4223190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/calc.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function calculateSpeed() {
if (Math.floor((0.4 * (((thrusterCount-1) / 4) * 2000 + 2000)) / ((trueShipX * trueShipY) ** 0.5 * 2)) > 60) {
document.getElementById("label-for-thrusterCount").innerText = "Total number of thrusters [above speed limit]:";
document.getElementById("thrusterCount").style.borderColor = 'red';
} else if (Math.floor((0.4 * ((thrusterCount / 4) * 2000 + 2000)) / ((trueShipX * trueShipY) ** 0.5 * 2)) < 60) {
} else if (Math.floor((0.4 * ((thrusterCount+1 / 4) * 2000 + 2000)) / ((trueShipX * trueShipY) ** 0.5 * 2)) < 60) {
document.getElementById("label-for-thrusterCount").innerText = "Total number of thrusters [below speed limit]:";
document.getElementById("thrusterCount").style.borderColor = 'red';
} else {
Expand Down

0 comments on commit 4223190

Please sign in to comment.