mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
修正面板变换部分武器词被识别为圣遗物套装的问题
This commit is contained in:
parent
319b8cbde9
commit
dc2fa84c94
@ -101,7 +101,7 @@ const ProfileChange = {
|
||||
// 匹配圣遗物套装
|
||||
let asMap = ArtifactSet.getAliasMap(game)
|
||||
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)
|
||||
if (asRet && asRet[1] && asMap[asRet[1]]) {
|
||||
if (game === 'gs') {
|
||||
|
@ -19,7 +19,7 @@ const CharArtis = {
|
||||
let def = function (attrWeight) {
|
||||
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 original = weight[key] || 0
|
||||
if (original < max) {
|
||||
|
@ -853,14 +853,14 @@ body {
|
||||
border-radius: 10px 10px 0 0;
|
||||
text-shadow: 0 0 1px #000, 1px 1px 2px rgba(0, 0, 0, 0.7);
|
||||
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 {
|
||||
left: auto;
|
||||
right: -5px;
|
||||
top: -10px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
top: -12px;
|
||||
width: 85px;
|
||||
height: 85px;
|
||||
}
|
||||
.artis .item.arti .arti-icon .img {
|
||||
width: 100%;
|
||||
@ -868,7 +868,7 @@ body {
|
||||
margin: 0;
|
||||
}
|
||||
.artis .item.arti .arti-icon span {
|
||||
bottom: 35px;
|
||||
bottom: 20px;
|
||||
right: 15px;
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
@ -1078,15 +1078,15 @@ body {
|
||||
border-radius: 10px 10px 0 0;
|
||||
text-shadow: 0 0 1px #000, 1px 1px 2px rgba(0, 0, 0, 0.7);
|
||||
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 {
|
||||
left: auto;
|
||||
right: -5px;
|
||||
top: -10px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
top: -12px;
|
||||
width: 85px;
|
||||
height: 85px;
|
||||
|
||||
.img {
|
||||
width: 100%;
|
||||
@ -1095,7 +1095,7 @@ body {
|
||||
}
|
||||
|
||||
span {
|
||||
bottom: 35px;
|
||||
bottom: 20px;
|
||||
right: 15px;
|
||||
background: rgba(0, 0, 0, .8);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user