diff --git a/builder.js b/builder.js index 8c1d9d0..79540ff 100644 --- a/builder.js +++ b/builder.js @@ -2,7 +2,7 @@ const url_tag = location.hash.slice(1); console.log(url_base); console.log(url_tag); -const BUILD_VERSION = "6.9.36"; +const BUILD_VERSION = "6.9.37"; function setTitle() { let text; @@ -819,7 +819,7 @@ function calculateBuildStats() { } for (const [setName, count] of player_build.activeSetCounts) { const bonus = sets[setName].bonuses[count-1]; - console.log(setName); + // console.log(setName); if (bonus["illegal"]) { let setWarning = document.createElement("p"); setWarning.classList.add("itemp"); diff --git a/damage_calc.js b/damage_calc.js index b0f2fc1..f7541ca 100644 --- a/damage_calc.js +++ b/damage_calc.js @@ -6,9 +6,9 @@ function calculateSpellDamage(stats, spellConversions, rawModifier, pctModifier, let buildStats = new Map(stats); if(externalStats) { //if nothing is passed in, then this hopefully won't trigger - for (let i = 0; i < externalStats.length; i++) { - const key = externalStats[i][0]; - const value = externalStats[i][1]; + for (const entry of externalStats) { + const key = entry[0]; + const value = entry[1]; if (typeof value === "number") { buildStats.set(key, buildStats.get(key) + value); } else if (Array.isArray(value)) { diff --git a/display.js b/display.js index f96f1b2..734ed82 100644 --- a/display.js +++ b/display.js @@ -741,7 +741,7 @@ function displayExpandedItem(item, parent_id){ effects = powderSpecial["armorSpecialEffects"]; specialTitle.textContent += powderSpecial["armorSpecialName"] + ": "; } - console.log(effects); + // console.log(effects); for (const [key,value] of effects.entries()) { if (key !== "Description") { let effect = document.createElement("p");