refactor(卡牌类型): 移除卡牌类型映射中的Buff/Debuff分类

简化CardType枚举,移除Potion类型并调整Special类型值。
更新卡牌使用组件中的类型映射逻辑,不再为Buff/Debuff返回特定字符串。
This commit is contained in:
walkpan
2026-03-29 16:21:58 +08:00
parent 0490ae51c7
commit 6455bd0b8b
2 changed files with 2 additions and 6 deletions

View File

@@ -4,8 +4,7 @@ import * as exp from "constants"
export enum CardType { export enum CardType {
Hero = 1, Hero = 1,
Skill = 2, Skill = 2,
Potion = 3, Special = 3,
Special = 4,
Buff = 5, Buff = 5,
Debuff = 6, Debuff = 6,
} }
@@ -36,7 +35,7 @@ export const CardsUpSet: Record<number, number> = {
4: 200, 4: 200,
5: 250, 5: 250,
} }
/**初始coin数 */
export const CardInitCoins = 4 export const CardInitCoins = 4
/** 卡池升级每波减免金额 */ /** 卡池升级每波减免金额 */
export const CARD_POOL_UPGRADE_DISCOUNT_PER_WAVE = 10 export const CARD_POOL_UPGRADE_DISCOUNT_PER_WAVE = 10

View File

@@ -54,9 +54,6 @@ export class CardUseComp extends CCComp {
return "skill"; return "skill";
case CardType.Special: case CardType.Special:
return "special"; return "special";
case CardType.Buff:
case CardType.Debuff:
return "buff";
default: default:
return "unknown"; return "unknown";
} }