增加MAX评级:评分≥48或总分≥280

This commit is contained in:
UCPr 2025-04-13 20:18:47 +08:00
parent 3751241b5d
commit 9429a60ec0
8 changed files with 34 additions and 22 deletions

View file

@ -219,7 +219,7 @@ export class Panel extends ZZZPlugin {
SSSCount: result.reduce((acc, item) => {
if (item.equip) {
acc += item.equip.filter(
equip => equip.comment === 'SSS' || equip.comment === 'ACE'
equip => ['SSS', 'ACE', 'MAX'].includes(equip.comment)
).length;
}
return acc;

View file

@ -370,7 +370,7 @@ export class ZZZAvatarInfo {
return false;
}
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|false} */
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|'MAX'|false} */
get equip_comment() {
if (this.equip_score < 80) {
return 'C';
@ -390,9 +390,12 @@ export class ZZZAvatarInfo {
if (this.equip_score < 220) {
return 'SSS';
}
if (this.equip_score >= 220) {
if (this.equip_score < 280) {
return 'ACE';
}
if (this.equip_score >= 280) {
return 'MAX';
}
return false;
}

View file

@ -190,7 +190,7 @@ export class Equip {
return this.score;
}
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|false} */
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|'MAX'|false} */
get comment() {
if (this.score <= 12) {
return 'C';
@ -210,9 +210,12 @@ export class Equip {
if (this.score < 40) {
return 'SSS';
}
if (this.score >= 40) {
if (this.score < 48) {
return 'ACE';
}
if (this.score >= 48) {
return 'MAX';
}
return false;
}
}

View file

@ -10,7 +10,7 @@
"21103": ["CRITDMG", "暴击伤害", "暴伤"],
"23103": ["PenRatio", "穿透率", "穿透"],
"23203": ["Pen", "穿透值", "穿透"],
"30502": ["EnergyRegen", "能量回复", ""],
"30502": ["EnergyRegen", "能量回复", "能"],
"31203": ["AnomalyProficiency", "异常精通", "精通"],
"31402": ["AnomalyMastery", "异常掌控", "掌控"],
"31503": ["PhysicalDMGBonus", "物理属性伤害提高", "物伤"],

View file

@ -483,7 +483,9 @@
color: transparent;
}
.card .ace .comment,
.card .ACE .comment {
.card .ACE .comment,
.card .max .comment,
.card .MAX .comment {
background: linear-gradient(0deg, rgba(255, 59, 59, 0.4), rgb(255, 59, 59));
-webkit-background-clip: text;
background-clip: text;
@ -510,24 +512,24 @@
}
.card .equip-stats .box1 .equip-score .comment-box {
font-size: 1.2em;
width: 2em;
width: 2.8em;
display: flex;
justify-content: center;
align-items: center;
aspect-ratio: 1;
border-radius: 50%;
border-radius: 25%;
background-color: rgba(32, 32, 32, 0.4);
box-shadow: 0 0 1em rgba(0, 0, 0, 0.4);
border: 0.2em solid rgb(216, 216, 216);
border: 0.2em solid rgb(116, 116, 116);
position: relative;
z-index: 1;
}
.card .equip-stats .box1 .equip-score .value {
border: 0.1em solid rgb(155, 155, 155);
border-left: none;
padding: 0.1em 1em 0.1em 1em;
margin-left: -0.6em;
border-radius: 0 1em 1em 0;
padding: 0.1em 0.3em;
margin-left: -0.1em;
border-radius: 0 0.4em 0.4em 0;
}
.card .equip-stats .box1 .equip-score .value .subt {
font-size: 0.8em;

View file

@ -465,7 +465,9 @@
}
}
.ace,
.ACE {
.ACE,
.max,
.MAX {
.comment {
background: linear-gradient(
0deg,
@ -498,24 +500,24 @@
align-items: center;
.comment-box {
font-size: 1.2em;
width: 2em;
width: 2.8em;
display: flex;
justify-content: center;
align-items: center;
aspect-ratio: 1;
border-radius: 50%;
border-radius: 25%;
background-color: rgba(32, 32, 32, 0.4);
box-shadow: 0 0 1em rgba(0, 0, 0, 0.4);
border: 0.2em solid rgb(216, 216, 216);
border: 0.2em solid rgb(116, 116, 116);
position: relative;
z-index: 1;
}
.value {
border: 0.1em solid rgba(155, 155, 155);
border-left: none;
padding: 0.1em 1em 0.1em 1em;
margin-left: -0.6em;
border-radius: 0 1em 1em 0;
padding: 0.1em 0.3em;
margin-left: -0.1em;
border-radius: 0 0.4em 0.4em 0;
.subt {
font-size: 0.8em;
}

View file

@ -242,7 +242,7 @@
background-clip: text;
color: transparent;
}
.list .item .content .equip .content.ace .comment, .list .item .content .equip .content.ACE .comment {
.list .item .content .equip .content.ace .comment, .list .item .content .equip .content.ACE .comment, .list .item .content .equip .content.max .comment, .list .item .content .equip .content.MAX .comment {
background: linear-gradient(0deg, rgba(255, 59, 59, 0.4), rgb(255, 59, 59));
-webkit-background-clip: text;
background-clip: text;

View file

@ -279,7 +279,9 @@
}
}
&.ace,
&.ACE {
&.ACE,
&.max,
&.MAX {
.comment {
background: linear-gradient(
0deg,