fix: 评级判断错误

This commit is contained in:
bietiaop 2024-07-29 13:00:45 +08:00
parent 40670fc172
commit b687b1760f
2 changed files with 11 additions and 11 deletions

View file

@ -417,19 +417,19 @@ export class ZZZAvatarInfo {
if (this.equip_score < 90) {
return 'C';
}
if (this.equip_score >= 90) {
if (this.equip_score <= 120) {
return 'B';
}
if (this.equip_score >= 120) {
if (this.equip_score <= 150) {
return 'A';
}
if (this.equip_score >= 150) {
if (this.equip_score <= 180) {
return 'S';
}
if (this.equip_score >= 180) {
if (this.equip_score <= 210) {
return 'SS';
}
if (this.equip_score >= 210) {
if (this.equip_score <= 240) {
return 'SSS';
}
if (this.equip_score > 240) {

View file

@ -250,22 +250,22 @@ export class Equip {
if (this.score < 8) {
return 'C';
}
if (this.score >= 8) {
if (this.score <= 13) {
return 'B';
}
if (this.score >= 13) {
if (this.score <= 18) {
return 'A';
}
if (this.score >= 18) {
if (this.score <= 23) {
return 'S';
}
if (this.score >= 23) {
if (this.score <= 28) {
return 'SS';
}
if (this.score >= 28) {
if (this.score <= 33) {
return 'SSS';
}
if (this.score >= 33) {
if (this.score > 33) {
return 'ACE';
}
return false;