feat: 新增装备商店系统,调整英雄站位与抽卡逻辑

1.  重构抽卡函数,新增排除装备卡参数,装备卡改为商店直购
2.  添加装备商店面板,支持装备浏览与购买,跨波次保留购买记录
3.  调整英雄出场点位坐标,优化战场布局
4.  扩展技能卡槽位,新增两行技能槽位置
5.  重构EquipListComp组件,适配装备商店UI逻辑
6.  删除废弃的melist预制件与相关元文件
7.  调整hnode预制件布局参数
This commit is contained in:
pan
2026-07-22 10:44:01 +08:00
parent d37fadf5cf
commit 401b02be96
9 changed files with 14396 additions and 4153 deletions

View File

@@ -431,6 +431,7 @@ export const drawCardsByRule = (
targetPoolLv?: number
wave?: number
unique?: boolean
excludeEquipment?: boolean
} = {}
): CardConfig[] => {
const count = Math.max(0, Math.floor(options.count ?? 4))
@@ -460,6 +461,11 @@ export const drawCardsByRule = (
})
}
// 装备卡已改为商店直购,不再参与抽卡
if (options.excludeEquipment) {
pool = pool.filter(card => !isEquipmentCard(card));
}
const picked = pickCards(pool, count, options.unique)
return picked
}