mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 05:07:46 +00:00
角色面板显示评分规则名、有益/有效词条数
This commit is contained in:
parent
b256890166
commit
cf553ecaab
4 changed files with 190 additions and 115 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue