少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-01 247c7db22a3f9f8dcd4172fd3b32e1850a2c3c36
6409 【前端】【2.0】装备评分
1个文件已修改
21 ■■■■ 已修改文件
System/KnapSack/Logic/ItemLogicUtility.cs 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/ItemLogicUtility.cs
@@ -82,7 +82,7 @@
        {
            Dictionary<int, int> properties = new Dictionary<int, int>();
            public int this[int id] { get { return properties[id]; } }
            public int this[int id] { get { return properties[id]; } set { properties[id] = value; } }
            public List<int> Keys { get { return new List<int>(properties.Keys); } }
@@ -183,6 +183,12 @@
                AddRange(config.LegendAttrID, config.LegendAttrValue);
                AddRange(config.OutOfPrintAttr, config.OutOfPrintAttrValue);
            }
            public bool ContainsKey(int id)
            {
                return properties.ContainsKey(id);
            }
        }
        public int GetEquipScore(PackType type, int itemId, Dictionary<int, List<int>> useDataDic = null, bool isPreview = false)
@@ -298,6 +304,13 @@
                return 0;
            }
            var minAttack = properties.ContainsKey((int)PropertyType.MinAtk) ? properties[(int)PropertyType.MinAtk] : 0;
            var maxAttack = properties.ContainsKey((int)PropertyType.MaxAtk) ? properties[(int)PropertyType.MaxAtk] : 0;
            var attack = properties.ContainsKey((int)PropertyType.ATK) ? properties[(int)PropertyType.ATK] : 0;
            properties[(int)PropertyType.MinAtk] = minAttack + attack;
            properties[(int)PropertyType.MaxAtk] = maxAttack + attack;
            Equation.Instance.Clear();
            curEquipAttrDict.Clear();
@@ -309,9 +322,11 @@
                {
                    case PropertyType.ATKSPEED:
                    case PropertyType.OnlyFinalHurt:
                    case PropertyType.PVPAtkBackHP:
                    case PropertyType.PVPAtkBackHP:
                    case PropertyType.MinAtk:
                    case PropertyType.MaxAtk:
                        curEquipAttrDict.Add(attrType, properties[key]);
                        break;
                        break;
                    default:
                        if (GSProValueDict != null && GSProValueDict.ContainsKey(attrType))
                        {