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

@@ -97,7 +97,7 @@ HeroList.forEach(uuid => {
const basePoolLv = hero.pool_lv || 1;
const baseHeroLv = hero.lv || 1;
const baseCost = 5;
const baseCost = FightSet.BASE_COST;
const baseWeight = 25;
// 生成从 basePoolLv 到 CARD_POOL_MAX_LEVEL 的卡牌