少年修仙传客户端代码仓库
client_Wu Xijin
2018-10-16 ad739bd4dea8b8f103832229613d30fd7b47a37e
Fight/MapTransferUtility.cs
@@ -18,14 +18,11 @@
        Fight,
    }
    private E_MapTransferDoType m_MapTransferType;
    public E_MapTransferDoType MapTransferDoType
    {
        get
        {
    public E_MapTransferDoType MapTransferDoType {
        get {
            return m_MapTransferType;
        }
        set
        {
        set {
            m_MapTransferType = value;
#if UNITY_EDITOR
            // Debug.LogFormat("设置方式: {0}", m_MapTransferType);
@@ -124,8 +121,7 @@
    #endregion
    #region npc
    public int NpcID
    {
    public int NpcID {
        get; set;
    }
    #endregion
@@ -267,13 +263,14 @@
        MapModel _model = ModelCenter.Instance.GetModel<MapModel>();
        GActor _npc = null;
        // 加入判断是否世界BOSS判断
        WorldBossConfig _worldBoss = Config.Instance.Get<WorldBossConfig>(npcID);
        var _worldBoss = Config.Instance.Get<WorldBossConfig>(npcID);
        var dogzBoss = Config.Instance.Get<DogzDungeonConfig>(npcID);
        if (_findLocation)
        {
            var _mapConfig = Config.Instance.Get<MapConfig>(_npcLocation.mapId);
            // 中立地图
            if (_mapConfig.Camp == 5 && _worldBoss != null)
            if (_mapConfig.Camp == 5 && (_worldBoss != null || dogzBoss != null))
            {
                if (_npcLocation.mapId == PlayerDatas.Instance.baseData.MapID)
                {
@@ -292,7 +289,7 @@
        }
        FairyGrabBossConfig _fairyBoss = Config.Instance.Get<FairyGrabBossConfig>(npcID);
        bool _isBoss = _worldBoss != null || _fairyBoss != null;
        bool _isBoss = _worldBoss != null || _fairyBoss != null || dogzBoss != null;
        if (_isBoss && _findLocation)
        {
            //Debug.LogFormat("目标是boss");
@@ -359,7 +356,7 @@
                    var mapId = _npcLocation.mapId;
                    var position = new Vector3(_mapConfig.BornPoints[0].x, 0, _mapConfig.BornPoints[0].y);
                    Send_WorldTransfer(mapId, position, MapTransferType.WorldTransport, (byte)_lineID, npcID);
                    forceMove = true;
                    if (BossFakeLineUtility.Instance.IsShuntBoss(npcID))
@@ -471,7 +468,7 @@
            // 副本中不可以传送
            if (_curMapConfig.MapFBType != 0)
            {
                SysNotifyMgr.Instance.ShowTip("Map_Delivery");
                SysNotifyMgr.Instance.ShowTip("InDungeon_CantGo");
                return;
            }