From 61961728df4cd0bfb6eef005d5f44cf77e739bda Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期四, 11 十月 2018 10:32:29 +0800
Subject: [PATCH] 2120 神兽装备对比tips显示错误
---
System/KnapSack/Logic/ItemTipsModel.cs | 71 +++++++++++++++++++++++++++++++++++
1 files changed, 70 insertions(+), 1 deletions(-)
diff --git a/System/KnapSack/Logic/ItemTipsModel.cs b/System/KnapSack/Logic/ItemTipsModel.cs
index ad44350..bea6a5a 100644
--- a/System/KnapSack/Logic/ItemTipsModel.cs
+++ b/System/KnapSack/Logic/ItemTipsModel.cs
@@ -1093,6 +1093,70 @@
return s;
}
+ private string SetGodEquipBasicAttr(ItemAttrData attrData)
+ {
+ if (attrData == null)
+ return "";
+
+ Dictionary<int, int> itemEffectDict = SetItemEffectDict(attrData.itemConfig);
+ attrSB.Length = 0;
+ string atkStr = "";
+ string otherStr = "";
+ foreach (var key in itemEffectDict.Keys)
+ {
+ PlayerPropertyConfig playerProModel = Config.Instance.Get<PlayerPropertyConfig>(key);
+ if (playerProModel != null)
+ {
+ if (key == (int)AttrEnum.MinAtk)
+ {
+ playerProModel = Config.Instance.Get<PlayerPropertyConfig>((int)AttrEnum.ATK);
+ atkStr = StringUtility.Contact(playerProModel.Name, ":", GetProValueTypeStr(playerProModel, itemEffectDict[key]));
+ }
+ else if (key == (int)AttrEnum.MaxAtk)
+ {
+ playerProModel = Config.Instance.Get<PlayerPropertyConfig>((int)AttrEnum.ATK);
+ atkStr = StringUtility.Contact(atkStr, "-", GetProValueTypeStr(playerProModel, itemEffectDict[key]));
+ if (attrData.strengthDataDict != null)
+ {
+ if (attrData.strengthDataDict.ContainsKey((int)AttrEnum.ATK))
+ {
+ atkStr = StringUtility.Contact(atkStr, Language.Get("KnapS116", GetProValueTypeStr(playerProModel, attrData.strengthDataDict[(int)AttrEnum.ATK])));
+ }
+ }
+ if (attrSB.Length <= 0)
+ {
+ attrSB.Append(atkStr);
+ }
+ else
+ {
+ attrSB.Append("\n" + atkStr);
+ }
+
+ }
+ else
+ {
+ otherStr = StringUtility.Contact(playerProModel.Name, ":", GetProValueTypeStr(playerProModel, itemEffectDict[key]));
+ if (attrData.strengthDataDict != null)
+ {
+ if (attrData.strengthDataDict.ContainsKey(key))
+ {
+ otherStr = StringUtility.Contact(otherStr, Language.Get("KnapS116", GetProValueTypeStr(playerProModel, attrData.strengthDataDict[key])));
+ }
+ }
+
+ if (attrSB.Length <= 0)
+ {
+ attrSB.Append(otherStr);
+ }
+ else
+ {
+ attrSB.Append("\n" + otherStr);
+ }
+ }
+ }
+ }
+ return attrSB.ToString();
+ }
#endregion
#region 璁剧疆浼犲灞炴��
@@ -2023,11 +2087,16 @@
if(type == PackType.rptDogzEquip || type == PackType.rptDogzItem)
{
+ strengthDataDict = new Dictionary<int, int>();
if (GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus) != null)
{
StrengthLV = GetUseDataModel((int)ItemUseDataKey.Def_IudetDogzEquipPlus)[0];
}
- strengthDataDict = beastModel.SiteEnhancementAttribute(type,index);
+ Dictionary<int,int> getStregthDict = beastModel.SiteEnhancementAttribute(type,index);
+ foreach(var key in getStregthDict.Keys)
+ {
+ strengthDataDict.Add(key,getStregthDict[key]);
+ }
}
SetWinType();
--
Gitblit v1.8.0