From 2a323fde30cf837c441f3d648bff92c0ae2ba8de Mon Sep 17 00:00:00 2001 From: ferricles Date: Sat, 27 Mar 2021 15:10:41 -0700 Subject: [PATCH] dummy commit --- damage_calc.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/damage_calc.js b/damage_calc.js index 340e4a0..06d0b60 100644 --- a/damage_calc.js +++ b/damage_calc.js @@ -36,6 +36,8 @@ function calculateSpellDamage(stats, spellConversions, rawModifier, pctModifier, let neutralBase = damages[0].slice(); let neutralRemainingRaw = damages[0].slice(); + + //Powder application for Crafted weapons - this implementation is RIGHT YEAAAAAAAAA //1st round - apply each as ingred, 2nd round - apply as normal if (weapon.get("tier") === "Crafted") { @@ -54,7 +56,7 @@ function calculateSpellDamage(stats, spellConversions, rawModifier, pctModifier, neutralRemainingRaw = damages[0].slice(); neutralBase = damages[0].slice(); } - + for (let i = 0; i < 5; ++i) { let conversionRatio = spellConversions[i+1]/100; let min_diff = Math.min(neutralRemainingRaw[0], conversionRatio * neutralBase[0]); @@ -82,6 +84,9 @@ function calculateSpellDamage(stats, spellConversions, rawModifier, pctModifier, damages[element+1][0] += powder.min; damages[element+1][1] += powder.max; } + + + tooltipinfo.set("damagebase",[neutralRemainingRaw,damages[1],damages[2],damages[3],damages[4],damages[5]]); console.log(tooltipinfo);