feat: 调整常规发牌英雄与其他卡牌数量为3:1
将常规发牌逻辑从“前2英雄+后2其他”改为“前3英雄+后1其他”,以调整游戏前期英雄卡牌的获取比例。
This commit is contained in:
@@ -196,7 +196,7 @@ const normalizeTypeFilter = (type: CardType | CardType[]): Set<CardType> => {
|
||||
return new Set<CardType>(list)
|
||||
}
|
||||
|
||||
/** 常规发牌:前 2 英雄 + 后 2 其他;支持按类型和等级模式过滤 */
|
||||
/** 常规发牌:前 3 英雄 + 后 1 其他;支持按类型和等级模式过滤 */
|
||||
export const getCardsByLv = (
|
||||
lv: number,
|
||||
type?: CardType | CardType[],
|
||||
@@ -210,8 +210,8 @@ export const getCardsByLv = (
|
||||
}
|
||||
const heroPool = pool.filter(card => card.type === CardType.Hero)
|
||||
const otherPool = pool.filter(card => card.type !== CardType.Hero)
|
||||
const heroes = pickCards(heroPool, 2)
|
||||
const others = pickCards(otherPool, 2)
|
||||
const heroes = pickCards(heroPool, 3)
|
||||
const others = pickCards(otherPool, 1)
|
||||
return [...heroes, ...others]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user