From 8d64a1cbf01ff028f76efa97a7fc52209d093bd1 Mon Sep 17 00:00:00 2001 From: panw Date: Mon, 13 Apr 2026 10:40:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4=E5=B8=B8=E8=A7=84?= =?UTF-8?q?=E5=8F=91=E7=89=8C=E8=8B=B1=E9=9B=84=E4=B8=8E=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E5=8D=A1=E7=89=8C=E6=95=B0=E9=87=8F=E4=B8=BA3:1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将常规发牌逻辑从“前2英雄+后2其他”改为“前3英雄+后1其他”,以调整游戏前期英雄卡牌的获取比例。 --- assets/script/game/common/config/CardSet.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/script/game/common/config/CardSet.ts b/assets/script/game/common/config/CardSet.ts index d8670c61..f8bd4ffc 100644 --- a/assets/script/game/common/config/CardSet.ts +++ b/assets/script/game/common/config/CardSet.ts @@ -196,7 +196,7 @@ const normalizeTypeFilter = (type: CardType | CardType[]): Set => { return new Set(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] }