Fix syntax
This commit is contained in:
parent
0dabe9b1fa
commit
0451a4a8ea
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ function displaySpellDamage(parent_elem, build, spell, spellIdx) {
|
||||||
else if (part.type === "total") {
|
else if (part.type === "total") {
|
||||||
let total_damage = 0;
|
let total_damage = 0;
|
||||||
for (let i in part.factors) {
|
for (let i in part.factors) {
|
||||||
total_damage += save_damages[i] * factors[i];
|
total_damage += save_damages[i] * part.factors[i];
|
||||||
}
|
}
|
||||||
let averageLabel = document.createElement("p");
|
let averageLabel = document.createElement("p");
|
||||||
averageLabel.textContent = "Average: "+Math.round(total_damage);
|
averageLabel.textContent = "Average: "+Math.round(total_damage);
|
||||||
|
|
Loading…
Reference in a new issue