This commit is contained in:
2025-06-12 14:00:14 +08:00
parent 2e9c04390b
commit af8d481b3b
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -233,6 +233,7 @@ def 锻造四维(装备等级, 品质, 锻造等级):
'玄机弓': (1, 1, 1),
'强攻弩': (1.05, 1, 1),
'妖影弓': (0.95, 0.95, 1),
'嵌合弓': (1, 1, 1),
}
MP系数 = {
Binary file not shown.
@@ -94,19 +94,19 @@ const mainAttr = computed(() => {
return info
})
// a.match(/\[(?!.*?技能).*?]/g)
const detail = computed(() =>
props.equipment?.detail.replace(
/\[([^\[\]技能]+?)\]/g,
'<span style="color:#3d9147">[$1]</span>',
),
/\[(?![^\]]*技能)[^\[\]]+\]/g, match => `<span style="color:#3d9147">${match}</span>`
)
)
const bufferDetail = computed(() => {
const detail = props.equipment?.bufferDetail
if (!detail || detail == '-') return undefined
return props.equipment?.bufferDetail.replace(
/\[([^\[\]技能]+?)\]/g,
'<span style="color:#3d9147">[$1]</span>',
/\[(?![^\]]*技能)[^\[\]]+\]/g, match => `<span style="color:#3d9147">${match}</span>`
)
})
</script>