fix: 多流派评分覆盖默认规则错误

This commit is contained in:
UCPr 2025-08-15 16:06:47 +08:00
parent 5e669f0afd
commit ea1f5195b5
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ export function formatScoreWeight(oriScoreWeight) {
if (typeof oriScoreWeight !== 'object') return false;
const weight = {};
for (const propName in oriScoreWeight) {
if (!oriScoreWeight[propName])
if (!oriScoreWeight[propName] && oriScoreWeight[propName] !== 0)
continue;
const propID = +propName || nameToId(propName);
if (!propID)

View file

@ -1,7 +1,7 @@
/** @type {import('../../avatar.ts')['scoreFnc'][string]} */
export default function (avatar) {
const props = avatar.initial_properties
if (props.CRITRate * 2 + props.CRITDMG >= 2 && props.AnomalyProficiency < 200) {
if (props.CRITRate * 2 + props.CRITDMG >= 2 && props.AnomalyProficiency < 300) {
return ['直伤流', {
"生命值百分比": 0,
"攻击力百分比": 0.75,