refactor(game/config): 替换硬编码费用为集中配置项

新增GameSet.ts中FightSet枚举的REFRESH_COST和BASE_COST常量,替换CardSet.ts和MissionCardComp.ts内的硬编码费用值。
This commit is contained in:
pan
2026-06-12 14:43:27 +08:00
parent 8c056f2e74
commit acec8f6941
3 changed files with 5 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ export class MissionCardComp extends CCComp {
/** 按钮弹起缩放(峰值) */
private readonly buttonClickScale: number = 1.06;
/** 抽卡(刷新)费用 */
refreshCost: number = 2;
refreshCost: number = FightSet.REFRESH_COST;
/** 卡牌面板展开/收起动画时长(秒) */
cardsPanelMoveDuration: number = 0.2;