少年修仙传客户端代码仓库
QD_LCJ
2018-08-09 054e1f023524bd8305ce4d37bfcae9c97c5dff2b
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
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,16 +2068,19 @@
        ShowOrHide = showOrHide;
        if (ShowOrHide)
        if (this is GA_Player)
        {
            var _equipModel = PlayerBackModel.GetSinglePackModel(PackType.rptEquip);
            var _itemModel = _equipModel.GetItemModelByIndex((int)RoleEquipType.retSpiritAnimal);
            var _player = this as GA_Player;
            if (_itemModel != null)
            if (ShowOrHide)
            {
                SwitchGuard((uint)_itemModel.itemInfo.ItemID);
                if (_player.serverGuardId != 0)
                {
                    SwitchGuard((uint)_player.serverGuardId);
                }
            }
        }
    }
    private void ChangeBinderToClothes()