少年修仙传客户端代码仓库
client_linchunjie
2018-10-08 3f08266d9437cc544cc4f256d7229bbbde084bf8
System/Treasure/TreasureData.cs
@@ -83,6 +83,8 @@
            get; private set;
        }
        public int autoSelectPotential { get; set; }
        Dictionary<int, List<TreasurePotential>> jobToPotentials = new Dictionary<int, List<TreasurePotential>>();
        public List<TreasurePotential> potentials
@@ -197,6 +199,23 @@
            }
        }
        public TreasurePotential GetPotentialByIndex(int index)
        {
            if (potentials == null)
            {
                return null;
            }
            else
            {
                if (index >= 0 && index < potentials.Count)
                {
                    return potentials[index];
                }
                return null;
            }
        }
        public void UpdatePotentialLevel(int _potentialId, int _level)
        {
            for (int i = 0; i < potentials.Count; i++)