feat: 添加练度的计算公式

This commit is contained in:
bietiaop 2024-07-31 17:11:30 +08:00
parent 2c745c256e
commit 8a420e8fe1
3 changed files with 51 additions and 2 deletions

View file

@ -438,6 +438,29 @@ export class ZZZAvatarInfo {
return false;
}
/** @type {number} 练度分数 */
get proficiency_score() {
let score = 0;
if (this.rarity === 'S') {
score += 30;
} else {
score += 10;
}
if (this.equip_score !== false) {
score += this.equip_score * 3;
}
for (const skill of this.skills) {
score += skill.level * 5;
}
score += this.level * 2;
score += this.rank * 10;
if (this.weapon) {
score += this.weapon.level * 2;
score += this.weapon.star * 10;
}
return score;
}
async get_basic_assets() {
const result = await getSquareAvatar(this.id);
/** @type {string} */