added an explanation and removed unnecessary code

This commit is contained in:
Frederik Palmø 2022-03-21 15:41:50 +01:00
parent 3d7ddeb87a
commit e1c75eccf9
3 changed files with 19 additions and 5 deletions

View File

@ -241,6 +241,23 @@
</article> </article>
</div> </div>
<h3>Explanation & Usage</h3>
<p>The columns in the second box represent, in order:</p>
<ol>
<li>
The total level and stats of the optimal class.
</li>
<li>
Desired stats (input what you want here)
</li>
<li>
Calculated stats as they should be in your level-up menu in-game.
</li>
<li>
Calculated final statistics as shown on the "Stats" screen in-game.
</li>
</ol>
<h3>Softcaps</h3> <h3>Softcaps</h3>
<table> <table>
<thead> <thead>

View File

@ -83,12 +83,10 @@ async function update() {
document.getElementsByName("subtractive-stat").forEach((elem, i) => { document.getElementsByName("subtractive-stat").forEach((elem, i) => {
elem.value = ((desired[i] > best.stats[i] ? desired[i] : best.stats[i])); elem.value = ((desired[i] > best.stats[i] ? desired[i] : best.stats[i]));
elem.value > desired[i] && elem.value > best.stats[i] ? (elem.style.color = "tomato", elem.style.fontWeight = "bold") : (elem.style.color = "unset", elem.style.fontWeight = "unset");
}); });
document.getElementsByName("additive-stat").forEach((elem, i) => { document.getElementsByName("additive-stat").forEach((elem, i) => {
elem.value = ((desired[i] > best.stats[i] ? desired[i] : best.stats[i]) + items[i]); elem.value = ((desired[i] > best.stats[i] ? desired[i] : best.stats[i]) + items[i]);
elem.value < desired[i] || elem.value < best.stats[i] ? (elem.style.color = "deepskyblue", elem.style.fontWeight = "bold") : (elem.style.color = "unset", elem.style.fontWeight = "unset");
}); });
// update talismans // update talismans
@ -156,4 +154,3 @@ function cloneTemplate(template, destination, item) {
destination.appendChild(clone); destination.appendChild(clone);
} }

View File

@ -141,7 +141,7 @@ h6 {
p { p {
margin-top: 0rem; margin-top: 0rem;
margin-bottom: 2rem; margin-bottom: 1rem;
} }
/* links */ /* links */