miao-plugin/resources/meta-gs/character/胡桃/calc.js

29 lines
781 B
JavaScript
Raw Normal View History

export const details = [{
2022-08-07 18:26:25 +00:00
title: '半血开E重击',
dmg: ({ talent }, dmg) => dmg(talent.a['重击伤害'], 'a2')
}, {
2022-08-07 18:26:25 +00:00
title: '半血开E重击蒸发',
dmg: ({ talent }, dmg) => dmg(talent.a['重击伤害'], 'a2', 'vaporize')
}, {
2022-08-07 18:26:25 +00:00
title: '半血开E后Q',
dmg: ({ talent }, dmg) => dmg(talent.q['低血量时技能伤害'], 'q')
2022-08-07 18:26:25 +00:00
}]
2022-08-07 18:26:25 +00:00
export const defDmgIdx = 1
export const mainAttr = 'hp,atk,cpct,cdmg,mastery'
export const buffs = [{
2022-08-07 18:26:25 +00:00
title: '蝶引来生开E获得[atkPlus]点攻击力加成',
sort: 9,
data: {
atkPlus: ({ talent, attr, calc }) => {
2022-08-07 18:26:25 +00:00
return Math.min(talent.e['攻击力提高'] * calc(attr.hp) / 100, attr.atk.base * 4)
}
}
}, {
2022-08-07 18:26:25 +00:00
title: '胡桃被动半血获得33%火伤加成',
data: {
2022-08-07 18:26:25 +00:00
dmg: 33
}
}, 'vaporize']