refactor: 统一英雄属性中卡牌等级字段名称为pool_lv
将HeroAttrsComp中的card_lv字段重命名为pool_lv,以更准确地反映其表示英雄池等级的含义。同时更新所有相关引用点,包括HInfoComp的显示逻辑、Hero的加载方法以及MissionHeroCompComp的召唤队列和合成逻辑,确保数据一致性。
This commit is contained in:
@@ -57,7 +57,7 @@ export class HInfoComp extends CCComp {
|
||||
|
||||
const activeFrameNode = isHighLevel ? this.HF_node : this.NF_node;
|
||||
if (activeFrameNode) {
|
||||
const cardLvStr = `lv${this.model.card_lv ?? 1}`;
|
||||
const cardLvStr = `lv${this.model.pool_lv ?? 1}`;
|
||||
activeFrameNode.children.forEach(child => {
|
||||
child.active = (child.name === cardLvStr);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user