From 4b79fe719fe59d305ae8f32b3a61c405ca748712 Mon Sep 17 00:00:00 2001 From: b Date: Thu, 25 Mar 2021 00:18:33 -0700 Subject: [PATCH 1/2] Fix shaman melee damage --- build.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.js b/build.js index 27e3532..1a66c24 100644 --- a/build.js +++ b/build.js @@ -411,8 +411,13 @@ class Build{ adjAtkSpd = 0; } - // 0 for melee damage. - let results = calculateSpellDamage(stats, [100, 0, 0, 0, 0, 0], stats.get("mdRaw"), stats.get("mdPct") + this.externalStats.get("mdPct"), 0, this.weapon, this.total_skillpoints, this.damageMultiplier, this.externalStats); + let damage_mult = 1; + if (this.weapon.get("type") === "relik") { + console.log("ASDFASDFASDFA"); + damage_mult = 0.99; // CURSE YOU WYNNCRAFT + } + // 0spellmult for melee damage. + let results = calculateSpellDamage(stats, [100, 0, 0, 0, 0, 0], stats.get("mdRaw"), stats.get("mdPct") + this.externalStats.get("mdPct"), 0, this.weapon, this.total_skillpoints, damage_mult * this.damageMultiplier, this.externalStats); let dex = this.total_skillpoints[1]; From 700e51fbbcaa9a952620c550c9f33b7e94b4fcac Mon Sep 17 00:00:00 2001 From: b Date: Thu, 25 Mar 2021 01:38:52 -0700 Subject: [PATCH 2/2] Fix ELS --- display.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/display.js b/display.js index 1cdffd7..3c9eee0 100644 --- a/display.js +++ b/display.js @@ -402,7 +402,7 @@ function displayBuildStats(parent_id,build){ title.textContent = "Effective Life Steal:" let value = document.createElement("td"); let defStats = build.getDefenseStats(); - value.textContent = Math.round(defStats[1][0]*id_val/defStats[0]) + "/4s"; + value.textContent = Math.round(defStats[1][0]*id_val/defStats[0]) + "/3s"; value.classList.add("right"); value.classList.add(style); row.appendChild(title); @@ -2267,4 +2267,4 @@ function displayIDProbabilities(parent_id,item) { let item_name = item.get("displayName"); console.log(itemMap.get(item_name)) -} \ No newline at end of file +}