少年修仙传客户端代码仓库
Client_PangDeRong
2018-10-13 efc51da0ee69ad8dea4e3a02a4bcc8adcb3c4c0e
2137 装备预览传奇属性显示错误
1个文件已修改
24 ■■■■ 已修改文件
System/KnapSack/Logic/ItemTipsModel.cs 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/ItemTipsModel.cs
@@ -2069,19 +2069,29 @@
        {
            legendIdlist = new List<int>();
            legendValuelist = new List<int>();
            string attrCntKey = StringUtility.Contact(itemConfig.ItemColor, itemConfig.StarLevel);
            if (itemTipsModel.legendAttrIDPreviewDict.ContainsKey(itemConfig.EquipPlace))
            {
                foreach (var attrType in itemTipsModel.legendAttrIDPreviewDict[itemConfig.EquipPlace].Keys)
                {
                    switch (attrType)
                    int attrCnt = 0;
                    if (itemTipsModel.legendAttrCntPreviewDict.ContainsKey(attrCntKey))
                    {
                        case LegendAttrType.Pursuit:
                            legendIdlist.AddRange(itemTipsModel.legendAttrIDPreviewDict[itemConfig.EquipPlace][attrType]);
                            break;
                        case LegendAttrType.Fixed:
                            legendIdlist.AddRange(itemTipsModel.legendAttrIDPreviewDict[itemConfig.EquipPlace][attrType]);
                            break;
                        attrCnt = itemTipsModel.legendAttrCntPreviewDict[attrCntKey][attrType];
                    }
                    if(attrCnt > 0)
                    {
                        switch (attrType)
                        {
                            case LegendAttrType.Pursuit:
                                legendIdlist.AddRange(itemTipsModel.legendAttrIDPreviewDict[itemConfig.EquipPlace][attrType]);
                                break;
                            case LegendAttrType.Fixed:
                                legendIdlist.AddRange(itemTipsModel.legendAttrIDPreviewDict[itemConfig.EquipPlace][attrType]);
                                break;
                        }
                    }
                }
            }
            int i = 0;