更新翡翠伤害计算

This commit is contained in:
Aluxes 2024-06-22 06:24:34 +08:00
parent a3b4c803f6
commit 70d5d1089f
No known key found for this signature in database
GPG Key ID: 6696152F9C003087
4 changed files with 58 additions and 0 deletions

View File

@ -3,6 +3,7 @@
* 如character/${name}/artis.js下有角色自定义规则优先使用自定义 * 如character/${name}/artis.js下有角色自定义规则优先使用自定义
*/ */
export const usefulAttr = { export const usefulAttr = {
翡翠: { hp: 0, atk: 75, def: 0, speed: 75, cpct: 100, cdmg: 100, stance: 0, heal: 0, recharge: 50, effPct: 0, effDef: 0, dmg: 100 },
流萤: { hp: 30, atk: 100, def: 30, speed: 100, cpct: 0, cdmg: 0, stance: 100, heal: 0, recharge: 0, effPct: 0, effDef: 0, dmg: 0 }, 流萤: { hp: 30, atk: 100, def: 30, speed: 100, cpct: 0, cdmg: 0, stance: 100, heal: 0, recharge: 0, effPct: 0, effDef: 0, dmg: 0 },
波提欧: { hp: 50, atk: 50, def: 50, speed: 100, cpct: 50, cdmg: 50, stance: 100, heal: 0, recharge: 50, effPct: 0, effDef: 0, dmg: 50 }, 波提欧: { hp: 50, atk: 50, def: 50, speed: 100, cpct: 50, cdmg: 50, stance: 100, heal: 0, recharge: 50, effPct: 0, effDef: 0, dmg: 50 },
知更鸟: { hp: 75, atk: 100, def: 75, speed: 50, cpct: 0, cdmg: 0, stance: 0, heal: 0, recharge: 100, effPct: 0, effDef: 50, dmg: 0 }, 知更鸟: { hp: 75, atk: 100, def: 75, speed: 50, cpct: 0, cdmg: 0, stance: 0, heal: 0, recharge: 100, effPct: 0, effDef: 50, dmg: 0 },

View File

@ -61,6 +61,7 @@ export const buffs = [{
title: '行迹-过载核心:基于攻击力,提高自身击破特攻[stance]%', title: '行迹-过载核心:基于攻击力,提高自身击破特攻[stance]%',
check: ({ params, attr }) => params.q === true && attr.atk >= 1800, check: ({ params, attr }) => params.q === true && attr.atk >= 1800,
sort: 9, sort: 9,
tree: 3,
data: { data: {
stance: ({ attr }) => Math.floor((attr.atk - 1800) / 10) * 0.8 stance: ({ attr }) => Math.floor((attr.atk - 1800) / 10) * 0.8
} }

View File

@ -109,6 +109,7 @@ export const buffs = [{
title: '行迹-过载核心:基于攻击力,提高自身击破特攻[stance]%', title: '行迹-过载核心:基于攻击力,提高自身击破特攻[stance]%',
check: ({ params, attr }) => params.q === true && attr.atk >= 1800, check: ({ params, attr }) => params.q === true && attr.atk >= 1800,
sort: 9, sort: 9,
tree: 3,
data: { data: {
stance: ({ attr }) => Math.floor((attr.atk - 1800) / 10) * 0.8 stance: ({ attr }) => Math.floor((attr.atk - 1800) / 10) * 0.8
} }

View File

@ -0,0 +1,55 @@
export const details = [{
title: '普攻伤害',
dmg: ({ talent }, dmg) => dmg(talent.a['目标伤害'], 'a')
}, {
title: '终结技伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'], 'q')
}, {
title: '追击伤害',
dmg: ({ talent }, dmg) => dmg(talent.t['技能伤害'], 't')
}, {
title: '强化追击伤害',
dmg: ({ talent }, dmg) => dmg(talent.q['追加攻击倍率提高'] + talent.t['技能伤害'], 't')
}]
export const defDmgIdx = 3
export const mainAttr = 'atk,cpct,cdmg'
export const buffs = [{
title: '天赋-剔烁之牙50层【当品】使暴击伤害提高[cdmg]%',
data: {
cdmg: ({ talent }) => talent.t['每层爆伤提高'] * 50 * 100
}
}, {
title: '行迹-绝当品50层【当品】额外提升攻击力[atkPct]%',
tree: 3,
data: {
atkPct: 0.5 * 50
}
}, {
title: '翡翠1魂追击伤害提高[tDmg]%',
cons: 1,
data: {
tDmg: 32
}
}, {
title: '翡翠2魂【当品】叠加至15层时暴击率提高[cpct]%',
cons: 2,
data: {
cpct: 18
}
}, {
title: '翡翠4魂释放终结技后造成的伤害无视敌方[ignore]%防御力',
cons: 4,
data: {
ignore: 12
}
}, {
title: '翡翠6魂量子抗性穿透提高[kx]%',
cons: 6,
data: {
kx: 20
}
}]
export const createdBy = 'Aluxes'