feat(英雄系统): 添加英雄复活机制并控制怪物行为
实现英雄复活功能,当英雄死亡且有复活次数时延迟复活 新增is_reviving状态标记复活中状态 英雄死亡或复活时通过stop_mon_action控制怪物停止刷新和移动
This commit is contained in:
@@ -41,6 +41,8 @@ export class MonMoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpda
|
||||
|
||||
update(e: ecs.Entity) {
|
||||
if (!smc.mission.play || smc.mission.pause) return;
|
||||
// 如果英雄死亡(停止怪物行动标志为true),则停止怪物移动
|
||||
if (smc.mission.stop_mon_action) return;
|
||||
|
||||
const move = e.get(MonMoveComp);
|
||||
const model = e.get(HeroAttrsComp);
|
||||
|
||||
Reference in New Issue
Block a user