Files
pixelheros/assets/script/game/map/RogueConfig.ts
panw 9fd893c692 refactor(map): 重构怪物类型枚举和配置以提高可读性
- 将 MonType 枚举值重命名为更具描述性的名称(如 AP -> Melee)
- 为 StageGrow 和 StageBossGrow 配置添加注释说明
- 更新 MissionMonComp 中的回退逻辑以使用新的 Melee 类型
- 清理未使用的配置常量(StageDuration、SpawnCd 等)
- 扩展 BossList 包含更多Boss怪物ID
2026-04-03 16:15:31 +08:00

38 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export enum UpType {
AP1_HP1 = 0, //平衡
HP2 = 1, //强hp
AP2 = 2 //强ap
}
// 普通关卡成长值:第一项为攻击力成长,第二项为血量成长
export const StageGrow = {
[UpType.AP1_HP1]: [4,10], // 平衡型攻4 血10
[UpType.HP2]: [2,20], // 强HP型攻2 血20
[UpType.AP2]: [8,0], // 强AP型攻8 血0
}
// Boss关卡成长值同上数值更高
export const StageBossGrow = {
[UpType.AP1_HP1]: [3,16], // 平衡型攻3 血16
[UpType.HP2]: [1,24], // 强HP型攻1 血24
[UpType.AP2]: [10,4], // 强AP型攻10 血4
}
export const MonType = {
Melee: 0, // 近战高功
Long: 1, // 高速贴近
Support: 2, // 支持怪
MeleeBoss: 3, // boss怪
LongBoss: 4, // boss怪
}
export const MonList = {
[MonType.Melee]: [6001,6003], // 近战高功
[MonType.Long]: [6002], // 高速贴近
[MonType.Support]: [6002], // 高血皮厚
[MonType.MeleeBoss]:[6006,6104,6015], // 射手
[MonType.LongBoss]:[6005], // 远程魔法
}
export const BossList = [6006,6104,6015]
export const SpawnPowerBias = 1