少年修仙传客户端代码仓库
client_Hale
2018-09-26 e2fded158981fffe4e6272cca24c25d8e4692860
update 不同地图传送包坐标发送坐标修改
1个文件已修改
19 ■■■■ 已修改文件
Fight/MapTransferUtility.cs 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/MapTransferUtility.cs
@@ -248,15 +248,24 @@
        // 加入判断是否世界BOSS判断
        WorldBossConfig _worldBoss = Config.Instance.Get<WorldBossConfig>(npcID);
        if(_findLocation)
        if (_findLocation)
        {
            var _mapConfig = Config.Instance.Get<MapConfig>(_npcLocation.mapId);
            // 中立地图
            if(_mapConfig.Camp == 5 && _worldBoss != null)
            if (_mapConfig.Camp == 5 && _worldBoss != null)
            {
                Send_WorldTransfer(_npcLocation.mapId,
                                   new Vector3(_npcLocation.position.x * 2, 0, _npcLocation.position.y * 2),
                                   MapTransferType.WorldTransport, 0, npcID);
                if (_npcLocation.mapId == PlayerDatas.Instance.baseData.MapID)
                {
                    Send_WorldTransfer(_npcLocation.mapId,
                                       new Vector3(_npcLocation.position.x * 2, 0, _npcLocation.position.y * 2),
                                       MapTransferType.WorldTransport, 0, npcID);
                }
                else
                {
                    Send_WorldTransfer(_npcLocation.mapId,
                                       new Vector3(_mapConfig.BornPoints[0].x, 0, _mapConfig.BornPoints[0].y),
                                       MapTransferType.WorldTransport, 0, npcID);
                }
                return;
            }
        }