mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
增加妮露的伤害计算,准确性待验证
This commit is contained in:
parent
e43f5ef386
commit
b99a15889b
@ -206,13 +206,13 @@ const buffs = {
|
||||
}
|
||||
},
|
||||
深林的记忆4: {
|
||||
title: '元素战技或元素爆发命中敌人后,使命中目标的草元素抗性降低30%',
|
||||
title: '草套4:元素战技或元素爆发命中敌人后,使命中目标的草元素抗性降低30%',
|
||||
data: {
|
||||
kx: 30
|
||||
}
|
||||
},
|
||||
饰金之梦4: {
|
||||
title: '队伍存在其他3个不同元素类型角色时,精通提高150',
|
||||
title: '饰金4:队伍存在其他3个不同元素类型角色时,精通提高150',
|
||||
data: {
|
||||
mastery: 150
|
||||
}
|
||||
|
51
resources/meta/character/妮露/calc.js
Normal file
51
resources/meta/character/妮露/calc.js
Normal file
@ -0,0 +1,51 @@
|
||||
export const details = [{
|
||||
title: '水月伤害',
|
||||
params: { sy: true },
|
||||
dmg: ({ talent, calc, attr }, { basic }) => basic(calc(attr.hp) * talent.e['水月/水轮伤害2'][0] / 100, 'e')
|
||||
}, {
|
||||
title: '剑舞步三段伤害',
|
||||
dmg: ({ talent, calc, attr, cons }, { basic }) => {
|
||||
let pct = talent.e['剑舞步/旋舞步一段伤害2'][0] * 1 + talent.e['剑舞步/旋舞步二段伤害2'][0] * 1
|
||||
let ret1 = basic(calc(attr.hp) * pct / 100, 'e')
|
||||
if (cons >= 1) {
|
||||
attr.e.dmg += 65
|
||||
}
|
||||
let ret2 = basic(calc(attr.hp) * talent.e['水月/水轮伤害2'][0] / 100, 'e')
|
||||
return {
|
||||
dmg: ret1.dmg + ret2.dmg,
|
||||
avg: ret2.avg + ret2.avg
|
||||
}
|
||||
}
|
||||
}, {
|
||||
title: 'Q两段总伤害',
|
||||
dmg: ({ talent, calc, attr }, { basic }) => basic(calc(attr.hp) * (talent.q['技能伤害'] + talent.q['永世流沔伤害']) / 100, 'q')
|
||||
}]
|
||||
|
||||
export const mainAttr = 'hp,atk,cpct,cdmg'
|
||||
|
||||
export const buffs = [{
|
||||
title: '妮露1命:水月造成的伤害提升65%',
|
||||
cons: 1,
|
||||
data: {
|
||||
eDmg: ({ params }) => params.sy ? 65 : 0
|
||||
}
|
||||
}, {
|
||||
title: '妮露2命:金杯的丰馈下降低敌人35%水抗与草抗',
|
||||
cons: 2,
|
||||
data: {
|
||||
kx: 35
|
||||
}
|
||||
}, {
|
||||
title: '妮露4命:第三段舞步命中敌人Q伤害提高50%',
|
||||
cons: 4,
|
||||
data: {
|
||||
qDmg: 50
|
||||
}
|
||||
}, {
|
||||
title: '妮露6命:提高暴击[cpct]%,爆伤[cdmg]%',
|
||||
cons: 6,
|
||||
data: {
|
||||
cpct: ({ calc, attr }) => Math.min(30, calc(attr.hp) / 1000 * 0.6),
|
||||
cdmg: ({ calc, attr }) => Math.min(60, calc(attr.hp) / 1000 * 1.2)
|
||||
}
|
||||
}]
|
@ -177,7 +177,7 @@ export default function (step) {
|
||||
圣显之钥: {
|
||||
title: '基于生命提升元素精通,满层提升[mastery]',
|
||||
data: {
|
||||
mastery: ({ attr, calc, refine }) => step(0.12)[refine] * calc(attr.hp) / 100
|
||||
mastery: ({ attr, calc, refine }) => step(0.36 + 0.2)[refine] * calc(attr.hp) / 100
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user