修正面板变换部分武器词被识别为圣遗物套装的问题

This commit is contained in:
Kokomi 2023-10-14 19:09:45 +08:00
parent 319b8cbde9
commit dc2fa84c94
4 changed files with 12 additions and 12 deletions

View File

@ -101,7 +101,7 @@ const ProfileChange = {
// 匹配圣遗物套装 // 匹配圣遗物套装
let asMap = ArtifactSet.getAliasMap(game) let asMap = ArtifactSet.getAliasMap(game)
let asKey = lodash.keys(asMap).sort((a, b) => b.length - a.length).join('|') let asKey = lodash.keys(asMap).sort((a, b) => b.length - a.length).join('|')
let asReg = new RegExp(`(${asKey})套?[2,4]?\\+?(${asKey})?套?[2,4]?\\+?(${asKey})?套?[2,4]?`) let asReg = new RegExp(`^(${asKey})套?[2,4]?\\+?(${asKey})?套?[2,4]?\\+?(${asKey})?套?[2,4]?$`)
let asRet = asReg.exec(txt) let asRet = asReg.exec(txt)
if (asRet && asRet[1] && asMap[asRet[1]]) { if (asRet && asRet[1] && asMap[asRet[1]]) {
if (game === 'gs') { if (game === 'gs') {

View File

@ -19,7 +19,7 @@ const CharArtis = {
let def = function (attrWeight) { let def = function (attrWeight) {
let title = [] let title = []
let weight = lodash.extend({}, attrWeight || usefulAttr[char.name] || { atk: 75, cpct: 100, cdmg: 100, dmg: 100 }) let weight = lodash.extend({}, attrWeight || usefulAttr[char.name] || {})
let check = (key, max = 75, maxPlus = 75, isWeapon = true) => { let check = (key, max = 75, maxPlus = 75, isWeapon = true) => {
let original = weight[key] || 0 let original = weight[key] || 0
if (original < max) { if (original < max) {

View File

@ -853,14 +853,14 @@ body {
border-radius: 10px 10px 0 0; border-radius: 10px 10px 0 0;
text-shadow: 0 0 1px #000, 1px 1px 2px rgba(0, 0, 0, 0.7); text-shadow: 0 0 1px #000, 1px 1px 2px rgba(0, 0, 0, 0.7);
padding: 17px 10px 3px 15px; padding: 17px 10px 3px 15px;
background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7), rgba(25, 25, 25, 0.3), rgba(25, 25, 25, 0.3), rgba(25, 25, 25, 0)); background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7), rgba(25, 25, 25, 0.3), rgba(25, 25, 25, 0), rgba(25, 25, 25, 0));
} }
.artis .item.arti .arti-icon { .artis .item.arti .arti-icon {
left: auto; left: auto;
right: -5px; right: -5px;
top: -10px; top: -12px;
width: 100px; width: 85px;
height: 100px; height: 85px;
} }
.artis .item.arti .arti-icon .img { .artis .item.arti .arti-icon .img {
width: 100%; width: 100%;
@ -868,7 +868,7 @@ body {
margin: 0; margin: 0;
} }
.artis .item.arti .arti-icon span { .artis .item.arti .arti-icon span {
bottom: 35px; bottom: 20px;
right: 15px; right: 15px;
background: rgba(0, 0, 0, 0.8); background: rgba(0, 0, 0, 0.8);
} }

View File

@ -1078,15 +1078,15 @@ body {
border-radius: 10px 10px 0 0; border-radius: 10px 10px 0 0;
text-shadow: 0 0 1px #000, 1px 1px 2px rgba(0, 0, 0, 0.7); text-shadow: 0 0 1px #000, 1px 1px 2px rgba(0, 0, 0, 0.7);
padding: 17px 10px 3px 15px; padding: 17px 10px 3px 15px;
background: linear-gradient(to right, rgba(0, 0, 0, .7), rgba(0, 0, 0, .7), rgba(25, 25, 25, .3), rgba(25, 25, 25, .3), rgba(25, 25, 25, 0)); background: linear-gradient(to right, rgba(0, 0, 0, .7), rgba(0, 0, 0, .7), rgba(25, 25, 25, .3), rgba(25, 25, 25, .0), rgba(25, 25, 25, 0));
} }
.arti-icon { .arti-icon {
left: auto; left: auto;
right: -5px; right: -5px;
top: -10px; top: -12px;
width: 100px; width: 85px;
height: 100px; height: 85px;
.img { .img {
width: 100%; width: 100%;
@ -1095,7 +1095,7 @@ body {
} }
span { span {
bottom: 35px; bottom: 20px;
right: 15px; right: 15px;
background: rgba(0, 0, 0, .8); background: rgba(0, 0, 0, .8);
} }