refactor(game/config): 替换硬编码费用为集中配置项
新增GameSet.ts中FightSet枚举的REFRESH_COST和BASE_COST常量,替换CardSet.ts和MissionCardComp.ts内的硬编码费用值。
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user