少年修仙传客户端代码仓库
client_Hale
2019-04-15 c79dbe6647429b864d15a21b3baa77ffa8d48768
System/Mount/MountModel.cs
@@ -273,7 +273,11 @@
    public Redpoint redPointStre2 = new Redpoint(MainRedDot.RedPoint_MountPackKey, Redpoint_key2);//坐骑兽魂
    private void OnItemRefreshEvent(PackType type, int index, int id)
    {
        MountH0704(playerPack.GetItemByIndex(type, index));
        if (type == PackType.Equip)
        {
            RefreshCurrentMount(playerPack.GetItemByIndex(type, index));
        }
        if (type == PackType.Item)
        {
            if (_DicMountItem.ContainsKey(id))
@@ -519,19 +523,22 @@
            }
        }
        return SkillLv;
    }
    public void MountH0704(ItemModel info)//获取当前的坐骑
    }
    void RefreshCurrentMount(ItemModel info)//获取当前的坐骑
    {
        if (info == null)
        {
            return;
        }
        if (info == null || info.packType != PackType.Equip)
            return;
        if (info.gridIndex == (byte)RoleEquipType.Mount)//坐骑位置19
        if (info.config.EquipPlace == (byte)RoleEquipType.Mount)//坐骑位置19
        {
            if (Hconfigs.Count <= 0)
            {
                Hconfigs = HorseConfig.GetValues();
            }
            // var configs = HorseConfig.GetValues();
            foreach (var config in Hconfigs)
            {
                if (config.ItemID == info.itemId)
@@ -542,10 +549,10 @@
                    {
                        Event_MountAlteration(_HorseIDNow);
                    }
                }
            }
        }
        MountDanRed();
        MountStoneRed();
    }