refactor(heroBox,skillDesc): 优化英雄面板技能描述显示

1. 新增showName参数控制技能描述是否显示技能名
2. 英雄盒面板隐藏技能名仅保留效果描述
3. 新增英雄强度评分公式设计文档
This commit is contained in:
panFD
2026-08-01 19:55:14 +08:00
parent 74860c6bf9
commit 096cae527b
5 changed files with 8900 additions and 8480 deletions

View File

@@ -401,8 +401,8 @@ export class HeroBoxComp extends CCComp {
// ---- 技能描述(当前等级触发技能,读运行时 model 最终配置;数值富文本高亮) ----
if (this.skill_label && this.skill_label.isValid) {
// 缓存未变则跳过重设,避免 refresh 降频内 RichText 重复重解析排版
const desc = buildSkillDescRich(this.model);
// 缓存未变则跳过重设,避免 refresh 降频内 RichText 重复重解析排版;隐藏「技能名」仅保留效果描述
const desc = buildSkillDescRich(this.model, false);
if (desc !== this.skillDescCache) {
this.skillDescCache = desc;
this.skill_label.string = desc;