fix: 计算

This commit is contained in:
bietiaop 2024-07-28 23:56:23 +08:00
parent 2c02be9e68
commit cc9a0a1271
2 changed files with 4 additions and 3 deletions

View file

@ -400,14 +400,14 @@ export class ZZZAvatarInfo {
return damagelist;
}
/** @type {number|boolean} */
/** @type {string|boolean} */
get equip_score() {
if (hasScoreData(this.id)) {
let score = 0;
for (const equip of this.equip) {
score += equip.score;
}
return score;
return score.toFixed(2);
}
return false;
}