fix:效果抵抗未计算

This commit is contained in:
Aluxes 2023-09-07 11:23:58 +08:00
parent 4c85f68cf9
commit d6ee87bb6f
2 changed files with 3 additions and 3 deletions

View File

@ -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)$`),

View File

@ -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)
}