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
08e66d28be
commit
eeb8dd49de
@ -80,8 +80,7 @@ const ProfileList = {
|
||||
await player.refresh({ profile: true })
|
||||
}
|
||||
if (!player.hasProfile) {
|
||||
console.log(player.game)
|
||||
e.reply(`本地暂无uid${uid}的面板数据...`)
|
||||
e.reply(`本地暂无uid${uid}[${player.game}]的面板数据...`)
|
||||
return true
|
||||
}
|
||||
let profiles = player.getProfiles()
|
||||
|
@ -38,6 +38,7 @@ export const hutaoApi = {
|
||||
|
||||
export const homoApi = {
|
||||
url: 'https://api.mihomo.me/sr_info',
|
||||
userAgent: 'Miao-Plugin/3.1',
|
||||
listApi: ({ url, uid, diyCfg }) => {
|
||||
return `${url}/${uid}`
|
||||
}
|
||||
|
@ -80,6 +80,7 @@ export default class AvatarArtis extends Base {
|
||||
let attr = artiObj.getAttrData(ds.mainId, attrIds, arti.level, arti.star, idx)
|
||||
if (attr) {
|
||||
arti.mainId = ds.mainId
|
||||
arti.attrIds = attrIds
|
||||
arti.main = attr.main || arti.main || {}
|
||||
arti.attrs = attr.attrs || arti.attrs || {}
|
||||
} else {
|
||||
|
@ -1,11 +1,11 @@
|
||||
export const details = [{
|
||||
title: 'A普攻伤害',
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: 'E战技主目标伤害',
|
||||
title: '战技主目标伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
|
||||
}, {
|
||||
title: 'Q终结技伤害',
|
||||
title: '终结技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
|
||||
}, {
|
||||
title: '减速目标终结技伤害',
|
||||
|
@ -4,14 +4,14 @@ export const details = [{
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: 'E赐福提高攻击力上限',
|
||||
title: '赐福提高攻击力上限',
|
||||
dmg: ({ attr, calc, talent }) => {
|
||||
return {
|
||||
avg: calc(attr.atk) * talent.e['攻击力上限']
|
||||
}
|
||||
}
|
||||
}, {
|
||||
title: 'Q伤害提高',
|
||||
title: '终结技伤害提高',
|
||||
dmg: ({ talent }) => {
|
||||
return {
|
||||
avg: Format.percent(talent.q['伤害提高']),
|
||||
|
@ -1,14 +1,14 @@
|
||||
export const details = [{
|
||||
title: 'A普攻伤害',
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: 'E战技伤害',
|
||||
title: '战技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
|
||||
}, {
|
||||
title: 'E反击伤害',
|
||||
title: '反击伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['反击伤害'], 'e')
|
||||
}, {
|
||||
title: 'Q反击伤害',
|
||||
title: '反击伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.q['伤害倍率提高'] + talent.t['反击伤害'], 't')
|
||||
}]
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
export const details = [{
|
||||
title: 'A普攻伤害',
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: 'E战技主目标伤害',
|
||||
title: '战技主目标伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['主目标伤害'], 'e')
|
||||
}, {
|
||||
title: 'Q终结技伤害',
|
||||
title: '终结技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
|
||||
}, {
|
||||
title: '天赋追击伤害',
|
||||
|
@ -4,7 +4,7 @@ export const details = [{
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: 'E-Buff加伤',
|
||||
title: '战技Buff加伤',
|
||||
dmg: ({ talent }) => {
|
||||
return {
|
||||
avg: Format.percent(talent.e['伤害提高']),
|
||||
@ -12,7 +12,7 @@ export const details = [{
|
||||
}
|
||||
}
|
||||
}, {
|
||||
title: 'Q-Buff攻击力提高',
|
||||
title: '终结技Buff攻击力提高',
|
||||
dmg: ({ talent }) => {
|
||||
return {
|
||||
avg: Format.percent(talent.q['攻击力提高']),
|
||||
@ -20,7 +20,7 @@ export const details = [{
|
||||
}
|
||||
}
|
||||
}, {
|
||||
title: 'Q-Buff爆伤提高',
|
||||
title: '终结技Buff爆伤提高',
|
||||
dmg: ({ attr, calc, talent }) => {
|
||||
return {
|
||||
avg: Format.percent(calc(attr.cdmg) * talent.q['百分比暴伤'] / 100 + talent.q['固定暴伤']),
|
||||
|
@ -1,11 +1,11 @@
|
||||
export const details = [{
|
||||
title: 'A普攻伤害',
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: 'E战技伤害',
|
||||
title: '战技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
|
||||
}, {
|
||||
title: 'Q终结技伤害',
|
||||
title: '终结技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
|
||||
}]
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
export const details = [{
|
||||
title: 'A普攻伤害',
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: 'E战技伤害',
|
||||
title: '战技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
|
||||
}, {
|
||||
title: 'Q终结技伤害',
|
||||
title: '终结技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
|
||||
}]
|
||||
|
||||
@ -18,7 +18,7 @@ export const buffs = [{
|
||||
cdmg: ({ talent }) => talent.t['爆伤提高'] * 100
|
||||
}
|
||||
}, {
|
||||
title: '彦卿Q:释放终结技提高60%暴击率,智剑连心提高爆伤[qCdmg]%',
|
||||
title: '终结技:释放终结技提高60%暴击率,智剑连心提高爆伤[qCdmg]%',
|
||||
data: {
|
||||
qCpct: 60,
|
||||
qCdmg: ({ talent }) => talent.q['暴伤提高'] * 100
|
||||
|
@ -1,11 +1,11 @@
|
||||
export const details = [{
|
||||
title: 'A普攻伤害',
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: 'E战技伤害',
|
||||
title: '战技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
|
||||
}, {
|
||||
title: 'Q终结技伤害',
|
||||
title: '终结技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
|
||||
}, {
|
||||
title: '10层神君单体伤害',
|
||||
|
@ -5,7 +5,7 @@ export const details = [{
|
||||
title: '战技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
|
||||
}, {
|
||||
title: 'Q护盾量',
|
||||
title: '终结技护盾量',
|
||||
dmg: ({ attr, calc, talent }, { shield }) => shield(calc(attr.def) * talent.q['百分比防御力'] + talent.q['固定数值'])
|
||||
}, {
|
||||
title: '秘技护盾量',
|
||||
|
@ -2,10 +2,10 @@ export const details = [{
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: 'E战技主目标伤害',
|
||||
title: '战技主目标伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
|
||||
}, {
|
||||
title: 'Q终结技伤害',
|
||||
title: '终结技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
|
||||
}, {
|
||||
title: '天赋附加伤害',
|
||||
|
@ -2,10 +2,10 @@ export const details = [{
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: 'E主目标生命恢复',
|
||||
title: '战技主目标生命恢复',
|
||||
dmg: ({ calc, attr, talent }, { heal }) => heal(calc(attr.hp) * talent.e['百分比生命'] + talent.e['固定值'])
|
||||
}, {
|
||||
title: 'Q生命恢复',
|
||||
title: '终结技生命恢复',
|
||||
dmg: ({ calc, attr, talent }, { heal }) => heal(calc(attr.hp) * talent.q['百分比生命'] + talent.q['固定值'])
|
||||
}, {
|
||||
title: '天赋生息恢复',
|
||||
|
@ -34,7 +34,6 @@ let loadBuffs = async function () {
|
||||
lodash.forEach(key, (idx, k) => {
|
||||
data[k] = tables[idx]
|
||||
})
|
||||
console.log(data)
|
||||
return {
|
||||
title,
|
||||
data
|
||||
|
Loading…
Reference in New Issue
Block a user