mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 05:07:46 +00:00
feature:角色面板新增词条统计
This commit is contained in:
parent
6081513de5
commit
b51cf93758
8 changed files with 267 additions and 78 deletions
|
|
@ -1,21 +1,21 @@
|
|||
{
|
||||
"11102": ["HPRatio", "生命值百分比"],
|
||||
"11103": ["HP", "生命值"],
|
||||
"12102": ["ATKRatio", "攻击力百分比"],
|
||||
"12103": ["ATK", "攻击力"],
|
||||
"12202": ["Impact", "冲击力"],
|
||||
"13102": ["DEFRatio", "防御力百分比"],
|
||||
"13103": ["DEF", "防御力"],
|
||||
"20103": ["CRITRate", "暴击率"],
|
||||
"21103": ["CRITDMG", "暴击伤害"],
|
||||
"23103": ["PenRatio", "穿透率"],
|
||||
"23203": ["Pen", "穿透值"],
|
||||
"30502": ["EnergyRegen", "能量回复"],
|
||||
"31203": ["AnomalyProficiency", "异常精通"],
|
||||
"31403": ["AnomalyMastery", "异常掌控"],
|
||||
"31503": ["PhysicalDMGBonus", "物理属性伤害提高"],
|
||||
"31603": ["FireDMGBonus", "火属性伤害提高"],
|
||||
"31703": ["IceDMGBonus", "冰属性伤害提高"],
|
||||
"31803": ["ElectricDMGBonus", "电属性伤害提高"],
|
||||
"31903": ["EtherDMGBonus", "以太属性伤害提高"]
|
||||
"11102": ["HPRatio", "生命值百分比", "生命"],
|
||||
"11103": ["HP", "生命值", "生命"],
|
||||
"12102": ["ATKRatio", "攻击力百分比", "攻击"],
|
||||
"12103": ["ATK", "攻击力", "攻击"],
|
||||
"12202": ["Impact", "冲击力", "冲击"],
|
||||
"13102": ["DEFRatio", "防御力百分比", "防御"],
|
||||
"13103": ["DEF", "防御力", "防御"],
|
||||
"20103": ["CRITRate", "暴击率", "暴击"],
|
||||
"21103": ["CRITDMG", "暴击伤害", "暴伤"],
|
||||
"23103": ["PenRatio", "穿透率", "穿透"],
|
||||
"23203": ["Pen", "穿透值", "穿透"],
|
||||
"30502": ["EnergyRegen", "能量回复", "能量"],
|
||||
"31203": ["AnomalyProficiency", "异常精通", "精通"],
|
||||
"31403": ["AnomalyMastery", "异常掌控", "掌控"],
|
||||
"31503": ["PhysicalDMGBonus", "物理属性伤害提高", "物伤"],
|
||||
"31603": ["FireDMGBonus", "火属性伤害提高", "火伤"],
|
||||
"31703": ["IceDMGBonus", "冰属性伤害提高", "冰伤"],
|
||||
"31803": ["ElectricDMGBonus", "电属性伤害提高", "电伤"],
|
||||
"31903": ["EtherDMGBonus", "以太属性伤害提高", "以伤"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -489,14 +489,22 @@
|
|||
background-clip: text;
|
||||
color: transparent;
|
||||
}
|
||||
.card .equip-score {
|
||||
.card .equip-stats {
|
||||
display: flex;
|
||||
padding: 0 1.8em;
|
||||
height: 6em;
|
||||
}
|
||||
.card .equip-stats .equip-score {
|
||||
border: #707070 solid;
|
||||
border-width: 0.2em 0 0.2em 0.2em;
|
||||
border-radius: 0.6em 0 0 0.6em;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-size: 1.2em;
|
||||
font-size: 1em;
|
||||
align-items: center;
|
||||
gap: 0.2em;
|
||||
width: 30%;
|
||||
}
|
||||
.card .equip-score .comment-box {
|
||||
.card .equip-stats .equip-score .comment-box {
|
||||
font-size: 1.2em;
|
||||
width: 2em;
|
||||
display: flex;
|
||||
|
|
@ -510,16 +518,75 @@
|
|||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
.card .equip-score .value {
|
||||
.card .equip-stats .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;
|
||||
}
|
||||
.card .equip-score .value .subt {
|
||||
.card .equip-stats .equip-score .value .subt {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
.card .equip-stats .property-stats {
|
||||
width: 70%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
font-size: 0.8em;
|
||||
align-items: center;
|
||||
border: #707070 solid;
|
||||
border-width: 0.2em;
|
||||
border-radius: 0 0.6em 0.6em 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.card .equip-stats .property-stats .stat-item {
|
||||
width: 33.33%;
|
||||
height: 33.33%;
|
||||
padding: 0 0.2em;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
color: #eee;
|
||||
border: #707070 0.1em solid;
|
||||
}
|
||||
.card .equip-stats .property-stats .stat-item:nth-child(7) {
|
||||
border-radius: 0 0.4em 0 0;
|
||||
}
|
||||
.card .equip-stats .property-stats .stat-item:nth-child(9) {
|
||||
border-radius: 0 0 0.4em 0;
|
||||
}
|
||||
.card .equip-stats .property-stats .stat-item.great {
|
||||
color: rgb(249, 189, 64);
|
||||
}
|
||||
.card .equip-stats .property-stats .stat-item.good {
|
||||
color: rgb(238, 207, 139);
|
||||
}
|
||||
.card .equip-stats .property-stats .stat-item.useless {
|
||||
color: #999999;
|
||||
}
|
||||
.card .equip-stats .property-stats .stat-item span.title {
|
||||
padding-left: 0.1em;
|
||||
text-align: left;
|
||||
width: 48%;
|
||||
}
|
||||
.card .equip-stats .property-stats .stat-item span.title span.count {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
background-color: black;
|
||||
width: 1.6em;
|
||||
height: 1.6em;
|
||||
border: #696969 0.15em solid;
|
||||
border-radius: 0.4em;
|
||||
}
|
||||
.card .equip-stats .property-stats .stat-item span.value {
|
||||
padding-right: 0.2em;
|
||||
width: 52%;
|
||||
overflow: hidden;
|
||||
text-align: right;
|
||||
}
|
||||
.card .equip-list {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
|
|
|
|||
|
|
@ -140,13 +140,27 @@
|
|||
<% include(sys.specialTitle, {en: 'METAL' , cn: '驱动盘信息' }) %>
|
||||
</div>
|
||||
{{if charData.equip_score !== false}}
|
||||
<div class="equip-score {{charData.equip_comment}}">
|
||||
<div class="comment-box">
|
||||
<div class="comment">{{charData.equip_comment}}</div>
|
||||
<div class="equip-stats">
|
||||
<div class="equip-score {{charData.equip_comment}}">
|
||||
<div class="comment-box">
|
||||
<div class="comment">{{charData.equip_comment}}</div>
|
||||
</div>
|
||||
<div class="value">
|
||||
<span>{{charData.equip_score.toFixed(2)}}</span>
|
||||
<span class="subt">分</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="value">
|
||||
<span>{{charData.equip_score.toFixed(2)}}</span>
|
||||
<span class="subt">分</span>
|
||||
<div class="property-stats">
|
||||
{{set stats = charData.propertyStats.slice(0, 9)}}
|
||||
{{each stats item}}
|
||||
<div class="stat-item {{item.weight == 1 ? 'great' : (item.weight >= 0.75 ? 'good' : (item.weight > 0 ? 'useful' : 'useless'))}}">
|
||||
<span class="title"><span class="count">{{item.count}}</span> {{item.name}}</span>
|
||||
<span class="value">+{{item.value}}</span>
|
||||
</div>
|
||||
{{/each}}
|
||||
<% for (let i = 0; i < 9-stats.length; i++) { %>
|
||||
<div class="stat-item"></div>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
|||
|
|
@ -478,34 +478,112 @@
|
|||
}
|
||||
}
|
||||
|
||||
.equip-score {
|
||||
.equip-stats {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-size: 1.2em;
|
||||
align-items: center;
|
||||
gap: 0.2em;
|
||||
.comment-box {
|
||||
font-size: 1.2em;
|
||||
width: 2em;
|
||||
padding: 0 1.8em;
|
||||
height: 6em;
|
||||
|
||||
.equip-score {
|
||||
border: #707070 solid;
|
||||
border-width: 0.2em 0 0.2em 0.2em;
|
||||
border-radius: 0.6em 0 0 0.6em;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
font-size: 1em;
|
||||
align-items: center;
|
||||
aspect-ratio: 1;
|
||||
border-radius: 50%;
|
||||
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);
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: 30%;
|
||||
.comment-box {
|
||||
font-size: 1.2em;
|
||||
width: 2em;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
aspect-ratio: 1;
|
||||
border-radius: 50%;
|
||||
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);
|
||||
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;
|
||||
.subt {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
}
|
||||
}
|
||||
.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;
|
||||
.subt {
|
||||
font-size: 0.8em;
|
||||
|
||||
.property-stats {
|
||||
width: 70%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-wrap: wrap;
|
||||
font-size: 0.8em;
|
||||
align-items: center;
|
||||
border: #707070 solid;
|
||||
border-width: 0.2em;
|
||||
border-radius: 0 0.6em 0.6em 0;
|
||||
overflow: hidden;
|
||||
|
||||
.stat-item {
|
||||
width: 33.33%;
|
||||
height: 33.33%;
|
||||
padding: 0 0.2em;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
white-space: nowrap;
|
||||
color: #eee;
|
||||
border: #707070 0.1em solid;
|
||||
|
||||
&:nth-child(7) {
|
||||
border-radius: 0 0.4em 0 0;
|
||||
}
|
||||
|
||||
&:nth-child(9) {
|
||||
border-radius: 0 0 0.4em 0;
|
||||
}
|
||||
|
||||
&.great {
|
||||
color: rgb(249, 189, 64);
|
||||
}
|
||||
|
||||
&.good {
|
||||
color: rgb(238, 207, 139);
|
||||
}
|
||||
|
||||
&.useless {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
span.title {
|
||||
padding-left: 0.1em;
|
||||
text-align: left;
|
||||
width: 48%;
|
||||
|
||||
span.count {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
background-color: black;
|
||||
width: 1.6em;
|
||||
height: 1.6em;
|
||||
border: #696969 0.15em solid;
|
||||
border-radius: 0.4em;
|
||||
}
|
||||
}
|
||||
|
||||
span.value {
|
||||
padding-right: 0.2em;
|
||||
width: 52%;
|
||||
overflow: hidden;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue