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
14b528b87b
commit
d49cc8d565
1 changed files with 15 additions and 8 deletions
|
|
@ -439,23 +439,30 @@ export class ZZZAvatarInfo {
|
|||
|
||||
/** @type {number} 练度分数 */
|
||||
get proficiency_score() {
|
||||
let score = 0;
|
||||
let base_score = 3;
|
||||
if (this.rarity === 'S') {
|
||||
score += 30;
|
||||
} else {
|
||||
score += 10;
|
||||
base_score = 5;
|
||||
} else if (this.rarity === 'A') {
|
||||
base_score = 4;
|
||||
}
|
||||
let score = 0;
|
||||
if (this.equip_score !== false) {
|
||||
score += this.equip_score * 3;
|
||||
score += this.equip_score * 2;
|
||||
}
|
||||
for (const skill of this.skills) {
|
||||
score += skill.level * 5;
|
||||
score += skill.level * base_score;
|
||||
}
|
||||
score += this.level * 2;
|
||||
score += this.rank * 10;
|
||||
score += this.rank * base_score * 2;
|
||||
if (this.weapon) {
|
||||
let weapon_base_score = 3;
|
||||
if (this.weapon.rarity === 'S') {
|
||||
weapon_base_score = 5;
|
||||
} else if (this.weapon.rarity === 'A') {
|
||||
weapon_base_score = 4;
|
||||
}
|
||||
score += this.weapon.level * 2;
|
||||
score += this.weapon.star * 10;
|
||||
score += this.weapon.star * 2 * weapon_base_score;
|
||||
}
|
||||
return score;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue