CR weapon powder hotfix

This commit is contained in:
ferricles 2022-05-27 13:56:27 -07:00
parent be69c687b4
commit 8381f0bfce

View file

@ -564,6 +564,11 @@ function displaysq2WeaponStats(build) {
stats.set("damageBonus", [0, 0, 0, 0, 0]); 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")]); 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 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]; let powdered_base = results[2];