mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-25 09:27:34 +00:00
修正历史错误数据可能导致面板统计错误的问题
This commit is contained in:
parent
e58721d1b9
commit
6c8952c885
@ -44,9 +44,12 @@ export async function profileStat (e) {
|
||||
avatar.aeq = talent?.a?.original + talent?.e?.original + talent?.q?.original || 3
|
||||
avatarRet.push(avatar)
|
||||
if (profiles[id]) {
|
||||
let profile = profiles[id]
|
||||
if(profile.hasData) {
|
||||
let mark = profiles[id].getArtisMark(false)
|
||||
avatar.artisMark = Data.getData(mark, 'mark,markClass,names')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
let sortKey = 'level,star,aeq,cons,weapon.level,weapon.star,weapon.affix,fetter'.split(',')
|
||||
|
@ -203,7 +203,7 @@ class Character extends Base {
|
||||
if (CharId.isTraveler(avatar.id)) {
|
||||
let char = Character.get({
|
||||
id: avatar.id,
|
||||
elem: (avatar.elem || avatar.element).toLowerCase() || 'anemo'
|
||||
elem: (avatar.elem || avatar.element || 'anemo').toLowerCase()
|
||||
})
|
||||
char.setTraveler(uid)
|
||||
return char
|
||||
|
@ -125,8 +125,11 @@ export default class ProfileData extends Base {
|
||||
|
||||
// 获取当前profileData的圣遗物评分,withDetail=false仅返回简略信息
|
||||
getArtisMark (withDetail = true) {
|
||||
if(this.hasData) {
|
||||
return this.artis.getMarkDetail(withDetail)
|
||||
}
|
||||
return {}
|
||||
}
|
||||
|
||||
// 计算当前profileData的伤害信息
|
||||
async calcDmg ({ enemyLv = 91, mode = 'profile', dmgIdx = 0 }) {
|
||||
|
Loading…
Reference in New Issue
Block a user