mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 22:48:13 +00:00
fix
This commit is contained in:
parent
0f4c5ec6ff
commit
c00a0b805a
@ -88,8 +88,7 @@ let Cal = {
|
|||||||
annTime = [vTime, timeRet[0]]
|
annTime = [vTime, timeRet[0]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} else if (/\d\.\d版本期间持续开放/.test(content)) {
|
||||||
if (/\d\.\d版本期间持续开放/.test(content)) {
|
|
||||||
let vRet = /(\d\.\d)版本期间持续开放/.exec(content)
|
let vRet = /(\d\.\d)版本期间持续开放/.exec(content)
|
||||||
let vTime = ''
|
let vTime = ''
|
||||||
if (vRet && vRet[1] && versionTime[vRet[1]]) {
|
if (vRet && vRet[1] && versionTime[vRet[1]]) {
|
||||||
@ -101,6 +100,8 @@ let Cal = {
|
|||||||
let format = 'YYYY-MM-DD HH:mm:ss'
|
let format = 'YYYY-MM-DD HH:mm:ss'
|
||||||
let versionLastDay = moment(vTime, format).add(42, 'days').hours(6).format(format)
|
let versionLastDay = moment(vTime, format).add(42, 'days').hours(6).format(format)
|
||||||
annTime = [vTime, versionLastDay]
|
annTime = [vTime, versionLastDay]
|
||||||
|
} else if (/后永久开放/.test(content)) {
|
||||||
|
annTime = [timeRet[1], '2099/01/01 00:00:00']
|
||||||
}
|
}
|
||||||
if (annTime.length === 2) {
|
if (annTime.length === 2) {
|
||||||
timeMap[annId] = {
|
timeMap[annId] = {
|
||||||
|
@ -141,7 +141,7 @@ let CalSr = {
|
|||||||
let title2 = '「虚构叙事」'
|
let title2 = '「虚构叙事」'
|
||||||
let exchange = false
|
let exchange = false
|
||||||
let diff = newAbyssStart.diff(abyss0Start, 'days')
|
let diff = newAbyssStart.diff(abyss0Start, 'days')
|
||||||
if (diff >= 0 && diff % 28 === 0) {
|
if (diff % 28 === 0) {
|
||||||
exchange = true
|
exchange = true
|
||||||
}
|
}
|
||||||
if (exchange) {
|
if (exchange) {
|
||||||
|
@ -210,7 +210,7 @@ export default class Player extends Base {
|
|||||||
if (this.isSr) {
|
if (this.isSr) {
|
||||||
// 兼容处理开拓者的情况
|
// 兼容处理开拓者的情况
|
||||||
if (char.isTrailblazer && !create) {
|
if (char.isTrailblazer && !create) {
|
||||||
switch (id) {
|
switch (id * 1) {
|
||||||
case 8001:
|
case 8001:
|
||||||
id = avatars['8001'] ? 8001 : 8002
|
id = avatars['8001'] ? 8001 : 8002
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user