refactor: 简化攻击距离与职业类型系统
- 移除 SkillRange 枚举和 SkillDisVal 常量,统一使用 HType 表示攻击距离 - 删除 heroInfo 中的 rangeType 字段,直接使用 type 字段 - 更新英雄配置,将职业类型简化为近战、中程、远程三类 - 移除怪物属性中的 mp 和 def 字段,简化属性计算 - 更新移动和技能距离计算逻辑,直接使用 HType 判断
This commit is contained in:
@@ -53,25 +53,7 @@ export enum BuffRunType {
|
||||
Interval = 2
|
||||
}
|
||||
|
||||
/**
|
||||
* 攻击距离类型分类
|
||||
* 用于AI决策和技能配置规范化
|
||||
*/
|
||||
export enum SkillRange {
|
||||
/** 近战: < 150 (贴脸输出) */
|
||||
Melee = 0,
|
||||
/** 中程: 150 - 400 (投掷/短法术) */
|
||||
Mid = 1,
|
||||
/** 远程: > 400 (弓箭/长法术) */
|
||||
Long = 2
|
||||
}
|
||||
|
||||
/** 距离类型的标准数值定义 */
|
||||
export const SkillDisVal: Record<SkillRange, number> = {
|
||||
[SkillRange.Melee]: 150,
|
||||
[SkillRange.Mid]: 400,
|
||||
[SkillRange.Long]: 720
|
||||
};
|
||||
|
||||
//受伤动画名称
|
||||
export enum AtkedName {
|
||||
|
||||
Reference in New Issue
Block a user