少年修仙传客户端代码仓库
client_linchunjie
2019-07-17 92eac12c1db108ed0158fa187fa3a66091e142db
System/ItemTip/ItemTipUtility.cs
@@ -197,6 +197,7 @@
            public int itemId;
            public bool compare;
            public bool unfoldGetWay;
            public LegendProperty legendProperty;
        }
        static PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
@@ -251,6 +252,10 @@
            {
                case TipType.Equip:
                    mainTipData = CreateNormalEquipData(itemId);
                    if (!item.legendProperty.Equals(default(LegendProperty)))
                    {
                        mainTipData.legendProperty = item.legendProperty;
                    }
                    if (item.compare)
                    {
@@ -1190,6 +1195,34 @@
            return data;
        }
        public static LegendProperty GetLegendProperty(int itemId, Dictionary<int, List<int>> userData)
        {
            var data = new LegendProperty();
            data.isPreview = false;
            data.itemId = itemId;
            List<int> ids = null;
            List<int> values = null;
            if (userData != null)
            {
                userData.TryGetValue(17, out ids);
                userData.TryGetValue(17, out values);
            }
            if (!ids.IsNullOrEmpty() && !values.IsNullOrEmpty())
            {
                var properties = new List<Int2>();
                var count = Mathf.Min(ids.Count, values.Count);
                for (int i = 0; i < count; i++)
                {
                    properties.Add(new Int2(ids[i], values[i]));
                }
                data.properties = properties;
            }
            return data;
        }
        private static SuitInfo GetSuitInfo(int itemId)
        {
            var config = ItemConfig.Get(itemId);