2022-08-07 18:26:25 +00:00
|
|
|
|
import lodash from 'lodash'
|
2022-05-01 21:58:48 +00:00
|
|
|
|
|
|
|
|
|
export const details = [{
|
|
|
|
|
check: ({ cons }) => cons < 2,
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '水母每跳治疗',
|
2022-11-08 22:04:08 +00:00
|
|
|
|
dmgKey: 'q',
|
2022-05-02 22:32:36 +00:00
|
|
|
|
dmg: ({ attr, talent, calc }, { heal }) => {
|
2022-11-08 22:04:08 +00:00
|
|
|
|
let t = talent.e['治疗量2'];
|
|
|
|
|
let hp = calc(attr.hp)
|
2022-08-07 18:26:25 +00:00
|
|
|
|
return heal(hp * t[0] / 100 + t[1] * 1)
|
2022-05-01 21:58:48 +00:00
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
cons: 2,
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '半血水母每跳治疗',
|
2022-11-08 22:04:08 +00:00
|
|
|
|
dmgKey: 'q',
|
2022-05-02 22:32:36 +00:00
|
|
|
|
dmg: ({ attr, talent, calc }, { heal }) => {
|
2022-11-08 22:04:08 +00:00
|
|
|
|
let t = talent.e['治疗量2'];
|
|
|
|
|
let hp = calc(attr.hp)
|
2022-08-07 18:26:25 +00:00
|
|
|
|
return heal(hp * t[0] / 100 + t[1] * 1 + hp * 0.045)
|
2022-05-01 21:58:48 +00:00
|
|
|
|
}
|
|
|
|
|
}, {
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '开Q普攻三段伤害',
|
2022-05-01 21:58:48 +00:00
|
|
|
|
dmg: ({ attr, talent }, dmg) => dmg(talent.a['三段伤害'], 'a')
|
|
|
|
|
}, {
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '开Q重击伤害',
|
2022-05-01 21:58:48 +00:00
|
|
|
|
dmg: ({ attr, talent }, dmg) => dmg(talent.a['重击伤害'], 'a2')
|
|
|
|
|
}, {
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '开Q普攻三段总伤',
|
2022-05-01 21:58:48 +00:00
|
|
|
|
dmg: ({ attr, talent, cons, calc }, dmg) => {
|
2022-08-07 18:26:25 +00:00
|
|
|
|
let ret = { dmg: 0, avg: 0 }
|
|
|
|
|
lodash.forEach('一二三'.split(''), (num) => {
|
|
|
|
|
let dmgRet = dmg(talent.a[`${num}段伤害`], 'a')
|
|
|
|
|
ret.dmg += dmgRet.dmg
|
|
|
|
|
ret.avg += dmgRet.avg
|
|
|
|
|
})
|
2022-05-01 21:58:48 +00:00
|
|
|
|
if (cons > 0) {
|
2022-08-07 18:26:25 +00:00
|
|
|
|
let dmgRet = dmg.basic(calc(attr.hp) * 0.3)
|
|
|
|
|
ret.dmg += dmgRet.dmg
|
|
|
|
|
ret.avg += dmgRet.avg
|
2022-05-01 21:58:48 +00:00
|
|
|
|
}
|
2022-08-07 18:26:25 +00:00
|
|
|
|
return ret
|
2022-05-01 21:58:48 +00:00
|
|
|
|
}
|
2022-08-07 18:26:25 +00:00
|
|
|
|
}]
|
2022-11-08 22:04:08 +00:00
|
|
|
|
export const defDmgKey = 'q'
|
2022-08-07 18:26:25 +00:00
|
|
|
|
export const defDmgIdx = 2
|
|
|
|
|
export const mainAttr = 'hp,atk'
|
2022-05-01 21:58:48 +00:00
|
|
|
|
|
|
|
|
|
export const buffs = [{
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '心海被动:治疗加成提高25%'
|
2022-05-01 21:58:48 +00:00
|
|
|
|
}, {
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '心海被动:开Q后重击伤害基于治疗加成提高[aPlus]',
|
2022-05-01 21:58:48 +00:00
|
|
|
|
data: {
|
|
|
|
|
aPlus: ({ attr, calc }) => calc(attr.hp) * calc(attr.heal) * 0.15 / 100,
|
|
|
|
|
a2Plus: ({ attr, calc }) => calc(attr.hp) * calc(attr.heal) * 0.15 / 100
|
|
|
|
|
}
|
|
|
|
|
}, {
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '海人化羽:开Q后普攻伤害提高[aPlus]',
|
2022-05-01 21:58:48 +00:00
|
|
|
|
data: {
|
|
|
|
|
aPlus: ({ attr, talent, calc }) => calc(attr.hp) * talent.q['普通攻击伤害提升'] / 100
|
|
|
|
|
}
|
|
|
|
|
}, {
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '海人化羽:开Q后重击伤害提高[a2Plus]',
|
2022-05-01 21:58:48 +00:00
|
|
|
|
data: {
|
|
|
|
|
a2Plus: ({ attr, talent, calc }) => calc(attr.hp) * talent.q['重击伤害提升'] / 100
|
|
|
|
|
}
|
|
|
|
|
}, {
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '心海1命:开Q后第三段普攻额外释放一只游鱼,造成生命值上限30%的水元素伤害',
|
2022-05-01 21:58:48 +00:00
|
|
|
|
cons: 1
|
|
|
|
|
}, {
|
2022-08-07 18:26:25 +00:00
|
|
|
|
title: '心海6命:开Q攻击获得治疗后,获得40%水伤加成',
|
2022-05-01 21:58:48 +00:00
|
|
|
|
cons: 6,
|
|
|
|
|
data: {
|
|
|
|
|
dmg: 40
|
|
|
|
|
}
|
2022-08-07 18:26:25 +00:00
|
|
|
|
}]
|