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