readded optimize str/dex button
This commit is contained in:
parent
11bd4844dc
commit
94256cd94a
2 changed files with 7 additions and 1 deletions
|
@ -398,6 +398,9 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 text-center gx-2">
|
||||
<button class = "button fw-bold text-light dark-5 rounded scaled-font" id = "optimize-strdex" onclick = "optimizeStrDex()">Optimize Str/Dex</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col text-center">
|
||||
|
|
|
@ -735,7 +735,7 @@ function resetArmorPowderSpecials() {
|
|||
document.getElementById(skp + "_boost_armor").value = 0;
|
||||
document.getElementById(skp + "_boost_armor_prev").value = 0;
|
||||
document.getElementById(skp + "_boost_armor").style.background = `linear-gradient(to right, #AAAAAA, #AAAAAA 0%, #AAAAAA 100%)`;
|
||||
document.getElementById(skp + "_boost_armor_label").textContent = `% ${capitalizeFirst(elem_names[skpnames.indexOf(skp)])} Damage Boost: 0`
|
||||
document.getElementById(skp + "_boost_armor_label").textContent = `% ${capitalizeFirst(elem_names[skp_names.indexOf(skp)])} Damage Boost: 0`
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -982,6 +982,9 @@ function toggleButton(button_id) {
|
|||
}
|
||||
|
||||
function optimizeStrDex() {
|
||||
if (!player_build) {
|
||||
return;
|
||||
}
|
||||
const remaining = levelToSkillPoints(player_build.level) - player_build.assigned_skillpoints;
|
||||
const base_skillpoints = player_build.base_skillpoints;
|
||||
const max_str_boost = 100 - base_skillpoints[0];
|
||||
|
|
Loading…
Reference in a new issue