feat(英雄系统): 添加英雄复活机制并控制怪物行为
实现英雄复活功能,当英雄死亡且有复活次数时延迟复活 新增is_reviving状态标记复活中状态 英雄死亡或复活时通过stop_mon_action控制怪物停止刷新和移动
This commit is contained in:
@@ -66,7 +66,7 @@ export class HeroAttrSystem extends ecs.ComblockSystem
|
||||
update(e: ecs.Entity): void {
|
||||
if(!smc.mission.play || smc.mission.pause) return;
|
||||
const model = e.get(HeroAttrsComp);
|
||||
if (!model || model.is_dead) return;
|
||||
if (!model || model.is_dead || model.is_reviving) return;
|
||||
|
||||
// 统计:记录本帧处理的实体数
|
||||
this.entityCount++;
|
||||
|
||||
Reference in New Issue
Block a user