fix: 部分角色饰金之梦计算层数错误

This commit is contained in:
Aluxes 2024-05-16 00:17:28 +08:00
parent 4e030ab82c
commit 8a1d5eff03
No known key found for this signature in database
GPG Key ID: 6696152F9C003087
8 changed files with 21 additions and 9 deletions

View File

@ -376,9 +376,12 @@ const buffs = {
饰金之梦: { 饰金之梦: {
2: attr('mastery', 80), 2: attr('mastery', 80),
4: { 4: {
title: '队伍存在其他3个不同元素类型角色时精通提高150', title: '队伍存在[mArtisDiffCount]个不同元素类型角色,[sameCount]个相同类型角色,精通提高[mastery],攻击力提高[atkPct]%',
data: { data: {
mastery: 150 mArtisDiffCount: ({ params }) => params.mArtisDiffCount || 3,
sameCount: ({ params }) => 3 - (params.mArtisDiffCount || 3),
mastery: ({ params }) => (params.mArtisDiffCount || 3) * 50,
atkPct: ({ params }) => (3 - (params.mArtisDiffCount || 3)) * 14
} }
} }
}, },

View File

@ -23,13 +23,13 @@ export const details = [{
}, { }, {
check: ({ cons }) => cons < 2, check: ({ cons }) => cons < 2,
dmgKey: 'e_t', dmgKey: 'e_t',
params: { team: true, team2: false }, params: { team: true, team2: false, mArtisDiffCount: 1 },
title: '温三雷叄阶杀生樱伤害', title: '温三雷叄阶杀生樱伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e') dmg: ({ talent }, dmg) => dmg(talent.e['杀生樱伤害·叁阶'], 'e')
}, { }, {
check: ({ cons }) => cons >= 2, check: ({ cons }) => cons >= 2,
dmgKey: 'e_t', dmgKey: 'e_t',
params: { team: true, team2: false }, params: { team: true, team2: false, mArtisDiffCount: 1 },
title: '温三雷肆阶杀生樱伤害', title: '温三雷肆阶杀生樱伤害',
dmg: ({ talent }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e') dmg: ({ talent }, dmg) => dmg(talent.e['杀生樱伤害·肆阶'], 'e')
}, { }, {
@ -49,7 +49,7 @@ export const details = [{
} }
}, { }, {
title: '温三雷四段Q总伤害', title: '温三雷四段Q总伤害',
params: { team: true, team2: false }, params: { team: true, team2: false, mArtisDiffCount: 1 },
dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'] + talent.q['天狐霆雷伤害'] * 3, 'q') dmg: ({ talent }, dmg) => dmg(talent.q['技能伤害'] + talent.q['天狐霆雷伤害'] * 3, 'q')
}, { }, {
check: ({ cons }) => cons < 2, check: ({ cons }) => cons < 2,
@ -80,7 +80,9 @@ export const mainAttr = 'atk,cpct,cdmg,mastery,dmg'
export const defDmgKey = 'e_j' export const defDmgKey = 'e_j'
export const defParams = { export const defParams = {
team: true, team2: true team: true,
team2: true,
mArtisDiffCount: 3
} }
export const buffs = [{ export const buffs = [{

View File

@ -52,6 +52,7 @@ export const details = [{
export const mainAttr = 'atk,cpct,cdmg,mastery' export const mainAttr = 'atk,cpct,cdmg,mastery'
export const defDmgKey = 'a2_j' export const defDmgKey = 'a2_j'
export const defParams = { mArtisDiffCount: 2 }
export const buffs = [{ export const buffs = [{
title: '提纳里被动发射花筥箭后元素精通提升50点', title: '提纳里被动发射花筥箭后元素精通提升50点',

View File

@ -70,6 +70,7 @@ export const details = [{
export const mainAttr = 'atk,cpct,cdmg,mastery' export const mainAttr = 'atk,cpct,cdmg,mastery'
export const defDmgIdx = 5 export const defDmgIdx = 5
export const defParams = { mArtisDiffCount: 2 }
export const buffs = [{ export const buffs = [{
title: '提纳里被动发射花筥箭后元素精通提升50点', title: '提纳里被动发射花筥箭后元素精通提升50点',
@ -124,7 +125,7 @@ export const buffs = [{
mastery: 140 mastery: 140
} }
}, { }, {
check: ({ params, artis }) => ( params.team === true && artis.深林的记忆 !== 4 ), check: ({ params, artis }) => (params.team === true && artis.深林的记忆 !== 4),
title: '纳西妲-草套:减抗[kx]%', title: '纳西妲-草套:减抗[kx]%',
data: { data: {
kx: 30 kx: 30

View File

@ -50,6 +50,7 @@ export const details = [{
export const defDmgIdx = 4 export const defDmgIdx = 4
export const mainAttr = 'atk,mastery,cpct,cdmg' export const mainAttr = 'atk,mastery,cpct,cdmg'
export const defParams = { mArtisDiffCount: 2 }
export const buffs = [{ export const buffs = [{
title: '草神1命火元素队友额外计入1位', title: '草神1命火元素队友额外计入1位',

View File

@ -58,7 +58,9 @@ export const details = [{
}] }]
export const defParams = { export const defParams = {
q: true, team: true q: true,
team: true,
mArtisDiffCount: 2
} }
export const defDmgIdx = 5 export const defDmgIdx = 5

View File

@ -61,7 +61,8 @@ export const mainAttr = 'atk,cpct,cdmg,mastery'
export const defParams = { export const defParams = {
q: false, q: false,
e: true e: true,
mArtisDiffCount: 2
} }
export const buffs = [{ export const buffs = [{

View File

@ -97,6 +97,7 @@ export const details = [{
export const defDmgKey = 'q' export const defDmgKey = 'q'
export const mainAttr = 'atk,cpct,cdmg,mastery' export const mainAttr = 'atk,cpct,cdmg,mastery'
export const defParams = { mArtisDiffCount: 2 }
export const buffs = [{ export const buffs = [{
title: '圣仪·煟煌随狼行Q状态下提升元素精通100点', title: '圣仪·煟煌随狼行Q状态下提升元素精通100点',