一些已知问题修复及优化

This commit is contained in:
yoimiya-kokomi 2022-10-19 02:13:23 +08:00
parent 0855a1a081
commit ac27075276
8 changed files with 34 additions and 16 deletions

View File

@ -1,12 +1,13 @@
# 2.0.3
# 2.0.4
* 增加妮露的伤害计算及圣遗物权重设置
* 一些已知问题修复及优化
# 2.0.1~2.0.3
* `#日历` 页面样式微调,功能升级
* 日历中会展示角色生日
* 日历会展示本日可刷天赋角色列表
* 一些已知问题修复
# 2.0.1~2.0.2
* 添加 纳西妲、莱依拉 的天赋及命座数据
* 可通过 `#草神天赋``#草神命座``#草神图鉴`查看
* 支持Enka获取3.1新角色及新武器的数据

View File

@ -125,6 +125,13 @@ class Character extends Base {
return this.getDetail()
}
get talentCons () {
if (this.isTraveler) {
return this.elem === 'dendro' ? { e: 3, q: 5 } : { e: 5, q: 3 }
}
return this.meta?.talentCons || {}
}
getAttrList () {
let { meta } = this
return CharMeta.getAttrList(meta.baseAttr, meta.growAttr, this.elemName)

View File

@ -95,7 +95,8 @@ export default class ProfileData extends Base {
let cMap = [
10000022, // 温迪
10000030, // 钟离
10000052 // 雷神
10000052, // 雷神
10000073 // 纳西妲
]
let talent = this.talent ? lodash.map(this.talent, (ds) => ds.original).join('') : ''
if (cMap.includes(this.id)) {

View File

@ -3,7 +3,7 @@
"name": "埃洛伊",
"abbr": "埃洛伊",
"title": "「异界的救世主」",
"star": 4,
"star": 5,
"elem": "cryo",
"allegiance": "游侠",
"weapon": "bow",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 430 KiB

After

Width:  |  Height:  |  Size: 368 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 KiB

View File

@ -7,7 +7,7 @@ export const weaponType = {
}
export const abbr = {
磐岩结绿: '绿',
磐岩结绿: '绿',
赤角石溃杵: '赤角',
终末嗟叹之诗: '终末',
松籁响起之时: '松籁',
@ -15,12 +15,12 @@ export const abbr = {
阿莫斯之弓: '阿莫斯',
雾切之回光: '雾切',
飞雷之弦振: '飞雷',
薙草之稻光: '薙',
薙草之稻光: '薙',
神乐之真意: '神乐铃',
波乱月白经津: '波乱',
笼钓瓶一心: '妖刀',
幽夜华尔兹: '幽夜弓',
雪葬的星银: '雪葬大剑',
雪葬的星银: '雪葬星银',
喜多院十文字: '喜多院',
万国诸海图谱: '万国书',
天目影打刀: '天目刀',
@ -31,11 +31,13 @@ export const abbr = {
讨龙英杰谭: '讨龙',
神射手之誓: '神射手',
'「渔获」': '渔获',
暗巷的酒与诗: '暗巷酒',
飞天大御剑: '飞天剑',
暗巷的酒与诗: '暗巷酒',
飞天大御剑: '飞天剑',
口袋魔导书: '魔导书',
历练的猎弓: '猎弓',
历练的猎弓: '历练猎弓',
沐浴龙血的剑: '龙血剑',
宗室秘法录: '宗室秘法',
异世界行记: '异世行记'
异世界行记: '异世行记',
西福斯的月光: '西福斯',
玛海菈的水色: '玛海菈'
}

View File

@ -59,10 +59,17 @@ app.get('/:type', function (req, res) {
let app = data._app || 'genshin'
if (data._plugin) {
data._res_path = `/plugins/${data._plugin}/resources/`
data.pluResPath = data._res_path
}
let tplPath = `${app}/${page}/${page}.html`
let htmlPath = ''
if (data._plugin === 'genshin') {
console.log(htmlPath)
htmlPath = 'html/'
}
let tplPath = `${app}/${htmlPath}${page}/${page}.html`
if (data._plugin) {
tplPath = `../plugins/${data._plugin}/resources/${app}/${page}.html`
console.log(data._plugin, app, htmlPath, page)
tplPath = `../plugins/${data._plugin}/resources/${htmlPath}/${app}/${page}.html`
} else if (data._no_type_path) {
tplPath = `${app}/${page}.html`
}