Merge remote-tracking branch 'origin/master'

This commit is contained in:
Kokomi 2024-05-21 03:17:11 +08:00
commit dffe97e158
3 changed files with 5 additions and 4 deletions

View File

@ -88,8 +88,7 @@ let Cal = {
annTime = [vTime, timeRet[0]]
}
}
}
if (/\d\.\d版本期间持续开放/.test(content)) {
} else if (/\d\.\d版本期间持续开放/.test(content)) {
let vRet = /(\d\.\d)版本期间持续开放/.exec(content)
let vTime = ''
if (vRet && vRet[1] && versionTime[vRet[1]]) {
@ -101,6 +100,8 @@ let Cal = {
let format = 'YYYY-MM-DD HH:mm:ss'
let versionLastDay = moment(vTime, format).add(42, 'days').hours(6).format(format)
annTime = [vTime, versionLastDay]
} else if (/后永久开放/.test(content)) {
annTime = [timeRet[1], '2099/01/01 00:00:00']
}
if (annTime.length === 2) {
timeMap[annId] = {

View File

@ -141,7 +141,7 @@ let CalSr = {
let title2 = '「虚构叙事」'
let exchange = false
let diff = newAbyssStart.diff(abyss0Start, 'days')
if (diff >= 0 && diff % 28 === 0) {
if (diff % 28 === 0) {
exchange = true
}
if (exchange) {

View File

@ -210,7 +210,7 @@ export default class Player extends Base {
if (this.isSr) {
// 兼容处理开拓者的情况
if (char.isTrailblazer && !create) {
switch (id) {
switch (id * 1) {
case 8001:
id = avatars['8001'] ? 8001 : 8002
break