fix:原神日历

This commit is contained in:
其实雨很好 2024-08-26 13:01:51 +08:00 committed by 🌌
parent 8bdf84e19f
commit c1640eb144

View File

@ -278,22 +278,25 @@ let Cal = {
return false return false
} }
if (/神铸赋形/.test(title)) { if (/概率UP/.test(title)) {
type = 'weapon' let reg = /(单手剑|双手剑|长柄武器|弓|法器)·/g
title = title.replace(/(单手剑|双手剑|长柄武器|弓|法器|·)/g, '') if (reg.test(title)) {
extra.sort = 3 type = 'weapon'
} else if (/集录/.test(title)) { title = title.replace(reg, '')
extra.sort = 2 extra.sort = 3
} else if (/祈愿/.test(title)) { } else if (/集录/.test(title)) {
type = 'character' extra.sort = 2
let regRet = /·(.*)\(/.exec(title) } else if (/祈愿/.test(title)) {
if (regRet[1]) { type = 'character'
let char = Character.get(regRet[1]) let regRet = /·(.*)\(/.exec(title)
extra.banner2 = char.getImgs()?.card if (regRet[1]) {
extra.face = char.face let char = Character.get(regRet[1])
extra.character = regRet[1] extra.banner2 = char.getImgs?.()?.card
extra.elem = char.elem extra.face = char.face
extra.sort = 1 extra.character = regRet[1]
extra.elem = char.elem
extra.sort = 1
}
} }
} else if (/纪行/.test(title)) { } else if (/纪行/.test(title)) {
type = 'pass' type = 'pass'