mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-27 18:01:23 +00:00
玛拉妮计算
This commit is contained in:
parent
f1fabd00ac
commit
82dd9fa28f
@ -40,7 +40,7 @@ let DmgAttr = {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// 技能属性记录
|
// 技能属性记录
|
||||||
lodash.forEach((game === 'gs' ? 'a,a2,a3,e,q' : 'a,a2,a3,e,e2,q,q2,t,dot,break').split(','), (key) => {
|
lodash.forEach((game === 'gs' ? 'a,a2,a3,e,q,nightsoul' : 'a,a2,a3,e,e2,q,q2,t,dot,break').split(','), (key) => {
|
||||||
ret[key] = ret[key] || {
|
ret[key] = ret[key] || {
|
||||||
pct: 0, // 倍率加成
|
pct: 0, // 倍率加成
|
||||||
multi: 0, // 独立倍率乘区加成,宵宫E等
|
multi: 0, // 独立倍率乘区加成,宵宫E等
|
||||||
|
67
resources/meta-gs/character/玛拉妮/calc.js
Normal file
67
resources/meta-gs/character/玛拉妮/calc.js
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
export const details = [{
|
||||||
|
title: '巨浪鲨鲨撕咬伤害',
|
||||||
|
dmg: ({ talent, calc, attr }, { basic }) => basic(calc(attr.hp) * ( talent.e['鲨鲨撕咬基础伤害'] + talent.e['巨浪鲨鲨撕咬伤害额外提升'] ) / 100, 'a,nightsoul')
|
||||||
|
}, {
|
||||||
|
check: ({ cons }) => cons < 6,
|
||||||
|
title: '巨浪鲨鲨撕咬蒸发',
|
||||||
|
dmgKey: 'e',
|
||||||
|
dmg: ({ talent, calc, attr }, { basic }) => basic(calc(attr.hp) * ( talent.e['鲨鲨撕咬基础伤害'] + talent.e['巨浪鲨鲨撕咬伤害额外提升'] ) / 100, 'a,nightsoul', 'vaporize')
|
||||||
|
}, {
|
||||||
|
check: ({ cons }) => cons >= 1,
|
||||||
|
title: '强化巨浪鲨鲨撕咬蒸发',
|
||||||
|
dmgKey: 'e',
|
||||||
|
params: { cons1: true },
|
||||||
|
dmg: ({ talent, calc, attr }, { basic }) => basic(calc(attr.hp) * ( talent.e['鲨鲨撕咬基础伤害'] + talent.e['巨浪鲨鲨撕咬伤害额外提升'] ) / 100, 'a,nightsoul', 'vaporize')
|
||||||
|
}, {
|
||||||
|
title: '爆瀑飞弹伤害',
|
||||||
|
dmg: ({ talent, calc, attr }, { basic }) => basic(calc(attr.hp) * talent.q['技能伤害'] / 100, 'q,nightsoul')
|
||||||
|
}, {
|
||||||
|
title: '爆瀑飞弹蒸发',
|
||||||
|
dmg: ({ talent, calc, attr }, { basic }) => basic(calc(attr.hp) * talent.q['技能伤害'] / 100, 'q,nightsoul', 'vaporize')
|
||||||
|
}]
|
||||||
|
|
||||||
|
export const defParams = { Nightsoul: true }
|
||||||
|
export const defDmgKey = 'e'
|
||||||
|
export const mainAttr = 'hp,cpct,cdmg,mastery'
|
||||||
|
|
||||||
|
export const buffs = [{
|
||||||
|
title: '踏鲨破浪:3层浪势充能使鲨鲨撕咬造成的伤害提升[aPlus]巨浪鲨鲨撕咬伤害额外提升[_aPlus]',
|
||||||
|
sort: 9,
|
||||||
|
data: {
|
||||||
|
aPlus: ({ talent, calc, attr }) => calc(attr.hp) * talent.e['浪势充能伤害提升'] / 100 * 3 ,
|
||||||
|
_aPlus: ({ talent, calc, attr }) => calc(attr.hp) * talent.e['巨浪鲨鲨撕咬伤害额外提升'] / 100
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
title: '玛拉妮天赋:3层逐浪心得使爆瀑飞弹伤害提升[qPlus]',
|
||||||
|
sort: 9,
|
||||||
|
data: {
|
||||||
|
qPlus: ({ calc, attr }) => calc(attr.hp) * 45 / 100
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
check: ({ params }) => params.cons1 === true,
|
||||||
|
title: '玛拉妮1命:第一次巨浪鲨鲨撕咬及它所触发的鲨鲨飞弹造成的伤害提升[aPlus]',
|
||||||
|
cons: 1,
|
||||||
|
sort: 9,
|
||||||
|
data: {
|
||||||
|
aPlus: ({ calc, attr }) => calc(attr.hp) * 66 / 100
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
title: '玛拉妮4命:爆瀑飞弹造成的伤害提升[qDmg]%',
|
||||||
|
cons: 4,
|
||||||
|
data: {
|
||||||
|
qDmg: 75
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
, {
|
||||||
|
title: '幻境祝福:角色编入队伍后,生命值、攻击力与防御力提升[hpPct]%,该效果不论是否在幻想真境剧诗中都将生效。',
|
||||||
|
data: {
|
||||||
|
hpPct: 20,
|
||||||
|
atkPct: 20,
|
||||||
|
defPct: 20
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
]
|
||||||
|
|
||||||
|
export const createdBy = 'liangshi'
|
Loading…
Reference in New Issue
Block a user