mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
增加银狼的伤害计算
This commit is contained in:
parent
6e3cfc8be3
commit
55e04133d5
@ -7,7 +7,7 @@ import { attrMap as attrMapSR } from '../resources/meta-sr/artifact/index.js'
|
||||
import DmgBuffs from './profile/DmgBuffs.js'
|
||||
import DmgAttr from './profile/DmgAttr.js'
|
||||
import DmgCalc from './profile/DmgCalc.js'
|
||||
import {Common, MiaoError} from '#miao'
|
||||
import { Common, MiaoError } from '#miao'
|
||||
|
||||
export default class ProfileDmg extends Base {
|
||||
constructor (profile = {}, game = 'gs') {
|
||||
|
@ -26,7 +26,7 @@ let DmgAttr = {
|
||||
}
|
||||
})
|
||||
|
||||
lodash.forEach((game === 'gs' ? 'mastery,recharge,cpct,cdmg,heal,dmg,phy' : 'speed,recharge,cpct,cdmg,heal,dmg').split(','), (key) => {
|
||||
lodash.forEach((game === 'gs' ? 'mastery,recharge,cpct,cdmg,heal,dmg,phy' : 'speed,recharge,cpct,cdmg,heal,dmg,effPct,effDef,stance').split(','), (key) => {
|
||||
ret[key] = {
|
||||
base: attr[key] * 1 || 0, // 基础值
|
||||
plus: 0, // 加成值
|
||||
|
@ -32,10 +32,10 @@ const attrMap = {
|
||||
cdmg: { title: '暴击伤害', format: 'pct', calc: 'plus', value: 6.48 },
|
||||
recharge: { title: '充能效率', format: 'pct', calc: 'plus', value: 3.11 },
|
||||
dmg: { title: '伤害加成', format: 'pct', value: 6.22 },
|
||||
heal: { title: '治疗加成', format: 'pct' },
|
||||
stance: { title: '击破特攻', format: 'pct', value: 6.48 },
|
||||
effPct: { title: '效果命中', format: 'pct', value: 4.32 },
|
||||
effDef: { title: '效果抵抗', format: 'pct', value: 4.32 }
|
||||
heal: { title: '治疗加成', format: 'pct', calc: 'pct' },
|
||||
stance: { title: '击破特攻', format: 'pct', value: 6.48, calc: 'pct' },
|
||||
effPct: { title: '效果命中', format: 'pct', value: 4.32, calc: 'pct' },
|
||||
effDef: { title: '效果抵抗', format: 'pct', value: 4.32, calc: 'pct' }
|
||||
}
|
||||
|
||||
lodash.forEach(attrMap, (attr, key) => {
|
||||
|
48
resources/meta-sr/character/银狼/calc.js
Normal file
48
resources/meta-sr/character/银狼/calc.js
Normal file
@ -0,0 +1,48 @@
|
||||
export const details = [{
|
||||
title: '普攻伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.a['技能伤害'], 'a')
|
||||
}, {
|
||||
title: '战技伤害',
|
||||
dmg: ({ talent }, dmg) => dmg(talent.e['单体伤害'], 'e')
|
||||
}, {
|
||||
title: '终结技伤害',
|
||||
dmg: ({ talent, cons }, dmg) => {
|
||||
let addDmg = (cons * 1 >= 4) ? 1 : 0
|
||||
return dmg(talent.q['技能伤害'] + addDmg, 'q')
|
||||
}
|
||||
}]
|
||||
|
||||
export const mainAttr = 'atk,cpct,cdmg,effPct'
|
||||
|
||||
export const buffs = [{
|
||||
title: '银狼天赋:防御力缺陷降低敌方防御力[enemyDef]%',
|
||||
data: {
|
||||
enemyDef: ({ talent }) => talent.t['防御力降低'] * 100
|
||||
}
|
||||
}, {
|
||||
title: '银狼战技:添加弱点降低对方对应属性抗性[kx]%',
|
||||
data: {
|
||||
kx: ({ talent }) => talent.e['伤害抗性降低'] * 100
|
||||
}
|
||||
}, {
|
||||
title: '银狼终结技:释放终结技降低敌方防御[enemyDef]%',
|
||||
data: {
|
||||
enemyDef: ({ talent }) => talent.q['防御力降低'] * 100
|
||||
}
|
||||
}, {
|
||||
title: '银狼4命:敌方有5个负面Buff附加100%攻击力的量子属性附加伤害',
|
||||
cons: 4,
|
||||
data: {}
|
||||
}, {
|
||||
title: '银狼6命:敌方有5个负面Buff提高100%受到的伤害',
|
||||
cons: 6,
|
||||
data: {
|
||||
dmg: 100
|
||||
}
|
||||
}, {
|
||||
title: '行迹-旁注:敌方目标的负面效果数量大于等于3个额外降低抗性3%',
|
||||
tree: 2,
|
||||
data: {
|
||||
kx: 3
|
||||
}
|
||||
}]
|
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 23 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 36 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 23 KiB |
Loading…
Reference in New Issue
Block a user