refactor(英雄&卡池): 修改英雄等级字段为pool_lv并优化卡池配置

重构heroInfo接口,将原cards_lv字段重命名为pool_lv,同步更新所有英雄配置与注释;修正HListComp的等级显示逻辑,新增按pool_lv分级的卡池配置。
This commit is contained in:
walkpan
2026-05-23 15:09:45 +08:00
parent 23db51df12
commit 268c6e155a
3 changed files with 59 additions and 38 deletions

View File

@@ -230,7 +230,7 @@ export class HListComp extends CCComp {
if (infoLabel) infoLabel.string = `${hero.info || ""}`;
}
const cardLvStr = `lv${hero.cards_lv ?? 1}`;
const cardLvStr = `lv${hero.pool_lv ?? 1}`;
if (this.lv_node) {
this.lv_node.active = true;
this.lv_node.children.forEach(child => {