mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
#角色面板 伤害计算的武器&命座&天赋的数据源切换为MysAPI
This commit is contained in:
parent
ef4f899f6e
commit
27f3ea4eed
@ -84,7 +84,7 @@ let Calc = {
|
||||
|
||||
ret.weaponType = avatar.weapon.type_name;
|
||||
ret.element = avatar.element;
|
||||
ret.refine = (profile.weapon.refine * 1 - 1) || 0;
|
||||
ret.refine = (avatar.weapon.affix_level * 1 - 1) || 0;
|
||||
|
||||
return ret;
|
||||
|
||||
@ -257,7 +257,7 @@ let Calc = {
|
||||
|
||||
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);
|
||||
buffs = lodash.concat(buffs, weaponBuffs, reliBuffs);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user