新增剩余所有角色伤害计算

This commit is contained in:
UCPr 2025-01-24 16:46:42 +08:00
parent a62109a6c0
commit afce42af23
31 changed files with 744 additions and 11 deletions

View file

@ -413,7 +413,7 @@ export class Calculator {
add = value * initial
} else {
add = this.calc_value(value, buff)
if (add < 1 && isRatio && Array.isArray(value))
if (add < 1 && isRatio && (typeof value === 'string' || Array.isArray(value)))
add *= initial
}
logger.debug(`\tBuff${buff.name}${buff.range || '全类型'}增加${add}${buff.element || ''}${type}`)