爱丽丝新增直伤流评分规则

This commit is contained in:
UCPr 2025-08-15 00:47:05 +08:00
parent 53e12b5d6a
commit 35e3cfb4ee
2 changed files with 21 additions and 1 deletions

View file

@ -264,7 +264,7 @@ export class ZZZAvatarInfo {
this.level_rank = Math.floor(this.level / 10);
const weight = scoreFnc[this.id] && scoreFnc[this.id](this);
this.weightRule = weight?.[0] || '默认';
this.scoreWeight = Object.assign(formatScoreWeight(weight?.[1]) || {}, scoreWeight[this.id]);
this.scoreWeight = _.defaults(formatScoreWeight(weight?.[1]) || {}, scoreWeight[this.id]);
for (const equip of this.equip) {
equip.get_score(this.scoreWeight);
}

View file

@ -0,0 +1,20 @@
/** @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) {
return ['直伤流', {
"生命值百分比": 0,
"攻击力百分比": 0.75,
"防御力百分比": 0,
"冲击力": 0,
"暴击率": 1,
"暴击伤害": 1,
"穿透率": 1,
"穿透值": 0.25,
"能量自动回复": 0,
"异常精通": 0.5,
"异常掌控": 0,
"物理属性伤害加成": 1
}]
}
}