mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
fix: talent key
This commit is contained in:
parent
f03997fe9e
commit
9d63ec13fc
@ -48,8 +48,9 @@ export default class ProfileDmg extends Base {
|
||||
let { isSr, isGs } = this
|
||||
lodash.forEach((isSr ? 'a,a2,e,e2,q,q2,t' : 'a,e,q').split(','), (key) => {
|
||||
let level = lodash.isNumber(talentData[key]) ? talentData[key] : (talentData[key]?.level || 1)
|
||||
if (key === 'a2' || key === 'e2') {
|
||||
let tmpKey = key === 'a2' ? 'a' : 'e'
|
||||
let keyRet = /^(a|e|q)2$/.exec(key)
|
||||
if (keyRet) {
|
||||
let tmpKey = keyRet[1]
|
||||
level = lodash.isNumber(talentData[tmpKey]) ? talentData[tmpKey] : (talentData[tmpKey]?.level || 1)
|
||||
}
|
||||
let map = {}
|
||||
|
@ -21,7 +21,7 @@ export const defDmgIdx = 3
|
||||
export const mainAttr = 'atk,cpct,cdmg'
|
||||
|
||||
export const buffs = [{
|
||||
title: '天赋-勇气:对当前生命百分比小于等于50%的敌人目标造成的伤害提高[dmg]%',
|
||||
title: '行迹-勇气:对当前生命百分比小于等于50%的敌人目标造成的伤害提高[dmg]%',
|
||||
trees: 2,
|
||||
data: {
|
||||
dmg: 15
|
||||
|
Loading…
Reference in New Issue
Block a user