feat(英雄系统): 添加英雄复活机制并调整死亡处理逻辑

初始化英雄时添加复活次数属性
修改英雄死亡事件触发条件为复活次数耗尽
移除HeroViewComp中重复的死亡事件触发
This commit is contained in:
walkpan
2026-01-03 19:58:12 +08:00
parent 4a2768cb13
commit 063b882879
3 changed files with 10 additions and 10 deletions

View File

@@ -100,10 +100,10 @@ export class Hero extends ecs.Entity {
model.Attrs[Attrs.AP] = model.base_ap;
model.Attrs[Attrs.SPEED] = hero.speed;
model.Attrs[Attrs.DIS] = hero.dis;
// 初始化 buff/debuff 系统
model.initAttrs();
model.Attrs[Attrs.REVIVE_COUNT]=1
this.add(hv);
oops.message.dispatchEvent(GameEvent.MasterCalled,{uuid:uuid})
const move = this.get(HeroMoveComp);