mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix: 计算
This commit is contained in:
parent
4604f888af
commit
39b84180bf
4 changed files with 22 additions and 11 deletions
|
|
@ -400,14 +400,14 @@ export class ZZZAvatarInfo {
|
|||
return damagelist;
|
||||
}
|
||||
|
||||
/** @type {string|boolean} */
|
||||
/** @type {number|boolean} */
|
||||
get equip_score() {
|
||||
if (hasScoreData(this.id)) {
|
||||
let score = 0;
|
||||
for (const equip of this.equip) {
|
||||
score += equip.score;
|
||||
}
|
||||
return score.toFixed(2);
|
||||
return score;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue