mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
调整圣遗物及天赋数据更新的逻辑
This commit is contained in:
parent
c10fe06fea
commit
b600d3799a
@ -76,10 +76,10 @@ export default class AvatarArtis extends Base {
|
||||
arti.star = ds.star || 5
|
||||
|
||||
if (ds.mainId || ds.main) {
|
||||
arti._name = ds.name || arti.name
|
||||
arti._set = ds.set || Artifact.getSetNameByArti(arti.name) || arti.set || ''
|
||||
arti._level = ds.level || arti.level
|
||||
arti._star = ds.star || arti.star || 5
|
||||
arti._name = ds._name || ds.name || arti._name || arti.name
|
||||
arti._set = ds._set || Artifact.getSetNameByArti(arti._name) || arti._set || ''
|
||||
arti._level = ds._level || ds.level || arti._level || arti.level
|
||||
arti._star = ds._star || ds.star || arti._star || arti.star || 5
|
||||
}
|
||||
|
||||
// 存在面板数据,更新面板数据
|
||||
|
@ -188,7 +188,7 @@ const MysAvatar = {
|
||||
async refreshTalent (player, ids, force = 0) {
|
||||
let e = player?.e
|
||||
let mys = e?._mys
|
||||
if (!e || !mys) {
|
||||
if (!e || !mys || !mys.isSelfCookie) {
|
||||
return false
|
||||
}
|
||||
let needReqIds = MysAvatar.getNeedRefreshIds(player, ids, force)
|
||||
|
Loading…
Reference in New Issue
Block a user