mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-25 09:27:34 +00:00
fix:原神日历
This commit is contained in:
parent
8bdf84e19f
commit
c1640eb144
@ -278,9 +278,11 @@ let Cal = {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if (/神铸赋形/.test(title)) {
|
if (/概率UP/.test(title)) {
|
||||||
|
let reg = /(单手剑|双手剑|长柄武器|弓|法器)·/g
|
||||||
|
if (reg.test(title)) {
|
||||||
type = 'weapon'
|
type = 'weapon'
|
||||||
title = title.replace(/(单手剑|双手剑|长柄武器|弓|法器|·)/g, '')
|
title = title.replace(reg, '')
|
||||||
extra.sort = 3
|
extra.sort = 3
|
||||||
} else if (/集录/.test(title)) {
|
} else if (/集录/.test(title)) {
|
||||||
extra.sort = 2
|
extra.sort = 2
|
||||||
@ -289,12 +291,13 @@ let Cal = {
|
|||||||
let regRet = /·(.*)\(/.exec(title)
|
let regRet = /·(.*)\(/.exec(title)
|
||||||
if (regRet[1]) {
|
if (regRet[1]) {
|
||||||
let char = Character.get(regRet[1])
|
let char = Character.get(regRet[1])
|
||||||
extra.banner2 = char.getImgs()?.card
|
extra.banner2 = char.getImgs?.()?.card
|
||||||
extra.face = char.face
|
extra.face = char.face
|
||||||
extra.character = regRet[1]
|
extra.character = regRet[1]
|
||||||
extra.elem = char.elem
|
extra.elem = char.elem
|
||||||
extra.sort = 1
|
extra.sort = 1
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (/纪行/.test(title)) {
|
} else if (/纪行/.test(title)) {
|
||||||
type = 'pass'
|
type = 'pass'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user