Skip to content

Commit

Permalink
Update calc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rowandwhelan authored Sep 23, 2024
1 parent fea5e27 commit f9a18e0
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 @@ -218,7 +218,7 @@ function calculateSpace() {
function calculateTotalShieldCapacity() {
document.getElementById("totalHealth").value = 5000 + totalTanks * 1000;
if (document.getElementById("batterySwap").checked && (batteryNumber > 1) && (totalGens > 0)) {
document.getElementById("totalHealth").value = 5000 + totalTanks * 1000 / 2;
document.getElementById("totalHealth").value = 5000 + totalTanks * 1000 / batteryNumber;
}
}

Expand Down

0 comments on commit f9a18e0

Please sign in to comment.