feat(英雄AI): 重构英雄移动系统,基于攻击距离类型实现智能战术走位
1. 新增SkillRange枚举定义近/中/远程攻击类型 2. 在HeroAttrsComp和hero配置中添加rangeType字段 3. 重写HeroMoveSystem,根据rangeType实现差异化移动策略 4. 移除技能施放的攻击状态限制,优化AI决策逻辑
This commit is contained in:
@@ -2,7 +2,7 @@ import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ec
|
||||
import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops";
|
||||
import { GameEvent } from "../common/config/GameEvent";
|
||||
import { Attrs, AttrsType, BType, NeAttrs } from "../common/config/HeroAttrs";
|
||||
import { BuffConf } from "../common/config/SkillSet";
|
||||
import { BuffConf, SkillRange } from "../common/config/SkillSet";
|
||||
import { HeroInfo, AttrSet } from "../common/config/heroSet";
|
||||
import { HeroSkillsComp } from "./HeroSkills";
|
||||
import { smc } from "../common/SingletonModuleComp";
|
||||
@@ -22,7 +22,7 @@ export class HeroAttrsComp extends ecs.Comp {
|
||||
lv: number = 1;
|
||||
type: number = 0; // 0近战 1远程 2辅助
|
||||
fac: number = 0; // 0:hero 1:monster
|
||||
|
||||
rangeType:SkillRange = SkillRange.Melee;
|
||||
// ==================== 基础属性(有初始值) ====================
|
||||
base_ap: number = 0; // 基础攻击
|
||||
base_def: number = 5; // 基础防御
|
||||
|
||||
Reference in New Issue
Block a user