fix: 评级

This commit is contained in:
bietiaop 2024-07-29 17:26:25 +08:00
parent 7df9ca19a6
commit ee5bc24fc7
2 changed files with 14 additions and 14 deletions

View file

@ -414,25 +414,25 @@ export class ZZZAvatarInfo {
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|false} */ /** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|false} */
get equip_comment() { get equip_comment() {
if (this.equip_score < 50) { if (this.equip_score < 45) {
return 'C'; return 'C';
} }
if (this.equip_score <= 100) { if (this.equip_score <= 80) {
return 'B'; return 'B';
} }
if (this.equip_score <= 140) { if (this.equip_score <= 115) {
return 'A'; return 'A';
} }
if (this.equip_score <= 180) { if (this.equip_score <= 150) {
return 'S'; return 'S';
} }
if (this.equip_score <= 210) { if (this.equip_score <= 185) {
return 'SS'; return 'SS';
} }
if (this.equip_score <= 240) { if (this.equip_score <= 220) {
return 'SSS'; return 'SSS';
} }
if (this.equip_score > 240) { if (this.equip_score > 220) {
return 'ACE'; return 'ACE';
} }
return false; return false;

View file

@ -247,25 +247,25 @@ export class Equip {
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|false} */ /** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|false} */
get comment() { get comment() {
if (this.score < 8) { if (this.score < 10) {
return 'C'; return 'C';
} }
if (this.score <= 13) { if (this.score <= 15) {
return 'B'; return 'B';
} }
if (this.score <= 18) { if (this.score <= 20) {
return 'A'; return 'A';
} }
if (this.score <= 23) { if (this.score <= 25) {
return 'S'; return 'S';
} }
if (this.score <= 28) { if (this.score <= 30) {
return 'SS'; return 'SS';
} }
if (this.score <= 33) { if (this.score <= 35) {
return 'SSS'; return 'SSS';
} }
if (this.score > 33) { if (this.score > 35) {
return 'ACE'; return 'ACE';
} }
return false; return false;