少年修仙传客户端代码仓库
339726288@qq.com
2018-08-09 40e13a9662e044e266ede74fb279e7305191ecc3
fixed #1478 隐藏其他角色后再显示,守护没有显形
4个文件已修改
27 ■■■■ 已修改文件
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0413_tagPlayerChangeEquip.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0415_tagPlayerUnEquipItem.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GA_Player.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/GameActor/GActorPlayerBase.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0413_tagPlayerChangeEquip.cs
@@ -51,6 +51,11 @@
            else if (vNetData.EquipIndex == (int)RoleEquipType.retSpiritAnimal)
            {
                _player.SwitchGuard(vNetData.EquipID);
                var _p = _player as GA_Player;
                if (_p != null)
                {
                    _p.serverGuardId = (int)vNetData.EquipID;
                }
            }
            else if (vNetData.EquipIndex == (int)RoleEquipType.retWeapon2)
            {
Core/NetworkPackage/DTCFile/ServerPack/H04_Scene/DTC0415_tagPlayerUnEquipItem.cs
@@ -43,6 +43,11 @@
            else if (vNetData.EquipIndex == (int)RoleEquipType.retSpiritAnimal)
            {
                _player.SwitchGuard(0);
                var _p = _player as GA_Player;
                if (_p != null)
                {
                    _p.serverGuardId = 0;
                }
            }
            if (vNetData.EquipIndex == (int)RoleEquipType.retClothes
Fight/GameActor/GA_Player.cs
@@ -6,6 +6,9 @@
public class GA_Player : GActorPlayerBase, IOtherSelectable
{
    // 为守护特殊定义的当前是否装备守护id
    public int serverGuardId;
    // 简易的脱机挂AI草稿
    // 步骤 1. 寻点 2. 移动至 3. 放个普攻
    private byte m_Step;
@@ -108,6 +111,7 @@
            else if (_equipInfo.Place == (int)RoleEquipType.retSpiritAnimal)
            {
                SwitchGuard(_equipInfo.ItemID);
                serverGuardId = (int)_equipInfo.ItemID;
            }
            else if (_equipInfo.Place == (int)RoleEquipType.mount)
            {
Fight/GameActor/GActorPlayerBase.cs
@@ -2068,18 +2068,21 @@
        ShowOrHide = showOrHide;
        if (this is GA_Player)
        {
            var _player = this as GA_Player;
        if (ShowOrHide)
        {
            var _equipModel = PlayerBackModel.GetSinglePackModel(PackType.rptEquip);
            var _itemModel = _equipModel.GetItemModelByIndex((int)RoleEquipType.retSpiritAnimal);
            if (_itemModel != null)
                if (_player.serverGuardId != 0)
            {
                SwitchGuard((uint)_itemModel.itemInfo.ItemID);
                    SwitchGuard((uint)_player.serverGuardId);
            }
        }
    }
    }
    private void ChangeBinderToClothes()
    {
        if (MP_Name != m_ClothesModel.transform)