diff --git a/model/avatar.js b/model/avatar.js index bbd0ac5..83da4ba 100644 --- a/model/avatar.js +++ b/model/avatar.js @@ -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); } diff --git a/model/damage/character/爱丽丝/score.js b/model/damage/character/爱丽丝/score.js new file mode 100644 index 0000000..31fdf92 --- /dev/null +++ b/model/damage/character/爱丽丝/score.js @@ -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 + }] + } +} \ No newline at end of file