From a364cb0fc7622e7eff9453152508e69ae35898ff Mon Sep 17 00:00:00 2001 From: hppeng Date: Wed, 20 Jul 2022 11:59:29 -0700 Subject: [PATCH] HOTFIX: patch attack speed display introduced by stat box merge... manual test failure... TODO: unit test framework --- js/display.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/display.js b/js/display.js index 83af057..ff5124f 100644 --- a/js/display.js +++ b/js/display.js @@ -1466,15 +1466,16 @@ function displaySpellDamage(parent_elem, overallparent_elem, stats, spell, spell if (spell_info.name === spell.display) { if (spellIdx === 0) { - let attackSpeeds = ["Super Slow", "Very Slow", "Slow", "Normal", "Fast", "Very Fast", "Super Fast"]; + let display_attack_speeds = ["Super Slow", "Very Slow", "Slow", "Normal", "Fast", "Very Fast", "Super Fast"]; let adjAtkSpd = attackSpeeds.indexOf(stats.get("atkSpd")) + stats.get("atkTier"); + console.log(stats); if(adjAtkSpd > 6) { adjAtkSpd = 6; } else if(adjAtkSpd < 0) { adjAtkSpd = 0; } add_summary("Average DPS: ", averageDamage * baseDamageMultiplier[adjAtkSpd], "Damage"); - add_summary("Attack Speed: ", attackSpeeds[adjAtkSpd], "Damage"); + add_summary("Attack Speed: ", display_attack_speeds[adjAtkSpd], "Damage"); add_summary("Per Attack: ", averageDamage, "Damage"); } else {