激化伤害与武器圣遗物结算顺序 (#494)

This commit is contained in:
panganqi 2023-03-01 01:22:57 +08:00 committed by GitHub
parent 9f7f528e23
commit 6f24464f1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 127 additions and 51 deletions

View File

@ -355,7 +355,7 @@ const buffs = {
2: attr('atkPct', 18), 2: attr('atkPct', 18),
4: { 4: {
title: '触发提高普攻[aPlus]伤害', title: '触发提高普攻[aPlus]伤害',
sort: 0, sort: 10,
data: { data: {
aPlus: ({ attr }) => (attr.atk.base + attr.atk.plus + attr.atk.pct * attr.atk.base / 100) * 0.35 aPlus: ({ attr }) => (attr.atk.base + attr.atk.plus + attr.atk.pct * attr.atk.base / 100) * 0.35
} }
@ -376,6 +376,7 @@ const buffs = {
2: attr('mastery', 80), 2: attr('mastery', 80),
4: { 4: {
title: '队伍存在其他3个不同元素类型角色时精通提高150', title: '队伍存在其他3个不同元素类型角色时精通提高150',
sort: 0,
data: { data: {
mastery: 150 mastery: 150
} }

View File

@ -1,4 +1,8 @@
export const details = [{ export const details = [, {
title: '超绽放伤害',
dmg: ({calc, attr}, { reaction }) => {
return reaction('hyperBloom')}
},{
title: 'E释放伤害', title: 'E释放伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e') dmg: ({ talent }, dmg) => dmg(talent.e['技能伤害'], 'e')
}, { }, {
@ -26,4 +30,4 @@ export const buffs = [{
healNum: ({ attr, calc }) => calc(attr.mastery) * 0.75, healNum: ({ attr, calc }) => calc(attr.mastery) * 0.75,
ePlus: ({ attr, calc }) => calc(attr.mastery) * 0.25 ePlus: ({ attr, calc }) => calc(attr.mastery) * 0.25
} }
}] }]

View File

@ -2,49 +2,68 @@ export const details = [{
check: ({ cons }) => cons < 2, check: ({ cons }) => cons < 2,
dmgKey: 'e', dmgKey: 'e',
title: '叄阶杀生樱伤害', title: '叄阶杀生樱伤害',
params: { team: false }, params: { team: false ,team2: false},
dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e') dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e')
}, { }, {
check: ({ cons }) => cons >= 2, check: ({ cons }) => cons >= 2,
dmgKey: 'e', dmgKey: 'e',
title: '肆阶杀生樱伤害', title: '肆阶杀生樱伤害',
params: { team: false }, params: { team: false ,team2: false},
dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e') dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e')
}, { },{
check: ({ cons }) => cons < 2, check: ({ cons }) => cons < 2,
dmgKey: 'e_t', dmgKey: 'e_t',
params: { team: true }, params: { team: true ,team2: false},
title: '温三雷叄阶杀生樱伤害', title: '温三雷叄阶杀生樱伤害',
dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e') dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e')
}, { }, {
check: ({ cons }) => cons >= 2, check: ({ cons }) => cons >= 2,
dmgKey: 'e_t', dmgKey: 'e_t',
params: { team: true }, params: { team: true ,team2: false},
title: '温三雷肆阶杀生樱伤害', title: '温三雷肆阶杀生樱伤害',
dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e') dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e')
}, { }, {
title: 'Q天狐霆雷伤害', title: 'Q天狐霆雷伤害',
params: { team: false }, params: { team: false ,team2: false},
dmg: ({ talent }, dmg) => dmg(talent.q['天狐霆雷伤害'], 'q') dmg: ({ talent }, dmg) => dmg(talent.q['天狐霆雷伤害'], 'q')
}, { }, {
title: '温三雷四段Q总伤害', title: '温三雷四段Q总伤害',
params: { team: true }, params: { team: true ,team2: false},
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'] + talent.q['天狐霆雷伤害'] * 3, 'q') dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'] + talent.q['天狐霆雷伤害'] * 3, 'q')
},{
check: ({ cons }) => cons < 2,
dmgKey: 'e_j',
params: { team: false,team2: true },
title: '提八纳万叄阶杀生樱激化伤害',
dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e', '超激化')
}, {
check: ({ cons }) => cons >= 2,
dmgKey: 'e_j',
params: { team: false,team2: true },
title: '提八纳万肆阶杀生樱激化伤害',
dmg: ({ talent, attr }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e', '超激化')
}, {
title: '提八纳万四段Q总伤害',
params: { team: false,team2: true },
dmg: ({ talent }, dmg) => {
let q1j = dmg(talent.q['技能伤害'], 'q', '超激化')
let q2j = dmg(talent.q['天狐霆雷伤害'], 'q', '超激化')
return {
dmg: q1j.dmg + q2j.dmg * 3,
avg: q1j.avg + q2j.avg * 3
}
}
}] }]
export const mainAttr = 'atk,cpct,cdmg,mastery' export const mainAttr = 'atk,cpct,cdmg,mastery'
export const defDmgKey = 'e' export const defDmgKey = 'e_j'
export const defParams = { export const defParams = {
team: true team:true,team2:true
} }
export const buffs = [{ export const buffs = [{
title: '被动天赋:基于元素精通提高杀生樱伤害[eDmg]%',
data: {
eDmg: ({ attr, calc }) => calc(attr.mastery) * 0.15
}
}, {
check: ({ cons }) => cons >= 4, check: ({ cons }) => cons >= 4,
title: '4命效果杀生樱命中敌人后提高雷伤[dmg]%', title: '4命效果杀生樱命中敌人后提高雷伤[dmg]%',
data: { data: {
@ -56,34 +75,82 @@ export const buffs = [{
data: { data: {
eDef: 60 eDef: 60
} }
}, { }, {check: ({ cons,params }) => (cons >= 6 && params.team === true),
check: ({ cons, params }) => ((cons == 6) && params.team === true), title: '精5终末6命温迪增加[atkPct]%攻击,减抗[kx]%,精通[mastery]',
title: '精5终末6命温迪增加[atkPct]%攻击,减抗[kx]%,精通[mastery]', data: {
atkPct:40,
kx:60,
mastery:200
}
}, {check: ({ cons,params }) => (cons < 6 && cons >1 && params.team === true),
title: '精1终末0命温迪增加[atkPct]%攻击,减抗[kx]%,精通[mastery]',
data: {
atkPct:20,
kx:40,
mastery:100
}
}, {check: ({ params }) => params.team === true,
title: '天空宗室九条:增加[atkPlus]点攻击力,[atkPct]%攻击与[cdmg]%爆伤',
data: {
atkPlus: 794.2,
atkPct:20,
cdmg:60
}
}, {check: ({ cons,params }) => (cons >= 2&&cons < 6&& params.team2 === true),
title: '精1千夜纳西妲提纳里增加精通[mastery](包括双草),减防[enemyDef]%',
data: {
mastery: 140,
enemyDef: 30,
}
}, {check: ({ cons,params }) => (cons >= 6&& params.team2 === true),
title: '精5千夜纳西妲提纳里增加精通[mastery](包括双草),减防[enemyDef](折合效果)%',
data: {
mastery: 268,
enemyDef: 12,
}
}, {check: ({ cons,params }) => (cons < 2&& params.team2 === true),
title: '精1千夜草套纳西妲提纳里增加精通[mastery](包括双草)',
data: {
mastery: 140
}
}, {check: ({ cons,params }) => cons <= 1 && params.team2 === true,
title: '精1苍古0命万叶获得[dmg]%增伤(苍古普攻16增伤),增加[atkPct]%攻击,减抗[kx]%',
data: {
aDmg:16,
a2Dmg:16,
a3Dmg:16,
dmg: 40,
atkPct:20,
kx:40,
}
}, {check: ({ cons,params }) => ((cons < 6 && cons >1) && params.team2 === true),
title: '精1苍古2命万叶获得[dmg]%增伤(苍古普攻16增伤),增加[atkPct]%攻击,减抗[kx]%,精通[mastery]',
data: {
aDmg:16,
a2Dmg:16,
a3Dmg:16,
dmg: 48,
atkPct:20,
kx:40,
}
}, {check: ({ cons,params }) => (cons >= 6 && params.team2 === true),
title: '精5苍古6命万叶获得[dmg]%增伤(苍古普攻32增伤),增加[atkPct]%攻击,减抗[kx]%,精通[mastery]',
data: {
aDmg:32,
a2Dmg:32,
a3Dmg:32,
dmg: 48,
atkPct:40,
kx:40,
}
},{
title: '被动天赋:基于元素精通提高杀生樱伤害[eDmg]%',
data: { data: {
atkPct: 40, eDmg: ({ attr, calc }) => calc(attr.mastery) * 0.15
kx: 60,
mastery: 200
} }
}, { }, {check: ({ params }) => params.team === true,
check: ({ cons, params }) => (cons <= 5 && params.team === true), title: '恶曜开眼开E元素爆发伤害提升[qDmg]%',
title: '精1终末0命温迪增加[atkPct]%攻击,减抗[kx]%,精通[mastery]', data: {
data: { qDmg: 27
atkPct: 20, }
kx: 40, }]
mastery: 100
}
}, {
check: ({ params }) => params.team === true,
title: '天空宗室九条:增加[atkPlus]点攻击力,[atkPct]%攻击与[cdmg]%爆伤',
data: {
atkPlus: 794.2,
atkPct: 20,
cdmg: 60
}
}, {
check: ({ params }) => params.team === true,
title: '恶曜开眼开E元素爆发伤害提升[qDmg]%',
data: {
qDmg: 27
}
}]

View File

@ -57,9 +57,9 @@ export const defParams = {
export const buffs = [{ export const buffs = [{
title: '夜兰被动:有4个不同元素类型角色时夜兰生命值上限提高30%', title: '夜兰被动:有3个不同元素类型角色时夜兰生命值上限提高18%',
data: { data: {
hpPct: 30 hpPct: 18
} }
}, { }, {
title: '夜兰4命E络命丝爆发提高生命值满Buff下提高40%', title: '夜兰4命E络命丝爆发提高生命值满Buff下提高40%',

View File

@ -2,5 +2,5 @@ export default function ({ attr, rule, def }) {
if (attr.mastery > 120) { if (attr.mastery > 120) {
return rule('神里-精通', { atk: 75, cpct: 100, cdmg: 100, mastery: 75, dmg: 100, recharge: 30 }) return rule('神里-精通', { atk: 75, cpct: 100, cdmg: 100, mastery: 75, dmg: 100, recharge: 30 })
} }
return def({ atk: 75, cpct: 100, cdmg: 100, dmg: 100, phy: 100, recharge: 30 }) return def({ atk: 75, cpct: 100, cdmg: 100, dmg: 100, phy: 0, recharge: 30 })
} }

View File

@ -1,4 +1,7 @@
export const details = [{ export const details = [{
title: '奥兹攻击激化伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['奥兹攻击伤害'], 'e', '超激化')
}, {
title: '奥兹攻击伤害', title: '奥兹攻击伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['奥兹攻击伤害'], 'e') dmg: ({ talent }, dmg) => dmg(talent.e['奥兹攻击伤害'], 'e')
}, { }, {
@ -10,7 +13,7 @@ export const details = [{
dmg: ({ talent, cons }, dmg) => dmg(talent.q['落雷伤害'], 'q') dmg: ({ talent, cons }, dmg) => dmg(talent.q['落雷伤害'], 'q')
}] }]
export const mainAttr = 'atk,cpct,cdmg' export const mainAttr = 'atk,cpct,cdmg,mastery'
export const buffs = [{ export const buffs = [{
title: '皇女2命施放夜巡影翼时能额外造成200%攻击力的伤害', title: '皇女2命施放夜巡影翼时能额外造成200%攻击力的伤害',

View File

@ -150,6 +150,7 @@ export default function (step, staticStep) {
}], }],
裁叶萃光: [staticStep('cpct', 4), { 裁叶萃光: [staticStep('cpct', 4), {
title: '普攻与元素战技造成的伤害值提高[aPlus]', title: '普攻与元素战技造成的伤害值提高[aPlus]',
sort: 5,
data: { data: {
aPlus: ({ attr, calc, refine }) => calc(attr.mastery) * step(120)[refine] / 100, aPlus: ({ attr, calc, refine }) => calc(attr.mastery) * step(120)[refine] / 100,
ePlus: ({ attr, calc, refine }) => calc(attr.mastery) * step(120)[refine] / 100 ePlus: ({ attr, calc, refine }) => calc(attr.mastery) * step(120)[refine] / 100