mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
feat: 添加练度的计算公式
This commit is contained in:
parent
2c745c256e
commit
8a420e8fe1
3 changed files with 51 additions and 2 deletions
|
|
@ -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} */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue