miao-plugin/resources/meta-gs/character/夏沃蕾/calc.js
liangshi b2b9cfd555 !56 组队计算中不可叠加类圣遗物不再会重复计算buff
* 组队计算中不可叠加类圣遗物不再会重复计算buff
2023-12-05 20:05:43 +00:00

50 lines
1.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export const details = [{
title: 'E点按伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['点按伤害'], 'e',)
},{
title: 'E长按伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['长按伤害'], 'e')
},{
title: '「超量装药弹头」伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['「超量装药弹头」伤害'], 'e')
},{
title: '2命额外伤害',
check: ({ cons }) => cons >= 2,
dmg: ({ talent, calc, attr }, { basic }) => basic(calc(attr.atk) * 120 / 100, 'e')
},{
title: 'e持续治疗',
dmg: ({ attr, calc, talent }, { heal }) => heal(talent.e['持续治疗量2'][0] * calc(attr.hp) / 100 + talent.e['持续治疗量2'][1] * 1)
},{
title: '圆阵掷弹爆轰术害',
dmg: ({ talent }, dmg) => dmg(talent.q['爆轰榴弹伤害'], 'q',)
},{
title: 'Q分裂弹伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['二重毁伤弹伤害'], 'q')
},{
title: '6命额外治疗',
check: ({ cons }) => cons >= 6,
dmg: ({ attr, calc, talent }, { heal }) => heal( calc(attr.hp) * 10 / 100 )
}]
export const defDmgIdx = 2
export const mainAttr = 'atk,hp,cpct,cdmg'
export const buffs = [{
title: '夏沃蕾天赋:火元素与雷元素抗性降低[kx]%',
data: {
kx: 40
}
},{
title: '夏沃蕾天赋:发射「超量装药弹头」后攻击力提升[atkPct]%',
data: {
atkPct: ({ calc, attr }) => Math.min( 40 , calc(attr.hp) / 1000 )
}
},{
title: '夏沃蕾6命队伍中的角色受到「近迫式急促拦射」的治疗后获得[dmg]%火元素伤害加成与雷元素伤害加成',
cons: 6,
data: {
dmg: 60
}
}]
export const createdBy = 'liangshi'