| | |
| | | }
|
| | | 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 设置传奇属性
|