mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
爱丽丝新增直伤流评分规则
This commit is contained in:
parent
53e12b5d6a
commit
35e3cfb4ee
2 changed files with 21 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ export class ZZZAvatarInfo {
|
||||||
this.level_rank = Math.floor(this.level / 10);
|
this.level_rank = Math.floor(this.level / 10);
|
||||||
const weight = scoreFnc[this.id] && scoreFnc[this.id](this);
|
const weight = scoreFnc[this.id] && scoreFnc[this.id](this);
|
||||||
this.weightRule = weight?.[0] || '默认';
|
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) {
|
for (const equip of this.equip) {
|
||||||
equip.get_score(this.scoreWeight);
|
equip.get_score(this.scoreWeight);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
20
model/damage/character/爱丽丝/score.js
Normal file
20
model/damage/character/爱丽丝/score.js
Normal 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
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue