style: 格式化代码对齐与缩进

统一调整所有枚举、对象的代码格式,修正缩进和空格规范,移除冗余代码注释
This commit is contained in:
pan
2026-05-29 15:55:52 +08:00
parent e7230db7ca
commit d45f370682
2 changed files with 53 additions and 53 deletions

View File

@@ -25,7 +25,7 @@ export enum FightSet {
MORE_RC = 10,//更多次数 广告获取的次数 MORE_RC = 10,//更多次数 广告获取的次数
HEARTPOS = -320,//基地位置 HEARTPOS = -320,//基地位置
HERO_MAX_NUM = 6,//英雄最大数量 HERO_MAX_NUM = 6,//英雄最大数量
MERGE_MAX=5, //英雄最大等级 MERGE_MAX = 3, //英雄最大等级
MERGE_NEED = 3, //英雄升级需要的英雄数 MERGE_NEED = 3, //英雄升级需要的英雄数
// BACK_RANG=30,//后退范围 // BACK_RANG=30,//后退范围
BACK_RANG = 30,//后退范围 BACK_RANG = 30,//后退范围

View File

@@ -772,12 +772,12 @@ export class MissionCardComp extends CCComp {
label.string = `lv.${lv}`; label.string = `lv.${lv}`;
} }
} }
const widget = this.pool_lv_node.getComponent(Widget); // const widget = this.pool_lv_node.getComponent(Widget);
if (widget) widget.updateAlignment(); // if (widget) widget.updateAlignment();
this.pool_lv_node.children.forEach(child => { // this.pool_lv_node.children.forEach(child => {
const childWidget = child.getComponent(Widget); // const childWidget = child.getComponent(Widget);
if (childWidget) childWidget.updateAlignment(); // if (childWidget) childWidget.updateAlignment();
}); // });
const peak = 1.2 const peak = 1.2
this.playHeroNumNodePop(this.pool_lv_node, peak); this.playHeroNumNodePop(this.pool_lv_node, peak);
} }