diff --git a/apps/character.js b/apps/character.js index 918efffc..ef2d8614 100644 --- a/apps/character.js +++ b/apps/character.js @@ -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; diff --git a/components/Calc.js b/components/Calc.js index 777cd6ee..3e2a5906 100644 --- a/components/Calc.js +++ b/components/Calc.js @@ -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; };