refactor(equip): 重构装备等级显示与配置逻辑

1. 替换原有的星级等级显示为标准Lv.格式
2. 移除wave档位映射,直接使用card_lv字段管理装备等级
3. 统一装备配置表的等级分组命名与字段使用
This commit is contained in:
pan
2026-08-03 15:31:07 +08:00
parent a46577fd45
commit d12f545060
2 changed files with 49 additions and 56 deletions

View File

@@ -146,10 +146,10 @@ export class EquipListComp extends CCComp {
this.name_label.string = cardConfig?.name || "";
}
// 等级标签(★ 表示卡牌等级
// 等级标签(Lv.1 / Lv.2 / Lv.3
if (this.level_label) {
const lv = this.cardData.card_lv ?? 1;
this.level_label.string = lv >= 2 ? "★".repeat(lv - 1) : "";
this.level_label.string = `Lv.${lv}`;
}
// 背景:按 card_lv 激活对应颜色子节点1→green 2→blue 3→purple 4→red 5→yellow