refactor(hero): 移除英雄等级、简化配置并删除HInfoComp组件

- 删除 HInfoComp.ts 及其 meta 文件,移除英雄信息界面组件
- 从 Hero 和 Monster 类中移除 back_chance 属性设置
- 将 Hero 类中的等级初始化为固定值 1,移除从配置读取的逻辑
- 简化 heroSet.ts 配置:移除 AttrSet、getHeroList、getMonList、MonSet、HeroConf、JobUpConf 等配置项
- 优化 heroInfo 接口:将 icon、kind、lv 字段设为可选,移除已删除的配置引用
- 扩展英雄列表,新增 5008-5015 共8个英雄配置
- 移除与 smc 模块的耦合,简化英雄选择逻辑
This commit is contained in:
walkpan
2026-03-19 23:59:16 +08:00
parent b531ade090
commit b241be0314
5 changed files with 36 additions and 557 deletions

View File

@@ -67,7 +67,7 @@ export class Hero extends ecs.Entity {
// 设置 Model 层属性(数据相关)
model.hero_uuid = uuid;
model.hero_name = hero.name;
model.lv = hero.lv ? hero.lv : 1;
model.lv = 1
model.type = hero.type;
model.fac = FacSet.HERO;
// 只有主角才挂载天赋组件
@@ -89,7 +89,6 @@ export class Hero extends ecs.Entity {
// 初始化 buff/debuff 系统
model.initAttrs();
model.back_chance=FightSet.BACK_CHANCE
this.add(hv);
oops.message.dispatchEvent(GameEvent.MasterCalled,{uuid:uuid})
const move = this.get(MoveComp);

View File

@@ -143,7 +143,6 @@ export class Monster extends ecs.Entity {
}
model.a_cd_max=hero.as
model.s_cd_max=hero.ss
model.back_chance=FightSet.BACK_CHANCE
// ✅ 初始化技能数据(迁移到 HeroSkillsComp
if(hero.skills[0]) model.atk_id=hero.skills[0]
if(hero.skills[1]) model.skill_id=hero.skills[1]