From 35e3cfb4ee94e7118428e9a05a01fcdbfbaf590f Mon Sep 17 00:00:00 2001 From: UCPr <2032385471@qq.com> Date: Fri, 15 Aug 2025 00:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=88=B1=E4=B8=BD=E4=B8=9D=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=9B=B4=E4=BC=A4=E6=B5=81=E8=AF=84=E5=88=86=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/avatar.js | 2 +- model/damage/character/爱丽丝/score.js | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 model/damage/character/爱丽丝/score.js 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