From b687b1760fb8587923b6aeab5811b829d7fe70c6 Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Mon, 29 Jul 2024 13:00:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=84=E7=BA=A7=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/avatar.js | 10 +++++----- model/equip.js | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/model/avatar.js b/model/avatar.js index 0b278d5..a0eda9d 100644 --- a/model/avatar.js +++ b/model/avatar.js @@ -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) { diff --git a/model/equip.js b/model/equip.js index 57aec35..fb81fe8 100644 --- a/model/equip.js +++ b/model/equip.js @@ -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;