refactor(卡牌系统): 清理废弃的卡池等级相关代码并优化抽卡接口

1. 移除了CardSkillType枚举、废弃的CardLV枚举和相关常量定义
2. 删除了已废弃的getCardPoolByLv、getCardsByLv等兼容旧接口
3. 简化drawCardsByRule接口,移除不再生效的历史参数
4. 调整MissionCardComp中调用drawCardsByRule的传参方式
5. 格式化VictoryComp中的代码格式,统一代码风格
This commit is contained in:
pan
2026-07-27 16:11:52 +08:00
parent 9f2599e9ec
commit a94381b19f
3 changed files with 52 additions and 133 deletions

View File

@@ -1473,7 +1473,7 @@ export class MissionCardComp extends CCComp {
}
private tryRefreshHeroCards(heroType?: HType): boolean {
const cards = drawCardsByRule(1, {
const cards = drawCardsByRule({
count: 3,
type: CardType.Hero,
heroType,