角色面板显示评分规则名、有益/有效词条数

This commit is contained in:
UCPr 2025-04-01 23:22:56 +08:00
parent b256890166
commit cf553ecaab
4 changed files with 190 additions and 115 deletions

View file

@ -262,7 +262,9 @@ export class ZZZAvatarInfo {
this.isNew = isNew;
/** @type {number} 等级级别(取十位数字)*/
this.level_rank = Math.floor(this.level / 10);
this.scoreWeight = formatScoreWeight(scoreFnc[this.id] && scoreFnc[this.id](this)?.[1]) || scoreWeight[this.id];
const weight = scoreFnc[this.id] && scoreFnc[this.id](this);
this.weightRule = weight?.[0] || '默认';
this.scoreWeight = formatScoreWeight(weight?.[1]) || scoreWeight[this.id];
for (const equip of this.equip) {
equip.get_score(this.scoreWeight);
}