#角色面板 伤害计算的武器&命座&天赋的数据源切换为MysAPI

This commit is contained in:
Kokomi 2022-04-24 05:57:24 +08:00
parent ef4f899f6e
commit 27f3ea4eed

View File

@ -84,7 +84,7 @@ let Calc = {
ret.weaponType = avatar.weapon.type_name; ret.weaponType = avatar.weapon.type_name;
ret.element = avatar.element; ret.element = avatar.element;
ret.refine = (profile.weapon.refine * 1 - 1) || 0; ret.refine = (avatar.weapon.affix_level * 1 - 1) || 0;
return ret; return ret;
@ -257,7 +257,7 @@ let Calc = {
let originalAttr = Calc.attr(profile, avatar); let originalAttr = Calc.attr(profile, avatar);
let weaponBuffs = await Calc.weapon(profile.weapon.name); let weaponBuffs = await Calc.weapon(avatar.weapon.name);
let reliBuffs = await Calc.reliquaries(avatar.reliquaries); let reliBuffs = await Calc.reliquaries(avatar.reliquaries);
buffs = lodash.concat(buffs, weaponBuffs, reliBuffs); buffs = lodash.concat(buffs, weaponBuffs, reliBuffs);