mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
fix:效果抵抗未计算
This commit is contained in:
parent
4c85f68cf9
commit
d6ee87bb6f
@ -4,7 +4,7 @@ import { Format } from '#miao'
|
||||
|
||||
const baseAttr = {
|
||||
gs: 'atk,def,hp,mastery,recharge,cpct,cdmg,dmg,phy,heal,shield'.split(','),
|
||||
sr: 'atk,def,hp,speed,recharge,cpct,cdmg,dmg,heal,stance,effPct,effDmg'.split(',')
|
||||
sr: 'atk,def,hp,speed,recharge,cpct,cdmg,dmg,heal,stance,effPct,effDef'.split(',')
|
||||
}
|
||||
let attrReg = {
|
||||
gs: new RegExp(`^(${baseAttr.gs.join('|')})(Base|Plus|Pct|Inc)$`),
|
||||
|
@ -19,7 +19,7 @@ export default function (staticIdx, keyIdx) {
|
||||
staticIdx(1, 'effDef'),
|
||||
(tables) => {
|
||||
return {
|
||||
title: '基于效果抵抗,提高质量量[heal]%',
|
||||
title: '基于效果抵抗,提高治疗量[heal]%',
|
||||
data: {
|
||||
heal: ({ attr, calc }) => Math.min(tables[3], calc(attr.effDef) * tables[2] / 100)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user