少年修仙传客户端代码仓库
client_Hale
2019-03-27 4409643d4c2d3837db80845964a64eba48997a74
382 客户端刷怪增加boss处理
2个文件已修改
13 ■■■■■ 已修改文件
Fight/GameActor/GA_NpcClientFightBoss.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Stage/MapEditor/Game/EventRefreshNPCHandler.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_NpcClientFightBoss.cs
@@ -21,6 +21,10 @@
        {
            m_AIHandler = new AI_BossFMT(this, BornPos);
        }
        else
        {
            m_AIHandler = new AI_Npc_200(this, BornPos);
        }
    }
    public override void OnSelect()
Fight/Stage/MapEditor/Game/EventRefreshNPCHandler.cs
@@ -117,7 +117,14 @@
                }
                else
                {
                    _npc = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightNorm>(_data.npcID, E_ActorGroup.Enemy);
                    if (_npcConfig.IsBoss > 1)
                    {
                        _npc = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightBoss>(_data.npcID, E_ActorGroup.Enemy);
                    }
                    else
                    {
                        _npc = GAMgr.Instance.ReqClntFightNpc<GA_NpcClientFightNorm>(_data.npcID, E_ActorGroup.Enemy);
                    }
                }
                _npc.BornPos = _npc.Pos = _data.position;
                _npc.belongEventID = m_Evt.id;