修正角色面板时装展示问题

This commit is contained in:
yoimiya-kokomi 2022-09-04 15:59:30 +08:00
parent 5f924c3a4e
commit ce1638b8c7
2 changed files with 14 additions and 10 deletions

View File

@ -69,11 +69,11 @@ export const characters = {
10000066: ['神里绫人', 'Kamisato Ayato', 'Ayato', '绫人', '神里凌人', '凌人', '0人', '神人', '零人', '大舅哥'],
// 3.0
10000069: ['提纳里', 'Tighnari', '提那里', '驴'],
10000067: ['柯莱', 'Collei', '柯来', '科莱', '科来', '小天使'],
10000069: ['提纳里', 'Tighnari', '提那里', '小提', '驴'],
10000067: ['柯莱', 'Collei', '柯来', '科莱', '科来', '小天使', '须弥安柏', '安柏', '须弥飞行冠军'],
10000068: ['多莉', 'Dori', '多利', '多力'],
10000070: ['妮露', 'nilou'],
10000071: ['赛诺', 'cyno'],
10000070: ['妮露', 'nilou', '尼露', '妮璐', '舞娘', '红牛'],
10000071: ['赛诺', 'cyno', '塞诺', '胡狼'],
10000072: ['坎蒂丝', 'candace', '坎迪斯'],
// 以下为Miao新增自定义角色

View File

@ -114,13 +114,17 @@ class Character extends Base {
}
// 获取Character图像资源
getImgs (costume = '', elem = '') {
let cId = this.checkCostume(costume) ? '2' : ''
if (this._imgs) {
return this._imgs
getImgs (costume = '') {
let costumeId = this.checkCostume(costume) ? '2' : ''
let cacheId = `costume${costumeId}`
if (!this._imgs) {
this._imgs = {}
}
this._imgs = CharImg.getImgs(this.name, cId, this.isTraveler ? this.elem : '')
return this._imgs
if (this._imgs[cacheId]) {
return this._imgs[cacheId]
}
this._imgs[cacheId] = CharImg.getImgs(this.name, costumeId, this.isTraveler ? this.elem : '')
return this._imgs[cacheId]
}
// 获取详情数据