mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 15:36:27 +00:00
更新符玄伤害计算
This commit is contained in:
parent
19edc805e7
commit
03db583b7d
@ -3,6 +3,7 @@
|
||||
* 如character/${name}/artis.js下有角色自定义规则优先使用自定义
|
||||
*/
|
||||
export const usefulAttr = {
|
||||
符玄: { hp: 100, atk: 0, def: 50, speed: 100, cpct: 100, cdmg: 100, stance: 0, heal: 0, recharge: 50, effPct: 0, effDef: 50, dmg: 100 },
|
||||
'丹恒•饮月': { hp: 0, atk: 75, def: 0, speed: 100, cpct: 100, cdmg: 100, stance: 0, heal: 0, recharge: 50, effPct: 0, effDef: 0, dmg: 100 },
|
||||
卡芙卡: { hp: 0, atk: 100, def: 0, speed: 100, cpct: 0, cdmg: 0, stance: 50, heal: 0, recharge: 50, effPct: 75, effDef: 0, dmg: 100 },
|
||||
刃: { hp: 100, atk: 50, def: 0, speed: 100, cpct: 100, cdmg: 100, stance: 0, heal: 0, recharge: 50, effPct: 0, effDef: 0, dmg: 100 },
|
||||
|
@ -13,6 +13,7 @@ export const details = [{
|
||||
}]
|
||||
|
||||
export const mainAttr = 'atk,cpct,cdmg,hp'
|
||||
export const defDmgIdx = 2
|
||||
|
||||
export const buffs = [{
|
||||
title: '白露2命:释放终结技后治疗提高15%',
|
||||
|
58
resources/meta-sr/character/符玄/calc.js
Normal file
58
resources/meta-sr/character/符玄/calc.js
Normal file
@ -0,0 +1,58 @@
|
||||
import { Format } from '#miao'
|
||||
|
||||
export const details = [{
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent, attr, calc }, { basic }) => {
|
||||
const hp = calc(attr.hp)
|
||||
return basic(talent.a['技能伤害'] * hp, 'a')
|
||||
}
|
||||
}, {
|
||||
title: '战技提高生命上限值',
|
||||
dmg: ({ talent, attr, calc }) => {
|
||||
return {
|
||||
avg: calc(attr.hp) * talent.e['生命上限提高']
|
||||
}
|
||||
}
|
||||
}, {
|
||||
title: '战技提高暴击率',
|
||||
dmg: ({ talent }) => {
|
||||
return {
|
||||
avg: Format.percent(talent.e['暴击率提高']),
|
||||
type: 'text'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
title: '终结技伤害',
|
||||
dmg: ({ talent, attr, calc }, { basic }) => {
|
||||
const hp = calc(attr.hp)
|
||||
return basic(talent.q['技能伤害'] * hp, 'q')
|
||||
}
|
||||
}, {
|
||||
title: '终结技生命回复量',
|
||||
tree: 2,
|
||||
dmg: ({ attr, calc }, { heal }) => heal(calc(attr.hp) * 0.05 + 133)
|
||||
}]
|
||||
|
||||
export const mainAttr = 'cpct,cdmg,hp'
|
||||
export const defDmgIdx = 4
|
||||
|
||||
export const buffs = [{
|
||||
title: '战技Buff:生命上限提高[hpPlus],暴击率提高[cpct]%',
|
||||
sort: 0,
|
||||
data: {
|
||||
hpPlus: ({ talent, attr, calc }) => calc(attr.hp) * talent.e['生命上限提高'],
|
||||
cpct: ({ talent }) => talent.e['暴击率提高']
|
||||
}
|
||||
}, {
|
||||
title: '符玄1命:暴击伤害提高[cdmg]%',
|
||||
cons: 1,
|
||||
data: {
|
||||
cdmg: 30
|
||||
}
|
||||
}, {
|
||||
title: '符玄6命:终结技伤害提高[qPlus]',
|
||||
cons: 6,
|
||||
data: {
|
||||
qPlus: ({ attr, calc }) => calc(attr.hp) * 1.2
|
||||
}
|
||||
}]
|
@ -32,6 +32,11 @@ export default function (staticIdx, keyIdx) {
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
她已闭上双眼: [
|
||||
staticIdx(1, 'hpPct'),
|
||||
staticIdx(2, 'recharge'),
|
||||
keyIdx('装备者生命降低时,使我方全体造成的伤害提高[dmg]%', 'dmg', 3)
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user