mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
#角色详情 伤害展示暂时隐藏小数
This commit is contained in:
parent
1a4a45fc7c
commit
edd7dad1d2
@ -585,6 +585,9 @@ export async function renderProfile(e, char, render) {
|
||||
let avatar = await getAvatar(e, char, MysApi);
|
||||
let talent = await getTalent(e, avatar);
|
||||
|
||||
if(!talent.id){
|
||||
return true;
|
||||
}
|
||||
|
||||
let posIdx = {
|
||||
"生之花": {
|
||||
@ -636,8 +639,8 @@ export async function renderProfile(e, char, render) {
|
||||
let dmgCalc = await Calc.calcData(profile, char, avatar, talent);
|
||||
if (dmgCalc && dmgCalc.ret) {
|
||||
lodash.forEach(dmgCalc.ret, (ds) => {
|
||||
ds.dmg = Format.comma(ds.dmg, 1);
|
||||
ds.avg = Format.comma(ds.avg, 1);
|
||||
ds.dmg = Format.comma(ds.dmg, 0);
|
||||
ds.avg = Format.comma(ds.avg, 0);
|
||||
dmgData.push(ds);
|
||||
})
|
||||
dmgMsg = dmgCalc.msg;
|
||||
|
@ -321,7 +321,7 @@ let Calc = {
|
||||
avg: atkNum * pctNum * dmgNum * (1 + cpctNum * cdmgNum) * defNum * kNum
|
||||
}
|
||||
|
||||
console.log(attr, {atkNum, pctNum, dmgNum, cpctNum, cdmgNum, defNum}, ret)
|
||||
//console.log(attr, {atkNum, pctNum, dmgNum, cpctNum, cdmgNum, defNum}, ret)
|
||||
|
||||
return ret;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user