From efc51da0ee69ad8dea4e3a02a4bcc8adcb3c4c0e Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期六, 13 十月 2018 11:15:57 +0800
Subject: [PATCH] 2137 装备预览传奇属性显示错误
---
System/KnapSack/Logic/ItemTipsModel.cs | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/System/KnapSack/Logic/ItemTipsModel.cs b/System/KnapSack/Logic/ItemTipsModel.cs
index fd18fcc..c0ea6c5 100644
--- a/System/KnapSack/Logic/ItemTipsModel.cs
+++ b/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;
--
Gitblit v1.8.0