适配沉玉谷探索 (#362)

This commit is contained in:
Ca(HCO₃)₂ 2024-02-01 23:30:18 +08:00 committed by GitHub
parent d83b4c4f4a
commit 1d3325c991
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 16 deletions

View File

@ -26,7 +26,11 @@ export default class RoleIndex extends base {
层岩巨渊: 6, 层岩巨渊: 6,
层岩地下: 7, 层岩地下: 7,
须弥: 8, 须弥: 8,
枫丹: 9 枫丹: 9,
沉玉谷: 10,
来歆山: 11,
沉玉谷·南陵: 12,
沉玉谷·上谷: 13
} }
this.all_chest = 0 this.all_chest = 0
@ -548,7 +552,7 @@ export default class RoleIndex extends base {
let explor = [] let explor = []
for (let val of resIndex.world_explorations) { for (let val of resIndex.world_explorations) {
if (val.id == 7) continue if ([7, 11, 12, 13].includes(val.id)) continue
val.name = this.areaName[val.id] ? this.areaName[val.id] : lodash.truncate(val.name, { length: 6 }) val.name = this.areaName[val.id] ? this.areaName[val.id] : lodash.truncate(val.name, { length: 6 })
@ -562,23 +566,29 @@ export default class RoleIndex extends base {
] ]
} }
if (val.id == 10) tmp.line = []
if (['蒙德', '璃月', '稻妻', '须弥', '枫丹'].includes(val.name)) { if (['蒙德', '璃月', '稻妻', '须弥', '枫丹'].includes(val.name)) {
tmp.line.push({ name: '声望', text: `${val.level}` }) tmp.line.push({ name: '声望', text: `${val.level}` })
} }
if (val.id == 6) { if ([6, 10].includes(val.id)) {
let underground = lodash.find(resIndex.world_explorations, function (o) { let oidArr = [7]
return o.id == 7 if (val.id == 10) oidArr = [13, 12, 11]
}) for (let oid of oidArr) {
if (underground) { let underground = lodash.find(resIndex.world_explorations, function (o) {
tmp.line.push({ return o.id == oid
name: this.areaName[underground.id],
text: `${underground.exploration_percentage / 10}%`
}) })
if (underground) {
tmp.line.push({
name: this.areaName[underground.id],
text: `${underground.exploration_percentage / 10}%`
})
}
} }
} }
if (['雪山', '稻妻', '层岩巨渊', '须弥', '枫丹'].includes(val.name)) { if (['雪山', '稻妻', '层岩巨渊', '须弥', '枫丹', '沉玉谷'].includes(val.name)) {
if (val.offerings[0].name.includes('流明石')) { if (val.offerings[0].name.includes('流明石')) {
val.offerings[0].name = '流明石' val.offerings[0].name = '流明石'
} }
@ -587,7 +597,7 @@ export default class RoleIndex extends base {
val.offerings[0].name = '露景泉' val.offerings[0].name = '露景泉'
} }
if (val.offerings[0].name == '那兰那的梦之树') { if (val.offerings[0].name == '那兰那的梦之树') {
val.offerings[0].name = '梦之树' val.offerings[0].name = '梦之树'
} }

View File

@ -168,7 +168,7 @@ body {
} }
.explor_box .num { .explor_box .num {
font-family: tttgbnumber; font-family: tttgbnumber;
font-size: 16px; font-size: 12px;
} }
.lable { .lable {
font-size: 14px; font-size: 14px;
@ -178,7 +178,7 @@ body {
} }
.explor_box { .explor_box {
position: relative; position: relative;
font-size: 16px; font-size: 12px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;

View File

@ -195,7 +195,7 @@ body {
.explor_box .num { .explor_box .num {
font-family: tttgbnumber; font-family: tttgbnumber;
font-size: 16px; font-size: 12px;
} }
.lable { .lable {
@ -207,7 +207,7 @@ body {
.explor_box { .explor_box {
position: relative; position: relative;
font-size: 16px; font-size: 12px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB