mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-12-17 23:57:58 +00:00
6efdc4c556
* 修复八重组队计算的错误 * 修复八重组队计算的错误 * 增加了胡桃、可莉、一斗的配队计算 * Fix: 胡桃配队计算补上了双水buff * Adjust: 启用组队的情况下,默认胡桃伤害计算调整为双水配队的重击蒸发伤害
61 lines
1.8 KiB
JavaScript
61 lines
1.8 KiB
JavaScript
export const details = [{
|
||
title: '半血开E重击',
|
||
params: { team: false },
|
||
dmg: ({ talent, attr }, dmg) => dmg(talent.a['重击伤害'], 'a2')
|
||
}, {
|
||
title: '半血开E重击蒸发',
|
||
params: { team: false },
|
||
dmg: ({ talent, attr }, dmg) => dmg(talent.a['重击伤害'], 'a2', 'vaporize')
|
||
}, {
|
||
title: '胡桃双水半血重击蒸发',
|
||
params: { team: true},
|
||
dmg: ({ talent, attr }, dmg) => dmg(talent.a['重击伤害'], 'a2', 'vaporize')
|
||
}, {
|
||
title: '半血开E后Q蒸发',
|
||
params: { team: false },
|
||
dmg: ({ talent, attr }, dmg) => dmg(talent.q['低血量时技能伤害'], 'q', 'vaporize')
|
||
}, {
|
||
title: '胡桃双水半血Q蒸发',
|
||
params: { team: true},
|
||
dmg: ({ talent, attr }, dmg) => dmg(talent.q['低血量时技能伤害'], 'q', 'vaporize')
|
||
}]
|
||
|
||
export const defDmgIdx = 2
|
||
export const mainAttr = 'hp,atk,cpct,cdmg,mastery'
|
||
|
||
export const defParams = {
|
||
team: true
|
||
}
|
||
|
||
export const buffs = [{
|
||
check: ({ params }) => params.team === true,
|
||
title: '双水共鸣:获得[hpPct]%生命值',
|
||
data: {
|
||
hpPct: 25
|
||
}
|
||
},{
|
||
title: '蝶引来生:开E获得[atkPlus]点攻击力加成',
|
||
data: {
|
||
atkPlus: ({ talent, attr, calc }) => {
|
||
return Math.min(talent.e['攻击力提高'] * calc(attr.hp) / 100, attr.atk.base * 4)
|
||
}
|
||
}
|
||
}, {
|
||
title: '胡桃被动:半血获得33%火伤加成',
|
||
data: {
|
||
dmg: 33
|
||
}
|
||
},{
|
||
check: ({ params }) => params.team === true,
|
||
title: '夜兰:获得平均[dmg]%增伤',
|
||
data: {
|
||
dmg: 35
|
||
}
|
||
},{
|
||
check: ({ params }) => params.team === true,
|
||
title: '钟离:降低敌人[kx]%全抗',
|
||
data: {
|
||
kx: 20
|
||
}
|
||
},'vaporize']
|
||
|