miao-plugin/resources/meta-sr/character/寒鸦/calc.js

65 lines
1.5 KiB
JavaScript
Raw Normal View History

import { Format } from '#miao'
export const details = [{
title: '普攻伤害',
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
}, {
title: '战技伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, {
title: '终结技提高单体速度',
dmg: ({ talent }) => {
return {
avg: Format.percent(talent.q['速度提升']),
type: 'text'
}
}
}, {
title: '终结技提高单体攻击力',
dmg: ({ talent }) => {
return {
avg: Format.percent(talent.q['速度提升']),
type: 'text'
}
}
}, {
title: '天赋提高AEQ伤害',
dmg: ({ talent, cons }) => {
let extraTd = cons < 6 ? 0 : 0.1
return {
avg: Format.percent(talent.t['伤害提高'] + extraTd),
type: 'text'
}
}
}]
export const defDmgIdx = 1
export const mainAttr = 'atk,cpct,cdmg,dmg'
export const buffs = [{
title: '天赋-罚恶:对战技标记的敌人造成的普攻、战技、终结技伤害提高[_dmg]%',
data: {
_dmg: ({ talent }) => talent.t['伤害提高'] * 100,
aDmg: ({ talent }) => talent.t['伤害提高'] * 100,
eDmg: ({ talent }) => talent.t['伤害提高'] * 100,
qDmg: ({ talent }) => talent.t['伤害提高'] * 100
}
}, {
title: '寒鸦2命释放战技后速度提高[speedPct]%',
cons: 2,
data: {
speedPct: 20
}
}, {
title: '寒鸦6命天赋的伤害提高效果额外提高[_dmg]%',
cons: 6,
data: {
_dmg: 10,
aDmg: 10,
eDmg: 10,
qDmg: 10
}
}]
export const createdBy = 'Aluxes'