mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
增加MAX评级:评分≥48或总分≥280
This commit is contained in:
parent
3751241b5d
commit
9429a60ec0
8 changed files with 34 additions and 22 deletions
|
|
@ -219,7 +219,7 @@ export class Panel extends ZZZPlugin {
|
||||||
SSSCount: result.reduce((acc, item) => {
|
SSSCount: result.reduce((acc, item) => {
|
||||||
if (item.equip) {
|
if (item.equip) {
|
||||||
acc += item.equip.filter(
|
acc += item.equip.filter(
|
||||||
equip => equip.comment === 'SSS' || equip.comment === 'ACE'
|
equip => ['SSS', 'ACE', 'MAX'].includes(equip.comment)
|
||||||
).length;
|
).length;
|
||||||
}
|
}
|
||||||
return acc;
|
return acc;
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ export class ZZZAvatarInfo {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|false} */
|
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|'MAX'|false} */
|
||||||
get equip_comment() {
|
get equip_comment() {
|
||||||
if (this.equip_score < 80) {
|
if (this.equip_score < 80) {
|
||||||
return 'C';
|
return 'C';
|
||||||
|
|
@ -390,9 +390,12 @@ export class ZZZAvatarInfo {
|
||||||
if (this.equip_score < 220) {
|
if (this.equip_score < 220) {
|
||||||
return 'SSS';
|
return 'SSS';
|
||||||
}
|
}
|
||||||
if (this.equip_score >= 220) {
|
if (this.equip_score < 280) {
|
||||||
return 'ACE';
|
return 'ACE';
|
||||||
}
|
}
|
||||||
|
if (this.equip_score >= 280) {
|
||||||
|
return 'MAX';
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@ export class Equip {
|
||||||
return this.score;
|
return this.score;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|false} */
|
/** @type {'C'|'B'|'A'|'S'|'SS'|'SSS'|'ACE'|'MAX'|false} */
|
||||||
get comment() {
|
get comment() {
|
||||||
if (this.score <= 12) {
|
if (this.score <= 12) {
|
||||||
return 'C';
|
return 'C';
|
||||||
|
|
@ -210,9 +210,12 @@ export class Equip {
|
||||||
if (this.score < 40) {
|
if (this.score < 40) {
|
||||||
return 'SSS';
|
return 'SSS';
|
||||||
}
|
}
|
||||||
if (this.score >= 40) {
|
if (this.score < 48) {
|
||||||
return 'ACE';
|
return 'ACE';
|
||||||
}
|
}
|
||||||
|
if (this.score >= 48) {
|
||||||
|
return 'MAX';
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
"21103": ["CRITDMG", "暴击伤害", "暴伤"],
|
"21103": ["CRITDMG", "暴击伤害", "暴伤"],
|
||||||
"23103": ["PenRatio", "穿透率", "穿透"],
|
"23103": ["PenRatio", "穿透率", "穿透"],
|
||||||
"23203": ["Pen", "穿透值", "穿透"],
|
"23203": ["Pen", "穿透值", "穿透"],
|
||||||
"30502": ["EnergyRegen", "能量回复", "能量"],
|
"30502": ["EnergyRegen", "能量回复", "回能"],
|
||||||
"31203": ["AnomalyProficiency", "异常精通", "精通"],
|
"31203": ["AnomalyProficiency", "异常精通", "精通"],
|
||||||
"31402": ["AnomalyMastery", "异常掌控", "掌控"],
|
"31402": ["AnomalyMastery", "异常掌控", "掌控"],
|
||||||
"31503": ["PhysicalDMGBonus", "物理属性伤害提高", "物伤"],
|
"31503": ["PhysicalDMGBonus", "物理属性伤害提高", "物伤"],
|
||||||
|
|
|
||||||
|
|
@ -483,7 +483,9 @@
|
||||||
color: transparent;
|
color: transparent;
|
||||||
}
|
}
|
||||||
.card .ace .comment,
|
.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));
|
background: linear-gradient(0deg, rgba(255, 59, 59, 0.4), rgb(255, 59, 59));
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
background-clip: text;
|
background-clip: text;
|
||||||
|
|
@ -510,24 +512,24 @@
|
||||||
}
|
}
|
||||||
.card .equip-stats .box1 .equip-score .comment-box {
|
.card .equip-stats .box1 .equip-score .comment-box {
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
width: 2em;
|
width: 2.8em;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
border-radius: 50%;
|
border-radius: 25%;
|
||||||
background-color: rgba(32, 32, 32, 0.4);
|
background-color: rgba(32, 32, 32, 0.4);
|
||||||
box-shadow: 0 0 1em rgba(0, 0, 0, 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;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
.card .equip-stats .box1 .equip-score .value {
|
.card .equip-stats .box1 .equip-score .value {
|
||||||
border: 0.1em solid rgb(155, 155, 155);
|
border: 0.1em solid rgb(155, 155, 155);
|
||||||
border-left: none;
|
border-left: none;
|
||||||
padding: 0.1em 1em 0.1em 1em;
|
padding: 0.1em 0.3em;
|
||||||
margin-left: -0.6em;
|
margin-left: -0.1em;
|
||||||
border-radius: 0 1em 1em 0;
|
border-radius: 0 0.4em 0.4em 0;
|
||||||
}
|
}
|
||||||
.card .equip-stats .box1 .equip-score .value .subt {
|
.card .equip-stats .box1 .equip-score .value .subt {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
|
|
||||||
|
|
@ -465,7 +465,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ace,
|
.ace,
|
||||||
.ACE {
|
.ACE,
|
||||||
|
.max,
|
||||||
|
.MAX {
|
||||||
.comment {
|
.comment {
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
0deg,
|
0deg,
|
||||||
|
|
@ -498,24 +500,24 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
.comment-box {
|
.comment-box {
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
width: 2em;
|
width: 2.8em;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
aspect-ratio: 1;
|
aspect-ratio: 1;
|
||||||
border-radius: 50%;
|
border-radius: 25%;
|
||||||
background-color: rgba(32, 32, 32, 0.4);
|
background-color: rgba(32, 32, 32, 0.4);
|
||||||
box-shadow: 0 0 1em rgba(0, 0, 0, 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;
|
position: relative;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
.value {
|
.value {
|
||||||
border: 0.1em solid rgba(155, 155, 155);
|
border: 0.1em solid rgba(155, 155, 155);
|
||||||
border-left: none;
|
border-left: none;
|
||||||
padding: 0.1em 1em 0.1em 1em;
|
padding: 0.1em 0.3em;
|
||||||
margin-left: -0.6em;
|
margin-left: -0.1em;
|
||||||
border-radius: 0 1em 1em 0;
|
border-radius: 0 0.4em 0.4em 0;
|
||||||
.subt {
|
.subt {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@
|
||||||
background-clip: text;
|
background-clip: text;
|
||||||
color: transparent;
|
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));
|
background: linear-gradient(0deg, rgba(255, 59, 59, 0.4), rgb(255, 59, 59));
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
background-clip: text;
|
background-clip: text;
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&.ace,
|
&.ace,
|
||||||
&.ACE {
|
&.ACE,
|
||||||
|
&.max,
|
||||||
|
&.MAX {
|
||||||
.comment {
|
.comment {
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
0deg,
|
0deg,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue