From 8381f0bfce0949149f755f3f98a94cdd18aec8bd Mon Sep 17 00:00:00 2001 From: ferricles Date: Fri, 27 May 2022 13:56:27 -0700 Subject: [PATCH] CR weapon powder hotfix --- js/sq2display.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/sq2display.js b/js/sq2display.js index d825b84..eef0ab9 100644 --- a/js/sq2display.js +++ b/js/sq2display.js @@ -563,6 +563,11 @@ function displaysq2WeaponStats(build) { stats.set("atkSpd", item.get("atkSpd")); stats.set("damageBonus", [0, 0, 0, 0, 0]); stats.set("damageRaw", [item.get("nDam"), item.get("eDam"), item.get("tDam"), item.get("wDam"), item.get("fDam"), item.get("aDam")]); + + //needed for damage calc CR powders + if (build.weapon.get("tier") === "Crafted") { + stats.set("damageBases", [item.get("nDamBaseHigh"), item.get("eDamBaseHigh"), item.get("tDamBaseHigh"), item.get("wDamBaseHigh"), item.get("fDamBaseHigh"), item.get("aDamBaseHigh")]); + } let results = calculateSpellDamage(stats, [100, 0, 0, 0, 0, 0], 0, 0, 0, build.weapon, [0, 0, 0, 0, 0], 1, undefined); let powdered_base = results[2];