Skip to content

Commit

Permalink
Update calc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Asakoto authored Jun 6, 2024
1 parent b1bdad3 commit 3cd9be9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/calc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1191,11 +1191,15 @@ function initMusic() {
checkParamOptions();
}).prop("checked", window.localStorage.getItem("details") == "true").trigger("change");

bindController($("#is_cross_scout")[0], "0");
bindController($("#star_3")[0], "2");
bindController($("#star_4")[0], "1");
bindController($("#star_5")[0], "1");

bindController($("#is_cross_scout")[0], "0", function() {
$("#bonus, #bonus_4, #bonus_e").attr("max", maxBonus(false) * [1, 2][+$("#is_cross_scout")[0].value]);
$("#bonus, #bonus_4, #bonus_e").each(function() {
if (this.value > this.max) this.setValue(this.max);
});
});

for (let i of controlKeys) {
if (savedValues[i])
Expand Down

0 comments on commit 3cd9be9

Please sign in to comment.